@luna-park/plugin 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -4
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -344,9 +344,6 @@ declare type TCanvasExport = {
344
344
 
345
345
  export declare type TComponent = {
346
346
  component: Component;
347
- custom?: {
348
- slots: (attributes: Record<string, unknown>) => Record<string, false | TSchema>;
349
- };
350
347
  emits?: Record<string, TSchema>;
351
348
  import?: Array<{
352
349
  name: string;
@@ -355,7 +352,7 @@ export declare type TComponent = {
355
352
  models?: Record<string, TSchema>;
356
353
  name: string;
357
354
  properties?: Record<string, TSchema>;
358
- slots?: Record<string, TSchema<TObject> | TSchema<TVoid>>;
355
+ slots?: Record<string, TSlot> | ((attributes: Record<string, unknown>) => Record<string, TSlot>);
359
356
  };
360
357
 
361
358
  declare type TComponentExport = {
@@ -821,6 +818,8 @@ declare type TScriptExport = {
821
818
  state: TStateExport;
822
819
  };
823
820
 
821
+ declare type TSlot = TSchema<TObject> | TSchema<TVoid>;
822
+
824
823
  declare type TStateExport = Record<string, unknown>;
825
824
 
826
825
  declare type TStoreExport = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luna-park/plugin",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "description": "Plugin helper for Luna Park.",
6
6
  "homepage": "https://luna-park.app",
@@ -51,8 +51,8 @@
51
51
  "vitest": "^4.0.12",
52
52
  "vue": "^3.5.24",
53
53
  "@luna-park/logicnodes": "^2.0.0",
54
- "@luna-park/utils": "^2.0.0",
55
- "@luna-park/shared": "^1.0.0"
54
+ "@luna-park/shared": "^1.0.0",
55
+ "@luna-park/utils": "^2.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@fastify/cors": "^11.1.0",