@appkit/dek-plugin 0.8.0 → 0.9.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
@@ -290,7 +290,7 @@ class Api {
290
290
  if (!component) {
291
291
  return;
292
292
  }
293
- return component.element(props);
293
+ return component.element({ ...props, plugin });
294
294
  }
295
295
  }
296
296
  getComponentSchema(integrationKey, componentKey) {
@@ -315,7 +315,7 @@ class Api {
315
315
  if (!component) {
316
316
  return;
317
317
  }
318
- return component.element();
318
+ return component.element({ plugin });
319
319
  }
320
320
  }
321
321
  }
@@ -329,7 +329,7 @@ class Api {
329
329
  if (!component) {
330
330
  return;
331
331
  }
332
- return component.element();
332
+ return component.element({ plugin });
333
333
  }
334
334
  }
335
335
  }
package/dist/index.umd.js CHANGED
@@ -293,7 +293,7 @@
293
293
  if (!component) {
294
294
  return;
295
295
  }
296
- return component.element(props);
296
+ return component.element({ ...props, plugin });
297
297
  }
298
298
  }
299
299
  getComponentSchema(integrationKey, componentKey) {
@@ -318,7 +318,7 @@
318
318
  if (!component) {
319
319
  return;
320
320
  }
321
- return component.element();
321
+ return component.element({ plugin });
322
322
  }
323
323
  }
324
324
  }
@@ -332,7 +332,7 @@
332
332
  if (!component) {
333
333
  return;
334
334
  }
335
- return component.element();
335
+ return component.element({ plugin });
336
336
  }
337
337
  }
338
338
  }
@@ -16,11 +16,11 @@ export type DekPluginComponentItem = {
16
16
  };
17
17
  export type DekPluginScreenItem = {
18
18
  path: string;
19
- element: PluginElementFactory;
19
+ element: PluginElementFactoryWithProps;
20
20
  };
21
21
  export type DekPluginBoardItem = {
22
22
  key: string;
23
- element: PluginElementFactory;
23
+ element: PluginElementFactoryWithProps;
24
24
  };
25
25
  export type DekPluginConfig = Record<string, string>;
26
26
  export type DekPlugin = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-plugin",
3
3
  "private": false,
4
- "version": "0.8.0",
4
+ "version": "0.9.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",