@bettercms-ai/kit 0.1.1 → 1.0.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/_virtual/_rolldown/runtime.js +13 -0
- package/adapters/icons.d.ts +15 -0
- package/adapters/icons.js +27 -0
- package/adapters/icons.js.map +1 -0
- package/adapters/lossy.d.ts +267 -0
- package/adapters/lossy.js +233 -0
- package/adapters/lossy.js.map +1 -0
- package/adapters/prod-types.d.ts +468 -0
- package/adapters/prod-types.js +646 -0
- package/adapters/prod-types.js.map +1 -0
- package/adapters/schema.d.ts +115 -0
- package/adapters/schema.js +2203 -0
- package/adapters/schema.js.map +1 -0
- package/adapters/values.d.ts +200 -0
- package/adapters/values.js +553 -0
- package/adapters/values.js.map +1 -0
- package/brand/logo.d.ts +17 -0
- package/brand/logo.js +9 -0
- package/brand/logo.js.map +1 -0
- package/context.d.ts +269 -0
- package/context.js +214 -0
- package/context.js.map +1 -0
- package/controls/button.d.ts +58 -0
- package/controls/button.js +507 -0
- package/controls/button.js.map +1 -0
- package/controls/c1.d.ts +11 -0
- package/controls/c1.js +24 -0
- package/controls/c1.js.map +1 -0
- package/controls/c2.d.ts +10 -0
- package/controls/c2.js +19 -0
- package/controls/c2.js.map +1 -0
- package/controls/choice.d.ts +39 -0
- package/controls/choice.js +410 -0
- package/controls/choice.js.map +1 -0
- package/controls/code-register.d.ts +1 -0
- package/controls/code-register.js +8 -0
- package/controls/code-register.js.map +1 -0
- package/controls/code.d.ts +42 -0
- package/controls/code.js +396 -0
- package/controls/code.js.map +1 -0
- package/controls/color.d.ts +5 -0
- package/controls/color.js +130 -0
- package/controls/color.js.map +1 -0
- package/controls/component-services.d.ts +114 -0
- package/controls/date-register.d.ts +1 -0
- package/controls/date-register.js +9 -0
- package/controls/date-register.js.map +1 -0
- package/controls/date-zone.d.ts +104 -0
- package/controls/date-zone.js +272 -0
- package/controls/date-zone.js.map +1 -0
- package/controls/date.d.ts +7 -0
- package/controls/date.js +458 -0
- package/controls/date.js.map +1 -0
- package/controls/form-picker-register.d.ts +1 -0
- package/controls/form-picker-register.js +19 -0
- package/controls/form-picker-register.js.map +1 -0
- package/controls/form-picker.d.ts +43 -0
- package/controls/form-picker.js +83 -0
- package/controls/form-picker.js.map +1 -0
- package/controls/icon-register.d.ts +1 -0
- package/controls/icon-register.js +8 -0
- package/controls/icon-register.js.map +1 -0
- package/controls/icon.d.ts +38 -0
- package/controls/icon.js +355 -0
- package/controls/icon.js.map +1 -0
- package/controls/index.d.ts +5 -0
- package/controls/index.js +37 -0
- package/controls/index.js.map +1 -0
- package/controls/json-register.d.ts +1 -0
- package/controls/json-register.js +8 -0
- package/controls/json-register.js.map +1 -0
- package/controls/json.d.ts +2 -0
- package/controls/json.js +72 -0
- package/controls/json.js.map +1 -0
- package/controls/link.d.ts +260 -0
- package/controls/link.js +1186 -0
- package/controls/link.js.map +1 -0
- package/controls/location-register.d.ts +1 -0
- package/controls/location-register.js +8 -0
- package/controls/location-register.js.map +1 -0
- package/controls/location.d.ts +16 -0
- package/controls/location.js +197 -0
- package/controls/location.js.map +1 -0
- package/controls/media-register.d.ts +1 -0
- package/controls/media-register.js +12 -0
- package/controls/media-register.js.map +1 -0
- package/controls/media-services.d.ts +40 -0
- package/controls/media.d.ts +73 -0
- package/controls/media.js +1076 -0
- package/controls/media.js.map +1 -0
- package/controls/number.d.ts +22 -0
- package/controls/number.js +195 -0
- package/controls/number.js.map +1 -0
- package/controls/reference-register.d.ts +1 -0
- package/controls/reference-register.js +10 -0
- package/controls/reference-register.js.map +1 -0
- package/controls/reference-services.d.ts +54 -0
- package/controls/reference.d.ts +23 -0
- package/controls/reference.js +761 -0
- package/controls/reference.js.map +1 -0
- package/controls/rich-text/blocks.d.ts +28 -0
- package/controls/rich-text/blocks.js +1532 -0
- package/controls/rich-text/blocks.js.map +1 -0
- package/controls/rich-text/catalog.d.ts +98 -0
- package/controls/rich-text/catalog.js +613 -0
- package/controls/rich-text/catalog.js.map +1 -0
- package/controls/rich-text/codec.d.ts +56 -0
- package/controls/rich-text/codec.js +32 -0
- package/controls/rich-text/codec.js.map +1 -0
- package/controls/rich-text/component-card.d.ts +14 -0
- package/controls/rich-text/component-card.js +706 -0
- package/controls/rich-text/component-card.js.map +1 -0
- package/controls/rich-text/control.d.ts +21 -0
- package/controls/rich-text/control.js +254 -0
- package/controls/rich-text/control.js.map +1 -0
- package/controls/rich-text/dom.d.ts +190 -0
- package/controls/rich-text/dom.js +690 -0
- package/controls/rich-text/dom.js.map +1 -0
- package/controls/rich-text/editor.d.ts +50 -0
- package/controls/rich-text/editor.js +1530 -0
- package/controls/rich-text/editor.js.map +1 -0
- package/controls/rich-text/floating.d.ts +23 -0
- package/controls/rich-text/floating.js +137 -0
- package/controls/rich-text/floating.js.map +1 -0
- package/controls/rich-text/index.d.ts +1 -0
- package/controls/rich-text/index.js +12 -0
- package/controls/rich-text/index.js.map +1 -0
- package/controls/rich-text/link-form.d.ts +13 -0
- package/controls/rich-text/link-form.js +111 -0
- package/controls/rich-text/link-form.js.map +1 -0
- package/controls/rich-text/markdown.d.ts +6 -0
- package/controls/rich-text/markdown.js +179 -0
- package/controls/rich-text/markdown.js.map +1 -0
- package/controls/rich-text/ops.d.ts +35 -0
- package/controls/rich-text/ops.js +314 -0
- package/controls/rich-text/ops.js.map +1 -0
- package/controls/rich-text/toolbar.d.ts +85 -0
- package/controls/rich-text/toolbar.js +338 -0
- package/controls/rich-text/toolbar.js.map +1 -0
- package/controls/scale.d.ts +56 -0
- package/controls/scale.js +563 -0
- package/controls/scale.js.map +1 -0
- package/controls/slot-register.d.ts +1 -0
- package/controls/slot-register.js +16 -0
- package/controls/slot-register.js.map +1 -0
- package/controls/slot-services.d.ts +97 -0
- package/controls/slot-services.js +38 -0
- package/controls/slot-services.js.map +1 -0
- package/controls/slot.d.ts +33 -0
- package/controls/slot.js +348 -0
- package/controls/slot.js.map +1 -0
- package/controls/table/index.d.ts +1 -0
- package/controls/table/index.js +12 -0
- package/controls/table/index.js.map +1 -0
- package/controls/table/prod.d.ts +21 -0
- package/controls/table/prod.js +79 -0
- package/controls/table/prod.js.map +1 -0
- package/controls/table/refs.d.ts +50 -0
- package/controls/table/refs.js +68 -0
- package/controls/table/refs.js.map +1 -0
- package/controls/table/stored.d.ts +15 -0
- package/controls/table/stored.js +44 -0
- package/controls/table/stored.js.map +1 -0
- package/controls/table/table-editor.d.ts +103 -0
- package/controls/table/table-editor.js +2722 -0
- package/controls/table/table-editor.js.map +1 -0
- package/controls/table/table-link.d.ts +24 -0
- package/controls/table/table-link.js +180 -0
- package/controls/table/table-link.js.map +1 -0
- package/controls/table/table.d.ts +9 -0
- package/controls/table/table.js +103 -0
- package/controls/table/table.js.map +1 -0
- package/controls/text.d.ts +17 -0
- package/controls/text.js +287 -0
- package/controls/text.js.map +1 -0
- package/engine/array.d.ts +101 -0
- package/engine/array.js +893 -0
- package/engine/array.js.map +1 -0
- package/engine/bits.d.ts +24 -0
- package/engine/bits.js +60 -0
- package/engine/bits.js.map +1 -0
- package/engine/breadcrumb.d.ts +45 -0
- package/engine/breadcrumb.js +87 -0
- package/engine/breadcrumb.js.map +1 -0
- package/engine/expand.d.ts +68 -0
- package/engine/expand.js +170 -0
- package/engine/expand.js.map +1 -0
- package/engine/field-list.d.ts +20 -0
- package/engine/field-list.js +19 -0
- package/engine/field-list.js.map +1 -0
- package/engine/field-shell.d.ts +49 -0
- package/engine/field-shell.js +860 -0
- package/engine/field-shell.js.map +1 -0
- package/engine/frame.d.ts +120 -0
- package/engine/frame.js +599 -0
- package/engine/frame.js.map +1 -0
- package/engine/group-summary.d.ts +4 -0
- package/engine/group-summary.js +66 -0
- package/engine/group-summary.js.map +1 -0
- package/engine/grouping.d.ts +224 -0
- package/engine/grouping.js +824 -0
- package/engine/grouping.js.map +1 -0
- package/engine/item-list.d.ts +89 -0
- package/engine/item-list.js +703 -0
- package/engine/item-list.js.map +1 -0
- package/engine/kit-field.d.ts +72 -0
- package/engine/kit-field.js +523 -0
- package/engine/kit-field.js.map +1 -0
- package/engine/schema-form.d.ts +91 -0
- package/engine/schema-form.js +320 -0
- package/engine/schema-form.js.map +1 -0
- package/engine/slot.d.ts +13 -0
- package/engine/slot.js +226 -0
- package/engine/slot.js.map +1 -0
- package/index.d.ts +46 -0
- package/index.js +55 -0
- package/index.js.map +1 -0
- package/kit.css +56 -0
- package/lib/cn.d.ts +4 -0
- package/lib/cn.js +53 -0
- package/lib/cn.js.map +1 -0
- package/lib/columns.d.ts +14 -0
- package/lib/columns.js +27 -0
- package/lib/columns.js.map +1 -0
- package/lib/frames.d.ts +36 -0
- package/lib/frames.js +214 -0
- package/lib/frames.js.map +1 -0
- package/lib/icons.d.ts +16 -0
- package/lib/icons.js +172 -0
- package/lib/icons.js.map +1 -0
- package/lib/path.d.ts +29 -0
- package/lib/path.js +64 -0
- package/lib/path.js.map +1 -0
- package/lib/schema.d.ts +49 -0
- package/lib/schema.js +287 -0
- package/lib/schema.js.map +1 -0
- package/lib/utils.d.ts +7 -0
- package/lib/utils.js +37 -0
- package/lib/utils.js.map +1 -0
- package/lib/validate.d.ts +20 -0
- package/lib/validate.js +150 -0
- package/lib/validate.js.map +1 -0
- package/package.json +31 -59
- package/schema/adapters.d.ts +28 -0
- package/schema/adapters.js +493 -0
- package/schema/adapters.js.map +1 -0
- package/schema/help.d.ts +25 -0
- package/schema/help.js +54 -0
- package/schema/help.js.map +1 -0
- package/schema/scale.d.ts +69 -0
- package/schema/scale.js +250 -0
- package/schema/scale.js.map +1 -0
- package/schema/sources.d.ts +103 -0
- package/schema/sources.js +65 -0
- package/schema/sources.js.map +1 -0
- package/schema/table.d.ts +319 -0
- package/schema/table.js +1198 -0
- package/schema/table.js.map +1 -0
- package/schema/types.d.ts +269 -0
- package/schema/types.js +14 -0
- package/schema/types.js.map +1 -0
- package/types.d.ts +17 -0
- package/ui/action-tray.d.ts +54 -0
- package/ui/action-tray.js +153 -0
- package/ui/action-tray.js.map +1 -0
- package/ui/button.d.ts +57 -0
- package/ui/button.js +202 -0
- package/ui/button.js.map +1 -0
- package/ui/choice-switch.d.ts +36 -0
- package/ui/choice-switch.js +57 -0
- package/ui/choice-switch.js.map +1 -0
- package/ui/controls.d.ts +83 -0
- package/ui/controls.js +319 -0
- package/ui/controls.js.map +1 -0
- package/ui/display.d.ts +156 -0
- package/ui/display.js +444 -0
- package/ui/display.js.map +1 -0
- package/ui/expanded-editor-modal.d.ts +26 -0
- package/ui/expanded-editor-modal.js +140 -0
- package/ui/expanded-editor-modal.js.map +1 -0
- package/ui/field-context.d.ts +12 -0
- package/ui/field-context.js +23 -0
- package/ui/field-context.js.map +1 -0
- package/ui/floating-panel.d.ts +152 -0
- package/ui/floating-panel.js +912 -0
- package/ui/floating-panel.js.map +1 -0
- package/ui/index.d.ts +12 -0
- package/ui/index.js +13 -0
- package/ui/input.d.ts +78 -0
- package/ui/input.js +250 -0
- package/ui/input.js.map +1 -0
- package/ui/mode-bar.d.ts +31 -0
- package/ui/mode-bar.js +65 -0
- package/ui/mode-bar.js.map +1 -0
- package/ui/overlay.d.ts +123 -0
- package/ui/overlay.js +378 -0
- package/ui/overlay.js.map +1 -0
- package/ui/path-crumbs.d.ts +90 -0
- package/ui/path-crumbs.js +532 -0
- package/ui/path-crumbs.js.map +1 -0
- package/ui/presence.d.ts +16 -0
- package/ui/presence.js +65 -0
- package/ui/presence.js.map +1 -0
- package/ui/select.d.ts +66 -0
- package/ui/select.js +405 -0
- package/ui/select.js.map +1 -0
- package/ui/shortcut-hint.d.ts +14 -0
- package/ui/shortcut-hint.js +35 -0
- package/ui/shortcut-hint.js.map +1 -0
- package/ui/surfaces.d.ts +23 -0
- package/ui/surfaces.js +26 -0
- package/ui/surfaces.js.map +1 -0
- package/ui/tooltip-root.d.ts +12 -0
- package/ui/tooltip-root.js +76 -0
- package/ui/tooltip-root.js.map +1 -0
- package/ui/variants.d.ts +15 -0
- package/ui/variants.js +14 -0
- package/ui/variants.js.map +1 -0
- package/LICENSE +0 -21
- package/README.md +0 -27
- package/dist/_chunks-cjs/_visual-editing.js +0 -5898
- package/dist/_chunks-cjs/refractor.js +0 -22
- package/dist/_chunks-es/_visual-editing.mjs +0 -5904
- package/dist/_chunks-es/refractor.mjs +0 -25
- package/dist/_color.d.mts +0 -119
- package/dist/_color.d.ts +0 -119
- package/dist/_color.js +0 -1412
- package/dist/_color.mjs +0 -1411
- package/dist/_visual-editing.d.mts +0 -1126
- package/dist/_visual-editing.d.ts +0 -1126
- package/dist/_visual-editing.js +0 -30
- package/dist/_visual-editing.mjs +0 -30
- package/dist/index.d.mts +0 -3140
- package/dist/index.d.ts +0 -3140
- package/dist/index.js +0 -2036
- package/dist/index.mjs +0 -2044
- package/dist/theme.d.mts +0 -1506
- package/dist/theme.d.ts +0 -1506
- package/dist/theme.js +0 -4126
- package/dist/theme.mjs +0 -4126
- package/exports/_visual-editing.ts +0 -31
- package/exports/index.ts +0 -1
- package/exports/theme.ts +0 -1
- package/src/color/index.d.mts +0 -119
- package/src/color/index.mjs +0 -1411
- package/src/core/__workshop__/constants.ts +0 -293
- package/src/core/_compat.ts +0 -264
- package/src/core/components/autocomplete/__mocks__/apiStore.ts +0 -49
- package/src/core/components/autocomplete/__mocks__/countries.ts +0 -245
- package/src/core/components/autocomplete/__workshop__/async.tsx +0 -156
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -137
- package/src/core/components/autocomplete/__workshop__/custom.tsx +0 -89
- package/src/core/components/autocomplete/__workshop__/example.tsx +0 -79
- package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -36
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +0 -294
- package/src/core/components/autocomplete/__workshop__/index.ts +0 -39
- package/src/core/components/autocomplete/__workshop__/types.ts +0 -4
- package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -39
- package/src/core/components/autocomplete/autocomplete.tsx +0 -767
- package/src/core/components/autocomplete/autocompleteOption.tsx +0 -45
- package/src/core/components/autocomplete/autocompleteReducer.ts +0 -47
- package/src/core/components/autocomplete/constants.ts +0 -28
- package/src/core/components/autocomplete/index.ts +0 -2
- package/src/core/components/autocomplete/types.ts +0 -108
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +0 -62
- package/src/core/components/breadcrumbs/__workshop__/index.ts +0 -14
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -18
- package/src/core/components/breadcrumbs/breadcrumbs.test.tsx +0 -51
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +0 -133
- package/src/core/components/breadcrumbs/index.ts +0 -1
- package/src/core/components/dialog/__workshop__/activate.tsx +0 -134
- package/src/core/components/dialog/__workshop__/autoFocus.tsx +0 -29
- package/src/core/components/dialog/__workshop__/index.ts +0 -19
- package/src/core/components/dialog/__workshop__/layering.tsx +0 -41
- package/src/core/components/dialog/__workshop__/nested.tsx +0 -72
- package/src/core/components/dialog/__workshop__/onScroll.tsx +0 -39
- package/src/core/components/dialog/__workshop__/panes.tsx +0 -82
- package/src/core/components/dialog/__workshop__/position.tsx +0 -30
- package/src/core/components/dialog/__workshop__/props.tsx +0 -75
- package/src/core/components/dialog/__workshop__/provider.tsx +0 -11
- package/src/core/components/dialog/__workshop__/wrapped.tsx +0 -76
- package/src/core/components/dialog/dialog.tsx +0 -430
- package/src/core/components/dialog/dialogContext.ts +0 -20
- package/src/core/components/dialog/dialogProvider.tsx +0 -35
- package/src/core/components/dialog/index.ts +0 -4
- package/src/core/components/dialog/styles.ts +0 -77
- package/src/core/components/dialog/useDialog.ts +0 -11
- package/src/core/components/hotkeys/__workshop__/index.ts +0 -14
- package/src/core/components/hotkeys/__workshop__/plain.tsx +0 -9
- package/src/core/components/hotkeys/hotkeys.test.tsx +0 -42
- package/src/core/components/hotkeys/hotkeys.tsx +0 -66
- package/src/core/components/hotkeys/index.ts +0 -1
- package/src/core/components/index.ts +0 -9
- package/src/core/components/menu/__workshop__/asComponent.tsx +0 -45
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +0 -51
- package/src/core/components/menu/__workshop__/closableMenuButton.tsx +0 -46
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +0 -134
- package/src/core/components/menu/__workshop__/customMenuItem.tsx +0 -45
- package/src/core/components/menu/__workshop__/customSelectedState.tsx +0 -39
- package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +0 -40
- package/src/core/components/menu/__workshop__/groups.tsx +0 -156
- package/src/core/components/menu/__workshop__/index.ts +0 -89
- package/src/core/components/menu/__workshop__/menuButton.tsx +0 -80
- package/src/core/components/menu/__workshop__/menuGroupRight.tsx +0 -58
- package/src/core/components/menu/__workshop__/nestedMenu.tsx +0 -22
- package/src/core/components/menu/__workshop__/onCloseMenuButton.tsx +0 -41
- package/src/core/components/menu/__workshop__/selectedItem.tsx +0 -69
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +0 -47
- package/src/core/components/menu/__workshop__/tones.tsx +0 -25
- package/src/core/components/menu/__workshop__/withoutArrow.tsx +0 -32
- package/src/core/components/menu/helpers.ts +0 -82
- package/src/core/components/menu/index.ts +0 -5
- package/src/core/components/menu/menu.spacing.test.tsx +0 -63
- package/src/core/components/menu/menu.test.tsx +0 -125
- package/src/core/components/menu/menu.tsx +0 -178
- package/src/core/components/menu/menuButton.tsx +0 -268
- package/src/core/components/menu/menuContext.ts +0 -18
- package/src/core/components/menu/menuDivider.ts +0 -23
- package/src/core/components/menu/menuGroup.spacing.test.tsx +0 -63
- package/src/core/components/menu/menuGroup.tsx +0 -233
- package/src/core/components/menu/menuItem.spacing.test.tsx +0 -59
- package/src/core/components/menu/menuItem.tsx +0 -197
- package/src/core/components/menu/useMenu.ts +0 -21
- package/src/core/components/menu/useMenuController.ts +0 -231
- package/src/core/components/skeleton/__workshop__/delay.tsx +0 -70
- package/src/core/components/skeleton/__workshop__/index.ts +0 -11
- package/src/core/components/skeleton/__workshop__/skeleton.tsx +0 -64
- package/src/core/components/skeleton/index.ts +0 -2
- package/src/core/components/skeleton/skeleton.tsx +0 -57
- package/src/core/components/skeleton/styles.ts +0 -50
- package/src/core/components/skeleton/textSkeleton.tsx +0 -122
- package/src/core/components/tab/__workshop__/example.tsx +0 -79
- package/src/core/components/tab/__workshop__/index.ts +0 -14
- package/src/core/components/tab/index.ts +0 -3
- package/src/core/components/tab/tab.tsx +0 -101
- package/src/core/components/tab/tabList.test.tsx +0 -48
- package/src/core/components/tab/tabList.tsx +0 -70
- package/src/core/components/tab/tabPanel.tsx +0 -39
- package/src/core/components/toast/__workshop__/hook.tsx +0 -71
- package/src/core/components/toast/__workshop__/index.ts +0 -19
- package/src/core/components/toast/__workshop__/toast.tsx +0 -26
- package/src/core/components/toast/index.ts +0 -4
- package/src/core/components/toast/styles.ts +0 -77
- package/src/core/components/toast/toast.test.tsx +0 -101
- package/src/core/components/toast/toast.tsx +0 -198
- package/src/core/components/toast/toastContext.ts +0 -7
- package/src/core/components/toast/toastLayer.tsx +0 -51
- package/src/core/components/toast/toastProvider.tsx +0 -113
- package/src/core/components/toast/toastState.ts +0 -6
- package/src/core/components/toast/types.ts +0 -26
- package/src/core/components/toast/useToast.ts +0 -25
- package/src/core/components/tree/__workshop__/basic.perf.ts +0 -19
- package/src/core/components/tree/__workshop__/basic.tsx +0 -105
- package/src/core/components/tree/__workshop__/index.ts +0 -21
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +0 -84
- package/src/core/components/tree/helpers.ts +0 -105
- package/src/core/components/tree/index.ts +0 -4
- package/src/core/components/tree/style.ts +0 -105
- package/src/core/components/tree/tree.test.tsx +0 -55
- package/src/core/components/tree/tree.tsx +0 -240
- package/src/core/components/tree/treeContext.ts +0 -10
- package/src/core/components/tree/treeGroup.tsx +0 -28
- package/src/core/components/tree/treeItem.test.tsx +0 -65
- package/src/core/components/tree/treeItem.tsx +0 -224
- package/src/core/components/tree/types.ts +0 -25
- package/src/core/components/tree/useTree.ts +0 -17
- package/src/core/constants.ts +0 -79
- package/src/core/helpers/animation.ts +0 -27
- package/src/core/helpers/element.ts +0 -55
- package/src/core/helpers/focus.ts +0 -100
- package/src/core/helpers/index.ts +0 -4
- package/src/core/helpers/scroll.ts +0 -15
- package/src/core/hooks/index.ts +0 -12
- package/src/core/hooks/useArrayProp.ts +0 -17
- package/src/core/hooks/useClickOutside.test.tsx +0 -482
- package/src/core/hooks/useClickOutside.ts +0 -118
- package/src/core/hooks/useClickOutsideEvent.test.tsx +0 -115
- package/src/core/hooks/useClickOutsideEvent.ts +0 -73
- package/src/core/hooks/useCustomValidity.ts +0 -13
- package/src/core/hooks/useDelayed.test.ts +0 -88
- package/src/core/hooks/useDelayedState.ts +0 -36
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -32
- package/src/core/hooks/useElementRect/__workshop__/index.ts +0 -14
- package/src/core/hooks/useElementRect/index.ts +0 -1
- package/src/core/hooks/useElementRect/useElementRect.ts +0 -13
- package/src/core/hooks/useElementSize.ts +0 -19
- package/src/core/hooks/useForwardedRef.ts +0 -19
- package/src/core/hooks/useGlobalKeyDown.ts +0 -24
- package/src/core/hooks/useIsomorphicEffect.ts +0 -7
- package/src/core/hooks/useMatchMedia.ts +0 -28
- package/src/core/hooks/useMediaIndex/__workshop__/index.ts +0 -14
- package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +0 -14
- package/src/core/hooks/useMediaIndex/index.ts +0 -1
- package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -36
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +0 -102
- package/src/core/hooks/useMounted.ts +0 -15
- package/src/core/hooks/usePrefersDark.hydration.test.tsx +0 -56
- package/src/core/hooks/usePrefersDark.test.tsx +0 -19
- package/src/core/hooks/usePrefersDark.ts +0 -16
- package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -56
- package/src/core/hooks/usePrefersReducedMotion.test.tsx +0 -19
- package/src/core/hooks/usePrefersReducedMotion.ts +0 -16
- package/src/core/index.ts +0 -10
- package/src/core/lib/createGlobalScopedContext.ts +0 -36
- package/src/core/lib/globalScope.ts +0 -19
- package/src/core/lib/isRecord.ts +0 -3
- package/src/core/middleware/origin.ts +0 -47
- package/src/core/observers/elementSizeObserver.ts +0 -116
- package/src/core/observers/index.ts +0 -2
- package/src/core/observers/resizeObserver.ts +0 -9
- package/src/core/primitives/_selectable/index.ts +0 -1
- package/src/core/primitives/_selectable/selectable.tsx +0 -15
- package/src/core/primitives/_selectable/style.ts +0 -115
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +0 -14
- package/src/core/primitives/avatar/__workshop__/index.ts +0 -29
- package/src/core/primitives/avatar/__workshop__/stack.tsx +0 -25
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +0 -63
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -70
- package/src/core/primitives/avatar/avatar.tsx +0 -200
- package/src/core/primitives/avatar/avatarCounter.tsx +0 -91
- package/src/core/primitives/avatar/avatarStack.tsx +0 -100
- package/src/core/primitives/avatar/index.ts +0 -4
- package/src/core/primitives/avatar/styles.ts +0 -167
- package/src/core/primitives/avatar/types.ts +0 -17
- package/src/core/primitives/badge/__workshop__/index.ts +0 -19
- package/src/core/primitives/badge/__workshop__/props.tsx +0 -30
- package/src/core/primitives/badge/__workshop__/tones.tsx +0 -21
- package/src/core/primitives/badge/badge.test.tsx +0 -16
- package/src/core/primitives/badge/badge.tsx +0 -70
- package/src/core/primitives/badge/index.ts +0 -1
- package/src/core/primitives/badge/styles.ts +0 -20
- package/src/core/primitives/badge/types.ts +0 -8
- package/src/core/primitives/box/__workshop__/asComponent.tsx +0 -31
- package/src/core/primitives/box/__workshop__/index.ts +0 -24
- package/src/core/primitives/box/__workshop__/props.tsx +0 -20
- package/src/core/primitives/box/__workshop__/responsive.tsx +0 -20
- package/src/core/primitives/box/box.test.tsx +0 -142
- package/src/core/primitives/box/box.tsx +0 -154
- package/src/core/primitives/box/index.ts +0 -1
- package/src/core/primitives/button/__workshop__/custom.tsx +0 -51
- package/src/core/primitives/button/__workshop__/customIcons.tsx +0 -30
- package/src/core/primitives/button/__workshop__/disabled.tsx +0 -74
- package/src/core/primitives/button/__workshop__/index.ts +0 -59
- package/src/core/primitives/button/__workshop__/labelUploadButton.tsx +0 -36
- package/src/core/primitives/button/__workshop__/mixedChildren.tsx +0 -12
- package/src/core/primitives/button/__workshop__/props.tsx +0 -55
- package/src/core/primitives/button/__workshop__/stacked.tsx +0 -58
- package/src/core/primitives/button/__workshop__/styled1.tsx +0 -17
- package/src/core/primitives/button/__workshop__/styled2.tsx +0 -19
- package/src/core/primitives/button/__workshop__/uploadButton.tsx +0 -28
- package/src/core/primitives/button/button.test.tsx +0 -82
- package/src/core/primitives/button/button.tsx +0 -210
- package/src/core/primitives/button/index.ts +0 -1
- package/src/core/primitives/button/styles.ts +0 -117
- package/src/core/primitives/card/__workshop__/allTones.tsx +0 -25
- package/src/core/primitives/card/__workshop__/asButton.tsx +0 -107
- package/src/core/primitives/card/__workshop__/asComponent.tsx +0 -27
- package/src/core/primitives/card/__workshop__/checkered.tsx +0 -26
- package/src/core/primitives/card/__workshop__/index.ts +0 -18
- package/src/core/primitives/card/__workshop__/interactive.tsx +0 -30
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +0 -80
- package/src/core/primitives/card/__workshop__/props.tsx +0 -53
- package/src/core/primitives/card/__workshop__/selected.tsx +0 -94
- package/src/core/primitives/card/__workshop__/styled.tsx +0 -14
- package/src/core/primitives/card/card.tsx +0 -128
- package/src/core/primitives/card/index.ts +0 -2
- package/src/core/primitives/card/styles.ts +0 -147
- package/src/core/primitives/card/types.ts +0 -11
- package/src/core/primitives/checkbox/__workshop__/example.tsx +0 -25
- package/src/core/primitives/checkbox/__workshop__/index.ts +0 -13
- package/src/core/primitives/checkbox/__workshop__/props.tsx +0 -33
- package/src/core/primitives/checkbox/__workshop__/readOnly.tsx +0 -16
- package/src/core/primitives/checkbox/__workshop__/tones.tsx +0 -28
- package/src/core/primitives/checkbox/checkbox.tsx +0 -73
- package/src/core/primitives/checkbox/index.ts +0 -1
- package/src/core/primitives/checkbox/styles.ts +0 -128
- package/src/core/primitives/code/__workshop__/index.ts +0 -19
- package/src/core/primitives/code/__workshop__/opticalAlignment.tsx +0 -48
- package/src/core/primitives/code/__workshop__/props.tsx +0 -21
- package/src/core/primitives/code/code.tsx +0 -55
- package/src/core/primitives/code/index.ts +0 -1
- package/src/core/primitives/code/refractor.tsx +0 -20
- package/src/core/primitives/code/styles.ts +0 -77
- package/src/core/primitives/container/__workshop__/example.tsx +0 -20
- package/src/core/primitives/container/__workshop__/index.ts +0 -8
- package/src/core/primitives/container/container.tsx +0 -54
- package/src/core/primitives/container/index.ts +0 -2
- package/src/core/primitives/container/styles.ts +0 -23
- package/src/core/primitives/container/types.ts +0 -6
- package/src/core/primitives/flex/__workshop__/example.tsx +0 -34
- package/src/core/primitives/flex/__workshop__/gap.tsx +0 -25
- package/src/core/primitives/flex/__workshop__/index.ts +0 -11
- package/src/core/primitives/flex/flex.tsx +0 -64
- package/src/core/primitives/flex/index.ts +0 -1
- package/src/core/primitives/grid/__workshop__/index.ts +0 -10
- package/src/core/primitives/grid/__workshop__/responsive.tsx +0 -54
- package/src/core/primitives/grid/grid.test.tsx +0 -80
- package/src/core/primitives/grid/grid.tsx +0 -74
- package/src/core/primitives/grid/index.ts +0 -1
- package/src/core/primitives/heading/__workshop__/index.ts +0 -19
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +0 -54
- package/src/core/primitives/heading/__workshop__/plain.tsx +0 -32
- package/src/core/primitives/heading/heading.tsx +0 -88
- package/src/core/primitives/heading/index.ts +0 -1
- package/src/core/primitives/heading/styles.ts +0 -64
- package/src/core/primitives/heading/types.ts +0 -7
- package/src/core/primitives/index.ts +0 -27
- package/src/core/primitives/inline/__workshop__/index.ts +0 -8
- package/src/core/primitives/inline/__workshop__/plain.tsx +0 -27
- package/src/core/primitives/inline/index.ts +0 -1
- package/src/core/primitives/inline/inline.test.tsx +0 -51
- package/src/core/primitives/inline/inline.tsx +0 -63
- package/src/core/primitives/inline/styles.ts +0 -32
- package/src/core/primitives/inline/types.ts +0 -6
- package/src/core/primitives/kbd/__workshop__/index.ts +0 -8
- package/src/core/primitives/kbd/__workshop__/plain.tsx +0 -9
- package/src/core/primitives/kbd/index.ts +0 -1
- package/src/core/primitives/kbd/kbd.tsx +0 -69
- package/src/core/primitives/label/__workshop__/index.ts +0 -19
- package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +0 -48
- package/src/core/primitives/label/__workshop__/plain.tsx +0 -24
- package/src/core/primitives/label/index.ts +0 -1
- package/src/core/primitives/label/label.tsx +0 -87
- package/src/core/primitives/label/styles.ts +0 -45
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +0 -77
- package/src/core/primitives/popover/__workshop__/MarginsStory.tsx +0 -31
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -32
- package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +0 -71
- package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +0 -71
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +0 -89
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +0 -97
- package/src/core/primitives/popover/__workshop__/index.ts +0 -49
- package/src/core/primitives/popover/constants.ts +0 -22
- package/src/core/primitives/popover/floating-ui/size.ts +0 -99
- package/src/core/primitives/popover/helpers.ts +0 -31
- package/src/core/primitives/popover/index.ts +0 -2
- package/src/core/primitives/popover/popover.tsx +0 -511
- package/src/core/primitives/popover/popoverCard.tsx +0 -166
- package/src/core/primitives/popover/types.ts +0 -7
- package/src/core/primitives/radio/__workshop__/example.tsx +0 -63
- package/src/core/primitives/radio/__workshop__/index.ts +0 -11
- package/src/core/primitives/radio/__workshop__/plain.tsx +0 -28
- package/src/core/primitives/radio/index.ts +0 -1
- package/src/core/primitives/radio/radio.tsx +0 -51
- package/src/core/primitives/radio/styles.ts +0 -117
- package/src/core/primitives/select/__workshop__/index.ts +0 -11
- package/src/core/primitives/select/__workshop__/plain.tsx +0 -27
- package/src/core/primitives/select/__workshop__/readOnly.tsx +0 -23
- package/src/core/primitives/select/index.ts +0 -1
- package/src/core/primitives/select/select.test.tsx +0 -52
- package/src/core/primitives/select/select.tsx +0 -94
- package/src/core/primitives/select/styles.ts +0 -166
- package/src/core/primitives/spinner/__workshop__/Props.tsx +0 -15
- package/src/core/primitives/spinner/__workshop__/index.ts +0 -14
- package/src/core/primitives/spinner/index.ts +0 -1
- package/src/core/primitives/spinner/spinner.tsx +0 -46
- package/src/core/primitives/stack/__workshop__/index.ts +0 -14
- package/src/core/primitives/stack/__workshop__/plain.tsx +0 -32
- package/src/core/primitives/stack/index.ts +0 -1
- package/src/core/primitives/stack/stack.test.tsx +0 -57
- package/src/core/primitives/stack/stack.tsx +0 -57
- package/src/core/primitives/stack/styles.ts +0 -32
- package/src/core/primitives/switch/__workshop__/example.tsx +0 -23
- package/src/core/primitives/switch/__workshop__/index.ts +0 -11
- package/src/core/primitives/switch/__workshop__/props.tsx +0 -21
- package/src/core/primitives/switch/index.ts +0 -1
- package/src/core/primitives/switch/styles.ts +0 -173
- package/src/core/primitives/switch/switch.tsx +0 -68
- package/src/core/primitives/text/__workshop__/colored.tsx +0 -30
- package/src/core/primitives/text/__workshop__/example.tsx +0 -39
- package/src/core/primitives/text/__workshop__/index.ts +0 -24
- package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +0 -48
- package/src/core/primitives/text/index.ts +0 -1
- package/src/core/primitives/text/styles.ts +0 -74
- package/src/core/primitives/text/text.tsx +0 -89
- package/src/core/primitives/textArea/__workshop__/index.ts +0 -14
- package/src/core/primitives/textArea/__workshop__/plain.tsx +0 -50
- package/src/core/primitives/textArea/index.ts +0 -1
- package/src/core/primitives/textArea/textArea.tsx +0 -120
- package/src/core/primitives/textInput/__workshop__/clearButton.tsx +0 -30
- package/src/core/primitives/textInput/__workshop__/customValidity.tsx +0 -17
- package/src/core/primitives/textInput/__workshop__/index.ts +0 -44
- package/src/core/primitives/textInput/__workshop__/plain.tsx +0 -98
- package/src/core/primitives/textInput/__workshop__/readOnly.tsx +0 -9
- package/src/core/primitives/textInput/__workshop__/states.tsx +0 -53
- package/src/core/primitives/textInput/__workshop__/tones.tsx +0 -277
- package/src/core/primitives/textInput/__workshop__/typed.tsx +0 -23
- package/src/core/primitives/textInput/index.ts +0 -1
- package/src/core/primitives/textInput/textInput.test.tsx +0 -48
- package/src/core/primitives/textInput/textInput.tsx +0 -395
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +0 -102
- package/src/core/primitives/tooltip/__workshop__/index.ts +0 -29
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -74
- package/src/core/primitives/tooltip/__workshop__/props.tsx +0 -107
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -86
- package/src/core/primitives/tooltip/constants.ts +0 -23
- package/src/core/primitives/tooltip/index.ts +0 -2
- package/src/core/primitives/tooltip/tooltip.test.tsx +0 -452
- package/src/core/primitives/tooltip/tooltip.tsx +0 -495
- package/src/core/primitives/tooltip/tooltipCard.tsx +0 -109
- package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +0 -4
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -11
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -57
- package/src/core/primitives/tooltip/tooltipDelayGroup/types.ts +0 -10
- package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -13
- package/src/core/primitives/types.ts +0 -179
- package/src/core/styles/border/borderStyle.ts +0 -56
- package/src/core/styles/border/index.ts +0 -2
- package/src/core/styles/border/types.ts +0 -10
- package/src/core/styles/box/boxStyle.ts +0 -69
- package/src/core/styles/box/index.ts +0 -2
- package/src/core/styles/box/types.ts +0 -11
- package/src/core/styles/card/_cardColorStyle.ts +0 -108
- package/src/core/styles/card/index.ts +0 -1
- package/src/core/styles/flex/flexItemStyle.ts +0 -27
- package/src/core/styles/flex/flexStyle.ts +0 -70
- package/src/core/styles/flex/index.ts +0 -3
- package/src/core/styles/flex/types.ts +0 -25
- package/src/core/styles/focusRing/index.ts +0 -25
- package/src/core/styles/font/codeFontStyle.ts +0 -13
- package/src/core/styles/font/headingFontStyle.ts +0 -13
- package/src/core/styles/font/index.ts +0 -6
- package/src/core/styles/font/labelFontStyle.ts +0 -13
- package/src/core/styles/font/responsiveFont.ts +0 -103
- package/src/core/styles/font/textAlignStyle.ts +0 -19
- package/src/core/styles/font/textFontStyle.ts +0 -13
- package/src/core/styles/font/types.ts +0 -35
- package/src/core/styles/grid/gridItemStyle.ts +0 -82
- package/src/core/styles/grid/gridStyle.ts +0 -108
- package/src/core/styles/grid/index.ts +0 -3
- package/src/core/styles/grid/types.ts +0 -37
- package/src/core/styles/helpers.ts +0 -72
- package/src/core/styles/index.ts +0 -5
- package/src/core/styles/input/index.ts +0 -2
- package/src/core/styles/input/responsiveInputPaddingStyle.ts +0 -78
- package/src/core/styles/input/textInputStyle.ts +0 -263
- package/src/core/styles/internal.ts +0 -12
- package/src/core/styles/margin/index.ts +0 -2
- package/src/core/styles/margin/marginStyle.ts +0 -21
- package/src/core/styles/margin/marginsStyle.test.ts +0 -33
- package/src/core/styles/margin/types.ts +0 -9
- package/src/core/styles/padding/index.ts +0 -2
- package/src/core/styles/padding/paddingStyle.test.ts +0 -33
- package/src/core/styles/padding/paddingStyle.ts +0 -21
- package/src/core/styles/padding/types.ts +0 -12
- package/src/core/styles/radius/index.ts +0 -2
- package/src/core/styles/radius/radiusStyle.ts +0 -23
- package/src/core/styles/radius/types.ts +0 -8
- package/src/core/styles/shadow/index.ts +0 -2
- package/src/core/styles/shadow/shadowStyle.ts +0 -29
- package/src/core/styles/shadow/types.ts +0 -6
- package/src/core/styles/types.ts +0 -8
- package/src/core/theme/__workshop__/build/Root.tsx +0 -367
- package/src/core/theme/__workshop__/build/helpers.ts +0 -46
- package/src/core/theme/__workshop__/build/story.tsx +0 -465
- package/src/core/theme/__workshop__/canvas.tsx +0 -352
- package/src/core/theme/__workshop__/color.tsx +0 -62
- package/src/core/theme/__workshop__/debug/story.tsx +0 -408
- package/src/core/theme/__workshop__/index.ts +0 -39
- package/src/core/theme/__workshop__/layer.tsx +0 -78
- package/src/core/theme/__workshop__/nestedProvider.tsx +0 -15
- package/src/core/theme/index.ts +0 -5
- package/src/core/theme/theme.test.tsx +0 -73
- package/src/core/theme/themeColorProvider.tsx +0 -29
- package/src/core/theme/themeContext.ts +0 -10
- package/src/core/theme/themeProvider.tsx +0 -62
- package/src/core/theme/types.ts +0 -12
- package/src/core/theme/useRootTheme.ts +0 -17
- package/src/core/theme/useTheme.ts +0 -16
- package/src/core/types/avatar.ts +0 -14
- package/src/core/types/badge.ts +0 -12
- package/src/core/types/box.ts +0 -19
- package/src/core/types/button.ts +0 -21
- package/src/core/types/card.ts +0 -6
- package/src/core/types/component.ts +0 -32
- package/src/core/types/dialog.ts +0 -4
- package/src/core/types/flex.ts +0 -30
- package/src/core/types/grid.ts +0 -14
- package/src/core/types/gridItem.ts +0 -29
- package/src/core/types/index.ts +0 -15
- package/src/core/types/placement.ts +0 -18
- package/src/core/types/popover.ts +0 -4
- package/src/core/types/radius.ts +0 -4
- package/src/core/types/selectable.ts +0 -6
- package/src/core/types/text.ts +0 -4
- package/src/core/utils/arrow/arrow.tsx +0 -123
- package/src/core/utils/arrow/cmds.ts +0 -91
- package/src/core/utils/arrow/index.ts +0 -1
- package/src/core/utils/boundaryElement/__workshop__/index.ts +0 -14
- package/src/core/utils/boundaryElement/__workshop__/plain.tsx +0 -19
- package/src/core/utils/boundaryElement/boundaryElement.test.tsx +0 -100
- package/src/core/utils/boundaryElement/boundaryElementContext.ts +0 -7
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +0 -24
- package/src/core/utils/boundaryElement/index.ts +0 -3
- package/src/core/utils/boundaryElement/types.ts +0 -7
- package/src/core/utils/boundaryElement/useBoundaryElement.ts +0 -26
- package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +0 -21
- package/src/core/utils/conditionalWrapper/index.ts +0 -1
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +0 -30
- package/src/core/utils/elementQuery/__workshop__/index.ts +0 -14
- package/src/core/utils/elementQuery/elementQuery.tsx +0 -53
- package/src/core/utils/elementQuery/helpers.ts +0 -27
- package/src/core/utils/elementQuery/index.ts +0 -1
- package/src/core/utils/errorBoundary.tsx +0 -48
- package/src/core/utils/getElementRef.ts +0 -26
- package/src/core/utils/index.ts +0 -9
- package/src/core/utils/layer/__workshop__/_debug.tsx +0 -17
- package/src/core/utils/layer/__workshop__/index.ts +0 -24
- package/src/core/utils/layer/__workshop__/multipleRoots.tsx +0 -49
- package/src/core/utils/layer/__workshop__/nested.tsx +0 -98
- package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +0 -13
- package/src/core/utils/layer/getLayerContext.test.ts +0 -30
- package/src/core/utils/layer/getLayerContext.ts +0 -21
- package/src/core/utils/layer/index.ts +0 -4
- package/src/core/utils/layer/layer.test.tsx +0 -108
- package/src/core/utils/layer/layer.tsx +0 -98
- package/src/core/utils/layer/layerContext.ts +0 -7
- package/src/core/utils/layer/layerProvider.tsx +0 -111
- package/src/core/utils/layer/types.ts +0 -9
- package/src/core/utils/layer/useLayer.ts +0 -26
- package/src/core/utils/portal/__workshop__/index.ts +0 -14
- package/src/core/utils/portal/__workshop__/named.tsx +0 -63
- package/src/core/utils/portal/index.ts +0 -4
- package/src/core/utils/portal/portal.test.tsx +0 -103
- package/src/core/utils/portal/portal.ts +0 -32
- package/src/core/utils/portal/portalContext.ts +0 -31
- package/src/core/utils/portal/portalProvider.tsx +0 -47
- package/src/core/utils/portal/types.ts +0 -9
- package/src/core/utils/portal/usePortal.ts +0 -25
- package/src/core/utils/spanWithTextOverflow.tsx +0 -10
- package/src/core/utils/srOnly/index.ts +0 -1
- package/src/core/utils/srOnly/srOnly.tsx +0 -36
- package/src/core/utils/virtualList/__workshop__/changingProps.tsx +0 -36
- package/src/core/utils/virtualList/__workshop__/elementScroll.tsx +0 -24
- package/src/core/utils/virtualList/__workshop__/index.ts +0 -29
- package/src/core/utils/virtualList/__workshop__/infiniteList.tsx +0 -48
- package/src/core/utils/virtualList/__workshop__/windowScrolll.tsx +0 -22
- package/src/core/utils/virtualList/index.ts +0 -1
- package/src/core/utils/virtualList/virtualList.tsx +0 -200
- package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +0 -76
- package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +0 -54
- package/src/theme/build/_deprecated/color/button/createButtonModes.ts +0 -22
- package/src/theme/build/_deprecated/color/button/createButtonTones.ts +0 -55
- package/src/theme/build/_deprecated/color/card/createCardStates.ts +0 -60
- package/src/theme/build/_deprecated/color/color.test.ts +0 -63
- package/src/theme/build/_deprecated/color/defaults.ts +0 -390
- package/src/theme/build/_deprecated/color/factory.ts +0 -142
- package/src/theme/build/_deprecated/color/index.ts +0 -1
- package/src/theme/build/_deprecated/color/input/createInputModes.ts +0 -81
- package/src/theme/build/_deprecated/color/muted/createMuted.ts +0 -54
- package/src/theme/build/_deprecated/color/spot/createSpot.ts +0 -20
- package/src/theme/build/buildColorTheme.test.ts +0 -183
- package/src/theme/build/buildColorTheme.ts +0 -499
- package/src/theme/build/buildTheme.test.ts +0 -87
- package/src/theme/build/buildTheme.ts +0 -36
- package/src/theme/build/colorToken/colorToken.ts +0 -19
- package/src/theme/build/colorToken/compileColorToken.ts +0 -21
- package/src/theme/build/colorToken/index.ts +0 -2
- package/src/theme/build/colorToken/types.ts +0 -6
- package/src/theme/build/index.ts +0 -3
- package/src/theme/build/lib/color-fns/blend/index.ts +0 -3
- package/src/theme/build/lib/color-fns/blend/mix.ts +0 -21
- package/src/theme/build/lib/color-fns/blend/multiply.ts +0 -18
- package/src/theme/build/lib/color-fns/blend/screen.ts +0 -18
- package/src/theme/build/lib/color-fns/color-fns.test.ts +0 -68
- package/src/theme/build/lib/color-fns/contrastRatio.ts +0 -31
- package/src/theme/build/lib/color-fns/convert.ts +0 -150
- package/src/theme/build/lib/color-fns/index.ts +0 -6
- package/src/theme/build/lib/color-fns/parse.ts +0 -60
- package/src/theme/build/lib/color-fns/rgba.ts +0 -10
- package/src/theme/build/lib/color-fns/types.ts +0 -28
- package/src/theme/build/lib/isRecord.ts +0 -3
- package/src/theme/build/lib/lazy.ts +0 -30
- package/src/theme/build/lib/utils.ts +0 -19
- package/src/theme/build/merge.ts +0 -26
- package/src/theme/build/mixThemeColor.test.ts +0 -21
- package/src/theme/build/mixThemeColor.ts +0 -53
- package/src/theme/build/renderColorTheme.ts +0 -532
- package/src/theme/build/renderColorValue.ts +0 -85
- package/src/theme/build/resolveColorTokens.ts +0 -268
- package/src/theme/build/theme.test.ts +0 -27
- package/src/theme/config/helpers.ts +0 -55
- package/src/theme/config/index.ts +0 -4
- package/src/theme/config/system.ts +0 -115
- package/src/theme/config/tokens/color/index.ts +0 -1
- package/src/theme/config/tokens/color/types.ts +0 -133
- package/src/theme/config/tokens/index.ts +0 -4
- package/src/theme/config/tokens/parseTokenKey.test.ts +0 -64
- package/src/theme/config/tokens/parseTokenKey.ts +0 -67
- package/src/theme/config/tokens/parseTokenValue.test.ts +0 -42
- package/src/theme/config/tokens/parseTokenValue.ts +0 -133
- package/src/theme/config/tokens/types.ts +0 -53
- package/src/theme/config/types.ts +0 -46
- package/src/theme/defaults/colorPalette.ts +0 -5
- package/src/theme/defaults/colorTokens.ts +0 -648
- package/src/theme/defaults/config.ts +0 -84
- package/src/theme/defaults/fonts.ts +0 -227
- package/src/theme/getScopedTheme.ts +0 -98
- package/src/theme/index.ts +0 -5
- package/src/theme/system/avatar.ts +0 -14
- package/src/theme/system/color/_constants.ts +0 -45
- package/src/theme/system/color/_helpers.ts +0 -24
- package/src/theme/system/color/_system.ts +0 -40
- package/src/theme/system/color/avatar.ts +0 -15
- package/src/theme/system/color/badge.ts +0 -16
- package/src/theme/system/color/button.ts +0 -17
- package/src/theme/system/color/color.ts +0 -34
- package/src/theme/system/color/index.ts +0 -13
- package/src/theme/system/color/input.ts +0 -25
- package/src/theme/system/color/kbd.ts +0 -8
- package/src/theme/system/color/selectable.ts +0 -12
- package/src/theme/system/color/shadow.ts +0 -7
- package/src/theme/system/color/state.ts +0 -43
- package/src/theme/system/color/syntax.ts +0 -41
- package/src/theme/system/css.ts +0 -14
- package/src/theme/system/focusRing.ts +0 -7
- package/src/theme/system/font.ts +0 -52
- package/src/theme/system/index.ts +0 -11
- package/src/theme/system/input.ts +0 -33
- package/src/theme/system/layer.ts +0 -8
- package/src/theme/system/shadow.ts +0 -19
- package/src/theme/system/styles.ts +0 -13
- package/src/theme/system/theme.ts +0 -138
- package/src/theme/system/v0/avatar.ts +0 -10
- package/src/theme/system/v0/color/_generic.ts +0 -35
- package/src/theme/system/v0/color/_system.ts +0 -17
- package/src/theme/system/v0/color/base.ts +0 -21
- package/src/theme/system/v0/color/button.ts +0 -42
- package/src/theme/system/v0/color/card.ts +0 -19
- package/src/theme/system/v0/color/color.ts +0 -40
- package/src/theme/system/v0/color/index.ts +0 -11
- package/src/theme/system/v0/color/input.ts +0 -34
- package/src/theme/system/v0/color/muted.ts +0 -26
- package/src/theme/system/v0/color/selectable.ts +0 -31
- package/src/theme/system/v0/color/solid.ts +0 -26
- package/src/theme/system/v0/color/spot.ts +0 -13
- package/src/theme/system/v0/index.ts +0 -3
- package/src/theme/system/v0/input.ts +0 -23
- package/src/theme/versioning/getTheme_v2.ts +0 -57
- package/src/theme/versioning/index.ts +0 -5
- package/src/theme/versioning/is_v0.ts +0 -6
- package/src/theme/versioning/is_v2.ts +0 -6
- package/src/theme/versioning/themeColor_v0_v2.ts +0 -243
- package/src/theme/versioning/themeColor_v2_v2_9.ts +0 -49
- package/src/theme/versioning/v0_v2.ts +0 -94
- package/src/theme/versioning/v2_v0.ts +0 -135
package/package.json
CHANGED
|
@@ -1,78 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bettercms-ai/kit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "The BetterCMS V2 Block Kit: schema language, form engine and controls.",
|
|
5
6
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
"type": "commonjs",
|
|
7
|
+
"main": "./index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"import": "./
|
|
12
|
-
"require": "./dist/index.js",
|
|
13
|
-
"default": "./dist/index.js"
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"import": "./index.js"
|
|
14
12
|
},
|
|
15
|
-
"./
|
|
16
|
-
"
|
|
17
|
-
"import": "./
|
|
18
|
-
"require": "./dist/_visual-editing.js",
|
|
19
|
-
"default": "./dist/_visual-editing.js"
|
|
13
|
+
"./schema/scale": {
|
|
14
|
+
"types": "./schema/scale.d.ts",
|
|
15
|
+
"import": "./schema/scale.js"
|
|
20
16
|
},
|
|
21
|
-
"./
|
|
22
|
-
"
|
|
23
|
-
"import": "./
|
|
24
|
-
"require": "./dist/theme.js",
|
|
25
|
-
"default": "./dist/theme.js"
|
|
17
|
+
"./schema/table": {
|
|
18
|
+
"types": "./schema/table.d.ts",
|
|
19
|
+
"import": "./schema/table.js"
|
|
26
20
|
},
|
|
21
|
+
"./lib/utils": {
|
|
22
|
+
"types": "./lib/utils.d.ts",
|
|
23
|
+
"import": "./lib/utils.js"
|
|
24
|
+
},
|
|
25
|
+
"./kit.css": "./kit.css",
|
|
27
26
|
"./package.json": "./package.json"
|
|
28
27
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"./dist/_visual-editing.d.ts"
|
|
36
|
-
],
|
|
37
|
-
"theme": [
|
|
38
|
-
"./dist/theme.d.ts"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"files": [
|
|
43
|
-
"dist",
|
|
44
|
-
"exports",
|
|
45
|
-
"src"
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"./kit.css",
|
|
30
|
+
"./index.js",
|
|
31
|
+
"./controls/*-register.js",
|
|
32
|
+
"./controls/rich-text/index.js",
|
|
33
|
+
"./controls/table/index.js"
|
|
46
34
|
],
|
|
47
|
-
"scripts": {
|
|
48
|
-
"build": "node scripts/build.mjs",
|
|
49
|
-
"prepack": "node scripts/build.mjs",
|
|
50
|
-
"test": "bun test test/"
|
|
51
|
-
},
|
|
52
35
|
"dependencies": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"@juggle/resize-observer": "^3.4.0",
|
|
56
|
-
"csstype": "^3.1.3",
|
|
57
|
-
"motion": "^12.23.24",
|
|
58
|
-
"react-compiler-runtime": "1.0.0",
|
|
59
|
-
"react-refractor": "^4.0.0",
|
|
60
|
-
"use-effect-event": "^2.0.3"
|
|
36
|
+
"clsx": "^2.1.1",
|
|
37
|
+
"tailwind-merge": "^3.5.0"
|
|
61
38
|
},
|
|
62
39
|
"peerDependencies": {
|
|
63
|
-
"react": "^
|
|
64
|
-
"react
|
|
65
|
-
"
|
|
66
|
-
"styled-components": "^5.2 || ^6"
|
|
67
|
-
},
|
|
68
|
-
"devDependencies": {
|
|
40
|
+
"@base-ui/react": "^1.4.1",
|
|
41
|
+
"@tabler/icons-react": "^3.48.0",
|
|
42
|
+
"framer-motion": "^12.40.0",
|
|
69
43
|
"react": "^19.2.0",
|
|
70
|
-
"react-dom": "^19.2.0"
|
|
71
|
-
"react-is": "^19.2.0",
|
|
72
|
-
"styled-components": "^6.1.19"
|
|
44
|
+
"react-dom": "^19.2.0"
|
|
73
45
|
},
|
|
46
|
+
"types": "./index.d.ts",
|
|
74
47
|
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
"registry": "https://registry.npmjs.org/"
|
|
48
|
+
"access": "public"
|
|
77
49
|
}
|
|
78
50
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADAPTERS — today's field definitions → the Block Kit schema, so each editor switches to <SchemaForm> in one line.
|
|
3
|
+
*
|
|
4
|
+
* Visuals inspector: <SchemaForm schema={blockDefToSchema(def)} value={block.props} onChange={…} />
|
|
5
|
+
* Content editor: <SchemaForm schema={fieldDefsToSchema(collection.fields, { values })} … />
|
|
6
|
+
*
|
|
7
|
+
* Both catalogs are loose (repeaters without item fields, links stored as strings); the adapters infer item
|
|
8
|
+
* fields from sample values and mark legacy string values with `valueShape: "string"` so data round-trips
|
|
9
|
+
* unchanged.
|
|
10
|
+
*/
|
|
11
|
+
import type { BlockDef, FieldDef, PropDef } from "./sources";
|
|
12
|
+
import type { FieldSchema, TypeSchema } from "./types";
|
|
13
|
+
type Obj = Record<string, unknown>;
|
|
14
|
+
export declare const titleFromKey: (k: string) => string;
|
|
15
|
+
/** Infer a field from a sample value (used for repeaters/groups without declared fields). */
|
|
16
|
+
export declare function inferField(key: string, sample: unknown): FieldSchema;
|
|
17
|
+
export declare function propDefToField(p: PropDef, sample?: unknown): FieldSchema;
|
|
18
|
+
/** A visual-editor block definition → TypeSchema. Groups appear only when props use more than one group. */
|
|
19
|
+
export declare function blockDefToSchema(def: BlockDef): TypeSchema;
|
|
20
|
+
export declare function fieldDefToSchema(def: FieldDef, sample?: unknown): FieldSchema;
|
|
21
|
+
/** A collection's (or page's) field list → TypeSchema for the document editor. */
|
|
22
|
+
export declare function fieldDefsToSchema(fields: FieldDef[], opts?: {
|
|
23
|
+
name?: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
values?: Obj;
|
|
26
|
+
kind?: TypeSchema["kind"];
|
|
27
|
+
}): TypeSchema;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
//#region src/kit/schema/adapters.ts
|
|
2
|
+
var isObj = (v) => !!v && typeof v === "object" && !Array.isArray(v);
|
|
3
|
+
var options = (o) => o?.map((x) => ({
|
|
4
|
+
value: x,
|
|
5
|
+
label: x
|
|
6
|
+
}));
|
|
7
|
+
/** Nice titles for inferred keys ("q" → "Question"). */
|
|
8
|
+
var TITLES = {
|
|
9
|
+
q: "Question",
|
|
10
|
+
a: "Answer",
|
|
11
|
+
href: "Link",
|
|
12
|
+
url: "Link",
|
|
13
|
+
cta: "Button",
|
|
14
|
+
img: "Image",
|
|
15
|
+
desc: "Description",
|
|
16
|
+
qty: "Amount",
|
|
17
|
+
featured: "Highlighted",
|
|
18
|
+
note: "Note",
|
|
19
|
+
links: "Links",
|
|
20
|
+
price: "Price",
|
|
21
|
+
name: "Name",
|
|
22
|
+
title: "Title",
|
|
23
|
+
label: "Label"
|
|
24
|
+
};
|
|
25
|
+
var titleFromKey = (k) => TITLES[k] ?? (k.charAt(0).toUpperCase() + k.slice(1)).replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/ (\w)/g, (m) => m.toLowerCase());
|
|
26
|
+
var looksLikeImage = (k, v) => typeof v === "string" && (/\b(image|img|photo|cover|avatar|logo)\b/i.test(k) || /picsum|\.(jpe?g|png|webp|avif|svg)(\?|$)/.test(v));
|
|
27
|
+
/** Infer a field from a sample value (used for repeaters/groups without declared fields). */
|
|
28
|
+
function inferField(key, sample) {
|
|
29
|
+
const title = titleFromKey(key);
|
|
30
|
+
if (Array.isArray(sample)) {
|
|
31
|
+
const first = sample[0];
|
|
32
|
+
if (isObj(first)) return {
|
|
33
|
+
name: key,
|
|
34
|
+
title,
|
|
35
|
+
type: "array",
|
|
36
|
+
of: [inferItem(key, first)]
|
|
37
|
+
};
|
|
38
|
+
if (typeof first === "string" && sample.every((x) => looksLikeImage(key, x)) && sample.length) return {
|
|
39
|
+
name: key,
|
|
40
|
+
title,
|
|
41
|
+
type: "array",
|
|
42
|
+
of: [{
|
|
43
|
+
name: "image",
|
|
44
|
+
title: "Image",
|
|
45
|
+
type: "image",
|
|
46
|
+
valueShape: "string"
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
name: key,
|
|
51
|
+
title,
|
|
52
|
+
type: "array",
|
|
53
|
+
layout: "list",
|
|
54
|
+
of: [{
|
|
55
|
+
name: "value",
|
|
56
|
+
title: singular(title),
|
|
57
|
+
type: "string"
|
|
58
|
+
}]
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (typeof sample === "boolean") return {
|
|
62
|
+
name: key,
|
|
63
|
+
title,
|
|
64
|
+
type: "boolean"
|
|
65
|
+
};
|
|
66
|
+
if (typeof sample === "number") return {
|
|
67
|
+
name: key,
|
|
68
|
+
title,
|
|
69
|
+
type: "number"
|
|
70
|
+
};
|
|
71
|
+
if (looksLikeImage(key, sample)) return {
|
|
72
|
+
name: key,
|
|
73
|
+
title,
|
|
74
|
+
type: "image",
|
|
75
|
+
valueShape: "string"
|
|
76
|
+
};
|
|
77
|
+
if (isObj(sample)) {
|
|
78
|
+
if ("href" in sample && "label" in sample) return {
|
|
79
|
+
name: key,
|
|
80
|
+
title,
|
|
81
|
+
type: "button"
|
|
82
|
+
};
|
|
83
|
+
if ("href" in sample) return {
|
|
84
|
+
name: key,
|
|
85
|
+
title,
|
|
86
|
+
type: "link"
|
|
87
|
+
};
|
|
88
|
+
if ("url" in sample) return {
|
|
89
|
+
name: key,
|
|
90
|
+
title,
|
|
91
|
+
type: "image"
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
name: key,
|
|
95
|
+
title,
|
|
96
|
+
type: "object",
|
|
97
|
+
fields: Object.entries(sample).filter(([k]) => !k.startsWith("_")).map(([k, v]) => inferField(k, v))
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
if (key === "href" || key === "link") return {
|
|
101
|
+
name: key,
|
|
102
|
+
title,
|
|
103
|
+
type: "link",
|
|
104
|
+
valueShape: "string"
|
|
105
|
+
};
|
|
106
|
+
if (typeof sample === "string" && /<\/?(p|h\d|ul|ol|strong|em)\b/.test(sample)) return {
|
|
107
|
+
name: key,
|
|
108
|
+
title,
|
|
109
|
+
type: "richtext"
|
|
110
|
+
};
|
|
111
|
+
if (typeof sample === "string" && sample.length > 60) return {
|
|
112
|
+
name: key,
|
|
113
|
+
title,
|
|
114
|
+
type: "text"
|
|
115
|
+
};
|
|
116
|
+
return {
|
|
117
|
+
name: key,
|
|
118
|
+
title,
|
|
119
|
+
type: "string"
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function inferItem(arrayKey, sample) {
|
|
123
|
+
const fields = Object.entries(sample).filter(([k]) => !k.startsWith("_")).map(([k, v]) => inferField(k, v));
|
|
124
|
+
const first = fields.find((f) => f.type === "string" || f.type === "text");
|
|
125
|
+
const second = fields.find((f) => f !== first && (f.type === "string" || f.type === "text" || f.type === "richtext"));
|
|
126
|
+
const media = fields.find((f) => f.type === "image");
|
|
127
|
+
return {
|
|
128
|
+
name: `${arrayKey}Item`,
|
|
129
|
+
title: singular(titleFromKey(arrayKey)),
|
|
130
|
+
type: "object",
|
|
131
|
+
fields,
|
|
132
|
+
preview: {
|
|
133
|
+
title: first?.name,
|
|
134
|
+
subtitle: second?.name,
|
|
135
|
+
media: media?.name
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
var cap = (t) => t.charAt(0).toUpperCase() + t.slice(1);
|
|
140
|
+
var singular = (t) => t.endsWith("ies") ? `${t.slice(0, -3)}y` : t.endsWith("s") && !t.endsWith("ss") ? t.slice(0, -1) : t;
|
|
141
|
+
function propDefToField(p, sample) {
|
|
142
|
+
const f = propDefToFieldBase(p, sample);
|
|
143
|
+
return {
|
|
144
|
+
...f,
|
|
145
|
+
...p.fieldset ? { fieldset: p.fieldset } : {},
|
|
146
|
+
...p.showIf ? { hidden: {
|
|
147
|
+
field: p.showIf.key,
|
|
148
|
+
equals: p.showIf.equals
|
|
149
|
+
} } : {},
|
|
150
|
+
...p.itemNoun ? { itemNoun: p.itemNoun } : {},
|
|
151
|
+
...p.placeholder ? { placeholder: p.placeholder } : {},
|
|
152
|
+
...p.min != null && f.type === "array" ? { validation: {
|
|
153
|
+
...f.validation,
|
|
154
|
+
min: p.min
|
|
155
|
+
} } : {},
|
|
156
|
+
...p.max != null && f.type === "array" ? { validation: {
|
|
157
|
+
...f.validation,
|
|
158
|
+
max: p.max
|
|
159
|
+
} } : {}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function propDefToFieldBase(p, sample) {
|
|
163
|
+
const base = {
|
|
164
|
+
name: p.key,
|
|
165
|
+
title: p.label,
|
|
166
|
+
description: p.help,
|
|
167
|
+
helpMore: p.helpMore,
|
|
168
|
+
group: p.group?.toLowerCase()
|
|
169
|
+
};
|
|
170
|
+
const max = p.max ? { max: p.max } : void 0;
|
|
171
|
+
switch (p.type) {
|
|
172
|
+
case "list": return {
|
|
173
|
+
...base,
|
|
174
|
+
type: "array",
|
|
175
|
+
layout: "list",
|
|
176
|
+
of: [{
|
|
177
|
+
name: "value",
|
|
178
|
+
title: p.itemNoun ? cap(p.itemNoun) : singular(p.label),
|
|
179
|
+
type: "string"
|
|
180
|
+
}]
|
|
181
|
+
};
|
|
182
|
+
case "icon": return {
|
|
183
|
+
...base,
|
|
184
|
+
type: "icon"
|
|
185
|
+
};
|
|
186
|
+
case "boolean": return {
|
|
187
|
+
...base,
|
|
188
|
+
type: "boolean"
|
|
189
|
+
};
|
|
190
|
+
case "references": return {
|
|
191
|
+
...base,
|
|
192
|
+
type: "array",
|
|
193
|
+
validation: { unique: true },
|
|
194
|
+
of: [{
|
|
195
|
+
name: `${p.key}Ref`,
|
|
196
|
+
title: singular(p.label),
|
|
197
|
+
type: "reference",
|
|
198
|
+
reference: { to: [p.reference ?? "page"] }
|
|
199
|
+
}]
|
|
200
|
+
};
|
|
201
|
+
case "group": {
|
|
202
|
+
const first = isObj(sample) ? sample : void 0;
|
|
203
|
+
if (!p.item?.length) break;
|
|
204
|
+
return {
|
|
205
|
+
...base,
|
|
206
|
+
type: "object",
|
|
207
|
+
fields: p.item.map((x) => propDefToField(x, first?.[x.key]))
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
case "text": return {
|
|
211
|
+
...base,
|
|
212
|
+
type: "string",
|
|
213
|
+
validation: max,
|
|
214
|
+
ai: true
|
|
215
|
+
};
|
|
216
|
+
case "textarea": return {
|
|
217
|
+
...base,
|
|
218
|
+
type: "text",
|
|
219
|
+
validation: max,
|
|
220
|
+
ai: true
|
|
221
|
+
};
|
|
222
|
+
case "richtext": return {
|
|
223
|
+
...base,
|
|
224
|
+
type: "richtext",
|
|
225
|
+
ai: true
|
|
226
|
+
};
|
|
227
|
+
case "image": return {
|
|
228
|
+
...base,
|
|
229
|
+
type: "image",
|
|
230
|
+
valueShape: typeof sample === "string" ? "string" : void 0
|
|
231
|
+
};
|
|
232
|
+
case "gallery": return {
|
|
233
|
+
...base,
|
|
234
|
+
type: "array",
|
|
235
|
+
of: [{
|
|
236
|
+
name: "image",
|
|
237
|
+
title: "Image",
|
|
238
|
+
type: "image",
|
|
239
|
+
valueShape: "string"
|
|
240
|
+
}]
|
|
241
|
+
};
|
|
242
|
+
case "link": return {
|
|
243
|
+
...base,
|
|
244
|
+
type: "link",
|
|
245
|
+
valueShape: typeof sample === "string" ? "string" : void 0
|
|
246
|
+
};
|
|
247
|
+
case "button": return {
|
|
248
|
+
...base,
|
|
249
|
+
type: "button"
|
|
250
|
+
};
|
|
251
|
+
case "tags": return {
|
|
252
|
+
...base,
|
|
253
|
+
type: "tags"
|
|
254
|
+
};
|
|
255
|
+
case "select": return {
|
|
256
|
+
...base,
|
|
257
|
+
type: "select",
|
|
258
|
+
options: options(p.options)
|
|
259
|
+
};
|
|
260
|
+
case "number": return {
|
|
261
|
+
...base,
|
|
262
|
+
type: "number"
|
|
263
|
+
};
|
|
264
|
+
case "table": return {
|
|
265
|
+
...base,
|
|
266
|
+
type: "table",
|
|
267
|
+
validation: { required: true }
|
|
268
|
+
};
|
|
269
|
+
case "reference": return {
|
|
270
|
+
...base,
|
|
271
|
+
type: "reference",
|
|
272
|
+
reference: { to: [p.reference ?? (p.key === "form" ? "form" : p.key === "collection" ? "collection" : "page")] }
|
|
273
|
+
};
|
|
274
|
+
case "repeater": {
|
|
275
|
+
const first = (Array.isArray(sample) ? sample : []).find(isObj);
|
|
276
|
+
const fields = p.item?.length ? p.item.map((x) => propDefToField(x, first?.[x.key])) : first ? inferItem(p.key, first).fields : [{
|
|
277
|
+
name: "label",
|
|
278
|
+
title: "Label",
|
|
279
|
+
type: "string"
|
|
280
|
+
}];
|
|
281
|
+
const t = fields.find((f) => f.type === "string" || f.type === "text");
|
|
282
|
+
const s = fields.find((f) => f !== t && (f.type === "string" || f.type === "text" || f.type === "richtext"));
|
|
283
|
+
return {
|
|
284
|
+
...base,
|
|
285
|
+
type: "array",
|
|
286
|
+
of: [{
|
|
287
|
+
name: `${p.key}Item`,
|
|
288
|
+
title: p.itemNoun ? cap(p.itemNoun) : singular(p.label),
|
|
289
|
+
type: "object",
|
|
290
|
+
fields,
|
|
291
|
+
icon: void 0,
|
|
292
|
+
preview: {
|
|
293
|
+
title: t?.name,
|
|
294
|
+
subtitle: s?.name,
|
|
295
|
+
media: fields.find((f) => f.type === "image")?.name
|
|
296
|
+
}
|
|
297
|
+
}]
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
default: break;
|
|
301
|
+
}
|
|
302
|
+
return {
|
|
303
|
+
...base,
|
|
304
|
+
...inferField(p.key, sample),
|
|
305
|
+
title: p.label
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
/** A visual-editor block definition → TypeSchema. Groups appear only when props use more than one group. */
|
|
309
|
+
function blockDefToSchema(def) {
|
|
310
|
+
const fields = def.content.map((p) => propDefToField(p, def.defaults[p.key]));
|
|
311
|
+
const used = Array.from(new Set(fields.map((f) => f.group ?? "content")));
|
|
312
|
+
const groups = used.length > 1 ? used.map((g, i) => ({
|
|
313
|
+
name: g,
|
|
314
|
+
title: g.charAt(0).toUpperCase() + g.slice(1),
|
|
315
|
+
default: g === "content" || i === 0
|
|
316
|
+
})) : void 0;
|
|
317
|
+
return {
|
|
318
|
+
name: def.type,
|
|
319
|
+
title: def.name,
|
|
320
|
+
kind: def.global ? "global" : "block",
|
|
321
|
+
icon: def.icon,
|
|
322
|
+
category: def.category,
|
|
323
|
+
...def.placement ? { placement: def.placement } : {},
|
|
324
|
+
description: def.description,
|
|
325
|
+
variants: def.variants,
|
|
326
|
+
initialValue: def.defaults,
|
|
327
|
+
groups,
|
|
328
|
+
...def.fieldsets?.length ? { fieldsets: def.fieldsets.map((f) => ({
|
|
329
|
+
name: f.name,
|
|
330
|
+
title: f.title,
|
|
331
|
+
collapsed: f.collapsed,
|
|
332
|
+
columns: f.columns
|
|
333
|
+
})) } : {},
|
|
334
|
+
fields: groups ? fields.map((f) => ({
|
|
335
|
+
...f,
|
|
336
|
+
group: f.group ?? "content"
|
|
337
|
+
})) : fields.map(({ group: _g, ...f }) => f)
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
var SIMPLE = {
|
|
341
|
+
text: "string",
|
|
342
|
+
textarea: "text",
|
|
343
|
+
richtext: "richtext",
|
|
344
|
+
slug: "slug",
|
|
345
|
+
boolean: "boolean",
|
|
346
|
+
date: "date",
|
|
347
|
+
datetime: "datetime",
|
|
348
|
+
image: "image",
|
|
349
|
+
file: "file",
|
|
350
|
+
video: "video",
|
|
351
|
+
link: "link",
|
|
352
|
+
button: "button",
|
|
353
|
+
color: "color",
|
|
354
|
+
json: "json",
|
|
355
|
+
code: "code",
|
|
356
|
+
email: "email",
|
|
357
|
+
url: "url",
|
|
358
|
+
location: "geopoint",
|
|
359
|
+
rating: "rating",
|
|
360
|
+
tags: "tags",
|
|
361
|
+
table: "table"
|
|
362
|
+
};
|
|
363
|
+
function fieldDefToSchema(def, sample) {
|
|
364
|
+
const base = {
|
|
365
|
+
name: def.id,
|
|
366
|
+
title: def.name,
|
|
367
|
+
type: "string",
|
|
368
|
+
description: def.help,
|
|
369
|
+
helpMore: def.helpMore,
|
|
370
|
+
localized: def.localized,
|
|
371
|
+
validation: def.required || def.max ? {
|
|
372
|
+
required: def.required,
|
|
373
|
+
max: def.max
|
|
374
|
+
} : void 0
|
|
375
|
+
};
|
|
376
|
+
const simple = SIMPLE[def.type];
|
|
377
|
+
if (simple) {
|
|
378
|
+
const f = {
|
|
379
|
+
...base,
|
|
380
|
+
type: simple
|
|
381
|
+
};
|
|
382
|
+
if (simple === "string" || simple === "text" || simple === "richtext") f.ai = true;
|
|
383
|
+
if (simple === "image" && typeof sample === "string") f.valueShape = "string";
|
|
384
|
+
if (simple === "link" && typeof sample === "string") f.valueShape = "string";
|
|
385
|
+
return f;
|
|
386
|
+
}
|
|
387
|
+
switch (def.type) {
|
|
388
|
+
case "number": {
|
|
389
|
+
const unit = def.help && def.help.length < 14 ? def.help : def.id === "price" ? "USD" : void 0;
|
|
390
|
+
return {
|
|
391
|
+
...base,
|
|
392
|
+
type: "number",
|
|
393
|
+
description: unit ? void 0 : def.help,
|
|
394
|
+
numeric: unit ? { unit } : void 0
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
case "select": return {
|
|
398
|
+
...base,
|
|
399
|
+
type: "select",
|
|
400
|
+
options: options(def.options)
|
|
401
|
+
};
|
|
402
|
+
case "multiselect": return {
|
|
403
|
+
...base,
|
|
404
|
+
type: "multiselect",
|
|
405
|
+
options: options(def.options)
|
|
406
|
+
};
|
|
407
|
+
case "reference": return {
|
|
408
|
+
...base,
|
|
409
|
+
type: "reference",
|
|
410
|
+
reference: { to: [def.id === "form" ? "form" : def.id === "collection" && !def.reference ? "collection" : def.reference ?? "page"] }
|
|
411
|
+
};
|
|
412
|
+
case "references": return {
|
|
413
|
+
...base,
|
|
414
|
+
type: "array",
|
|
415
|
+
of: [{
|
|
416
|
+
name: `${def.id}Ref`,
|
|
417
|
+
title: singular(def.name),
|
|
418
|
+
type: "reference",
|
|
419
|
+
reference: { to: [def.reference ?? "page"] }
|
|
420
|
+
}]
|
|
421
|
+
};
|
|
422
|
+
case "gallery": return {
|
|
423
|
+
...base,
|
|
424
|
+
type: "array",
|
|
425
|
+
arrayLayout: "grid",
|
|
426
|
+
of: [{
|
|
427
|
+
name: "image",
|
|
428
|
+
title: "Image",
|
|
429
|
+
type: "image"
|
|
430
|
+
}]
|
|
431
|
+
};
|
|
432
|
+
case "group": return {
|
|
433
|
+
...base,
|
|
434
|
+
type: "object",
|
|
435
|
+
fields: (def.fields ?? []).map((f) => fieldDefToSchema(f, isObj(sample) ? sample[f.id] : void 0))
|
|
436
|
+
};
|
|
437
|
+
case "repeater": {
|
|
438
|
+
const first = (Array.isArray(sample) ? sample : []).find(isObj);
|
|
439
|
+
const fields = def.fields?.length ? def.fields.map((f) => fieldDefToSchema(f, first?.[f.id])) : first ? inferItem(def.id, first).fields : def.id === "ingredients" ? [{
|
|
440
|
+
name: "item",
|
|
441
|
+
title: "Ingredient",
|
|
442
|
+
type: "string"
|
|
443
|
+
}, {
|
|
444
|
+
name: "qty",
|
|
445
|
+
title: "Amount",
|
|
446
|
+
type: "string"
|
|
447
|
+
}] : [{
|
|
448
|
+
name: "label",
|
|
449
|
+
title: "Label",
|
|
450
|
+
type: "string"
|
|
451
|
+
}, {
|
|
452
|
+
name: "value",
|
|
453
|
+
title: "Value",
|
|
454
|
+
type: "string"
|
|
455
|
+
}];
|
|
456
|
+
const t = fields.find((f) => f.type === "string" || f.type === "text");
|
|
457
|
+
const s = fields.find((f) => f !== t && (f.type === "string" || f.type === "text"));
|
|
458
|
+
return {
|
|
459
|
+
...base,
|
|
460
|
+
type: "array",
|
|
461
|
+
validation: def.required ? { required: true } : void 0,
|
|
462
|
+
of: [{
|
|
463
|
+
name: `${def.id}Item`,
|
|
464
|
+
title: singular(def.name),
|
|
465
|
+
type: "object",
|
|
466
|
+
fields,
|
|
467
|
+
preview: {
|
|
468
|
+
title: t?.name,
|
|
469
|
+
subtitle: s?.name
|
|
470
|
+
}
|
|
471
|
+
}]
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
default: return {
|
|
475
|
+
...base,
|
|
476
|
+
...inferField(def.id, sample),
|
|
477
|
+
title: def.name
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
/** A collection's (or page's) field list → TypeSchema for the document editor. */
|
|
482
|
+
function fieldDefsToSchema(fields, opts = {}) {
|
|
483
|
+
return {
|
|
484
|
+
name: opts.name ?? "document",
|
|
485
|
+
title: opts.title ?? "Fields",
|
|
486
|
+
kind: opts.kind ?? "entry",
|
|
487
|
+
fields: fields.map((f) => fieldDefToSchema(f, opts.values?.[f.id]))
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
//#endregion
|
|
491
|
+
export { blockDefToSchema, fieldDefToSchema, fieldDefsToSchema, inferField, propDefToField, titleFromKey };
|
|
492
|
+
|
|
493
|
+
//# sourceMappingURL=adapters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.js","names":[],"sources":["../../src/kit/schema/adapters.ts"],"sourcesContent":["/**\n * ADAPTERS — today's field definitions → the Block Kit schema, so each editor switches to <SchemaForm> in one line.\n *\n * Visuals inspector: <SchemaForm schema={blockDefToSchema(def)} value={block.props} onChange={…} />\n * Content editor: <SchemaForm schema={fieldDefsToSchema(collection.fields, { values })} … />\n *\n * Both catalogs are loose (repeaters without item fields, links stored as strings); the adapters infer item\n * fields from sample values and mark legacy string values with `valueShape: \"string\"` so data round-trips\n * unchanged.\n */\nimport type { BlockDef, FieldDef, FieldType, PropDef } from \"./sources\";\nimport type { FieldGroup, FieldSchema, Option, TypeSchema } from \"./types\";\n\ntype Obj = Record<string, unknown>;\nconst isObj = (v: unknown): v is Obj => !!v && typeof v === \"object\" && !Array.isArray(v);\nconst options = (o?: string[]): Option[] | undefined => o?.map((x) => ({ value: x, label: x }));\n\n/** Nice titles for inferred keys (\"q\" → \"Question\"). */\nconst TITLES: Record<string, string> = {\n q: \"Question\", a: \"Answer\", href: \"Link\", url: \"Link\", cta: \"Button\", img: \"Image\", desc: \"Description\", qty: \"Amount\",\n featured: \"Highlighted\", note: \"Note\", links: \"Links\", price: \"Price\", name: \"Name\", title: \"Title\", label: \"Label\",\n};\nexport const titleFromKey = (k: string) => TITLES[k] ?? (k.charAt(0).toUpperCase() + k.slice(1)).replace(/([a-z])([A-Z])/g, \"$1 $2\").replace(/[_-]/g, \" \").replace(/ (\\w)/g, (m) => m.toLowerCase());\nconst looksLikeImage = (k: string, v: unknown) => typeof v === \"string\" && (/\\b(image|img|photo|cover|avatar|logo)\\b/i.test(k) || /picsum|\\.(jpe?g|png|webp|avif|svg)(\\?|$)/.test(v));\n\n/** Infer a field from a sample value (used for repeaters/groups without declared fields). */\nexport function inferField(key: string, sample: unknown): FieldSchema {\n const title = titleFromKey(key);\n if (Array.isArray(sample)) {\n const first = sample[0];\n if (isObj(first)) return { name: key, title, type: \"array\", of: [inferItem(key, first)] };\n if (typeof first === \"string\" && sample.every((x) => looksLikeImage(key, x)) && sample.length)\n return { name: key, title, type: \"array\", of: [{ name: \"image\", title: \"Image\", type: \"image\", valueShape: \"string\" }] };\n return { name: key, title, type: \"array\", layout: \"list\", of: [{ name: \"value\", title: singular(title), type: \"string\" }] };\n }\n if (typeof sample === \"boolean\") return { name: key, title, type: \"boolean\" };\n if (typeof sample === \"number\") return { name: key, title, type: \"number\" };\n if (looksLikeImage(key, sample)) return { name: key, title, type: \"image\", valueShape: \"string\" };\n if (isObj(sample)) {\n if (\"href\" in sample && \"label\" in sample) return { name: key, title, type: \"button\" };\n if (\"href\" in sample) return { name: key, title, type: \"link\" };\n if (\"url\" in sample) return { name: key, title, type: \"image\" };\n return { name: key, title, type: \"object\", fields: Object.entries(sample).filter(([k]) => !k.startsWith(\"_\")).map(([k, v]) => inferField(k, v)) };\n }\n if (key === \"href\" || key === \"link\") return { name: key, title, type: \"link\", valueShape: \"string\" };\n if (typeof sample === \"string\" && /<\\/?(p|h\\d|ul|ol|strong|em)\\b/.test(sample)) return { name: key, title, type: \"richtext\" };\n if (typeof sample === \"string\" && sample.length > 60) return { name: key, title, type: \"text\" };\n return { name: key, title, type: \"string\" };\n}\nfunction inferItem(arrayKey: string, sample: Obj): FieldSchema {\n const fields = Object.entries(sample).filter(([k]) => !k.startsWith(\"_\")).map(([k, v]) => inferField(k, v));\n const first = fields.find((f) => f.type === \"string\" || f.type === \"text\");\n const second = fields.find((f) => f !== first && (f.type === \"string\" || f.type === \"text\" || f.type === \"richtext\"));\n const media = fields.find((f) => f.type === \"image\");\n return {\n name: `${arrayKey}Item`,\n title: singular(titleFromKey(arrayKey)),\n type: \"object\",\n fields,\n preview: { title: first?.name, subtitle: second?.name, media: media?.name },\n };\n}\nconst cap = (t: string) => t.charAt(0).toUpperCase() + t.slice(1);\nconst singular = (t: string) => (t.endsWith(\"ies\") ? `${t.slice(0, -3)}y` : t.endsWith(\"s\") && !t.endsWith(\"ss\") ? t.slice(0, -1) : t);\n\n/* ── Visuals catalog (PropDef) → FieldSchema ─────────────────────────── */\nexport function propDefToField(p: PropDef, sample?: unknown): FieldSchema {\n const f = propDefToFieldBase(p, sample);\n // D45 organisation + conditions + array nouns ride along on every type\n return {\n ...f,\n ...(p.fieldset ? { fieldset: p.fieldset } : {}),\n ...(p.showIf ? { hidden: { field: p.showIf.key, equals: p.showIf.equals } } : {}),\n ...(p.itemNoun ? { itemNoun: p.itemNoun } : {}),\n ...(p.placeholder ? { placeholder: p.placeholder } : {}),\n ...(p.min != null && f.type === \"array\" ? { validation: { ...f.validation, min: p.min } } : {}),\n ...(p.max != null && f.type === \"array\" ? { validation: { ...f.validation, max: p.max } } : {}),\n };\n}\n\nfunction propDefToFieldBase(p: PropDef, sample?: unknown): FieldSchema {\n const base = { name: p.key, title: p.label, description: p.help, helpMore: p.helpMore, group: p.group?.toLowerCase() } satisfies Partial<FieldSchema>;\n const max = p.max ? { max: p.max } : undefined;\n switch (p.type) {\n case \"list\":\n // D47: one-line items are an array of strings, never tags\n return { ...base, type: \"array\", layout: \"list\", of: [{ name: \"value\", title: p.itemNoun ? cap(p.itemNoun) : singular(p.label), type: \"string\" }] };\n case \"icon\":\n return { ...base, type: \"icon\" };\n case \"boolean\":\n return { ...base, type: \"boolean\" };\n case \"references\":\n return { ...base, type: \"array\", validation: { unique: true }, of: [{ name: `${p.key}Ref`, title: singular(p.label), type: \"reference\", reference: { to: [p.reference ?? \"page\"] } }] };\n case \"group\": {\n const first = isObj(sample) ? sample : undefined;\n if (!p.item?.length) break;\n return { ...base, type: \"object\", fields: p.item.map((x) => propDefToField(x, first?.[x.key])) };\n }\n case \"text\":\n return { ...base, type: \"string\", validation: max, ai: true };\n case \"textarea\":\n return { ...base, type: \"text\", validation: max, ai: true };\n case \"richtext\":\n return { ...base, type: \"richtext\", ai: true };\n case \"image\":\n return { ...base, type: \"image\", valueShape: typeof sample === \"string\" ? \"string\" : undefined };\n case \"gallery\":\n return { ...base, type: \"array\", of: [{ name: \"image\", title: \"Image\", type: \"image\", valueShape: \"string\" }] };\n case \"link\":\n return { ...base, type: \"link\", valueShape: typeof sample === \"string\" ? \"string\" : undefined };\n case \"button\":\n return { ...base, type: \"button\" };\n case \"tags\":\n return { ...base, type: \"tags\" };\n case \"select\":\n return { ...base, type: \"select\", options: options(p.options) };\n case \"number\":\n return { ...base, type: \"number\" };\n case \"table\":\n return { ...base, type: \"table\", validation: { required: true } };\n case \"reference\":\n return { ...base, type: \"reference\", reference: { to: [p.reference ?? (p.key === \"form\" ? \"form\" : p.key === \"collection\" ? \"collection\" : \"page\")] } };\n case \"repeater\": {\n const items = Array.isArray(sample) ? sample : [];\n const first = items.find(isObj);\n const fields = p.item?.length ? p.item.map((x) => propDefToField(x, first?.[x.key])) : first ? inferItem(p.key, first).fields! : [{ name: \"label\", title: \"Label\", type: \"string\" as const }];\n const t = fields.find((f) => f.type === \"string\" || f.type === \"text\");\n const s = fields.find((f) => f !== t && (f.type === \"string\" || f.type === \"text\" || f.type === \"richtext\"));\n return {\n ...base,\n type: \"array\",\n of: [{ name: `${p.key}Item`, title: p.itemNoun ? cap(p.itemNoun) : singular(p.label), type: \"object\", fields, icon: undefined, preview: { title: t?.name, subtitle: s?.name, media: fields.find((f) => f.type === \"image\")?.name } }],\n };\n }\n default:\n break;\n }\n return { ...base, ...inferField(p.key, sample), title: p.label };\n}\n\n/** A visual-editor block definition → TypeSchema. Groups appear only when props use more than one group. */\nexport function blockDefToSchema(def: BlockDef): TypeSchema {\n const fields = def.content.map((p) => propDefToField(p, def.defaults[p.key]));\n const used = Array.from(new Set(fields.map((f) => f.group ?? \"content\")));\n const groups: FieldGroup[] | undefined =\n used.length > 1 ? used.map((g, i) => ({ name: g, title: g.charAt(0).toUpperCase() + g.slice(1), default: g === \"content\" || i === 0 })) : undefined;\n return {\n name: def.type,\n title: def.name,\n kind: def.global ? \"global\" : \"block\",\n icon: def.icon,\n category: def.category,\n ...(def.placement ? { placement: def.placement } : {}),\n description: def.description,\n variants: def.variants,\n initialValue: def.defaults,\n groups,\n ...(def.fieldsets?.length ? { fieldsets: def.fieldsets.map((f) => ({ name: f.name, title: f.title, collapsed: f.collapsed, columns: f.columns })) } : {}),\n fields: groups ? fields.map((f) => ({ ...f, group: f.group ?? \"content\" })) : fields.map(({ group: _g, ...f }) => f),\n };\n}\n\n/* ── Content collections (FieldDef) → FieldSchema ────────────────────── */\nconst SIMPLE: Partial<Record<FieldType, FieldSchema[\"type\"]>> = {\n text: \"string\", textarea: \"text\", richtext: \"richtext\", slug: \"slug\", boolean: \"boolean\", date: \"date\", datetime: \"datetime\",\n image: \"image\", file: \"file\", video: \"video\", link: \"link\", button: \"button\", color: \"color\", json: \"json\", code: \"code\",\n email: \"email\", url: \"url\", location: \"geopoint\", rating: \"rating\", tags: \"tags\", table: \"table\",\n};\n\nexport function fieldDefToSchema(def: FieldDef, sample?: unknown): FieldSchema {\n const base: FieldSchema = {\n name: def.id,\n title: def.name,\n type: \"string\",\n description: def.help,\n helpMore: def.helpMore,\n localized: def.localized,\n validation: def.required || def.max ? { required: def.required, max: def.max } : undefined,\n };\n const simple = SIMPLE[def.type];\n if (simple) {\n const f: FieldSchema = { ...base, type: simple };\n if (simple === \"string\" || simple === \"text\" || simple === \"richtext\") f.ai = true;\n if (simple === \"image\" && typeof sample === \"string\") f.valueShape = \"string\";\n if (simple === \"link\" && typeof sample === \"string\") f.valueShape = \"string\";\n return f;\n }\n switch (def.type) {\n case \"number\": {\n const unit = def.help && def.help.length < 14 ? def.help : def.id === \"price\" ? \"USD\" : undefined;\n return { ...base, type: \"number\", description: unit ? undefined : def.help, numeric: unit ? { unit } : undefined };\n }\n case \"select\":\n return { ...base, type: \"select\", options: options(def.options) };\n case \"multiselect\":\n return { ...base, type: \"multiselect\", options: options(def.options) };\n case \"reference\":\n return { ...base, type: \"reference\", reference: { to: [def.id === \"form\" ? \"form\" : def.id === \"collection\" && !def.reference ? \"collection\" : def.reference ?? \"page\"] } };\n case \"references\":\n return { ...base, type: \"array\", of: [{ name: `${def.id}Ref`, title: singular(def.name), type: \"reference\", reference: { to: [def.reference ?? \"page\"] } }] };\n case \"gallery\":\n return { ...base, type: \"array\", arrayLayout: \"grid\", of: [{ name: \"image\", title: \"Image\", type: \"image\" }] };\n case \"group\":\n return { ...base, type: \"object\", fields: (def.fields ?? []).map((f) => fieldDefToSchema(f, isObj(sample) ? sample[f.id] : undefined)) };\n case \"repeater\": {\n const items = Array.isArray(sample) ? sample : [];\n const first = items.find(isObj);\n const fields = def.fields?.length\n ? def.fields.map((f) => fieldDefToSchema(f, first?.[f.id]))\n : first\n ? inferItem(def.id, first).fields!\n : def.id === \"ingredients\"\n ? [{ name: \"item\", title: \"Ingredient\", type: \"string\" as const }, { name: \"qty\", title: \"Amount\", type: \"string\" as const }]\n : [{ name: \"label\", title: \"Label\", type: \"string\" as const }, { name: \"value\", title: \"Value\", type: \"string\" as const }];\n const t = fields.find((f) => f.type === \"string\" || f.type === \"text\");\n const s = fields.find((f) => f !== t && (f.type === \"string\" || f.type === \"text\"));\n return { ...base, type: \"array\", validation: def.required ? { required: true } : undefined, of: [{ name: `${def.id}Item`, title: singular(def.name), type: \"object\", fields, preview: { title: t?.name, subtitle: s?.name } }] };\n }\n default:\n return { ...base, ...inferField(def.id, sample), title: def.name };\n }\n}\n\n/** A collection's (or page's) field list → TypeSchema for the document editor. */\nexport function fieldDefsToSchema(fields: FieldDef[], opts: { name?: string; title?: string; values?: Obj; kind?: TypeSchema[\"kind\"] } = {}): TypeSchema {\n return {\n name: opts.name ?? \"document\",\n title: opts.title ?? \"Fields\",\n kind: opts.kind ?? \"entry\",\n fields: fields.map((f) => fieldDefToSchema(f, opts.values?.[f.id])),\n };\n}\n"],"mappings":";AAcA,IAAM,SAAS,MAAyB,CAAC,CAAC,KAAK,OAAO,MAAM,YAAY,CAAC,MAAM,QAAQ,EAAE;AACzF,IAAM,WAAW,MAAuC,GAAG,KAAK,OAAO;CAAE,OAAO;CAAG,OAAO;CAAG,EAAE;;AAG/F,IAAM,SAAiC;CACrC,GAAG;CAAY,GAAG;CAAU,MAAM;CAAQ,KAAK;CAAQ,KAAK;CAAU,KAAK;CAAS,MAAM;CAAe,KAAK;CAC9G,UAAU;CAAe,MAAM;CAAQ,OAAO;CAAS,OAAO;CAAS,MAAM;CAAQ,OAAO;CAAS,OAAO;CAC7G;AACD,IAAa,gBAAgB,MAAc,OAAO,OAAO,EAAE,OAAO,EAAE,CAAC,aAAa,GAAG,EAAE,MAAM,EAAE,EAAE,QAAQ,mBAAmB,QAAQ,CAAC,QAAQ,SAAS,IAAI,CAAC,QAAQ,WAAW,MAAM,EAAE,aAAa,CAAC;AACpM,IAAM,kBAAkB,GAAW,MAAe,OAAO,MAAM,aAAa,2CAA2C,KAAK,EAAE,IAAI,2CAA2C,KAAK,EAAE;;AAGpL,SAAgB,WAAW,KAAa,QAA8B;CACpE,MAAM,QAAQ,aAAa,IAAI;AAC/B,KAAI,MAAM,QAAQ,OAAO,EAAE;EACzB,MAAM,QAAQ,OAAO;AACrB,MAAI,MAAM,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