From 3d0c432fed8271a2d46a0d7797657682f6ea42e4 Mon Sep 17 00:00:00 2001 From: Snehil Vijay Date: Tue, 15 Nov 2022 23:39:01 +0530 Subject: [PATCH] :bug: Make persistence props optional --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/ts/props.ts | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 352a32a3..7fa5e2b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +# 0.11.0a2 + +### Fixed + +- Make persistence props optional. + # 0.11.0a1 ### Added diff --git a/package.json b/package.json index a55a81fe..ae789c0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dash_mantine_components", - "version": "0.11.0a1", + "version": "0.11.0a2", "description": "Plotly Dash Components based on Mantine", "main": "index.ts", "repository": { diff --git a/src/ts/props.ts b/src/ts/props.ts index 4326e62f..d35993cd 100644 --- a/src/ts/props.ts +++ b/src/ts/props.ts @@ -488,14 +488,14 @@ export type PersistenceProps = { * the new `value` also matches what was given originally. * Used in conjunction with `persistence_type`. */ - persistence: boolean | string | number; + persistence?: boolean | string | number; /** * Properties whose user interactions will persist after refreshing the * component or the page. Since only `value` is allowed this prop can * normally be ignored. */ - persisted_props: Array; + persisted_props?: Array; /** * Where persisted user changes will be stored: @@ -503,5 +503,5 @@ export type PersistenceProps = { * local: window.localStorage, data is kept after the browser quit. * session: window.sessionStorage, data is cleared once the browser quit. */ - persistence_type: "local" | "session" | "memory"; + persistence_type?: "local" | "session" | "memory"; };