@questpie/admin 1.1.0 → 2.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/README.md +245 -474
- package/dist/_virtual/rolldown_runtime.mjs +18 -0
- package/dist/augmentation.d.mts +315 -0
- package/dist/augmentation.d.mts.map +1 -0
- package/dist/client/blocks/block-registry.d.mts +199 -0
- package/dist/client/blocks/block-registry.d.mts.map +1 -0
- package/dist/client/blocks/block-registry.mjs +88 -0
- package/dist/client/blocks/block-registry.mjs.map +1 -0
- package/dist/client/blocks/block-renderer.d.mts +52 -0
- package/dist/client/blocks/block-renderer.d.mts.map +1 -0
- package/dist/client/blocks/block-renderer.mjs +71 -0
- package/dist/client/blocks/block-renderer.mjs.map +1 -0
- package/dist/client/blocks/index.d.mts +4 -0
- package/dist/client/blocks/prefetch.d.mts +45 -0
- package/dist/client/blocks/prefetch.d.mts.map +1 -0
- package/dist/client/blocks/prefetch.mjs +26 -0
- package/dist/client/blocks/prefetch.mjs.map +1 -0
- package/dist/client/blocks/types.d.mts +69 -0
- package/dist/client/blocks/types.d.mts.map +1 -0
- package/dist/client/blocks/types.mjs +20 -0
- package/dist/client/blocks/types.mjs.map +1 -0
- package/dist/client/builder/admin-builder.d.mts +112 -0
- package/dist/client/builder/admin-builder.d.mts.map +1 -0
- package/dist/client/builder/admin-builder.mjs +185 -0
- package/dist/client/builder/admin-builder.mjs.map +1 -0
- package/dist/client/builder/admin-types.d.mts +73 -0
- package/dist/client/builder/admin-types.d.mts.map +1 -0
- package/dist/client/builder/admin.d.mts +121 -0
- package/dist/client/builder/admin.d.mts.map +1 -0
- package/dist/client/builder/admin.mjs +160 -0
- package/dist/client/builder/admin.mjs.map +1 -0
- package/dist/client/builder/defaults/components.mjs +20 -0
- package/dist/client/builder/defaults/components.mjs.map +1 -0
- package/dist/client/builder/defaults/core.d.mts +354 -0
- package/dist/client/builder/defaults/core.d.mts.map +1 -0
- package/dist/client/builder/defaults/core.mjs +49 -0
- package/dist/client/builder/defaults/core.mjs.map +1 -0
- package/dist/client/builder/defaults/fields.mjs +328 -0
- package/dist/client/builder/defaults/fields.mjs.map +1 -0
- package/dist/client/builder/defaults/pages.mjs +58 -0
- package/dist/client/builder/defaults/pages.mjs.map +1 -0
- package/dist/client/builder/defaults/starter.d.mts +351 -0
- package/dist/client/builder/defaults/starter.d.mts.map +1 -0
- package/dist/client/builder/defaults/starter.mjs +28 -0
- package/dist/client/builder/defaults/starter.mjs.map +1 -0
- package/dist/client/builder/defaults/views.mjs +27 -0
- package/dist/client/builder/defaults/views.mjs.map +1 -0
- package/dist/client/builder/defaults/widgets.mjs +31 -0
- package/dist/client/builder/defaults/widgets.mjs.map +1 -0
- package/dist/client/builder/field/field.d.mts +229 -0
- package/dist/client/builder/field/field.d.mts.map +1 -0
- package/dist/client/builder/field/field.mjs +83 -0
- package/dist/client/builder/field/field.mjs.map +1 -0
- package/dist/client/builder/index.d.mts +36 -0
- package/dist/client/builder/index.d.mts.map +1 -0
- package/dist/client/builder/page/page.d.mts +36 -0
- package/dist/client/builder/page/page.d.mts.map +1 -0
- package/dist/client/builder/page/page.mjs +27 -0
- package/dist/client/builder/page/page.mjs.map +1 -0
- package/dist/client/builder/proxies.d.mts +2 -0
- package/dist/client/builder/proxies.mjs +24 -0
- package/dist/client/builder/proxies.mjs.map +1 -0
- package/dist/client/builder/qa.d.mts +50 -0
- package/dist/client/builder/qa.d.mts.map +1 -0
- package/dist/client/builder/qa.mjs +42 -0
- package/dist/client/builder/qa.mjs.map +1 -0
- package/dist/client/builder/registry.d.mts +70 -0
- package/dist/client/builder/registry.d.mts.map +1 -0
- package/dist/client/builder/types/action-registry.d.mts +2 -0
- package/dist/client/builder/types/action-registry.mjs +142 -0
- package/dist/client/builder/types/action-registry.mjs.map +1 -0
- package/dist/client/builder/types/action-types.d.mts +253 -0
- package/dist/client/builder/types/action-types.d.mts.map +1 -0
- package/dist/client/builder/types/collection-types.d.mts +199 -0
- package/dist/client/builder/types/collection-types.d.mts.map +1 -0
- package/dist/client/builder/types/collection-types.mjs +11 -0
- package/dist/client/builder/types/collection-types.mjs.map +1 -0
- package/dist/client/builder/types/common.d.mts +60 -0
- package/dist/client/builder/types/common.d.mts.map +1 -0
- package/dist/client/builder/types/field-types.d.mts +593 -0
- package/dist/client/builder/types/field-types.d.mts.map +1 -0
- package/dist/client/builder/types/field-types.mjs +19 -0
- package/dist/client/builder/types/field-types.mjs.map +1 -0
- package/dist/client/builder/types/global-types.d.mts +22 -0
- package/dist/client/builder/types/global-types.d.mts.map +1 -0
- package/dist/client/builder/types/ui-config.d.mts +160 -0
- package/dist/client/builder/types/ui-config.d.mts.map +1 -0
- package/dist/client/builder/types/views.d.mts +89 -0
- package/dist/client/builder/types/views.d.mts.map +1 -0
- package/dist/client/builder/types/widget-types.d.mts +563 -0
- package/dist/client/builder/types/widget-types.d.mts.map +1 -0
- package/dist/client/builder/validation.d.mts +3 -0
- package/dist/client/builder/validation.mjs +208 -0
- package/dist/client/builder/validation.mjs.map +1 -0
- package/dist/client/builder/view/view.d.mts +129 -0
- package/dist/client/builder/view/view.d.mts.map +1 -0
- package/dist/client/builder/view/view.mjs +109 -0
- package/dist/client/builder/view/view.mjs.map +1 -0
- package/dist/client/builder/widget/widget.d.mts +33 -0
- package/dist/client/builder/widget/widget.d.mts.map +1 -0
- package/dist/client/builder/widget/widget.mjs +26 -0
- package/dist/client/builder/widget/widget.mjs.map +1 -0
- package/dist/client/components/actions/action-button.d.mts +2 -0
- package/dist/client/components/actions/action-button.mjs +135 -0
- package/dist/client/components/actions/action-button.mjs.map +1 -0
- package/dist/client/components/actions/action-dialog.d.mts +2 -0
- package/dist/client/components/actions/action-dialog.mjs +264 -0
- package/dist/client/components/actions/action-dialog.mjs.map +1 -0
- package/dist/client/components/actions/confirmation-dialog.d.mts +2 -0
- package/dist/client/components/actions/confirmation-dialog.mjs +82 -0
- package/dist/client/components/actions/confirmation-dialog.mjs.map +1 -0
- package/dist/client/components/actions/header-actions.d.mts +2 -0
- package/dist/client/components/actions/header-actions.mjs +117 -0
- package/dist/client/components/actions/header-actions.mjs.map +1 -0
- package/dist/client/components/actions/index.d.mts +4 -0
- package/dist/client/components/admin-link.d.mts +67 -0
- package/dist/client/components/admin-link.d.mts.map +1 -0
- package/dist/client/components/admin-link.mjs +92 -0
- package/dist/client/components/admin-link.mjs.map +1 -0
- package/dist/client/components/auth/auth-guard.d.mts +51 -0
- package/dist/client/components/auth/auth-guard.d.mts.map +1 -0
- package/dist/client/components/auth/auth-guard.mjs +60 -0
- package/dist/client/components/auth/auth-guard.mjs.map +1 -0
- package/dist/client/components/auth/auth-loading.d.mts +36 -0
- package/dist/client/components/auth/auth-loading.d.mts.map +1 -0
- package/dist/client/components/auth/auth-loading.mjs +27 -0
- package/dist/client/components/auth/auth-loading.mjs.map +1 -0
- package/dist/client/components/auth/index.d.mts +2 -0
- package/dist/client/components/blocks/block-canvas.mjs +90 -0
- package/dist/client/components/blocks/block-canvas.mjs.map +1 -0
- package/dist/client/components/blocks/block-editor-context.mjs +58 -0
- package/dist/client/components/blocks/block-editor-context.mjs.map +1 -0
- package/dist/client/components/blocks/block-editor-layout.mjs +82 -0
- package/dist/client/components/blocks/block-editor-layout.mjs.map +1 -0
- package/dist/client/components/blocks/block-editor-provider.mjs +155 -0
- package/dist/client/components/blocks/block-editor-provider.mjs.map +1 -0
- package/dist/client/components/blocks/block-fields-renderer.mjs +70 -0
- package/dist/client/components/blocks/block-fields-renderer.mjs.map +1 -0
- package/dist/client/components/blocks/block-insert-button.mjs +72 -0
- package/dist/client/components/blocks/block-insert-button.mjs.map +1 -0
- package/dist/client/components/blocks/block-item-menu.mjs +161 -0
- package/dist/client/components/blocks/block-item-menu.mjs.map +1 -0
- package/dist/client/components/blocks/block-item.mjs +187 -0
- package/dist/client/components/blocks/block-item.mjs.map +1 -0
- package/dist/client/components/blocks/block-library-sidebar.mjs +190 -0
- package/dist/client/components/blocks/block-library-sidebar.mjs.map +1 -0
- package/dist/client/components/blocks/block-tree.mjs +45 -0
- package/dist/client/components/blocks/block-tree.mjs.map +1 -0
- package/dist/client/components/blocks/block-type-icon.mjs +50 -0
- package/dist/client/components/blocks/block-type-icon.mjs.map +1 -0
- package/dist/client/components/blocks/utils/tree-utils.mjs +186 -0
- package/dist/client/components/blocks/utils/tree-utils.mjs.map +1 -0
- package/dist/client/components/component-renderer.d.mts +125 -0
- package/dist/client/components/component-renderer.d.mts.map +1 -0
- package/dist/client/components/component-renderer.mjs +145 -0
- package/dist/client/components/component-renderer.mjs.map +1 -0
- package/dist/client/components/error-boundary.mjs +92 -0
- package/dist/client/components/error-boundary.mjs.map +1 -0
- package/dist/client/components/fields/array-field.d.mts +44 -0
- package/dist/client/components/fields/array-field.d.mts.map +1 -0
- package/dist/client/components/fields/array-field.mjs +231 -0
- package/dist/client/components/fields/array-field.mjs.map +1 -0
- package/dist/client/components/fields/asset-preview-field.d.mts +52 -0
- package/dist/client/components/fields/asset-preview-field.d.mts.map +1 -0
- package/dist/client/components/fields/asset-preview-field.mjs +60 -0
- package/dist/client/components/fields/asset-preview-field.mjs.map +1 -0
- package/dist/client/components/fields/blocks-field/blocks-field.d.mts +41 -0
- package/dist/client/components/fields/blocks-field/blocks-field.d.mts.map +1 -0
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +101 -0
- package/dist/client/components/fields/blocks-field/blocks-field.mjs.map +1 -0
- package/dist/client/components/fields/blocks-field/index.d.mts +1 -0
- package/dist/client/components/fields/boolean-field.d.mts +30 -0
- package/dist/client/components/fields/boolean-field.d.mts.map +1 -0
- package/dist/client/components/fields/boolean-field.mjs +47 -0
- package/dist/client/components/fields/boolean-field.mjs.map +1 -0
- package/dist/client/components/fields/custom-field.d.mts +3 -0
- package/dist/client/components/fields/date-field.d.mts +22 -0
- package/dist/client/components/fields/date-field.d.mts.map +1 -0
- package/dist/client/components/fields/date-field.mjs +42 -0
- package/dist/client/components/fields/date-field.mjs.map +1 -0
- package/dist/client/components/fields/datetime-field.d.mts +23 -0
- package/dist/client/components/fields/datetime-field.d.mts.map +1 -0
- package/dist/client/components/fields/datetime-field.mjs +43 -0
- package/dist/client/components/fields/datetime-field.mjs.map +1 -0
- package/dist/client/components/fields/email-field.d.mts +19 -0
- package/dist/client/components/fields/email-field.d.mts.map +1 -0
- package/dist/client/components/fields/email-field.mjs +38 -0
- package/dist/client/components/fields/email-field.mjs.map +1 -0
- package/dist/client/components/fields/embedded-collection.d.mts +3 -0
- package/dist/client/components/fields/field-types.d.mts +571 -0
- package/dist/client/components/fields/field-types.d.mts.map +1 -0
- package/dist/client/components/fields/field-utils.d.mts +1 -0
- package/dist/client/components/fields/field-utils.mjs +65 -0
- package/dist/client/components/fields/field-utils.mjs.map +1 -0
- package/dist/client/components/fields/field-wrapper.d.mts +3 -0
- package/dist/client/components/fields/field-wrapper.mjs +49 -0
- package/dist/client/components/fields/field-wrapper.mjs.map +1 -0
- package/dist/client/components/fields/index.d.mts +33 -0
- package/dist/client/components/fields/json-field.d.mts +84 -0
- package/dist/client/components/fields/json-field.d.mts.map +1 -0
- package/dist/client/components/fields/json-field.mjs +248 -0
- package/dist/client/components/fields/json-field.mjs.map +1 -0
- package/dist/client/components/fields/locale-badge.d.mts +1 -0
- package/dist/client/components/fields/locale-badge.mjs +17 -0
- package/dist/client/components/fields/locale-badge.mjs.map +1 -0
- package/dist/client/components/fields/number-field.d.mts +23 -0
- package/dist/client/components/fields/number-field.d.mts.map +1 -0
- package/dist/client/components/fields/number-field.mjs +40 -0
- package/dist/client/components/fields/number-field.mjs.map +1 -0
- package/dist/client/components/fields/object-array-field.d.mts +2 -0
- package/dist/client/components/fields/object-array-field.mjs +313 -0
- package/dist/client/components/fields/object-array-field.mjs.map +1 -0
- package/dist/client/components/fields/object-field.d.mts +32 -0
- package/dist/client/components/fields/object-field.d.mts.map +1 -0
- package/dist/client/components/fields/object-field.mjs +128 -0
- package/dist/client/components/fields/object-field.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/cards-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/cards-display.mjs +140 -0
- package/dist/client/components/fields/relation/displays/cards-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/chips-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/chips-display.mjs +100 -0
- package/dist/client/components/fields/relation/displays/chips-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/grid-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/grid-display.mjs +114 -0
- package/dist/client/components/fields/relation/displays/grid-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/index.d.mts +6 -0
- package/dist/client/components/fields/relation/displays/list-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/list-display.mjs +128 -0
- package/dist/client/components/fields/relation/displays/list-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/table-display.d.mts +2 -0
- package/dist/client/components/fields/relation/displays/table-display.mjs +134 -0
- package/dist/client/components/fields/relation/displays/table-display.mjs.map +1 -0
- package/dist/client/components/fields/relation/displays/types.d.mts +22 -0
- package/dist/client/components/fields/relation/displays/types.d.mts.map +1 -0
- package/dist/client/components/fields/relation/displays/types.mjs +73 -0
- package/dist/client/components/fields/relation/displays/types.mjs.map +1 -0
- package/dist/client/components/fields/relation/index.d.mts +3 -0
- package/dist/client/components/fields/relation/relation-items-display.d.mts +5 -0
- package/dist/client/components/fields/relation/relation-items-display.mjs +47 -0
- package/dist/client/components/fields/relation/relation-items-display.mjs.map +1 -0
- package/dist/client/components/fields/relation-field.d.mts +134 -0
- package/dist/client/components/fields/relation-field.d.mts.map +1 -0
- package/dist/client/components/fields/relation-field.mjs +106 -0
- package/dist/client/components/fields/relation-field.mjs.map +1 -0
- package/dist/client/components/fields/relation-picker.d.mts +4 -0
- package/dist/client/components/fields/relation-picker.mjs +301 -0
- package/dist/client/components/fields/relation-picker.mjs.map +1 -0
- package/dist/client/components/fields/relation-select.d.mts +3 -0
- package/dist/client/components/fields/relation-select.mjs +219 -0
- package/dist/client/components/fields/relation-select.mjs.map +1 -0
- package/dist/client/components/fields/reverse-relation-field.d.mts +2 -0
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +56 -0
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/extensions.mjs +118 -0
- package/dist/client/components/fields/rich-text-editor/extensions.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +196 -0
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/index.d.mts +4 -0
- package/dist/client/components/fields/rich-text-editor/index.mjs +187 -0
- package/dist/client/components/fields/rich-text-editor/index.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs +86 -0
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/presets.d.mts +11 -0
- package/dist/client/components/fields/rich-text-editor/presets.d.mts.map +1 -0
- package/dist/client/components/fields/rich-text-editor/presets.mjs +124 -0
- package/dist/client/components/fields/rich-text-editor/presets.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +145 -0
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs +124 -0
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +280 -0
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/types.d.mts +78 -0
- package/dist/client/components/fields/rich-text-editor/types.d.mts.map +1 -0
- package/dist/client/components/fields/rich-text-editor/types.mjs +31 -0
- package/dist/client/components/fields/rich-text-editor/types.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/utils.mjs +51 -0
- package/dist/client/components/fields/rich-text-editor/utils.mjs.map +1 -0
- package/dist/client/components/fields/rich-text-editor/variants.d.mts +2 -0
- package/dist/client/components/fields/rich-text-field.d.mts +14 -0
- package/dist/client/components/fields/rich-text-field.d.mts.map +1 -0
- package/dist/client/components/fields/rich-text-field.mjs +26 -0
- package/dist/client/components/fields/rich-text-field.mjs.map +1 -0
- package/dist/client/components/fields/select-field.d.mts +25 -0
- package/dist/client/components/fields/select-field.d.mts.map +1 -0
- package/dist/client/components/fields/select-field.mjs +53 -0
- package/dist/client/components/fields/select-field.mjs.map +1 -0
- package/dist/client/components/fields/status-field.d.mts +2 -0
- package/dist/client/components/fields/text-field.d.mts +22 -0
- package/dist/client/components/fields/text-field.d.mts.map +1 -0
- package/dist/client/components/fields/text-field.mjs +39 -0
- package/dist/client/components/fields/text-field.mjs.map +1 -0
- package/dist/client/components/fields/textarea-field.d.mts +22 -0
- package/dist/client/components/fields/textarea-field.d.mts.map +1 -0
- package/dist/client/components/fields/textarea-field.mjs +39 -0
- package/dist/client/components/fields/textarea-field.mjs.map +1 -0
- package/dist/client/components/fields/time-field.d.mts +20 -0
- package/dist/client/components/fields/time-field.d.mts.map +1 -0
- package/dist/client/components/fields/time-field.mjs +39 -0
- package/dist/client/components/fields/time-field.mjs.map +1 -0
- package/dist/client/components/fields/upload-field.d.mts +97 -0
- package/dist/client/components/fields/upload-field.d.mts.map +1 -0
- package/dist/client/components/fields/upload-field.mjs +497 -0
- package/dist/client/components/fields/upload-field.mjs.map +1 -0
- package/dist/client/components/filter-builder/columns-tab.d.mts +1 -0
- package/dist/client/components/filter-builder/columns-tab.mjs +131 -0
- package/dist/client/components/filter-builder/columns-tab.mjs.map +1 -0
- package/dist/client/components/filter-builder/filter-builder-sheet.d.mts +1 -0
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +157 -0
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs.map +1 -0
- package/dist/client/components/filter-builder/filters-tab.d.mts +1 -0
- package/dist/client/components/filter-builder/filters-tab.mjs +380 -0
- package/dist/client/components/filter-builder/filters-tab.mjs.map +1 -0
- package/dist/client/components/filter-builder/index.d.mts +5 -0
- package/dist/client/components/filter-builder/saved-views-tab.d.mts +1 -0
- package/dist/client/components/filter-builder/saved-views-tab.mjs +125 -0
- package/dist/client/components/filter-builder/saved-views-tab.mjs.map +1 -0
- package/dist/client/components/index.d.mts +80 -0
- package/dist/client/components/locale-switcher.d.mts +2 -0
- package/dist/client/components/locale-switcher.mjs +128 -0
- package/dist/client/components/locale-switcher.mjs.map +1 -0
- package/dist/client/components/media/media-grid.mjs +139 -0
- package/dist/client/components/media/media-grid.mjs.map +1 -0
- package/dist/client/components/media/media-picker-dialog.mjs +255 -0
- package/dist/client/components/media/media-picker-dialog.mjs.map +1 -0
- package/dist/client/components/preview/live-preview-mode.mjs +211 -0
- package/dist/client/components/preview/live-preview-mode.mjs.map +1 -0
- package/dist/client/components/preview/preview-pane.mjs +179 -0
- package/dist/client/components/preview/preview-pane.mjs.map +1 -0
- package/dist/client/components/primitives/asset-preview.mjs +363 -0
- package/dist/client/components/primitives/asset-preview.mjs.map +1 -0
- package/dist/client/components/primitives/checkbox-input.mjs +33 -0
- package/dist/client/components/primitives/checkbox-input.mjs.map +1 -0
- package/dist/client/components/primitives/date-input.mjs +218 -0
- package/dist/client/components/primitives/date-input.mjs.map +1 -0
- package/dist/client/components/primitives/dropzone.mjs +239 -0
- package/dist/client/components/primitives/dropzone.mjs.map +1 -0
- package/dist/client/components/primitives/number-input.mjs +113 -0
- package/dist/client/components/primitives/number-input.mjs.map +1 -0
- package/dist/client/components/primitives/select-multi.mjs +256 -0
- package/dist/client/components/primitives/select-multi.mjs.map +1 -0
- package/dist/client/components/primitives/select-single.mjs +183 -0
- package/dist/client/components/primitives/select-single.mjs.map +1 -0
- package/dist/client/components/primitives/text-input.mjs +40 -0
- package/dist/client/components/primitives/text-input.mjs.map +1 -0
- package/dist/client/components/primitives/textarea-input.mjs +38 -0
- package/dist/client/components/primitives/textarea-input.mjs.map +1 -0
- package/dist/client/components/primitives/time-input.mjs +72 -0
- package/dist/client/components/primitives/time-input.mjs.map +1 -0
- package/dist/client/components/primitives/toggle-input.mjs +31 -0
- package/dist/client/components/primitives/toggle-input.mjs.map +1 -0
- package/dist/client/components/primitives/types.d.mts +14 -0
- package/dist/client/components/primitives/types.d.mts.map +1 -0
- package/dist/client/components/primitives/types.mjs +13 -0
- package/dist/client/components/primitives/types.mjs.map +1 -0
- package/dist/client/components/sheets/index.d.mts +1 -0
- package/dist/client/components/sheets/resource-sheet.d.mts +1 -0
- package/dist/client/components/sheets/resource-sheet.mjs +78 -0
- package/dist/client/components/sheets/resource-sheet.mjs.map +1 -0
- package/dist/client/components/ui/accordion.d.mts +2 -0
- package/dist/client/components/ui/accordion.mjs +50 -0
- package/dist/client/components/ui/accordion.mjs.map +1 -0
- package/dist/client/components/ui/alert.mjs +32 -0
- package/dist/client/components/ui/alert.mjs.map +1 -0
- package/dist/client/components/ui/avatar.d.mts +3 -0
- package/dist/client/components/ui/badge.d.mts +3 -0
- package/dist/client/components/ui/badge.mjs +35 -0
- package/dist/client/components/ui/badge.mjs.map +1 -0
- package/dist/client/components/ui/button.d.mts +3 -0
- package/dist/client/components/ui/button.mjs +49 -0
- package/dist/client/components/ui/button.mjs.map +1 -0
- package/dist/client/components/ui/card.d.mts +2 -0
- package/dist/{card-BKHjBQfw.mjs → client/components/ui/card.mjs} +3 -10
- package/dist/{card-BKHjBQfw.mjs.map → client/components/ui/card.mjs.map} +1 -1
- package/dist/client/components/ui/checkbox.d.mts +2 -0
- package/dist/client/components/ui/checkbox.mjs +27 -0
- package/dist/client/components/ui/checkbox.mjs.map +1 -0
- package/dist/client/components/ui/combobox.d.mts +3 -0
- package/dist/client/components/ui/command.mjs +69 -0
- package/dist/client/components/ui/command.mjs.map +1 -0
- package/dist/client/components/ui/dialog.d.mts +3 -0
- package/dist/client/components/ui/dialog.mjs +83 -0
- package/dist/client/components/ui/dialog.mjs.map +1 -0
- package/dist/client/components/ui/drawer.mjs +75 -0
- package/dist/client/components/ui/drawer.mjs.map +1 -0
- package/dist/client/components/ui/dropdown-menu.d.mts +3 -0
- package/dist/client/components/ui/dropdown-menu.mjs +89 -0
- package/dist/client/components/ui/dropdown-menu.mjs.map +1 -0
- package/dist/client/components/ui/empty-state.mjs +53 -0
- package/dist/client/components/ui/empty-state.mjs.map +1 -0
- package/dist/client/components/ui/field.d.mts +3 -0
- package/dist/client/components/ui/field.mjs +78 -0
- package/dist/client/components/ui/field.mjs.map +1 -0
- package/dist/client/components/ui/input-group.d.mts +4 -0
- package/dist/client/components/ui/input-group.mjs +68 -0
- package/dist/client/components/ui/input-group.mjs.map +1 -0
- package/dist/client/components/ui/input.d.mts +2 -0
- package/dist/client/components/ui/input.mjs +17 -0
- package/dist/client/components/ui/input.mjs.map +1 -0
- package/dist/client/components/ui/kbd.mjs +24 -0
- package/dist/client/components/ui/kbd.mjs.map +1 -0
- package/dist/client/components/ui/label.d.mts +2 -0
- package/dist/client/components/ui/label.mjs +15 -0
- package/dist/client/components/ui/label.mjs.map +1 -0
- package/dist/client/components/ui/popover.d.mts +3 -0
- package/dist/client/components/ui/popover.mjs +49 -0
- package/dist/client/components/ui/popover.mjs.map +1 -0
- package/dist/client/components/ui/responsive-dialog.mjs +102 -0
- package/dist/client/components/ui/responsive-dialog.mjs.map +1 -0
- package/dist/client/components/ui/scroll-area.d.mts +2 -0
- package/dist/client/components/ui/search-input.mjs +74 -0
- package/dist/client/components/ui/search-input.mjs.map +1 -0
- package/dist/client/components/ui/select.d.mts +3 -0
- package/dist/client/components/ui/select.mjs +85 -0
- package/dist/client/components/ui/select.mjs.map +1 -0
- package/dist/client/components/ui/separator.d.mts +2 -0
- package/dist/client/components/ui/separator.mjs +17 -0
- package/dist/client/components/ui/separator.mjs.map +1 -0
- package/dist/client/components/ui/sheet.d.mts +3 -0
- package/dist/client/components/ui/sheet.mjs +78 -0
- package/dist/client/components/ui/sheet.mjs.map +1 -0
- package/dist/client/components/ui/sidebar.d.mts +8 -0
- package/dist/client/components/ui/sidebar.mjs +256 -0
- package/dist/client/components/ui/sidebar.mjs.map +1 -0
- package/dist/client/components/ui/skeleton.d.mts +1 -0
- package/dist/client/components/ui/skeleton.mjs +15 -0
- package/dist/client/components/ui/skeleton.mjs.map +1 -0
- package/dist/client/components/ui/sonner.d.mts +14 -0
- package/dist/client/components/ui/sonner.d.mts.map +1 -0
- package/dist/client/components/ui/sonner.mjs +55 -0
- package/dist/client/components/ui/sonner.mjs.map +1 -0
- package/dist/client/components/ui/spinner.d.mts +1 -0
- package/dist/client/components/ui/spinner.mjs +18 -0
- package/dist/client/components/ui/spinner.mjs.map +1 -0
- package/dist/client/components/ui/switch.d.mts +2 -0
- package/dist/client/components/ui/switch.mjs +23 -0
- package/dist/client/components/ui/switch.mjs.map +1 -0
- package/dist/client/components/ui/table.d.mts +2 -0
- package/dist/client/components/ui/table.mjs +66 -0
- package/dist/client/components/ui/table.mjs.map +1 -0
- package/dist/client/components/ui/tabs.d.mts +3 -0
- package/dist/client/components/ui/tabs.mjs +49 -0
- package/dist/client/components/ui/tabs.mjs.map +1 -0
- package/dist/client/components/ui/textarea.d.mts +2 -0
- package/dist/client/components/ui/textarea.mjs +15 -0
- package/dist/client/components/ui/textarea.mjs.map +1 -0
- package/dist/client/components/ui/toolbar.mjs +54 -0
- package/dist/client/components/ui/toolbar.mjs.map +1 -0
- package/dist/client/components/ui/tooltip.d.mts +2 -0
- package/dist/client/components/ui/tooltip.mjs +45 -0
- package/dist/client/components/ui/tooltip.mjs.map +1 -0
- package/dist/client/components/widgets/chart-widget.d.mts +57 -0
- package/dist/client/components/widgets/chart-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/chart-widget.mjs +282 -0
- package/dist/client/components/widgets/chart-widget.mjs.map +1 -0
- package/dist/client/components/widgets/progress-widget.d.mts +41 -0
- package/dist/client/components/widgets/progress-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/progress-widget.mjs +110 -0
- package/dist/client/components/widgets/progress-widget.mjs.map +1 -0
- package/dist/client/components/widgets/quick-actions-widget.d.mts +29 -0
- package/dist/client/components/widgets/quick-actions-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/quick-actions-widget.mjs +121 -0
- package/dist/client/components/widgets/quick-actions-widget.mjs.map +1 -0
- package/dist/client/components/widgets/recent-items-widget.d.mts +51 -0
- package/dist/client/components/widgets/recent-items-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/recent-items-widget.mjs +101 -0
- package/dist/client/components/widgets/recent-items-widget.mjs.map +1 -0
- package/dist/client/components/widgets/stats-widget.d.mts +55 -0
- package/dist/client/components/widgets/stats-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/stats-widget.mjs +150 -0
- package/dist/client/components/widgets/stats-widget.mjs.map +1 -0
- package/dist/client/components/widgets/table-widget.d.mts +31 -0
- package/dist/client/components/widgets/table-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/table-widget.mjs +139 -0
- package/dist/client/components/widgets/table-widget.mjs.map +1 -0
- package/dist/client/components/widgets/timeline-widget.d.mts +51 -0
- package/dist/client/components/widgets/timeline-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/timeline-widget.mjs +168 -0
- package/dist/client/components/widgets/timeline-widget.mjs.map +1 -0
- package/dist/client/components/widgets/value-widget.d.mts +39 -0
- package/dist/client/components/widgets/value-widget.d.mts.map +1 -0
- package/dist/client/components/widgets/value-widget.mjs +111 -0
- package/dist/client/components/widgets/value-widget.mjs.map +1 -0
- package/dist/client/components/widgets/widget-skeletons.mjs +145 -0
- package/dist/client/components/widgets/widget-skeletons.mjs.map +1 -0
- package/dist/client/context/focus-context.d.mts +88 -0
- package/dist/client/context/focus-context.d.mts.map +1 -0
- package/dist/client/context/focus-context.mjs +178 -0
- package/dist/client/context/focus-context.mjs.map +1 -0
- package/dist/client/contexts/breadcrumb-context.mjs +32 -0
- package/dist/client/contexts/breadcrumb-context.mjs.map +1 -0
- package/dist/client/hooks/typed-hooks.d.mts +84 -0
- package/dist/client/hooks/typed-hooks.d.mts.map +1 -0
- package/dist/client/hooks/typed-hooks.mjs +272 -0
- package/dist/client/hooks/typed-hooks.mjs.map +1 -0
- package/dist/client/hooks/use-action.mjs +201 -0
- package/dist/client/hooks/use-action.mjs.map +1 -0
- package/dist/client/hooks/use-admin-config.mjs +40 -0
- package/dist/client/hooks/use-admin-config.mjs.map +1 -0
- package/dist/client/hooks/use-admin-preferences.mjs +68 -0
- package/dist/client/hooks/use-admin-preferences.mjs.map +1 -0
- package/dist/client/hooks/use-admin-routes.mjs +97 -0
- package/dist/client/hooks/use-admin-routes.mjs.map +1 -0
- package/dist/client/hooks/use-auth.d.mts +98 -0
- package/dist/client/hooks/use-auth.d.mts.map +1 -0
- package/dist/{use-auth-BoLmWtmU.mjs → client/hooks/use-auth.mjs} +3 -3
- package/dist/client/hooks/use-auth.mjs.map +1 -0
- package/dist/client/hooks/use-collection-fields.mjs +32 -0
- package/dist/client/hooks/use-collection-fields.mjs.map +1 -0
- package/dist/client/hooks/use-collection-meta.mjs +121 -0
- package/dist/client/hooks/use-collection-meta.mjs.map +1 -0
- package/dist/client/hooks/use-collection-schema.mjs +67 -0
- package/dist/client/hooks/use-collection-schema.mjs.map +1 -0
- package/dist/client/hooks/use-collection-validation.mjs +74 -0
- package/dist/client/hooks/use-collection-validation.mjs.map +1 -0
- package/dist/client/hooks/use-collection.d.mts +86 -0
- package/dist/client/hooks/use-collection.d.mts.map +1 -0
- package/dist/client/hooks/use-collection.mjs +214 -0
- package/dist/client/hooks/use-collection.mjs.map +1 -0
- package/dist/client/hooks/use-current-user.d.mts +57 -0
- package/dist/client/hooks/use-current-user.d.mts.map +1 -0
- package/dist/client/hooks/use-current-user.mjs +79 -0
- package/dist/client/hooks/use-current-user.mjs.map +1 -0
- package/dist/client/hooks/use-field-hooks.mjs +191 -0
- package/dist/client/hooks/use-field-hooks.mjs.map +1 -0
- package/dist/client/hooks/use-field-options.d.mts +90 -0
- package/dist/client/hooks/use-field-options.d.mts.map +1 -0
- package/dist/client/hooks/use-field-options.mjs +184 -0
- package/dist/client/hooks/use-field-options.mjs.map +1 -0
- package/dist/client/hooks/use-global-fields.mjs +27 -0
- package/dist/client/hooks/use-global-fields.mjs.map +1 -0
- package/dist/client/hooks/use-global-meta.mjs +59 -0
- package/dist/client/hooks/use-global-meta.mjs.map +1 -0
- package/dist/client/hooks/use-global-schema.mjs +33 -0
- package/dist/client/hooks/use-global-schema.mjs.map +1 -0
- package/dist/client/hooks/use-global.d.mts +40 -0
- package/dist/client/hooks/use-global.d.mts.map +1 -0
- package/dist/client/hooks/use-global.mjs +74 -0
- package/dist/client/hooks/use-global.mjs.map +1 -0
- package/dist/client/hooks/use-locks.mjs +245 -0
- package/dist/client/hooks/use-locks.mjs.map +1 -0
- package/dist/client/hooks/use-media-query.d.mts +23 -0
- package/dist/client/hooks/use-media-query.d.mts.map +1 -0
- package/dist/client/hooks/use-media-query.mjs +62 -0
- package/dist/client/hooks/use-media-query.mjs.map +1 -0
- package/dist/client/hooks/use-prefill-params.mjs +47 -0
- package/dist/client/hooks/use-prefill-params.mjs.map +1 -0
- package/dist/client/hooks/use-questpie-query-options.mjs +28 -0
- package/dist/client/hooks/use-questpie-query-options.mjs.map +1 -0
- package/dist/client/hooks/use-reactive-fields.d.mts +75 -0
- package/dist/client/hooks/use-reactive-fields.d.mts.map +1 -0
- package/dist/client/hooks/use-reactive-fields.mjs +164 -0
- package/dist/client/hooks/use-reactive-fields.mjs.map +1 -0
- package/dist/client/hooks/use-realtime-highlight.mjs +96 -0
- package/dist/client/hooks/use-realtime-highlight.mjs.map +1 -0
- package/dist/client/hooks/use-saved-views.mjs +65 -0
- package/dist/client/hooks/use-saved-views.mjs.map +1 -0
- package/dist/client/hooks/use-search.mjs +147 -0
- package/dist/client/hooks/use-search.mjs.map +1 -0
- package/dist/client/hooks/use-server-validation.mjs +199 -0
- package/dist/client/hooks/use-server-validation.mjs.map +1 -0
- package/dist/client/hooks/use-server-widget-data.d.mts +26 -0
- package/dist/client/hooks/use-server-widget-data.d.mts.map +1 -0
- package/dist/client/hooks/use-server-widget-data.mjs +40 -0
- package/dist/client/hooks/use-server-widget-data.mjs.map +1 -0
- package/dist/client/hooks/use-setup-status.d.mts +39 -0
- package/dist/client/hooks/use-setup-status.d.mts.map +1 -0
- package/dist/client/hooks/use-setup-status.mjs +50 -0
- package/dist/client/hooks/use-setup-status.mjs.map +1 -0
- package/dist/client/hooks/use-upload-collection.mjs +32 -0
- package/dist/client/hooks/use-upload-collection.mjs.map +1 -0
- package/dist/client/hooks/use-upload.d.mts +23 -0
- package/dist/client/hooks/use-upload.d.mts.map +1 -0
- package/dist/client/hooks/use-upload.mjs +145 -0
- package/dist/client/hooks/use-upload.mjs.map +1 -0
- package/dist/client/hooks/use-validation-error-map.mjs +53 -0
- package/dist/client/hooks/use-validation-error-map.mjs.map +1 -0
- package/dist/client/hooks/use-view-state.mjs +261 -0
- package/dist/client/hooks/use-view-state.mjs.map +1 -0
- package/dist/client/i18n/hooks.mjs +160 -0
- package/dist/client/i18n/hooks.mjs.map +1 -0
- package/dist/client/i18n/intl-cache.mjs +65 -0
- package/dist/client/i18n/intl-cache.mjs.map +1 -0
- package/dist/client/i18n/messages.mjs +7 -0
- package/dist/client/i18n/messages.mjs.map +1 -0
- package/dist/client/i18n/simple.d.mts +22 -0
- package/dist/client/i18n/simple.d.mts.map +1 -0
- package/dist/client/i18n/simple.mjs +157 -0
- package/dist/client/i18n/simple.mjs.map +1 -0
- package/dist/client/i18n/types.d.mts +110 -0
- package/dist/client/i18n/types.d.mts.map +1 -0
- package/dist/client/lib/utils.d.mts +1 -0
- package/dist/client/lib/utils.mjs +28 -0
- package/dist/client/lib/utils.mjs.map +1 -0
- package/dist/client/preview/block-scope-context.d.mts +74 -0
- package/dist/client/preview/block-scope-context.d.mts.map +1 -0
- package/dist/client/preview/block-scope-context.mjs +93 -0
- package/dist/client/preview/block-scope-context.mjs.map +1 -0
- package/dist/client/preview/index.d.mts +5 -0
- package/dist/client/preview/preview-banner.d.mts +46 -0
- package/dist/client/preview/preview-banner.d.mts.map +1 -0
- package/dist/client/preview/preview-banner.mjs +95 -0
- package/dist/client/preview/preview-banner.mjs.map +1 -0
- package/dist/client/preview/preview-field.d.mts +108 -0
- package/dist/client/preview/preview-field.d.mts.map +1 -0
- package/dist/client/preview/preview-field.mjs +125 -0
- package/dist/client/preview/preview-field.mjs.map +1 -0
- package/dist/client/preview/types.d.mts +115 -0
- package/dist/client/preview/types.d.mts.map +1 -0
- package/dist/client/preview/types.mjs +21 -0
- package/dist/client/preview/types.mjs.map +1 -0
- package/dist/client/preview/use-collection-preview.d.mts +71 -0
- package/dist/client/preview/use-collection-preview.d.mts.map +1 -0
- package/dist/client/preview/use-collection-preview.mjs +114 -0
- package/dist/client/preview/use-collection-preview.mjs.map +1 -0
- package/dist/client/runtime/content-locales-provider.d.mts +1 -0
- package/dist/client/runtime/content-locales-provider.mjs +85 -0
- package/dist/client/runtime/content-locales-provider.mjs.map +1 -0
- package/dist/client/runtime/index.d.mts +7 -0
- package/dist/client/runtime/index.mjs +8 -0
- package/dist/client/runtime/locale-scope.d.mts +2 -0
- package/dist/{runtime-6VZM878K.mjs → client/runtime/locale-scope.mjs} +3 -4
- package/dist/client/runtime/locale-scope.mjs.map +1 -0
- package/dist/client/runtime/provider.d.mts +10107 -0
- package/dist/client/runtime/provider.d.mts.map +1 -0
- package/dist/client/runtime/provider.mjs +229 -0
- package/dist/client/runtime/provider.mjs.map +1 -0
- package/dist/client/runtime/routes.d.mts +49 -0
- package/dist/client/runtime/routes.d.mts.map +1 -0
- package/dist/client/runtime/routes.mjs +107 -0
- package/dist/client/runtime/routes.mjs.map +1 -0
- package/dist/client/runtime/translations-provider.d.mts +2 -0
- package/dist/client/runtime/translations-provider.mjs +181 -0
- package/dist/client/runtime/translations-provider.mjs.map +1 -0
- package/dist/client/scope/index.d.mts +3 -0
- package/dist/client/scope/picker.d.mts +54 -0
- package/dist/client/scope/picker.d.mts.map +1 -0
- package/dist/client/scope/picker.mjs +161 -0
- package/dist/client/scope/picker.mjs.map +1 -0
- package/dist/client/scope/provider.d.mts +104 -0
- package/dist/client/scope/provider.d.mts.map +1 -0
- package/dist/client/scope/provider.mjs +159 -0
- package/dist/client/scope/provider.mjs.map +1 -0
- package/dist/client/scope/types.d.mts +112 -0
- package/dist/client/scope/types.d.mts.map +1 -0
- package/dist/client/styles/index.css +80 -0
- package/dist/client/utils/auto-expand-fields.mjs +65 -0
- package/dist/client/utils/auto-expand-fields.mjs.map +1 -0
- package/dist/client/utils/build-field-definitions-from-schema.mjs +256 -0
- package/dist/client/utils/build-field-definitions-from-schema.mjs.map +1 -0
- package/dist/client/utils/detect-relations.mjs +46 -0
- package/dist/client/utils/detect-relations.mjs.map +1 -0
- package/dist/client/utils/locale-to-flag.d.mts +118 -0
- package/dist/client/utils/locale-to-flag.d.mts.map +1 -0
- package/dist/client/utils/locale-to-flag.mjs +130 -0
- package/dist/client/utils/locale-to-flag.mjs.map +1 -0
- package/dist/client/utils/routes.mjs +196 -0
- package/dist/client/utils/routes.mjs.map +1 -0
- package/dist/client/views/auth/accept-invite-form.d.mts +73 -0
- package/dist/client/views/auth/accept-invite-form.d.mts.map +1 -0
- package/dist/client/views/auth/accept-invite-form.mjs +180 -0
- package/dist/client/views/auth/accept-invite-form.mjs.map +1 -0
- package/dist/client/views/auth/auth-layout.d.mts +44 -0
- package/dist/client/views/auth/auth-layout.d.mts.map +1 -0
- package/dist/client/views/auth/auth-layout.mjs +53 -0
- package/dist/client/views/auth/auth-layout.mjs.map +1 -0
- package/dist/client/views/auth/forgot-password-form.d.mts +59 -0
- package/dist/client/views/auth/forgot-password-form.d.mts.map +1 -0
- package/dist/{forgot-password-page-Bcp-An4Y.mjs → client/views/auth/forgot-password-form.mjs} +22 -89
- package/dist/client/views/auth/forgot-password-form.mjs.map +1 -0
- package/dist/client/views/auth/index.d.mts +7 -0
- package/dist/client/views/auth/invite-form.d.mts +1 -0
- package/dist/client/views/auth/invite-form.mjs +155 -0
- package/dist/client/views/auth/invite-form.mjs.map +1 -0
- package/dist/client/views/auth/login-form.d.mts +76 -0
- package/dist/client/views/auth/login-form.d.mts.map +1 -0
- package/dist/client/views/auth/login-form.mjs +167 -0
- package/dist/client/views/auth/login-form.mjs.map +1 -0
- package/dist/client/views/auth/reset-password-form.d.mts +66 -0
- package/dist/client/views/auth/reset-password-form.d.mts.map +1 -0
- package/dist/client/views/auth/reset-password-form.mjs +188 -0
- package/dist/client/views/auth/reset-password-form.mjs.map +1 -0
- package/dist/client/views/auth/setup-form.d.mts +61 -0
- package/dist/client/views/auth/setup-form.d.mts.map +1 -0
- package/dist/{setup-page-YAP_fzqh.mjs → client/views/auth/setup-form.mjs} +46 -124
- package/dist/client/views/auth/setup-form.mjs.map +1 -0
- package/dist/client/views/collection/auto-form-fields.d.mts +4 -0
- package/dist/client/views/collection/auto-form-fields.mjs +453 -0
- package/dist/client/views/collection/auto-form-fields.mjs.map +1 -0
- package/dist/client/views/collection/bulk-action-toolbar.mjs +291 -0
- package/dist/client/views/collection/bulk-action-toolbar.mjs.map +1 -0
- package/dist/client/views/collection/cells/complex-cells.d.mts +46 -0
- package/dist/client/views/collection/cells/complex-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/complex-cells.mjs +327 -0
- package/dist/client/views/collection/cells/complex-cells.mjs.map +1 -0
- package/dist/client/views/collection/cells/index.d.mts +7 -0
- package/dist/client/views/collection/cells/primitive-cells.d.mts +76 -0
- package/dist/client/views/collection/cells/primitive-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/primitive-cells.mjs +165 -0
- package/dist/client/views/collection/cells/primitive-cells.mjs.map +1 -0
- package/dist/client/views/collection/cells/relation-cells.d.mts +21 -0
- package/dist/client/views/collection/cells/relation-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/relation-cells.mjs +105 -0
- package/dist/client/views/collection/cells/relation-cells.mjs.map +1 -0
- package/dist/client/views/collection/cells/shared/asset-thumbnail.d.mts +1 -0
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +189 -0
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs.map +1 -0
- package/dist/client/views/collection/cells/shared/cell-helpers.d.mts +2 -0
- package/dist/client/views/collection/cells/shared/cell-helpers.mjs +78 -0
- package/dist/client/views/collection/cells/shared/cell-helpers.mjs.map +1 -0
- package/dist/client/views/collection/cells/shared/relation-chip.d.mts +1 -0
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +37 -0
- package/dist/client/views/collection/cells/shared/relation-chip.mjs.map +1 -0
- package/dist/client/views/collection/cells/upload-cells.d.mts +25 -0
- package/dist/client/views/collection/cells/upload-cells.d.mts.map +1 -0
- package/dist/client/views/collection/cells/upload-cells.mjs +20 -0
- package/dist/client/views/collection/cells/upload-cells.mjs.map +1 -0
- package/dist/client/views/collection/columns/build-columns.d.mts +2 -0
- package/dist/client/views/collection/columns/build-columns.mjs +156 -0
- package/dist/client/views/collection/columns/build-columns.mjs.map +1 -0
- package/dist/client/views/collection/columns/column-defaults.d.mts +2 -0
- package/dist/client/views/collection/columns/column-defaults.mjs +108 -0
- package/dist/client/views/collection/columns/column-defaults.mjs.map +1 -0
- package/dist/client/views/collection/columns/index.d.mts +3 -0
- package/dist/client/views/collection/columns/types.d.mts +2 -0
- package/dist/client/views/collection/field-context.mjs +127 -0
- package/dist/client/views/collection/field-context.mjs.map +1 -0
- package/dist/client/views/collection/field-renderer.mjs +171 -0
- package/dist/client/views/collection/field-renderer.mjs.map +1 -0
- package/dist/client/views/collection/form-view.d.mts +112 -0
- package/dist/client/views/collection/form-view.d.mts.map +1 -0
- package/dist/client/views/collection/form-view.mjs +903 -0
- package/dist/client/views/collection/form-view.mjs.map +1 -0
- package/dist/client/views/collection/index.d.mts +9 -0
- package/dist/client/views/collection/table-view.d.mts +102 -0
- package/dist/client/views/collection/table-view.d.mts.map +1 -0
- package/dist/client/views/collection/table-view.mjs +695 -0
- package/dist/client/views/collection/table-view.mjs.map +1 -0
- package/dist/client/views/collection/view-skeletons.mjs +121 -0
- package/dist/client/views/collection/view-skeletons.mjs.map +1 -0
- package/dist/client/views/common/global-search.d.mts +1 -0
- package/dist/client/views/common/global-search.mjs +376 -0
- package/dist/client/views/common/global-search.mjs.map +1 -0
- package/dist/client/views/common/index.d.mts +1 -0
- package/dist/client/views/dashboard/dashboard-grid.mjs +385 -0
- package/dist/client/views/dashboard/dashboard-grid.mjs.map +1 -0
- package/dist/client/views/dashboard/dashboard-widget.mjs +178 -0
- package/dist/client/views/dashboard/dashboard-widget.mjs.map +1 -0
- package/dist/client/views/dashboard/widget-card.mjs +159 -0
- package/dist/client/views/dashboard/widget-card.mjs.map +1 -0
- package/dist/client/views/globals/global-form-view.d.mts +74 -0
- package/dist/client/views/globals/global-form-view.d.mts.map +1 -0
- package/dist/client/views/globals/global-form-view.mjs +181 -0
- package/dist/client/views/globals/global-form-view.mjs.map +1 -0
- package/dist/client/views/index.d.mts +28 -0
- package/dist/client/views/layout/admin-layout-provider.d.mts +140 -0
- package/dist/client/views/layout/admin-layout-provider.d.mts.map +1 -0
- package/dist/client/views/layout/admin-layout-provider.mjs +90 -0
- package/dist/client/views/layout/admin-layout-provider.mjs.map +1 -0
- package/dist/client/views/layout/admin-layout.d.mts +151 -0
- package/dist/client/views/layout/admin-layout.d.mts.map +1 -0
- package/dist/client/views/layout/admin-layout.mjs +144 -0
- package/dist/client/views/layout/admin-layout.mjs.map +1 -0
- package/dist/client/views/layout/admin-root.d.mts +7 -0
- package/dist/client/views/layout/admin-router.d.mts +125 -0
- package/dist/client/views/layout/admin-router.d.mts.map +1 -0
- package/dist/client/views/layout/admin-router.mjs +594 -0
- package/dist/client/views/layout/admin-router.mjs.map +1 -0
- package/dist/client/views/layout/admin-sidebar.d.mts +105 -0
- package/dist/client/views/layout/admin-sidebar.d.mts.map +1 -0
- package/dist/client/views/layout/admin-sidebar.mjs +550 -0
- package/dist/client/views/layout/admin-sidebar.mjs.map +1 -0
- package/dist/client/views/layout/admin-topbar.mjs +128 -0
- package/dist/client/views/layout/admin-topbar.mjs.map +1 -0
- package/dist/client/views/layout/index.d.mts +5 -0
- package/dist/client/views/pages/accept-invite-page.d.mts +67 -0
- package/dist/client/views/pages/accept-invite-page.d.mts.map +1 -0
- package/dist/client/views/pages/accept-invite-page.mjs +143 -0
- package/dist/client/views/pages/accept-invite-page.mjs.map +1 -0
- package/dist/client/views/pages/dashboard-page.d.mts +52 -0
- package/dist/client/views/pages/dashboard-page.d.mts.map +1 -0
- package/dist/client/views/pages/dashboard-page.mjs +45 -0
- package/dist/client/views/pages/dashboard-page.mjs.map +1 -0
- package/dist/client/views/pages/forgot-password-page.d.mts +59 -0
- package/dist/client/views/pages/forgot-password-page.d.mts.map +1 -0
- package/dist/client/views/pages/forgot-password-page.mjs +80 -0
- package/dist/client/views/pages/forgot-password-page.mjs.map +1 -0
- package/dist/client/views/pages/index.d.mts +7 -0
- package/dist/client/views/pages/invite-page.d.mts +71 -0
- package/dist/client/views/pages/invite-page.d.mts.map +1 -0
- package/dist/client/views/pages/invite-page.mjs +86 -0
- package/dist/client/views/pages/invite-page.mjs.map +1 -0
- package/dist/client/views/pages/login-page.d.mts +76 -0
- package/dist/client/views/pages/login-page.d.mts.map +1 -0
- package/dist/client/views/pages/login-page.mjs +98 -0
- package/dist/client/views/pages/login-page.mjs.map +1 -0
- package/dist/client/views/pages/reset-password-page.d.mts +66 -0
- package/dist/client/views/pages/reset-password-page.d.mts.map +1 -0
- package/dist/client/views/pages/reset-password-page.mjs +105 -0
- package/dist/client/views/pages/reset-password-page.mjs.map +1 -0
- package/dist/client/views/pages/setup-page.d.mts +64 -0
- package/dist/client/views/pages/setup-page.d.mts.map +1 -0
- package/dist/client/views/pages/setup-page.mjs +91 -0
- package/dist/client/views/pages/setup-page.mjs.map +1 -0
- package/dist/client.d.mts +92 -3
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +54 -12
- package/dist/components/rich-text/index.d.mts +1 -0
- package/dist/components/rich-text/rich-text-renderer.d.mts +104 -0
- package/dist/components/rich-text/rich-text-renderer.d.mts.map +1 -0
- package/dist/components/rich-text/rich-text-renderer.mjs +210 -0
- package/dist/components/rich-text/rich-text-renderer.mjs.map +1 -0
- package/dist/index.d.mts +62 -3
- package/dist/index.mjs +54 -12
- package/dist/server/adapters/nextjs.d.mts +121 -0
- package/dist/server/adapters/nextjs.d.mts.map +1 -0
- package/dist/server/adapters/nextjs.mjs +111 -0
- package/dist/server/adapters/nextjs.mjs.map +1 -0
- package/dist/server/adapters/tanstack.d.mts +133 -0
- package/dist/server/adapters/tanstack.d.mts.map +1 -0
- package/dist/server/adapters/tanstack.mjs +90 -0
- package/dist/server/adapters/tanstack.mjs.map +1 -0
- package/dist/server/augmentation.d.mts +1523 -0
- package/dist/server/augmentation.d.mts.map +1 -0
- package/dist/server/auth-helpers.d.mts +143 -0
- package/dist/server/auth-helpers.d.mts.map +1 -0
- package/dist/server/auth-helpers.mjs +108 -0
- package/dist/server/auth-helpers.mjs.map +1 -0
- package/dist/server/block/block-builder.d.mts +319 -0
- package/dist/server/block/block-builder.d.mts.map +1 -0
- package/dist/server/block/block-builder.mjs +217 -0
- package/dist/server/block/block-builder.mjs.map +1 -0
- package/dist/server/block/index.d.mts +3 -0
- package/dist/server/block/introspection.d.mts +84 -0
- package/dist/server/block/introspection.d.mts.map +1 -0
- package/dist/server/block/introspection.mjs +89 -0
- package/dist/server/block/introspection.mjs.map +1 -0
- package/dist/server/block/prefetch.d.mts +78 -0
- package/dist/server/block/prefetch.d.mts.map +1 -0
- package/dist/server/block/prefetch.mjs +240 -0
- package/dist/server/block/prefetch.mjs.map +1 -0
- package/dist/server/fields/blocks.d.mts +139 -0
- package/dist/server/fields/blocks.d.mts.map +1 -0
- package/dist/server/fields/blocks.mjs +192 -0
- package/dist/server/fields/blocks.mjs.map +1 -0
- package/dist/server/fields/index.d.mts +48 -0
- package/dist/server/fields/index.d.mts.map +1 -0
- package/dist/server/fields/index.mjs +16 -0
- package/dist/server/fields/index.mjs.map +1 -0
- package/dist/server/fields/rich-text.d.mts +135 -0
- package/dist/server/fields/rich-text.d.mts.map +1 -0
- package/dist/server/fields/rich-text.mjs +188 -0
- package/dist/server/fields/rich-text.mjs.map +1 -0
- package/dist/server/i18n/index.d.mts +16 -0
- package/dist/server/i18n/index.d.mts.map +1 -0
- package/dist/server/i18n/index.mjs +44 -0
- package/dist/server/i18n/index.mjs.map +1 -0
- package/dist/server/i18n/messages/cs.mjs +461 -0
- package/dist/server/i18n/messages/cs.mjs.map +1 -0
- package/dist/server/i18n/messages/de.mjs +461 -0
- package/dist/server/i18n/messages/de.mjs.map +1 -0
- package/dist/server/i18n/messages/en.mjs +493 -0
- package/dist/server/i18n/messages/en.mjs.map +1 -0
- package/dist/server/i18n/messages/es.mjs +461 -0
- package/dist/server/i18n/messages/es.mjs.map +1 -0
- package/dist/server/i18n/messages/fr.mjs +461 -0
- package/dist/server/i18n/messages/fr.mjs.map +1 -0
- package/dist/server/i18n/messages/index.mjs +24 -0
- package/dist/server/i18n/messages/index.mjs.map +1 -0
- package/dist/server/i18n/messages/pl.mjs +461 -0
- package/dist/server/i18n/messages/pl.mjs.map +1 -0
- package/dist/server/i18n/messages/pt.mjs +464 -0
- package/dist/server/i18n/messages/pt.mjs.map +1 -0
- package/dist/server/i18n/messages/sk.mjs +490 -0
- package/dist/server/i18n/messages/sk.mjs.map +1 -0
- package/dist/server/index.d.mts +20 -0
- package/dist/server/modules/admin/functions/admin-config.mjs +348 -0
- package/dist/server/modules/admin/functions/admin-config.mjs.map +1 -0
- package/dist/server/modules/admin/functions/execute-action.d.mts +107 -0
- package/dist/server/modules/admin/functions/execute-action.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/execute-action.mjs +331 -0
- package/dist/server/modules/admin/functions/execute-action.mjs.map +1 -0
- package/dist/server/modules/admin/functions/locales.mjs +80 -0
- package/dist/server/modules/admin/functions/locales.mjs.map +1 -0
- package/dist/server/modules/admin/functions/preview.d.mts +70 -0
- package/dist/server/modules/admin/functions/preview.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/preview.mjs +243 -0
- package/dist/server/modules/admin/functions/preview.mjs.map +1 -0
- package/dist/server/modules/admin/functions/reactive.d.mts +99 -0
- package/dist/server/modules/admin/functions/reactive.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/reactive.mjs +378 -0
- package/dist/server/modules/admin/functions/reactive.mjs.map +1 -0
- package/dist/server/modules/admin/functions/setup.d.mts +84 -0
- package/dist/server/modules/admin/functions/setup.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/setup.mjs +131 -0
- package/dist/server/modules/admin/functions/setup.mjs.map +1 -0
- package/dist/server/modules/admin/functions/translations.mjs +125 -0
- package/dist/server/modules/admin/functions/translations.mjs.map +1 -0
- package/dist/server/modules/admin/functions/widget-data.d.mts +33 -0
- package/dist/server/modules/admin/functions/widget-data.d.mts.map +1 -0
- package/dist/server/modules/admin/functions/widget-data.mjs +70 -0
- package/dist/server/modules/admin/functions/widget-data.mjs.map +1 -0
- package/dist/server/modules/admin/index.d.mts +16879 -0
- package/dist/server/modules/admin/index.d.mts.map +1 -0
- package/dist/server/modules/admin/index.mjs +249 -0
- package/dist/server/modules/admin/index.mjs.map +1 -0
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.d.mts +3 -0
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.mjs +48 -0
- package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.mjs.map +1 -0
- package/dist/server/modules/admin-preferences/collections/locks.collection.d.mts +3 -0
- package/dist/server/modules/admin-preferences/collections/locks.collection.mjs +79 -0
- package/dist/server/modules/admin-preferences/collections/locks.collection.mjs.map +1 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.d.mts +1490 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.d.mts.map +1 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.mjs +57 -0
- package/dist/server/modules/admin-preferences/collections/saved-views.collection.mjs.map +1 -0
- package/dist/server/patch.d.mts +100 -0
- package/dist/server/patch.d.mts.map +1 -0
- package/dist/server/patch.mjs +1062 -0
- package/dist/server/patch.mjs.map +1 -0
- package/dist/server.d.mts +21 -250
- package/dist/server.mjs +19 -832
- package/dist/shared/preview-utils.d.mts +54 -0
- package/dist/shared/preview-utils.d.mts.map +1 -0
- package/dist/{preview-utils-BKQ9-TMa.mjs → shared/preview-utils.mjs} +2 -2
- package/dist/shared/preview-utils.mjs.map +1 -0
- package/dist/{saved-views.types-BMsz5mCy.d.mts → shared/types/saved-views.types.d.mts} +7 -2
- package/dist/shared/types/saved-views.types.d.mts.map +1 -0
- package/dist/shared.d.mts +3 -57
- package/dist/shared.mjs +1 -1
- package/package.json +12 -17
- package/dist/auth-layout-M8K8_q5R.mjs +0 -181
- package/dist/auth-layout-M8K8_q5R.mjs.map +0 -1
- package/dist/bulk-upload-dialog-D7w7W1Hl.mjs +0 -273
- package/dist/bulk-upload-dialog-D7w7W1Hl.mjs.map +0 -1
- package/dist/client-B7r47hEd.d.mts +0 -13403
- package/dist/client-B7r47hEd.d.mts.map +0 -1
- package/dist/client-njX1rZmi.mjs +0 -22612
- package/dist/client-njX1rZmi.mjs.map +0 -1
- package/dist/content-locales-provider-BXvuIgfg.mjs +0 -1650
- package/dist/content-locales-provider-BXvuIgfg.mjs.map +0 -1
- package/dist/dashboard-page-B4PGEdc2.mjs +0 -2500
- package/dist/dashboard-page-B4PGEdc2.mjs.map +0 -1
- package/dist/dashboard-page-mCY0pgZv.mjs +0 -3
- package/dist/dropzone-Do3awXKd.mjs +0 -634
- package/dist/dropzone-Do3awXKd.mjs.map +0 -1
- package/dist/forgot-password-page-Bcp-An4Y.mjs.map +0 -1
- package/dist/forgot-password-page-CEwsdLwn.mjs +0 -3
- package/dist/index-BYyqkWtn.d.mts +0 -2753
- package/dist/index-BYyqkWtn.d.mts.map +0 -1
- package/dist/login-page-BUnpCbCa.mjs +0 -3
- package/dist/login-page-CP4gA-dl.mjs +0 -298
- package/dist/login-page-CP4gA-dl.mjs.map +0 -1
- package/dist/preview-utils-BKQ9-TMa.mjs.map +0 -1
- package/dist/reset-password-page-BqfDmLxA.mjs +0 -281
- package/dist/reset-password-page-BqfDmLxA.mjs.map +0 -1
- package/dist/reset-password-page-CufHz3h3.mjs +0 -3
- package/dist/runtime-6VZM878K.mjs.map +0 -1
- package/dist/saved-views.types-BMsz5mCy.d.mts.map +0 -1
- package/dist/server.d.mts.map +0 -1
- package/dist/server.mjs.map +0 -1
- package/dist/setup-page-BNNzt_Z6.mjs +0 -3
- package/dist/setup-page-YAP_fzqh.mjs.map +0 -1
- package/dist/shared.d.mts.map +0 -1
- package/dist/use-auth-BoLmWtmU.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,453 +1,211 @@
|
|
|
1
1
|
# @questpie/admin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Server-driven admin UI for QUESTPIE. Reads your server schema via introspection and generates a complete admin panel — dashboard, table views, form editors, sidebar navigation, block editor — all from the definitions you already wrote on the server.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## How It Works
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
QUESTPIE follows a **server-first** architecture. All schema, layout, and behavior is defined on the server with the `questpie` core package. The admin UI consumes this via introspection — no duplicate config needed on the client.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- **Rich Text** - Tiptap editor with toolbar controls
|
|
14
|
-
- **Relations** - Single select, multi-picker with drag-and-drop
|
|
15
|
-
- **Layouts** - Sections, tabs, columns, grids, sidebars
|
|
16
|
-
- **Realtime** - SSE-powered live updates
|
|
17
|
-
- **Versioning** - Built-in version history
|
|
18
|
-
- **i18n Ready** - Localization support for content
|
|
9
|
+
| Layer | Package | Defines |
|
|
10
|
+
| ---------- | ------------------------------------- | ----------------------------------------------------------------- |
|
|
11
|
+
| **Server** | `questpie` + `@questpie/admin/server` | Schema, fields, access, hooks, sidebar, dashboard, branding |
|
|
12
|
+
| **Client** | `@questpie/admin/client` | Field renderers, view renderers, component registry, UI overrides |
|
|
19
13
|
|
|
20
14
|
## Installation
|
|
21
15
|
|
|
22
16
|
```bash
|
|
23
|
-
bun add @questpie/admin questpie @questpie/tanstack-query
|
|
24
|
-
bun add @tanstack/react-query
|
|
17
|
+
bun add @questpie/admin questpie @questpie/tanstack-query @tanstack/react-query
|
|
25
18
|
```
|
|
26
19
|
|
|
27
|
-
##
|
|
20
|
+
## Server Setup
|
|
28
21
|
|
|
29
|
-
|
|
22
|
+
The admin module plugs into the QUESTPIE builder on the server:
|
|
30
23
|
|
|
31
|
-
```
|
|
32
|
-
//
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
24
|
+
```ts
|
|
25
|
+
// questpie/server/builder.ts
|
|
26
|
+
import { q } from "questpie";
|
|
27
|
+
import { adminModule } from "@questpie/admin/server";
|
|
35
28
|
|
|
36
|
-
|
|
37
|
-
export const qab = qa<AppCMS>().use(adminModule).toNamespace();
|
|
29
|
+
export const qb = q.use(adminModule);
|
|
38
30
|
```
|
|
39
31
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
//
|
|
44
|
-
import {
|
|
45
|
-
|
|
46
|
-
export const
|
|
47
|
-
.
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}),
|
|
65
|
-
status: r.select({
|
|
66
|
-
label: "Status",
|
|
67
|
-
options: [
|
|
68
|
-
{ label: "Draft", value: "draft" },
|
|
69
|
-
{ label: "Published", value: "published" },
|
|
32
|
+
All admin configuration is defined server-side using the builder chain:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
// questpie/server/cms.ts
|
|
36
|
+
import { qb } from "./builder";
|
|
37
|
+
|
|
38
|
+
export const cms = qb
|
|
39
|
+
.collections({ posts, pages })
|
|
40
|
+
.globals({ siteSettings })
|
|
41
|
+
.branding({ name: { en: "My Admin Panel" } })
|
|
42
|
+
.sidebar(({ s, c }) =>
|
|
43
|
+
s.sidebar({
|
|
44
|
+
sections: [
|
|
45
|
+
s.section({
|
|
46
|
+
id: "content",
|
|
47
|
+
title: { en: "Content" },
|
|
48
|
+
items: [
|
|
49
|
+
{ type: "link", label: "Dashboard", href: "/admin", icon: c.icon("ph:house") },
|
|
50
|
+
{ type: "collection", collection: "posts" },
|
|
51
|
+
{ type: "collection", collection: "pages" },
|
|
52
|
+
{ type: "divider" },
|
|
53
|
+
{ type: "global", global: "siteSettings" },
|
|
54
|
+
],
|
|
55
|
+
}),
|
|
70
56
|
],
|
|
71
57
|
}),
|
|
72
|
-
publishedAt: r.datetime({
|
|
73
|
-
label: "Publish Date",
|
|
74
|
-
}),
|
|
75
|
-
authorId: r.relation({
|
|
76
|
-
label: "Author",
|
|
77
|
-
targetCollection: "users",
|
|
78
|
-
}),
|
|
79
|
-
}))
|
|
80
|
-
// List view with field proxy - ({ v, f }) gives autocomplete!
|
|
81
|
-
.list(({ v, f }) =>
|
|
82
|
-
v.table({
|
|
83
|
-
columns: [f.title, f.status, f.authorId, f.publishedAt],
|
|
84
|
-
}),
|
|
85
58
|
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
fields: [f.title, f.slug, f.content],
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
title: "Publishing",
|
|
96
|
-
fields: [f.status, f.publishedAt, f.authorId],
|
|
97
|
-
},
|
|
59
|
+
.dashboard(({ d, c, a }) =>
|
|
60
|
+
d.dashboard({
|
|
61
|
+
title: { en: "Dashboard" },
|
|
62
|
+
actions: [
|
|
63
|
+
a.create({ collection: "posts", label: { en: "New Post" }, icon: c.icon("ph:plus") }),
|
|
64
|
+
a.global({ global: "siteSettings", label: { en: "Settings" }, icon: c.icon("ph:gear-six") }),
|
|
98
65
|
],
|
|
66
|
+
items: [],
|
|
99
67
|
}),
|
|
100
|
-
);
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### 3. Build Admin Configuration
|
|
104
|
-
|
|
105
|
-
```typescript
|
|
106
|
-
// src/admin/admin.ts
|
|
107
|
-
import { qa, adminModule } from "@questpie/admin/client";
|
|
108
|
-
import { postsAdmin } from "./collections/posts";
|
|
109
|
-
import { sidebarConfig } from "./sidebar";
|
|
110
|
-
|
|
111
|
-
export const admin = qa()
|
|
112
|
-
.use(adminModule)
|
|
113
|
-
.branding({
|
|
114
|
-
name: "My Admin",
|
|
115
|
-
})
|
|
116
|
-
.collections({
|
|
117
|
-
posts: postsAdmin,
|
|
118
|
-
})
|
|
119
|
-
.sidebar(sidebarConfig);
|
|
120
|
-
|
|
121
|
-
// Module augmentation for global type inference
|
|
122
|
-
declare module "@questpie/admin/client" {
|
|
123
|
-
interface AdminTypeRegistry {
|
|
124
|
-
cms: AppCMS;
|
|
125
|
-
admin: typeof admin;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### 4. Configure Sidebar
|
|
131
|
-
|
|
132
|
-
```typescript
|
|
133
|
-
// src/admin/sidebar.ts
|
|
134
|
-
import { qa } from "@questpie/admin/client";
|
|
135
|
-
import { HouseIcon, FileTextIcon } from "@phosphor-icons/react";
|
|
136
|
-
|
|
137
|
-
export const sidebarConfig = qa
|
|
138
|
-
.sidebar()
|
|
139
|
-
.section("main", (s) =>
|
|
140
|
-
s.items([
|
|
141
|
-
{ type: "link", label: "Dashboard", href: "/admin", icon: HouseIcon },
|
|
142
|
-
]),
|
|
143
68
|
)
|
|
144
|
-
.
|
|
145
|
-
s
|
|
146
|
-
.title("Content")
|
|
147
|
-
.icon(FileTextIcon)
|
|
148
|
-
.items([{ type: "collection", collection: "posts", icon: FileTextIcon }]),
|
|
149
|
-
);
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### 5. Setup Tailwind CSS
|
|
69
|
+
.build({ ... });
|
|
153
70
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
```css
|
|
157
|
-
/* src/styles.css */
|
|
158
|
-
@import "tailwindcss";
|
|
159
|
-
@import "tw-animate-css";
|
|
160
|
-
@import "shadcn/tailwind.css";
|
|
161
|
-
@import "@questpie/admin/styles/index.css";
|
|
162
|
-
|
|
163
|
-
/* IMPORTANT: Tell Tailwind to scan admin package for utility classes */
|
|
164
|
-
@source "../node_modules/@questpie/admin/dist";
|
|
165
|
-
|
|
166
|
-
/* Your app's theme variables... */
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
### 6. Mount in React
|
|
170
|
-
|
|
171
|
-
```tsx
|
|
172
|
-
// routes/admin.tsx (TanStack Router example)
|
|
173
|
-
import { Admin, AdminLayoutProvider } from "@questpie/admin/client";
|
|
174
|
-
import { Link, Outlet, useLocation } from "@tanstack/react-router";
|
|
175
|
-
import { admin } from "~/admin/admin";
|
|
176
|
-
import { cmsClient } from "~/lib/cms-client";
|
|
177
|
-
import { queryClient } from "~/lib/query-client";
|
|
178
|
-
|
|
179
|
-
// Create runtime instance
|
|
180
|
-
const adminInstance = Admin.from(admin);
|
|
181
|
-
|
|
182
|
-
function AdminLayout() {
|
|
183
|
-
const location = useLocation();
|
|
184
|
-
|
|
185
|
-
return (
|
|
186
|
-
<AdminLayoutProvider
|
|
187
|
-
admin={adminInstance}
|
|
188
|
-
client={cmsClient}
|
|
189
|
-
queryClient={queryClient}
|
|
190
|
-
LinkComponent={Link}
|
|
191
|
-
activeRoute={location.pathname}
|
|
192
|
-
basePath="/admin"
|
|
193
|
-
>
|
|
194
|
-
<Outlet />
|
|
195
|
-
</AdminLayoutProvider>
|
|
196
|
-
);
|
|
197
|
-
}
|
|
71
|
+
export type AppCMS = typeof cms;
|
|
198
72
|
```
|
|
199
73
|
|
|
200
|
-
|
|
74
|
+
### Collection Admin Config
|
|
201
75
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
```typescript
|
|
205
|
-
import { qa, adminModule } from "@questpie/admin/client";
|
|
76
|
+
Admin metadata, list views, and form views are defined on the collection itself:
|
|
206
77
|
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
### Collection Builder
|
|
218
|
-
|
|
219
|
-
```typescript
|
|
220
|
-
const postsAdmin = qa
|
|
221
|
-
.collection("posts")
|
|
222
|
-
.meta({ label: "Posts", icon: PostIcon })
|
|
223
|
-
.fields(({ r }) => ({
|
|
224
|
-
// r = FieldRegistryProxy with autocomplete for registered fields
|
|
225
|
-
title: r.text({ maxLength: 200 }),
|
|
226
|
-
content: r.richText(),
|
|
227
|
-
status: r.select({ options: [...] }),
|
|
78
|
+
```ts
|
|
79
|
+
const posts = qb.collection("posts")
|
|
80
|
+
.fields((f) => ({
|
|
81
|
+
title: f.text({ label: "Title", required: true }),
|
|
82
|
+
content: f.richText({ label: "Content" }),
|
|
83
|
+
status: f.select({ label: "Status", options: ["draft", "published"] }),
|
|
84
|
+
cover: f.upload({ to: "assets", mimeTypes: ["image/*"] }),
|
|
85
|
+
publishedAt: f.date(),
|
|
228
86
|
}))
|
|
229
|
-
.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
.form(({ v, f }) => v.form({
|
|
234
|
-
fields: [f.title, f.content, f.status],
|
|
235
|
-
}));
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Global Builder
|
|
239
|
-
|
|
240
|
-
```typescript
|
|
241
|
-
const settingsAdmin = qa
|
|
242
|
-
.global("settings")
|
|
243
|
-
.meta({ label: "Site Settings", icon: SettingsIcon })
|
|
244
|
-
.fields(({ r }) => ({
|
|
245
|
-
siteName: r.text({ maxLength: 100 }),
|
|
246
|
-
logo: r.text(), // TODO: image field
|
|
87
|
+
.title(({ f }) => f.title)
|
|
88
|
+
.admin(({ c }) => ({
|
|
89
|
+
label: { en: "Blog Posts" },
|
|
90
|
+
icon: c.icon("ph:article"),
|
|
247
91
|
}))
|
|
92
|
+
.list(({ v, f }) =>
|
|
93
|
+
v.table({
|
|
94
|
+
columns: [f.title, f.status, f.publishedAt],
|
|
95
|
+
}),
|
|
96
|
+
)
|
|
248
97
|
.form(({ v, f }) =>
|
|
249
98
|
v.form({
|
|
250
|
-
|
|
99
|
+
layout: "with-sidebar",
|
|
100
|
+
sidebar: { position: "right", fields: [f.status, f.publishedAt, f.cover] },
|
|
101
|
+
fields: [
|
|
102
|
+
{ type: "section", label: "Content", fields: [f.title, f.content] },
|
|
103
|
+
],
|
|
251
104
|
}),
|
|
252
105
|
);
|
|
253
106
|
```
|
|
254
107
|
|
|
255
|
-
###
|
|
256
|
-
|
|
257
|
-
```typescript
|
|
258
|
-
const sidebarConfig = qa
|
|
259
|
-
.sidebar()
|
|
260
|
-
.section("main", (s) =>
|
|
261
|
-
s.items([
|
|
262
|
-
{ type: "link", label: "Dashboard", href: "/admin", icon: HomeIcon },
|
|
263
|
-
]),
|
|
264
|
-
)
|
|
265
|
-
.section("content", (s) =>
|
|
266
|
-
s
|
|
267
|
-
.title("Content")
|
|
268
|
-
.items([
|
|
269
|
-
{ type: "collection", collection: "posts" },
|
|
270
|
-
{ type: "collection", collection: "pages" },
|
|
271
|
-
{ type: "divider" },
|
|
272
|
-
{ type: "global", global: "settings" },
|
|
273
|
-
]),
|
|
274
|
-
);
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
**Typed Sidebar (Recommended)**
|
|
278
|
-
|
|
279
|
-
```typescript
|
|
280
|
-
import type { AppCMS } from "./server/cms";
|
|
281
|
-
import type { SidebarItemForApp } from "@questpie/admin/client";
|
|
108
|
+
### Component References
|
|
282
109
|
|
|
283
|
-
|
|
284
|
-
s.title("Content").items([
|
|
285
|
-
{ type: "collection", collection: "posts" },
|
|
286
|
-
{ type: "global", global: "settings" },
|
|
287
|
-
]),
|
|
288
|
-
);
|
|
110
|
+
The server emits serializable `ComponentReference` objects instead of React elements. Use the `c` factory in admin config callbacks:
|
|
289
111
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
{ type: "
|
|
293
|
-
{ type: "
|
|
294
|
-
|
|
112
|
+
```ts
|
|
113
|
+
.admin(({ c }) => ({
|
|
114
|
+
icon: c.icon("ph:article"), // → { type: "icon", props: { name: "ph:article" } }
|
|
115
|
+
badge: c.badge({ text: "New" }), // → { type: "badge", props: { text: "New" } }
|
|
116
|
+
}))
|
|
295
117
|
```
|
|
296
118
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
The `adminModule` provides these field types:
|
|
119
|
+
Icons use the [Iconify](https://icon-sets.iconify.design/) format with the Phosphor set (`ph:icon-name`).
|
|
300
120
|
|
|
301
|
-
|
|
302
|
-
| ---------- | ---------------------------------- | --------------------------- |
|
|
303
|
-
| `text` | `r.text({ maxLength })` | Single-line text input |
|
|
304
|
-
| `email` | `r.email()` | Email input with validation |
|
|
305
|
-
| `password` | `r.password()` | Password input |
|
|
306
|
-
| `textarea` | `r.textarea({ rows })` | Multi-line text |
|
|
307
|
-
| `number` | `r.number({ min, max })` | Numeric input |
|
|
308
|
-
| `checkbox` | `r.checkbox()` | Boolean checkbox |
|
|
309
|
-
| `switch` | `r.switch()` | Toggle switch |
|
|
310
|
-
| `select` | `r.select({ options })` | Dropdown select |
|
|
311
|
-
| `date` | `r.date()` | Date picker |
|
|
312
|
-
| `datetime` | `r.datetime()` | Date + time picker |
|
|
313
|
-
| `relation` | `r.relation({ targetCollection })` | Relation field |
|
|
314
|
-
| `json` | `r.json()` | JSON editor |
|
|
315
|
-
| `richText` | `r.richText()` | Rich text editor (Tiptap) |
|
|
121
|
+
### Form Layouts
|
|
316
122
|
|
|
317
|
-
|
|
123
|
+
```ts
|
|
124
|
+
// Sections
|
|
125
|
+
.form(({ v, f }) => v.form({
|
|
126
|
+
fields: [
|
|
127
|
+
{ type: "section", label: "Basic Info", layout: "grid", columns: 2,
|
|
128
|
+
fields: [f.name, f.email, f.phone, f.city] },
|
|
129
|
+
{ type: "section", label: "Content", fields: [f.body] },
|
|
130
|
+
],
|
|
131
|
+
}))
|
|
318
132
|
|
|
319
|
-
|
|
133
|
+
// Sidebar layout
|
|
134
|
+
.form(({ v, f }) => v.form({
|
|
135
|
+
layout: "with-sidebar",
|
|
136
|
+
sidebar: { position: "right", fields: [f.status, f.image] },
|
|
137
|
+
fields: [f.title, f.content],
|
|
138
|
+
}))
|
|
320
139
|
|
|
321
|
-
|
|
140
|
+
// Tabs
|
|
322
141
|
.form(({ v, f }) => v.form({
|
|
323
|
-
|
|
324
|
-
{
|
|
325
|
-
|
|
326
|
-
description: "Main details",
|
|
327
|
-
fields: [f.title, f.slug],
|
|
328
|
-
collapsible: true,
|
|
329
|
-
defaultOpen: true,
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
title: "Content",
|
|
333
|
-
fields: [f.content],
|
|
334
|
-
},
|
|
142
|
+
tabs: [
|
|
143
|
+
{ id: "content", label: "Content", fields: [f.title, f.body] },
|
|
144
|
+
{ id: "meta", label: "Metadata", fields: [f.seoTitle, f.seoDescription] },
|
|
335
145
|
],
|
|
336
146
|
}))
|
|
337
147
|
```
|
|
338
148
|
|
|
339
|
-
###
|
|
340
|
-
|
|
341
|
-
```typescript
|
|
342
|
-
sections: [
|
|
343
|
-
{
|
|
344
|
-
title: "Contact",
|
|
345
|
-
layout: "columns",
|
|
346
|
-
columns: 2,
|
|
347
|
-
fields: [f.firstName, f.lastName, f.email, f.phone],
|
|
348
|
-
},
|
|
349
|
-
];
|
|
350
|
-
```
|
|
149
|
+
### Reactive Fields
|
|
351
150
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
```typescript
|
|
355
|
-
sections: [
|
|
356
|
-
{
|
|
357
|
-
layout: "grid",
|
|
358
|
-
grid: { columns: 4, gap: 4 },
|
|
359
|
-
fields: [
|
|
360
|
-
{ field: f.title, span: 4 }, // full width
|
|
361
|
-
{ field: f.price, span: 1 }, // 1/4
|
|
362
|
-
{ field: f.currency, span: 1 }, // 1/4
|
|
363
|
-
{ field: f.stock, span: 2 }, // 2/4
|
|
364
|
-
],
|
|
365
|
-
},
|
|
366
|
-
];
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
### Tabs
|
|
151
|
+
Server-evaluated reactive behaviors in form config:
|
|
370
152
|
|
|
371
|
-
```
|
|
153
|
+
```ts
|
|
372
154
|
.form(({ v, f }) => v.form({
|
|
373
|
-
|
|
155
|
+
fields: [
|
|
374
156
|
{
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
label: "Metadata",
|
|
382
|
-
fields: [f.seo, f.tags],
|
|
157
|
+
field: f.slug,
|
|
158
|
+
compute: {
|
|
159
|
+
handler: ({ data }) => slugify(data.title),
|
|
160
|
+
deps: ({ data }) => [data.title],
|
|
161
|
+
debounce: 300,
|
|
162
|
+
},
|
|
383
163
|
},
|
|
164
|
+
{ field: f.publishedAt, hidden: ({ data }) => !data.published },
|
|
165
|
+
{ field: f.reason, readOnly: ({ data }) => data.status !== "cancelled" },
|
|
384
166
|
],
|
|
385
167
|
}))
|
|
386
168
|
```
|
|
387
169
|
|
|
388
|
-
###
|
|
170
|
+
### Dashboard Actions
|
|
389
171
|
|
|
390
|
-
```
|
|
391
|
-
.
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
{
|
|
172
|
+
```ts
|
|
173
|
+
.dashboard(({ d, c, a }) => d.dashboard({
|
|
174
|
+
actions: [
|
|
175
|
+
a.create({ collection: "posts", label: { en: "New Post" }, icon: c.icon("ph:plus"), variant: "primary" }),
|
|
176
|
+
a.global({ global: "siteSettings", label: { en: "Settings" }, icon: c.icon("ph:gear-six") }),
|
|
177
|
+
a.link({ href: "/", label: { en: "Open Site" }, icon: c.icon("ph:arrow-square-out"), variant: "outline" }),
|
|
178
|
+
],
|
|
179
|
+
items: [
|
|
180
|
+
{ type: "section", items: [
|
|
181
|
+
{ type: "stats", collection: "posts", label: "Posts" },
|
|
182
|
+
]},
|
|
395
183
|
],
|
|
396
|
-
sidebar: {
|
|
397
|
-
position: "right",
|
|
398
|
-
width: "300px",
|
|
399
|
-
fields: [f.status, f.publishedAt],
|
|
400
|
-
},
|
|
401
184
|
}))
|
|
402
185
|
```
|
|
403
186
|
|
|
404
|
-
##
|
|
405
|
-
|
|
406
|
-
```typescript
|
|
407
|
-
.fields(({ r }) => ({
|
|
408
|
-
status: r.select({
|
|
409
|
-
options: [
|
|
410
|
-
{ label: "Active", value: "active" },
|
|
411
|
-
{ label: "Cancelled", value: "cancelled" },
|
|
412
|
-
],
|
|
413
|
-
}),
|
|
414
|
-
// Show only when status is "cancelled"
|
|
415
|
-
cancellationReason: r.textarea({
|
|
416
|
-
visible: (values) => values.status === "cancelled",
|
|
417
|
-
required: (values) => values.status === "cancelled",
|
|
418
|
-
}),
|
|
419
|
-
// Readonly unless draft
|
|
420
|
-
publishedAt: r.datetime({
|
|
421
|
-
readOnly: (values) => values.status !== "draft",
|
|
422
|
-
}),
|
|
423
|
-
}))
|
|
424
|
-
```
|
|
187
|
+
## Client Setup
|
|
425
188
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
tags: r.relation({
|
|
437
|
-
label: "Tags",
|
|
438
|
-
targetCollection: "tags",
|
|
439
|
-
type: "multiple",
|
|
440
|
-
orderable: true,
|
|
441
|
-
}),
|
|
442
|
-
}))
|
|
189
|
+
The client creates a typed admin builder and mounts the admin UI in React:
|
|
190
|
+
|
|
191
|
+
### 1. Admin Builder
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
// questpie/admin/builder.ts
|
|
195
|
+
import { qa, adminModule } from "@questpie/admin/client";
|
|
196
|
+
import type { AppCMS } from "../server/cms";
|
|
197
|
+
|
|
198
|
+
export const admin = qa<AppCMS>().use(adminModule);
|
|
443
199
|
```
|
|
444
200
|
|
|
445
|
-
|
|
201
|
+
### 2. Typed Hooks
|
|
446
202
|
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
203
|
+
```ts
|
|
204
|
+
// questpie/admin/hooks.ts
|
|
205
|
+
import { createTypedHooks } from "@questpie/admin/client";
|
|
206
|
+
import type { AppCMS } from "../server/cms";
|
|
207
|
+
|
|
208
|
+
export const {
|
|
451
209
|
useCollectionList,
|
|
452
210
|
useCollectionItem,
|
|
453
211
|
useCollectionCreate,
|
|
@@ -455,116 +213,129 @@ import {
|
|
|
455
213
|
useCollectionDelete,
|
|
456
214
|
useGlobal,
|
|
457
215
|
useGlobalUpdate,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}
|
|
216
|
+
} = createTypedHooks<AppCMS>();
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### 3. Mount in React
|
|
220
|
+
|
|
221
|
+
```tsx
|
|
222
|
+
// routes/admin.tsx
|
|
223
|
+
import { AdminRouter } from "@questpie/admin/client";
|
|
224
|
+
import { admin } from "~/questpie/admin/builder";
|
|
225
|
+
import { cmsClient } from "~/lib/cms-client";
|
|
226
|
+
import { queryClient } from "~/lib/query-client";
|
|
227
|
+
|
|
228
|
+
export default function AdminRoute() {
|
|
229
|
+
return (
|
|
230
|
+
<AdminRouter
|
|
231
|
+
admin={admin}
|
|
232
|
+
client={cmsClient}
|
|
233
|
+
queryClient={queryClient}
|
|
234
|
+
basePath="/admin"
|
|
235
|
+
/>
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
```
|
|
467
239
|
|
|
468
|
-
|
|
469
|
-
const { data: post } = useCollectionItem("posts", id);
|
|
240
|
+
### 4. Tailwind CSS
|
|
470
241
|
|
|
471
|
-
|
|
472
|
-
const createPost = useCollectionCreate("posts");
|
|
473
|
-
const updatePost = useCollectionUpdate("posts");
|
|
474
|
-
const deletePost = useCollectionDelete("posts");
|
|
242
|
+
Import admin styles and scan the admin package:
|
|
475
243
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
244
|
+
```css
|
|
245
|
+
@import "tailwindcss";
|
|
246
|
+
@import "@questpie/admin/styles/index.css";
|
|
479
247
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
basePath: s.basePath,
|
|
485
|
-
}));
|
|
248
|
+
@source "../node_modules/@questpie/admin/dist";
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Block Editor
|
|
486
252
|
|
|
487
|
-
|
|
488
|
-
const authClient = useAuthClient();
|
|
489
|
-
const session = authClient.useSession();
|
|
253
|
+
The admin includes a full drag-and-drop block editor. Blocks are defined server-side:
|
|
490
254
|
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
255
|
+
```ts
|
|
256
|
+
const heroBlock = qb
|
|
257
|
+
.block("hero")
|
|
258
|
+
.admin(({ c }) => ({
|
|
259
|
+
label: { en: "Hero Section" },
|
|
260
|
+
icon: c.icon("ph:image"),
|
|
261
|
+
category: { label: "Sections", icon: c.icon("ph:layout") },
|
|
262
|
+
}))
|
|
263
|
+
.fields((f) => ({
|
|
264
|
+
title: f.text({ required: true }),
|
|
265
|
+
subtitle: f.textarea(),
|
|
266
|
+
backgroundImage: f.upload({ to: "assets", mimeTypes: ["image/*"] }),
|
|
267
|
+
}))
|
|
268
|
+
.prefetch({ with: { backgroundImage: true } });
|
|
494
269
|
```
|
|
495
270
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
```
|
|
499
|
-
import {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
271
|
+
Render blocks on the client with `BlockRenderer`:
|
|
272
|
+
|
|
273
|
+
```tsx
|
|
274
|
+
import { BlockRenderer, createBlockRegistry } from "@questpie/admin/client";
|
|
275
|
+
|
|
276
|
+
const registry = createBlockRegistry({
|
|
277
|
+
hero: ({ block }) => (
|
|
278
|
+
<section style={{ backgroundImage: `url(${block.backgroundImage?.url})` }}>
|
|
279
|
+
<h1>{block.title}</h1>
|
|
280
|
+
<p>{block.subtitle}</p>
|
|
281
|
+
</section>
|
|
282
|
+
),
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
function Page({ blocks }) {
|
|
286
|
+
return <BlockRenderer blocks={blocks} registry={registry} />;
|
|
287
|
+
}
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
## Actions System
|
|
291
|
+
|
|
292
|
+
Collection-level actions with multiple handler types:
|
|
293
|
+
|
|
294
|
+
| Type | Description |
|
|
295
|
+
| ---------- | ------------------------------------------- |
|
|
296
|
+
| `navigate` | Client-side routing |
|
|
297
|
+
| `api` | HTTP API call |
|
|
298
|
+
| `form` | Dialog with field inputs |
|
|
299
|
+
| `server` | Server-side execution with full app context |
|
|
300
|
+
| `custom` | Arbitrary client-side code |
|
|
301
|
+
|
|
302
|
+
Actions can be scoped to `header` (list toolbar), `bulk` (selected items), `single` (per-item), or `row`.
|
|
303
|
+
|
|
304
|
+
## Realtime
|
|
305
|
+
|
|
306
|
+
SSE-powered live updates are enabled by default. Collection lists and dashboard widgets auto-refresh when data changes.
|
|
307
|
+
|
|
308
|
+
```ts
|
|
309
|
+
// Disable globally
|
|
310
|
+
<AdminRouter admin={admin} client={client} realtime={false} />
|
|
311
|
+
|
|
312
|
+
// Disable per collection view
|
|
313
|
+
.list(({ v }) => v.table({ realtime: false }))
|
|
528
314
|
```
|
|
529
315
|
|
|
530
316
|
## Package Exports
|
|
531
317
|
|
|
532
|
-
```
|
|
533
|
-
//
|
|
534
|
-
import {
|
|
535
|
-
qa,
|
|
536
|
-
Admin,
|
|
537
|
-
AdminBuilder,
|
|
538
|
-
adminModule,
|
|
539
|
-
AdminProvider,
|
|
540
|
-
useAdminStore,
|
|
541
|
-
useCollectionList,
|
|
542
|
-
useAdminRoutes,
|
|
543
|
-
AdminLayoutProvider,
|
|
544
|
-
CollectionList,
|
|
545
|
-
CollectionForm,
|
|
546
|
-
} from "@questpie/admin/client";
|
|
318
|
+
```ts
|
|
319
|
+
// Client (React components, builder, hooks)
|
|
320
|
+
import { qa, adminModule, AdminRouter, createTypedHooks, BlockRenderer, createBlockRegistry } from "@questpie/admin/client";
|
|
547
321
|
|
|
548
|
-
// Server
|
|
549
|
-
import { adminModule } from "@questpie/admin/server";
|
|
322
|
+
// Server (admin module for QUESTPIE builder)
|
|
323
|
+
import { adminModule, adminRpc } from "@questpie/admin/server";
|
|
550
324
|
|
|
551
325
|
// Styles
|
|
552
|
-
import "@questpie/admin/
|
|
326
|
+
import "@questpie/admin/styles/index.css";
|
|
553
327
|
```
|
|
554
328
|
|
|
555
|
-
##
|
|
556
|
-
|
|
557
|
-
Built with Tailwind CSS v4 + shadcn/ui:
|
|
329
|
+
## Component Stack
|
|
558
330
|
|
|
559
|
-
-
|
|
560
|
-
-
|
|
561
|
-
-
|
|
562
|
-
-
|
|
563
|
-
- Styles scoped under `.questpie-admin`
|
|
331
|
+
- **Primitives**: `@base-ui/react` (NOT Radix)
|
|
332
|
+
- **Icons**: `@iconify/react` with Phosphor set (`ph:icon-name`)
|
|
333
|
+
- **Styling**: Tailwind CSS v4 + shadcn components
|
|
334
|
+
- **Toast**: `sonner`
|
|
564
335
|
|
|
565
|
-
##
|
|
336
|
+
## Documentation
|
|
566
337
|
|
|
567
|
-
|
|
338
|
+
Full documentation: [https://questpie.com/docs/admin](https://questpie.com/docs/admin)
|
|
568
339
|
|
|
569
340
|
## License
|
|
570
341
|
|