@appkit/dek-plugin 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -414,7 +414,7 @@ function usePluginState(api2, key, defaultValue) {
414
414
  const integrationKey = api2.integrationKey;
415
415
  const state = useState(integrationKey);
416
416
  let value;
417
- if (state && state[key]) {
417
+ if (state && state[key] !== void 0) {
418
418
  value = state[key];
419
419
  } else {
420
420
  value = defaultValue;
@@ -433,7 +433,7 @@ function usePluginStateObject(api2, key, defaultValue = {}) {
433
433
  const integrationKey = api2.integrationKey;
434
434
  const state = useState(integrationKey);
435
435
  let value;
436
- if (state && state[key]) {
436
+ if (state && state[key] !== void 0) {
437
437
  value = tryParseJson(state[key], defaultValue);
438
438
  } else {
439
439
  value = defaultValue;
package/dist/index.umd.js CHANGED
@@ -417,7 +417,7 @@ var __publicField = (obj, key, value) => {
417
417
  const integrationKey = api2.integrationKey;
418
418
  const state = useState(integrationKey);
419
419
  let value;
420
- if (state && state[key]) {
420
+ if (state && state[key] !== void 0) {
421
421
  value = state[key];
422
422
  } else {
423
423
  value = defaultValue;
@@ -436,7 +436,7 @@ var __publicField = (obj, key, value) => {
436
436
  const integrationKey = api2.integrationKey;
437
437
  const state = useState(integrationKey);
438
438
  let value;
439
- if (state && state[key]) {
439
+ if (state && state[key] !== void 0) {
440
440
  value = tryParseJson(state[key], defaultValue);
441
441
  } else {
442
442
  value = defaultValue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-plugin",
3
3
  "private": false,
4
- "version": "0.15.0",
4
+ "version": "0.16.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",