@appkit/dek-lib 0.12.0 → 0.13.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
@@ -58281,11 +58281,14 @@ function usePluginState(api2, key, defaultValue) {
58281
58281
  }
58282
58282
  return [
58283
58283
  value,
58284
- (newValue) => {
58285
- if (typeof newValue === "object") {
58286
- newValue = JSON.stringify(newValue);
58284
+ (newValueOrFn) => {
58285
+ if (typeof newValueOrFn === "function") {
58286
+ newValueOrFn = newValueOrFn(value);
58287
58287
  }
58288
- setState(integrationKey, key, newValue);
58288
+ if (typeof newValueOrFn === "object") {
58289
+ newValueOrFn = JSON.stringify(newValueOrFn);
58290
+ }
58291
+ setState(integrationKey, key, newValueOrFn);
58289
58292
  }
58290
58293
  ];
58291
58294
  }
@@ -58325,7 +58328,7 @@ async function fetchUserPlugins(email, password) {
58325
58328
  result.integrations.push({
58326
58329
  key: "base",
58327
58330
  pluginName: "base",
58328
- pluginVersion: "0.12.0",
58331
+ pluginVersion: "0.13.0",
58329
58332
  pluginConfig: []
58330
58333
  });
58331
58334
  return result;
@@ -58500,7 +58503,7 @@ const Header = ({ height = 70 }) => {
58500
58503
  };
58501
58504
  const About = () => {
58502
58505
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(x0, { padding: 20, direction: "vert", children: [
58503
- /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.12.0"}` }),
58506
+ /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.13.0"}` }),
58504
58507
  /* @__PURE__ */ jsxRuntimeExports.jsx(X4, { children: "From Appkit" })
58505
58508
  ] });
58506
58509
  };
package/dist/index.umd.js CHANGED
@@ -58298,11 +58298,14 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
58298
58298
  }
58299
58299
  return [
58300
58300
  value,
58301
- (newValue) => {
58302
- if (typeof newValue === "object") {
58303
- newValue = JSON.stringify(newValue);
58301
+ (newValueOrFn) => {
58302
+ if (typeof newValueOrFn === "function") {
58303
+ newValueOrFn = newValueOrFn(value);
58304
58304
  }
58305
- setState(integrationKey, key, newValue);
58305
+ if (typeof newValueOrFn === "object") {
58306
+ newValueOrFn = JSON.stringify(newValueOrFn);
58307
+ }
58308
+ setState(integrationKey, key, newValueOrFn);
58306
58309
  }
58307
58310
  ];
58308
58311
  }
@@ -58342,7 +58345,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
58342
58345
  result.integrations.push({
58343
58346
  key: "base",
58344
58347
  pluginName: "base",
58345
- pluginVersion: "0.12.0",
58348
+ pluginVersion: "0.13.0",
58346
58349
  pluginConfig: []
58347
58350
  });
58348
58351
  return result;
@@ -58517,7 +58520,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
58517
58520
  };
58518
58521
  const About = () => {
58519
58522
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(x0, { padding: 20, direction: "vert", children: [
58520
- /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.12.0"}` }),
58523
+ /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.13.0"}` }),
58521
58524
  /* @__PURE__ */ jsxRuntimeExports.jsx(X4, { children: "From Appkit" })
58522
58525
  ] });
58523
58526
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.12.0",
4
+ "version": "0.13.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsc && vite build",