@appkit/dek-lib 0.2.0 → 0.2.2

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
@@ -39313,7 +39313,7 @@ const LayoutRenderer = ({ layout }) => {
39313
39313
  View: D2,
39314
39314
  Text: _t
39315
39315
  },
39316
- jsx: `<Provider>${layout}</Provider>`
39316
+ jsx: layout
39317
39317
  }
39318
39318
  );
39319
39319
  };
@@ -55153,28 +55153,18 @@ async function updateData(email, password, plugin) {
55153
55153
  let userData = await fetchUserData(email, password);
55154
55154
  if (plugin) {
55155
55155
  const pluginInstance = new plugin();
55156
- if (pluginInstance.config.private !== "true") {
55156
+ if (pluginInstance.config && pluginInstance.config.private !== "true") {
55157
55157
  userData = _.cloneDeep(userData);
55158
55158
  userData.boards = [
55159
55159
  {
55160
55160
  id: "test-plugin",
55161
55161
  key: "dev",
55162
- // layout: `<Screen><View halign='center' valign='center'><Zone id='plugin'></Zone></View></Screen>`,
55163
55162
  title: "Test Board",
55164
55163
  base: {
55165
55164
  plugin: "base",
55166
55165
  key: "dev"
55167
55166
  },
55168
55167
  zones: []
55169
- // zones: [
55170
- // {
55171
- // key: 'plugin',
55172
- // plugin: 'plugin',
55173
- // component: 'toggle-button',
55174
- // props: [],
55175
- // containerProps: [],
55176
- // },
55177
- // ],
55178
55168
  }
55179
55169
  ];
55180
55170
  }
@@ -65861,7 +65851,7 @@ const BoardProvider = ({ email, password, plugin }) => {
65861
65851
  const config2 = useUserConfig(email, password, plugin);
65862
65852
  const api = f0();
65863
65853
  console.log("### LOADED", config2, api);
65864
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme: LT1, children: [
65854
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(_N1, { children: [
65865
65855
  /* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { $zoom: zoom, $transitionDelay: transitionDelay }),
65866
65856
  /* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
65867
65857
  /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),
package/dist/index.umd.js CHANGED
@@ -39330,7 +39330,7 @@ Arguments: ` + Array.prototype.slice.call(n10).join("") + `
39330
39330
  View: D2,
39331
39331
  Text: _t
39332
39332
  },
39333
- jsx: `<Provider>${layout}</Provider>`
39333
+ jsx: layout
39334
39334
  }
39335
39335
  );
39336
39336
  };
@@ -55170,28 +55170,18 @@ Arguments: ` + Array.prototype.slice.call(n10).join("") + `
55170
55170
  let userData = await fetchUserData(email, password);
55171
55171
  if (plugin) {
55172
55172
  const pluginInstance = new plugin();
55173
- if (pluginInstance.config.private !== "true") {
55173
+ if (pluginInstance.config && pluginInstance.config.private !== "true") {
55174
55174
  userData = _.cloneDeep(userData);
55175
55175
  userData.boards = [
55176
55176
  {
55177
55177
  id: "test-plugin",
55178
55178
  key: "dev",
55179
- // layout: `<Screen><View halign='center' valign='center'><Zone id='plugin'></Zone></View></Screen>`,
55180
55179
  title: "Test Board",
55181
55180
  base: {
55182
55181
  plugin: "base",
55183
55182
  key: "dev"
55184
55183
  },
55185
55184
  zones: []
55186
- // zones: [
55187
- // {
55188
- // key: 'plugin',
55189
- // plugin: 'plugin',
55190
- // component: 'toggle-button',
55191
- // props: [],
55192
- // containerProps: [],
55193
- // },
55194
- // ],
55195
55185
  }
55196
55186
  ];
55197
55187
  }
@@ -65878,7 +65868,7 @@ body {
65878
65868
  const config2 = useUserConfig(email, password, plugin);
65879
65869
  const api = f0();
65880
65870
  console.log("### LOADED", config2, api);
65881
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(styled.ThemeProvider, { theme: LT1, children: [
65871
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(_N1, { children: [
65882
65872
  /* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { $zoom: zoom, $transitionDelay: transitionDelay }),
65883
65873
  /* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
65884
65874
  /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsc && vite build",
8
8
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
9
9
  "codegen": "graphql-codegen",
10
- "preview": "vite preview",
11
- "publish": "npm publish"
10
+ "preview": "vite preview"
12
11
  },
13
12
  "dependencies": {
13
+ "@appkit/dek-plugin": "*",
14
+ "@appkit/dek-ui": "*",
14
15
  "axios": "^1.6.2",
15
16
  "buffer": "^6.0.3",
16
17
  "eventemitter3": "^5.0.1",