@measured/puck 0.20.1-canary.d7404af9 → 0.20.1
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/{chunk-NFK5JVZW.mjs → chunk-62KOMFGG.mjs} +1 -1
- package/dist/{chunk-AMBEQM6V.mjs → chunk-V7Y7BFEC.mjs} +34 -30
- package/dist/index.css +320 -319
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -30
- package/dist/index.mjs +2 -2
- package/dist/no-external.css +320 -319
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +34 -30
- package/dist/no-external.mjs +2 -2
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +1 -1
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-CiAkCQEp.d.mts → walk-tree-JdJYB16L.d.mts} +4 -4
- package/dist/{walk-tree-CiAkCQEp.d.ts → walk-tree-JdJYB16L.d.ts} +4 -4
- package/package.json +20 -1
package/dist/no-external.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a7 as Adaptor, A as AppState, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, f as ComponentConfig, a as ComponentData, Z as ComponentDataMap, X as ComponentDataOptionalId, C as Config, _ as Content, ab as CustomField, aa as CustomFieldRender, j as Data, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, Y as MappedItem, M as Metadata, a1 as NumberField, a6 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ad as PuckContext, a4 as RadioField, c as ResolveDataTrigger, J as RootConfig, T as RootData, R as RootDataWithProps, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
1
|
+
export { a7 as Adaptor, A as AppState, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, f as ComponentConfig, a as ComponentData, Z as ComponentDataMap, X as ComponentDataOptionalId, C as Config, _ as Content, ab as CustomField, aa as CustomFieldRender, j as Data, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, Y as MappedItem, M as Metadata, a1 as NumberField, a6 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ad as PuckContext, a4 as RadioField, c as ResolveDataTrigger, J as RootConfig, T as RootData, R as RootDataWithProps, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-JdJYB16L.mjs';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
package/dist/no-external.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a7 as Adaptor, A as AppState, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, f as ComponentConfig, a as ComponentData, Z as ComponentDataMap, X as ComponentDataOptionalId, C as Config, _ as Content, ab as CustomField, aa as CustomFieldRender, j as Data, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, Y as MappedItem, M as Metadata, a1 as NumberField, a6 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ad as PuckContext, a4 as RadioField, c as ResolveDataTrigger, J as RootConfig, T as RootData, R as RootDataWithProps, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
1
|
+
export { a7 as Adaptor, A as AppState, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, f as ComponentConfig, a as ComponentData, Z as ComponentDataMap, X as ComponentDataOptionalId, C as Config, _ as Content, ab as CustomField, aa as CustomFieldRender, j as Data, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, Y as MappedItem, M as Metadata, a1 as NumberField, a6 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ad as PuckContext, a4 as RadioField, c as ResolveDataTrigger, J as RootConfig, T as RootData, R as RootDataWithProps, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-JdJYB16L.js';
|
|
2
2
|
export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react/jsx-runtime';
|
package/dist/no-external.js
CHANGED
|
@@ -266,7 +266,7 @@ var get_class_name_factory_default = getClassNameFactory;
|
|
|
266
266
|
|
|
267
267
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css#css-module
|
|
268
268
|
init_react_import();
|
|
269
|
-
var styles_module_default = {};
|
|
269
|
+
var styles_module_default = { "ActionBar": "_ActionBar_rvadt_1", "ActionBar-label": "_ActionBar-label_rvadt_18", "ActionBar-action": "_ActionBar-action_rvadt_30", "ActionBar-group": "_ActionBar-group_rvadt_38" };
|
|
270
270
|
|
|
271
271
|
// components/ActionBar/index.tsx
|
|
272
272
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -312,7 +312,7 @@ init_react_import();
|
|
|
312
312
|
|
|
313
313
|
// css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css#css-module
|
|
314
314
|
init_react_import();
|
|
315
|
-
var styles_module_default2 = {};
|
|
315
|
+
var styles_module_default2 = { "InputWrapper": "_InputWrapper_bsxfo_1", "Input-label": "_Input-label_bsxfo_5", "Input-labelIcon": "_Input-labelIcon_bsxfo_14", "Input-disabledIcon": "_Input-disabledIcon_bsxfo_21", "Input-input": "_Input-input_bsxfo_26", "Input": "_Input_bsxfo_1", "Input--readOnly": "_Input--readOnly_bsxfo_82", "Input-radioGroupItems": "_Input-radioGroupItems_bsxfo_93", "Input-radio": "_Input-radio_bsxfo_93", "Input-radioInner": "_Input-radioInner_bsxfo_110", "Input-radioInput": "_Input-radioInput_bsxfo_155" };
|
|
316
316
|
|
|
317
317
|
// components/AutoField/index.tsx
|
|
318
318
|
var import_react20 = require("react");
|
|
@@ -325,7 +325,7 @@ init_react_import();
|
|
|
325
325
|
|
|
326
326
|
// css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ArrayField/styles.module.css#css-module
|
|
327
327
|
init_react_import();
|
|
328
|
-
var styles_module_default3 = {};
|
|
328
|
+
var styles_module_default3 = { "ArrayField": "_ArrayField_14u8o_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_14u8o_13", "ArrayField-addButton": "_ArrayField-addButton_14u8o_18", "ArrayField--hasItems": "_ArrayField--hasItems_14u8o_33", "ArrayField-inner": "_ArrayField-inner_14u8o_59", "ArrayFieldItem": "_ArrayFieldItem_14u8o_67", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_14u8o_78", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_14u8o_82", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_14u8o_97", "ArrayField--addDisabled": "_ArrayField--addDisabled_14u8o_127", "ArrayFieldItem-body": "_ArrayFieldItem-body_14u8o_166", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_14u8o_175", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_14u8o_183", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_14u8o_189" };
|
|
329
329
|
|
|
330
330
|
// ../../node_modules/lucide-react/dist/esm/lucide-react.js
|
|
331
331
|
init_react_import();
|
|
@@ -663,7 +663,7 @@ var import_react9 = require("react");
|
|
|
663
663
|
|
|
664
664
|
// css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css#css-module
|
|
665
665
|
init_react_import();
|
|
666
|
-
var IconButton_module_default = {};
|
|
666
|
+
var IconButton_module_default = { "IconButton": "_IconButton_swpni_1", "IconButton--disabled": "_IconButton--disabled_swpni_20", "IconButton-title": "_IconButton-title_swpni_33" };
|
|
667
667
|
|
|
668
668
|
// components/Loader/index.tsx
|
|
669
669
|
init_react_import();
|
|
@@ -791,7 +791,7 @@ var walkField = ({
|
|
|
791
791
|
return map({
|
|
792
792
|
value: mappedContent,
|
|
793
793
|
parentId: id,
|
|
794
|
-
propName:
|
|
794
|
+
propName: propPath,
|
|
795
795
|
field: fields[propKey],
|
|
796
796
|
propPath
|
|
797
797
|
});
|
|
@@ -2606,7 +2606,7 @@ var useResetAutoZoom = (frameRef) => {
|
|
|
2606
2606
|
|
|
2607
2607
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Loader/styles.module.css#css-module
|
|
2608
2608
|
init_react_import();
|
|
2609
|
-
var styles_module_default4 = {};
|
|
2609
|
+
var styles_module_default4 = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
|
|
2610
2610
|
|
|
2611
2611
|
// components/Loader/index.tsx
|
|
2612
2612
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -2694,7 +2694,7 @@ init_react_import();
|
|
|
2694
2694
|
|
|
2695
2695
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css#css-module
|
|
2696
2696
|
init_react_import();
|
|
2697
|
-
var styles_module_default5 = {};
|
|
2697
|
+
var styles_module_default5 = { "DragIcon": "_DragIcon_17p8x_1", "DragIcon--disabled": "_DragIcon--disabled_17p8x_8" };
|
|
2698
2698
|
|
|
2699
2699
|
// components/DragIcon/index.tsx
|
|
2700
2700
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -3580,7 +3580,7 @@ var import_react17 = require("react");
|
|
|
3580
3580
|
|
|
3581
3581
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
|
|
3582
3582
|
init_react_import();
|
|
3583
|
-
var styles_module_default6 = {};
|
|
3583
|
+
var styles_module_default6 = { "ExternalInput-actions": "_ExternalInput-actions_91ls0_1", "ExternalInput-button": "_ExternalInput-button_91ls0_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_91ls0_24", "ExternalInput--readOnly": "_ExternalInput--readOnly_91ls0_31", "ExternalInput-detachButton": "_ExternalInput-detachButton_91ls0_35", "ExternalInput": "_ExternalInput_91ls0_1", "ExternalInputModal": "_ExternalInputModal_91ls0_79", "ExternalInputModal-grid": "_ExternalInputModal-grid_91ls0_89", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_91ls0_100", "ExternalInputModal-filters": "_ExternalInputModal-filters_91ls0_105", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_91ls0_124", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_91ls0_133", "ExternalInputModal-table": "_ExternalInputModal-table_91ls0_133", "ExternalInputModal-thead": "_ExternalInputModal-thead_91ls0_149", "ExternalInputModal-th": "_ExternalInputModal-th_91ls0_149", "ExternalInputModal-td": "_ExternalInputModal-td_91ls0_164", "ExternalInputModal-tr": "_ExternalInputModal-tr_91ls0_169", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_91ls0_176", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_91ls0_202", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_91ls0_206", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_91ls0_223", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_91ls0_227", "ExternalInputModal-search": "_ExternalInputModal-search_91ls0_227", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_91ls0_264", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_91ls0_289", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_91ls0_299", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_91ls0_313", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_91ls0_326", "ExternalInputModal-footerContainer": "_ExternalInputModal-footerContainer_91ls0_330", "ExternalInputModal-footer": "_ExternalInputModal-footer_91ls0_330", "ExternalInputModal-field": "_ExternalInputModal-field_91ls0_343" };
|
|
3584
3584
|
|
|
3585
3585
|
// components/Modal/index.tsx
|
|
3586
3586
|
init_react_import();
|
|
@@ -3588,7 +3588,7 @@ var import_react15 = require("react");
|
|
|
3588
3588
|
|
|
3589
3589
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
|
|
3590
3590
|
init_react_import();
|
|
3591
|
-
var styles_module_default7 = {};
|
|
3591
|
+
var styles_module_default7 = { "Modal": "_Modal_ikbaj_1", "Modal--isOpen": "_Modal--isOpen_ikbaj_15", "Modal-inner": "_Modal-inner_ikbaj_19" };
|
|
3592
3592
|
|
|
3593
3593
|
// components/Modal/index.tsx
|
|
3594
3594
|
var import_react_dom = require("react-dom");
|
|
@@ -3624,7 +3624,7 @@ init_react_import();
|
|
|
3624
3624
|
|
|
3625
3625
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
|
|
3626
3626
|
init_react_import();
|
|
3627
|
-
var styles_module_default8 = {};
|
|
3627
|
+
var styles_module_default8 = { "Heading": "_Heading_qxrry_1", "Heading--xxxxl": "_Heading--xxxxl_qxrry_12", "Heading--xxxl": "_Heading--xxxl_qxrry_18", "Heading--xxl": "_Heading--xxl_qxrry_22", "Heading--xl": "_Heading--xl_qxrry_26", "Heading--l": "_Heading--l_qxrry_30", "Heading--m": "_Heading--m_qxrry_34", "Heading--s": "_Heading--s_qxrry_38", "Heading--xs": "_Heading--xs_qxrry_42" };
|
|
3628
3628
|
|
|
3629
3629
|
// components/Heading/index.tsx
|
|
3630
3630
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
@@ -3651,7 +3651,7 @@ var import_react16 = require("react");
|
|
|
3651
3651
|
|
|
3652
3652
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css#css-module
|
|
3653
3653
|
init_react_import();
|
|
3654
|
-
var Button_module_default = {};
|
|
3654
|
+
var Button_module_default = { "Button": "_Button_10byl_1", "Button--medium": "_Button--medium_10byl_29", "Button--large": "_Button--large_10byl_37", "Button-icon": "_Button-icon_10byl_44", "Button--primary": "_Button--primary_10byl_48", "Button--secondary": "_Button--secondary_10byl_67", "Button--flush": "_Button--flush_10byl_84", "Button--disabled": "_Button--disabled_10byl_88", "Button--fullWidth": "_Button--fullWidth_10byl_95", "Button-spinner": "_Button-spinner_10byl_100" };
|
|
3655
3655
|
|
|
3656
3656
|
// lib/filter-data-attrs.ts
|
|
3657
3657
|
init_react_import();
|
|
@@ -4159,7 +4159,7 @@ init_react_import();
|
|
|
4159
4159
|
|
|
4160
4160
|
// css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
4161
4161
|
init_react_import();
|
|
4162
|
-
var styles_module_default9 = {};
|
|
4162
|
+
var styles_module_default9 = { "ObjectField": "_ObjectField_1ua3y_5", "ObjectField-fieldset": "_ObjectField-fieldset_1ua3y_13" };
|
|
4163
4163
|
|
|
4164
4164
|
// components/AutoField/fields/ObjectField/index.tsx
|
|
4165
4165
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
@@ -4461,7 +4461,7 @@ init_react_import();
|
|
|
4461
4461
|
|
|
4462
4462
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css#css-module
|
|
4463
4463
|
init_react_import();
|
|
4464
|
-
var styles_module_default10 = {};
|
|
4464
|
+
var styles_module_default10 = { "Drawer": "_Drawer_pl7z0_1", "Drawer-draggable": "_Drawer-draggable_pl7z0_8", "Drawer-draggableBg": "_Drawer-draggableBg_pl7z0_12", "DrawerItem-draggable": "_DrawerItem-draggable_pl7z0_22", "DrawerItem--disabled": "_DrawerItem--disabled_pl7z0_35", "DrawerItem": "_DrawerItem_pl7z0_22", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_pl7z0_45", "DrawerItem-name": "_DrawerItem-name_pl7z0_63" };
|
|
4465
4465
|
|
|
4466
4466
|
// components/Drawer/index.tsx
|
|
4467
4467
|
var import_react38 = require("react");
|
|
@@ -4482,7 +4482,7 @@ var import_react24 = require("react");
|
|
|
4482
4482
|
|
|
4483
4483
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
|
|
4484
4484
|
init_react_import();
|
|
4485
|
-
var styles_module_default11 = {};
|
|
4485
|
+
var styles_module_default11 = { "DraggableComponent": "_DraggableComponent_1vaqy_1", "DraggableComponent-overlayWrapper": "_DraggableComponent-overlayWrapper_1vaqy_12", "DraggableComponent-overlay": "_DraggableComponent-overlay_1vaqy_12", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_1vaqy_34", "DraggableComponent--hover": "_DraggableComponent--hover_1vaqy_50", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_1vaqy_57", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_1vaqy_71", "DraggableComponent-actions": "_DraggableComponent-actions_1vaqy_71" };
|
|
4486
4486
|
|
|
4487
4487
|
// components/DraggableComponent/index.tsx
|
|
4488
4488
|
var import_react_dom2 = require("react-dom");
|
|
@@ -5102,7 +5102,7 @@ var DraggableComponent = ({
|
|
|
5102
5102
|
|
|
5103
5103
|
// css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css#css-module
|
|
5104
5104
|
init_react_import();
|
|
5105
|
-
var styles_module_default12 = {};
|
|
5105
|
+
var styles_module_default12 = { "DropZone": "_DropZone_1i2sv_1", "DropZone--hasChildren": "_DropZone--hasChildren_1i2sv_11", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_1i2sv_24", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_1i2sv_25", "DropZone--isRootZone": "_DropZone--isRootZone_1i2sv_25", "DropZone--isDestination": "_DropZone--isDestination_1i2sv_35", "DropZone-item": "_DropZone-item_1i2sv_47", "DropZone-hitbox": "_DropZone-hitbox_1i2sv_51", "DropZone--isEnabled": "_DropZone--isEnabled_1i2sv_59", "DropZone--isAnimating": "_DropZone--isAnimating_1i2sv_68" };
|
|
5106
5106
|
|
|
5107
5107
|
// components/DropZone/index.tsx
|
|
5108
5108
|
var import_react35 = require("@dnd-kit/react");
|
|
@@ -5556,7 +5556,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
5556
5556
|
|
|
5557
5557
|
// css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css#css-module
|
|
5558
5558
|
init_react_import();
|
|
5559
|
-
var styles_module_default13 = {};
|
|
5559
|
+
var styles_module_default13 = { "InlineTextField": "_InlineTextField_1xph6_1" };
|
|
5560
5560
|
|
|
5561
5561
|
// lib/data/set-deep.ts
|
|
5562
5562
|
init_react_import();
|
|
@@ -5638,7 +5638,11 @@ var InlineTextFieldInternal = ({
|
|
|
5638
5638
|
const index = (_a2 = appStore2.state.indexes.zones[zoneCompound]) == null ? void 0 : _a2.contentIds.indexOf(
|
|
5639
5639
|
componentId
|
|
5640
5640
|
);
|
|
5641
|
-
|
|
5641
|
+
let value2 = e.target.innerText;
|
|
5642
|
+
if (disableLineBreaks) {
|
|
5643
|
+
value2 = value2.replaceAll(/\n/gm, "");
|
|
5644
|
+
}
|
|
5645
|
+
const newProps = setDeep(node.data.props, propPath, value2);
|
|
5642
5646
|
const resolvedData = yield appStore2.resolveComponentData(
|
|
5643
5647
|
__spreadProps(__spreadValues({}, node.data), { props: newProps }),
|
|
5644
5648
|
"replace"
|
|
@@ -5657,7 +5661,7 @@ var InlineTextFieldInternal = ({
|
|
|
5657
5661
|
cleanupPortal == null ? void 0 : cleanupPortal();
|
|
5658
5662
|
};
|
|
5659
5663
|
}
|
|
5660
|
-
}, [appStoreApi, ref.current, value]);
|
|
5664
|
+
}, [appStoreApi, ref.current, value, disableLineBreaks]);
|
|
5661
5665
|
const [isHovering, setIsHovering] = (0, import_react33.useState)(false);
|
|
5662
5666
|
const [isFocused, setIsFocused] = (0, import_react33.useState)(false);
|
|
5663
5667
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
@@ -7049,7 +7053,7 @@ init_react_import();
|
|
|
7049
7053
|
|
|
7050
7054
|
// css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
|
|
7051
7055
|
init_react_import();
|
|
7052
|
-
var styles_module_default14 = {};
|
|
7056
|
+
var styles_module_default14 = { "SidebarSection": "_SidebarSection_8boj8_1", "SidebarSection-title": "_SidebarSection-title_8boj8_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_8boj8_20", "SidebarSection-content": "_SidebarSection-content_8boj8_24", "SidebarSection--noPadding": "_SidebarSection--noPadding_8boj8_28", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_8boj8_41", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_8boj8_70", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_8boj8_41", "SidebarSection-heading": "_SidebarSection-heading_8boj8_82", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_8boj8_86" };
|
|
7053
7057
|
|
|
7054
7058
|
// lib/use-breadcrumbs.ts
|
|
7055
7059
|
init_react_import();
|
|
@@ -7139,14 +7143,14 @@ var SidebarSection = ({
|
|
|
7139
7143
|
|
|
7140
7144
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css#css-module
|
|
7141
7145
|
init_react_import();
|
|
7142
|
-
var styles_module_default15 = {};
|
|
7146
|
+
var styles_module_default15 = { "Puck": "_Puck_1yxlw_19", "Puck-portal": "_Puck-portal_1yxlw_31", "PuckLayout-inner": "_PuckLayout-inner_1yxlw_38", "PuckLayout--mounted": "_PuckLayout--mounted_1yxlw_59", "PuckLayout--leftSideBarVisible": "_PuckLayout--leftSideBarVisible_1yxlw_63", "PuckLayout--rightSideBarVisible": "_PuckLayout--rightSideBarVisible_1yxlw_69", "PuckLayout-mounted": "_PuckLayout-mounted_1yxlw_83", "PuckLayout": "_PuckLayout_1yxlw_38" };
|
|
7143
7147
|
|
|
7144
7148
|
// components/Puck/components/Fields/index.tsx
|
|
7145
7149
|
init_react_import();
|
|
7146
7150
|
|
|
7147
7151
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css#css-module
|
|
7148
7152
|
init_react_import();
|
|
7149
|
-
var styles_module_default16 = {};
|
|
7153
|
+
var styles_module_default16 = { "PuckFields": "_PuckFields_10bh7_1", "PuckFields--isLoading": "_PuckFields--isLoading_10bh7_6", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_10bh7_10", "PuckFields-loadingOverlayInner": "_PuckFields-loadingOverlayInner_10bh7_25", "PuckFields-field": "_PuckFields-field_10bh7_32", "PuckFields--wrapFields": "_PuckFields--wrapFields_10bh7_36" };
|
|
7150
7154
|
|
|
7151
7155
|
// components/Puck/components/Fields/index.tsx
|
|
7152
7156
|
var import_react41 = require("react");
|
|
@@ -7294,7 +7298,7 @@ init_react_import();
|
|
|
7294
7298
|
|
|
7295
7299
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css#css-module
|
|
7296
7300
|
init_react_import();
|
|
7297
|
-
var styles_module_default17 = {};
|
|
7301
|
+
var styles_module_default17 = { "ComponentList": "_ComponentList_1rrlt_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_1rrlt_5", "ComponentList-content": "_ComponentList-content_1rrlt_9", "ComponentList-title": "_ComponentList-title_1rrlt_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_1rrlt_53" };
|
|
7298
7302
|
|
|
7299
7303
|
// components/ComponentList/index.tsx
|
|
7300
7304
|
var import_react42 = require("react");
|
|
@@ -7744,7 +7748,7 @@ var AutoFrame_default = AutoFrame;
|
|
|
7744
7748
|
|
|
7745
7749
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css#css-module
|
|
7746
7750
|
init_react_import();
|
|
7747
|
-
var styles_module_default18 = {};
|
|
7751
|
+
var styles_module_default18 = { "PuckPreview": "_PuckPreview_z2rgu_1", "PuckPreview-frame": "_PuckPreview-frame_z2rgu_6" };
|
|
7748
7752
|
|
|
7749
7753
|
// components/Puck/components/Preview/index.tsx
|
|
7750
7754
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
@@ -7890,7 +7894,7 @@ init_react_import();
|
|
|
7890
7894
|
|
|
7891
7895
|
// css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css#css-module
|
|
7892
7896
|
init_react_import();
|
|
7893
|
-
var styles_module_default19 = {};
|
|
7897
|
+
var styles_module_default19 = { "LayerTree": "_LayerTree_7rx04_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_7rx04_11", "LayerTree-helper": "_LayerTree-helper_7rx04_17", "Layer": "_Layer_7rx04_1", "Layer-inner": "_Layer-inner_7rx04_29", "Layer--containsZone": "_Layer--containsZone_7rx04_35", "Layer-clickable": "_Layer-clickable_7rx04_39", "Layer--isSelected": "_Layer--isSelected_7rx04_61", "Layer-chevron": "_Layer-chevron_7rx04_77", "Layer--childIsSelected": "_Layer--childIsSelected_7rx04_78", "Layer-zones": "_Layer-zones_7rx04_82", "Layer-title": "_Layer-title_7rx04_96", "Layer-name": "_Layer-name_7rx04_105", "Layer-icon": "_Layer-icon_7rx04_111", "Layer-zoneIcon": "_Layer-zoneIcon_7rx04_116" };
|
|
7894
7898
|
|
|
7895
7899
|
// lib/scroll-into-view.ts
|
|
7896
7900
|
init_react_import();
|
|
@@ -8125,7 +8129,7 @@ var import_react49 = require("react");
|
|
|
8125
8129
|
|
|
8126
8130
|
// css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
|
|
8127
8131
|
init_react_import();
|
|
8128
|
-
var styles_module_default20 = {};
|
|
8132
|
+
var styles_module_default20 = { "ViewportControls": "_ViewportControls_gejzr_1", "ViewportControls-divider": "_ViewportControls-divider_gejzr_15", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_gejzr_21", "ViewportButton--isActive": "_ViewportButton--isActive_gejzr_38", "ViewportButton-inner": "_ViewportButton-inner_gejzr_38" };
|
|
8129
8133
|
|
|
8130
8134
|
// components/ViewportControls/index.tsx
|
|
8131
8135
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
@@ -8267,7 +8271,7 @@ var ViewportControls = ({
|
|
|
8267
8271
|
|
|
8268
8272
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
|
|
8269
8273
|
init_react_import();
|
|
8270
|
-
var styles_module_default21 = {};
|
|
8274
|
+
var styles_module_default21 = { "PuckCanvas": "_PuckCanvas_18jay_1", "PuckCanvas-controls": "_PuckCanvas-controls_18jay_16", "PuckCanvas-inner": "_PuckCanvas-inner_18jay_21", "PuckCanvas-root": "_PuckCanvas-root_18jay_30", "PuckCanvas--ready": "_PuckCanvas--ready_18jay_55", "PuckCanvas-loader": "_PuckCanvas-loader_18jay_60", "PuckCanvas--showLoader": "_PuckCanvas--showLoader_18jay_70" };
|
|
8271
8275
|
|
|
8272
8276
|
// components/Puck/components/Canvas/index.tsx
|
|
8273
8277
|
var import_shallow8 = require("zustand/react/shallow");
|
|
@@ -8672,7 +8676,7 @@ init_react_import();
|
|
|
8672
8676
|
|
|
8673
8677
|
// css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css#css-module
|
|
8674
8678
|
init_react_import();
|
|
8675
|
-
var styles_module_default22 = {};
|
|
8679
|
+
var styles_module_default22 = { "MenuBar": "_MenuBar_8pf8c_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_8pf8c_14", "MenuBar-inner": "_MenuBar-inner_8pf8c_29", "MenuBar-history": "_MenuBar-history_8pf8c_45" };
|
|
8676
8680
|
|
|
8677
8681
|
// components/MenuBar/index.tsx
|
|
8678
8682
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
@@ -8731,7 +8735,7 @@ function MenuBar({
|
|
|
8731
8735
|
|
|
8732
8736
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Header/styles.module.css#css-module
|
|
8733
8737
|
init_react_import();
|
|
8734
|
-
var styles_module_default23 = {};
|
|
8738
|
+
var styles_module_default23 = { "PuckHeader": "_PuckHeader_15xnq_1", "PuckHeader-inner": "_PuckHeader-inner_15xnq_10", "PuckHeader-toggle": "_PuckHeader-toggle_15xnq_20", "PuckHeader--rightSideBarVisible": "_PuckHeader--rightSideBarVisible_15xnq_27", "PuckHeader-rightSideBarToggle": "_PuckHeader-rightSideBarToggle_15xnq_27", "PuckHeader--leftSideBarVisible": "_PuckHeader--leftSideBarVisible_15xnq_28", "PuckHeader-leftSideBarToggle": "_PuckHeader-leftSideBarToggle_15xnq_28", "PuckHeader-title": "_PuckHeader-title_15xnq_32", "PuckHeader-path": "_PuckHeader-path_15xnq_36", "PuckHeader-tools": "_PuckHeader-tools_15xnq_43", "PuckHeader-menuButton": "_PuckHeader-menuButton_15xnq_49", "PuckHeader--menuOpen": "_PuckHeader--menuOpen_15xnq_54" };
|
|
8735
8739
|
|
|
8736
8740
|
// components/Puck/components/Header/index.tsx
|
|
8737
8741
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
@@ -8906,7 +8910,7 @@ var import_react57 = require("react");
|
|
|
8906
8910
|
|
|
8907
8911
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css#css-module
|
|
8908
8912
|
init_react_import();
|
|
8909
|
-
var styles_module_default24 = {};
|
|
8913
|
+
var styles_module_default24 = { "ResizeHandle": "_ResizeHandle_144bf_2", "ResizeHandle--left": "_ResizeHandle--left_144bf_16", "ResizeHandle--right": "_ResizeHandle--right_144bf_20" };
|
|
8910
8914
|
|
|
8911
8915
|
// components/Puck/components/ResizeHandle/index.tsx
|
|
8912
8916
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
@@ -8980,7 +8984,7 @@ var ResizeHandle = ({
|
|
|
8980
8984
|
|
|
8981
8985
|
// css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Sidebar/styles.module.css#css-module
|
|
8982
8986
|
init_react_import();
|
|
8983
|
-
var styles_module_default25 = {};
|
|
8987
|
+
var styles_module_default25 = { "Sidebar": "_Sidebar_1xksb_1", "Sidebar--left": "_Sidebar--left_1xksb_8", "Sidebar--right": "_Sidebar--right_1xksb_14", "Sidebar-resizeHandle": "_Sidebar-resizeHandle_1xksb_20" };
|
|
8984
8988
|
|
|
8985
8989
|
// components/Puck/components/Sidebar/index.tsx
|
|
8986
8990
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
package/dist/no-external.mjs
CHANGED
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
setDeep,
|
|
19
19
|
useGetPuck,
|
|
20
20
|
usePuck
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-V7Y7BFEC.mjs";
|
|
22
22
|
import {
|
|
23
23
|
init_react_import,
|
|
24
24
|
migrate,
|
|
25
25
|
resolveAllData,
|
|
26
26
|
transformProps,
|
|
27
27
|
walkTree
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-62KOMFGG.mjs";
|
|
29
29
|
|
|
30
30
|
// bundle/no-external.ts
|
|
31
31
|
init_react_import();
|
package/dist/rsc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-JdJYB16L.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-JdJYB16L.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './walk-tree-JdJYB16L.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-JdJYB16L.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
6
|
declare function Render<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>({ config, data, metadata, }: {
|
package/dist/rsc.js
CHANGED
package/dist/rsc.mjs
CHANGED
|
@@ -72,7 +72,7 @@ type Adaptor<AdaptorParams = {}, TableShape extends Record<string, any> = {}, Pr
|
|
|
72
72
|
fetchList: (adaptorParams?: AdaptorParams) => Promise<TableShape[] | null>;
|
|
73
73
|
mapProp?: (value: TableShape) => PropShape;
|
|
74
74
|
};
|
|
75
|
-
type NotUndefined<T> = T extends undefined ?
|
|
75
|
+
type NotUndefined<T> = T extends undefined ? never : T;
|
|
76
76
|
type ExternalFieldWithAdaptor<Props extends any = {
|
|
77
77
|
[key: string]: any;
|
|
78
78
|
}> = BaseField & {
|
|
@@ -122,7 +122,7 @@ type SlotField = BaseField & {
|
|
|
122
122
|
};
|
|
123
123
|
type Field<ValueType = any, UserField extends {} = {}> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
|
|
124
124
|
[key: string]: any;
|
|
125
|
-
}[] ? ValueType :
|
|
125
|
+
}[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
|
|
126
126
|
type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
|
|
127
127
|
[PropName in keyof Omit<ComponentProps, "editMode">]: UserField extends {
|
|
128
128
|
type: PropertyKey;
|
|
@@ -255,7 +255,7 @@ type ConfigInternal<Props extends DefaultComponents = DefaultComponents, RootPro
|
|
|
255
255
|
root?: RootConfigInternal<RootProps, UserField>;
|
|
256
256
|
};
|
|
257
257
|
type DefaultComponents = Record<string, any>;
|
|
258
|
-
type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps =
|
|
258
|
+
type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps = any, CategoryName extends string = string> = PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, never> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number]> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, infer ParamFields> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], ParamFields[keyof ParamFields] & BaseField> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, any> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], {}> : ConfigInternal<PropsOrParams, RootProps, CategoryName>;
|
|
259
259
|
type ExtractConfigParams<UserConfig extends ConfigInternal> = UserConfig extends ConfigInternal<infer PropsOrParams, infer RootProps, infer CategoryName, infer UserField> ? {
|
|
260
260
|
props: PropsOrParams;
|
|
261
261
|
rootProps: RootProps & DefaultRootFieldProps;
|
|
@@ -372,7 +372,7 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
|
|
|
372
372
|
type WithDeepSlots<T, SlotType = T> = T extends Slot ? SlotType : T extends (infer U)[] ? Array<WithDeepSlots<U, SlotType>> : T extends (infer U)[] ? WithDeepSlots<U, SlotType>[] : T extends BuiltinTypes ? T : T extends object ? {
|
|
373
373
|
[K in keyof T]: WithDeepSlots<T[K], SlotType>;
|
|
374
374
|
} : T;
|
|
375
|
-
type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps =
|
|
375
|
+
type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = any, CategoryNames extends string[] = string[], UserFields extends FieldsExtension = FieldsExtension> = {
|
|
376
376
|
components?: Components;
|
|
377
377
|
root?: RootProps;
|
|
378
378
|
categories?: CategoryNames;
|
|
@@ -72,7 +72,7 @@ type Adaptor<AdaptorParams = {}, TableShape extends Record<string, any> = {}, Pr
|
|
|
72
72
|
fetchList: (adaptorParams?: AdaptorParams) => Promise<TableShape[] | null>;
|
|
73
73
|
mapProp?: (value: TableShape) => PropShape;
|
|
74
74
|
};
|
|
75
|
-
type NotUndefined<T> = T extends undefined ?
|
|
75
|
+
type NotUndefined<T> = T extends undefined ? never : T;
|
|
76
76
|
type ExternalFieldWithAdaptor<Props extends any = {
|
|
77
77
|
[key: string]: any;
|
|
78
78
|
}> = BaseField & {
|
|
@@ -122,7 +122,7 @@ type SlotField = BaseField & {
|
|
|
122
122
|
};
|
|
123
123
|
type Field<ValueType = any, UserField extends {} = {}> = TextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
|
|
124
124
|
[key: string]: any;
|
|
125
|
-
}[] ? ValueType :
|
|
125
|
+
}[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
|
|
126
126
|
type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
|
|
127
127
|
[PropName in keyof Omit<ComponentProps, "editMode">]: UserField extends {
|
|
128
128
|
type: PropertyKey;
|
|
@@ -255,7 +255,7 @@ type ConfigInternal<Props extends DefaultComponents = DefaultComponents, RootPro
|
|
|
255
255
|
root?: RootConfigInternal<RootProps, UserField>;
|
|
256
256
|
};
|
|
257
257
|
type DefaultComponents = Record<string, any>;
|
|
258
|
-
type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps =
|
|
258
|
+
type Config<PropsOrParams extends LeftOrExactRight<PropsOrParams, DefaultComponents, ConfigParams> = DefaultComponents | ConfigParams, RootProps extends DefaultComponentProps = any, CategoryName extends string = string> = PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, never> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number]> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, infer ParamFields> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], ParamFields[keyof ParamFields] & BaseField> : PropsOrParams extends ConfigParams<infer ParamComponents, infer ParamRoot, infer ParamCategoryName, any> ? ConfigInternal<ParamComponents, ParamRoot, ParamCategoryName[number], {}> : ConfigInternal<PropsOrParams, RootProps, CategoryName>;
|
|
259
259
|
type ExtractConfigParams<UserConfig extends ConfigInternal> = UserConfig extends ConfigInternal<infer PropsOrParams, infer RootProps, infer CategoryName, infer UserField> ? {
|
|
260
260
|
props: PropsOrParams;
|
|
261
261
|
rootProps: RootProps & DefaultRootFieldProps;
|
|
@@ -372,7 +372,7 @@ type BuiltinTypes = Date | RegExp | Error | Function | symbol | null | undefined
|
|
|
372
372
|
type WithDeepSlots<T, SlotType = T> = T extends Slot ? SlotType : T extends (infer U)[] ? Array<WithDeepSlots<U, SlotType>> : T extends (infer U)[] ? WithDeepSlots<U, SlotType>[] : T extends BuiltinTypes ? T : T extends object ? {
|
|
373
373
|
[K in keyof T]: WithDeepSlots<T[K], SlotType>;
|
|
374
374
|
} : T;
|
|
375
|
-
type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps =
|
|
375
|
+
type ConfigParams<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = any, CategoryNames extends string[] = string[], UserFields extends FieldsExtension = FieldsExtension> = {
|
|
376
376
|
components?: Components;
|
|
377
377
|
root?: RootProps;
|
|
378
378
|
categories?: CategoryNames;
|
package/package.json
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck",
|
|
3
|
-
"version": "0.20.1
|
|
3
|
+
"version": "0.20.1",
|
|
4
|
+
"description": "The open-source visual editor for React",
|
|
4
5
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
6
|
"repository": "measuredco/puck",
|
|
6
7
|
"bugs": "https://github.com/measuredco/puck/issues",
|
|
7
8
|
"homepage": "https://puckeditor.com",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"puck",
|
|
11
|
+
"visual",
|
|
12
|
+
"editor",
|
|
13
|
+
"react",
|
|
14
|
+
"drag and drop",
|
|
15
|
+
"dnd",
|
|
16
|
+
"page",
|
|
17
|
+
"website",
|
|
18
|
+
"builder",
|
|
19
|
+
"headless",
|
|
20
|
+
"cms",
|
|
21
|
+
"low-code",
|
|
22
|
+
"no-code",
|
|
23
|
+
"javascript",
|
|
24
|
+
"typescript",
|
|
25
|
+
"WYSIWYG"
|
|
26
|
+
],
|
|
8
27
|
"private": false,
|
|
9
28
|
"main": "./dist/index.js",
|
|
10
29
|
"types": "./dist/index.d.ts",
|