@measured/puck 0.21.0-canary.a62292fd → 0.21.0-canary.a7a65997

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 (41) hide show
  1. package/dist/{Editor-O447AVCX.mjs → Editor-HG76DBFU.mjs} +9 -9
  2. package/dist/{actions-ONhOkrvf.d.mts → actions-tsxxcX1z.d.mts} +24 -9
  3. package/dist/{actions-ONhOkrvf.d.ts → actions-tsxxcX1z.d.ts} +24 -9
  4. package/dist/{chunk-QBGM4ELA.mjs → chunk-23IZFPL7.mjs} +1 -1
  5. package/dist/{chunk-T3WX7XJ6.mjs → chunk-45I5SDOI.mjs} +5 -3
  6. package/dist/{chunk-62AAYNXG.mjs → chunk-5ZZVX2Z3.mjs} +1 -1
  7. package/dist/{chunk-NLUHDYVR.mjs → chunk-B7REOAA7.mjs} +22 -3
  8. package/dist/{chunk-BSDEIOEK.mjs → chunk-BXQQARCR.mjs} +10 -8
  9. package/dist/{chunk-DAQLMM2T.mjs → chunk-D2SRL6YA.mjs} +89 -4
  10. package/dist/{chunk-Y656T6AQ.mjs → chunk-IQKX6A5D.mjs} +49 -39
  11. package/dist/{chunk-PLXSMBAA.mjs → chunk-LJEGWHDD.mjs} +1 -1
  12. package/dist/{chunk-2Q4PACDA.mjs → chunk-LR6HIXPR.mjs} +3 -3
  13. package/dist/{chunk-7GESFTRA.mjs → chunk-Q6MNES6D.mjs} +4315 -3693
  14. package/dist/{chunk-QAWJTCV5.mjs → chunk-U4VSQKO3.mjs} +1 -1
  15. package/dist/{full-BEMDJKDS.mjs → full-L7DWVNTZ.mjs} +8 -8
  16. package/dist/{index-BEoNHRI1.d.ts → index-Ca6V6NQD.d.ts} +3 -1
  17. package/dist/{index-DfxZ7tZF.d.mts → index-mQvUCH3C.d.mts} +3 -1
  18. package/dist/index.css +704 -314
  19. package/dist/index.d.mts +28 -9
  20. package/dist/index.d.ts +28 -9
  21. package/dist/index.js +2975 -2181
  22. package/dist/index.mjs +20 -17
  23. package/dist/internal.d.mts +2 -2
  24. package/dist/internal.d.ts +2 -2
  25. package/dist/internal.js +22 -3
  26. package/dist/internal.mjs +2 -2
  27. package/dist/{loaded-N3FYGF2Y.mjs → loaded-2HLHDP2G.mjs} +5 -5
  28. package/dist/{loaded-OBY7OMS6.mjs → loaded-LZUXYAGW.mjs} +5 -5
  29. package/dist/{loaded-JU3A7Y4L.mjs → loaded-UHVTB6OD.mjs} +5 -5
  30. package/dist/no-external.css +842 -448
  31. package/dist/no-external.d.mts +4 -4
  32. package/dist/no-external.d.ts +4 -4
  33. package/dist/no-external.js +2972 -2175
  34. package/dist/no-external.mjs +19 -11
  35. package/dist/rsc.d.mts +2 -2
  36. package/dist/rsc.d.ts +2 -2
  37. package/dist/rsc.js +55 -28
  38. package/dist/rsc.mjs +3 -3
  39. package/dist/{walk-tree-DHbAZ4wF.d.ts → walk-tree-Bh85NMeo.d.ts} +1 -1
  40. package/dist/{walk-tree-CdriEzFJ.d.mts → walk-tree-CDA3K5S3.d.mts} +1 -1
  41. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  List,
3
3
  ListOrdered
4
- } from "./chunk-DAQLMM2T.mjs";
4
+ } from "./chunk-D2SRL6YA.mjs";
5
5
  import {
6
6
  init_react_import
7
7
  } from "./chunk-M6W7YEVX.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  LoadedRichTextMenuInner
3
- } from "./chunk-BSDEIOEK.mjs";
4
- import "./chunk-PLXSMBAA.mjs";
5
- import "./chunk-62AAYNXG.mjs";
6
- import "./chunk-QAWJTCV5.mjs";
7
- import "./chunk-DAQLMM2T.mjs";
8
- import "./chunk-QBGM4ELA.mjs";
9
- import "./chunk-T3WX7XJ6.mjs";
3
+ } from "./chunk-BXQQARCR.mjs";
4
+ import "./chunk-LJEGWHDD.mjs";
5
+ import "./chunk-5ZZVX2Z3.mjs";
6
+ import "./chunk-U4VSQKO3.mjs";
7
+ import "./chunk-D2SRL6YA.mjs";
8
+ import "./chunk-23IZFPL7.mjs";
9
+ import "./chunk-45I5SDOI.mjs";
10
10
  import "./chunk-Y2EFNT5P.mjs";
11
- import "./chunk-NLUHDYVR.mjs";
11
+ import "./chunk-B7REOAA7.mjs";
12
12
  import {
13
13
  __spreadValues,
14
14
  init_react_import
@@ -1,4 +1,4 @@
1
- import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-ONhOkrvf.js';
1
+ import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-tsxxcX1z.js';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
4
  type HistorySlice<D = any> = {
@@ -73,6 +73,7 @@ type ComponentState = Record<string, {
73
73
  loadingCount: number;
74
74
  }>;
75
75
  type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
76
+ instanceId: string;
76
77
  state: G["UserAppState"];
77
78
  dispatch: (action: PuckAction) => void;
78
79
  config: UserConfig;
@@ -95,6 +96,7 @@ type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserCon
95
96
  setStatus: (status: Status) => void;
96
97
  iframe: IframeConfig;
97
98
  selectedItem?: G["UserData"]["content"][0] | null;
99
+ getCurrentData: () => G["UserData"]["content"][0] | G["UserData"]["root"];
98
100
  setUi: (ui: Partial<UiState>, recordHistory?: boolean) => void;
99
101
  getComponentConfig: (type?: string) => ComponentConfig | null | undefined;
100
102
  onAction?: (action: PuckAction, newState: AppState, state: AppState) => void;
@@ -1,4 +1,4 @@
1
- import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-ONhOkrvf.mjs';
1
+ import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-tsxxcX1z.mjs';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
4
  type HistorySlice<D = any> = {
@@ -73,6 +73,7 @@ type ComponentState = Record<string, {
73
73
  loadingCount: number;
74
74
  }>;
75
75
  type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
76
+ instanceId: string;
76
77
  state: G["UserAppState"];
77
78
  dispatch: (action: PuckAction) => void;
78
79
  config: UserConfig;
@@ -95,6 +96,7 @@ type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserCon
95
96
  setStatus: (status: Status) => void;
96
97
  iframe: IframeConfig;
97
98
  selectedItem?: G["UserData"]["content"][0] | null;
99
+ getCurrentData: () => G["UserData"]["content"][0] | G["UserData"]["root"];
98
100
  setUi: (ui: Partial<UiState>, recordHistory?: boolean) => void;
99
101
  getComponentConfig: (type?: string) => ComponentConfig | null | undefined;
100
102
  onAction?: (action: PuckAction, newState: AppState, state: AppState) => void;