@questpie/admin 1.1.1 → 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-D1DqawtP.d.mts +0 -13403
- package/dist/client-D1DqawtP.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-B4H3amCD.d.mts +0 -2753
- package/dist/index-B4H3amCD.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../src/server/modules/admin/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiHa;;;;;;;;;;;;;;;;;MAwFA,KAAA,CA6JX,EAAA,MAAA,GAAA,SAAA;IAAA,CAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA7JW,aAAW,UAAA,CAAA,2BAAA,uBAAA;;UA6JtB,UAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAA,OAAA,uBAAA,CAAA,MAAA,EAAA,OAAA,CAAA;UAAA,QAAA,uBAAA,CAAA,MAAA,EAAA,OAAA,CAAA;UAAA,QAAA,uBAAA,CAAA,MAAA,EAAA,OAAA,CAAA"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { adminFields } from "../../fields/index.mjs";
|
|
2
|
+
import { adminPreferencesCollection } from "../admin-preferences/collections/admin-preferences.collection.mjs";
|
|
3
|
+
import { locksCollection } from "../admin-preferences/collections/locks.collection.mjs";
|
|
4
|
+
import { savedViewsCollection } from "../admin-preferences/collections/saved-views.collection.mjs";
|
|
5
|
+
import { adminConfigFunctions, getAdminConfig } from "./functions/admin-config.mjs";
|
|
6
|
+
import { actionFunctions, executeAction, executeActionFn, getActionsConfig, getActionsConfigFn } from "./functions/execute-action.mjs";
|
|
7
|
+
import { getContentLocales, localeFunctions } from "./functions/locales.mjs";
|
|
8
|
+
import { createPreviewFunctions, createPreviewTokenVerifier, getPreviewUrl, previewFunctions, verifyPreviewTokenDirect } from "./functions/preview.mjs";
|
|
9
|
+
import { batchReactive, fieldOptions, reactiveFunctions } from "./functions/reactive.mjs";
|
|
10
|
+
import { createFirstAdmin, isSetupRequired, setupFunctions } from "./functions/setup.mjs";
|
|
11
|
+
import { getAdminLocales, getAdminTranslations, translationFunctions } from "./functions/translations.mjs";
|
|
12
|
+
import { fetchWidgetData, widgetDataFunctions } from "./functions/widget-data.mjs";
|
|
13
|
+
import { CollectionBuilder, q, rpc, starterModule } from "questpie";
|
|
14
|
+
|
|
15
|
+
//#region src/server/modules/admin/index.ts
|
|
16
|
+
/**
|
|
17
|
+
* Admin Module
|
|
18
|
+
*
|
|
19
|
+
* Complete backend module for running the QUESTPIE admin panel.
|
|
20
|
+
* This is the main entry point for setting up the admin backend.
|
|
21
|
+
*
|
|
22
|
+
* Includes:
|
|
23
|
+
* - Auth collections (users, sessions, accounts, verifications, apikeys)
|
|
24
|
+
* - Assets collection with file upload support
|
|
25
|
+
* - Admin saved views collection (named view configurations)
|
|
26
|
+
* - Admin preferences collection (user-specific view state)
|
|
27
|
+
* - Setup functions for bootstrapping first admin
|
|
28
|
+
* - Core auth options (Better Auth configuration)
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { q } from "questpie";
|
|
33
|
+
* import { adminModule } from "@questpie/admin/server";
|
|
34
|
+
*
|
|
35
|
+
* const cms = q({ name: "my-app" })
|
|
36
|
+
* .use(adminModule)
|
|
37
|
+
* .collections({
|
|
38
|
+
* posts: postsCollection,
|
|
39
|
+
* })
|
|
40
|
+
* .build({
|
|
41
|
+
* db: { url: process.env.DATABASE_URL },
|
|
42
|
+
* storage: { driver: s3Driver(...) },
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
const r = rpc();
|
|
47
|
+
const adminRpc = r.router({
|
|
48
|
+
...setupFunctions,
|
|
49
|
+
...localeFunctions,
|
|
50
|
+
...previewFunctions,
|
|
51
|
+
...adminConfigFunctions,
|
|
52
|
+
...actionFunctions,
|
|
53
|
+
...translationFunctions,
|
|
54
|
+
...widgetDataFunctions,
|
|
55
|
+
...reactiveFunctions
|
|
56
|
+
});
|
|
57
|
+
function bindCollectionToBuilder(collection, builder) {
|
|
58
|
+
const rebound = new CollectionBuilder({
|
|
59
|
+
...collection.state,
|
|
60
|
+
"~questpieApp": builder
|
|
61
|
+
});
|
|
62
|
+
if (collection._indexesFn) rebound._indexesFn = collection._indexesFn;
|
|
63
|
+
return rebound;
|
|
64
|
+
}
|
|
65
|
+
const adminBaseBuilder = q({ name: "questpie-admin" }).use(starterModule).listViews({ table: q.listView("table") }).editViews({ form: q.editView("form") }).components({
|
|
66
|
+
icon: q.component("icon"),
|
|
67
|
+
badge: q.component("badge")
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* Admin Module - the complete backend for QUESTPIE admin panel.
|
|
71
|
+
*
|
|
72
|
+
* This module provides everything needed to run the admin panel:
|
|
73
|
+
* - User authentication (Better Auth) - from starterModule
|
|
74
|
+
* - File uploads (assets) - from starterModule
|
|
75
|
+
* - Saved views for collection filters (named configurations)
|
|
76
|
+
* - User preferences (view state synced across devices)
|
|
77
|
+
* - Setup flow for first admin creation
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* import { q } from "questpie";
|
|
82
|
+
* import { adminModule } from "@questpie/admin/server";
|
|
83
|
+
*
|
|
84
|
+
* const cms = q({ name: "my-app" })
|
|
85
|
+
* .use(adminModule)
|
|
86
|
+
* .collections({
|
|
87
|
+
* posts: postsCollection,
|
|
88
|
+
* })
|
|
89
|
+
* .build({
|
|
90
|
+
* db: { url: process.env.DATABASE_URL },
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* // Extend assets collection with custom fields
|
|
97
|
+
* import { q, collection, varchar } from "questpie";
|
|
98
|
+
* import { adminModule } from "@questpie/admin/server";
|
|
99
|
+
*
|
|
100
|
+
* const cms = q({ name: "my-app" })
|
|
101
|
+
* .use(adminModule)
|
|
102
|
+
* .collections({
|
|
103
|
+
* // Override assets with additional fields
|
|
104
|
+
* assets: adminModule.state.collections.assets.merge(
|
|
105
|
+
* collection("assets").fields({
|
|
106
|
+
* folder: varchar("folder", { length: 255 }),
|
|
107
|
+
* tags: varchar("tags", { length: 1000 }),
|
|
108
|
+
* })
|
|
109
|
+
* ),
|
|
110
|
+
* })
|
|
111
|
+
* .build({ ... });
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
const adminModule = adminBaseBuilder.fields(adminFields).collections({
|
|
115
|
+
user: bindCollectionToBuilder(starterModule.state.collections.user, adminBaseBuilder).admin(({ c }) => ({
|
|
116
|
+
label: { key: "defaults.users.label" },
|
|
117
|
+
icon: c.icon("ph:users"),
|
|
118
|
+
description: { key: "defaults.users.description" },
|
|
119
|
+
group: "administration"
|
|
120
|
+
})).list(({ v, f, a }) => v.table({
|
|
121
|
+
columns: [
|
|
122
|
+
f.name,
|
|
123
|
+
f.email,
|
|
124
|
+
f.role,
|
|
125
|
+
f.banned
|
|
126
|
+
],
|
|
127
|
+
searchable: [f.name, f.email],
|
|
128
|
+
defaultSort: {
|
|
129
|
+
field: f.name,
|
|
130
|
+
direction: "asc"
|
|
131
|
+
},
|
|
132
|
+
actions: {
|
|
133
|
+
header: {
|
|
134
|
+
primary: [a.create],
|
|
135
|
+
secondary: []
|
|
136
|
+
},
|
|
137
|
+
row: [a.delete],
|
|
138
|
+
bulk: [a.deleteMany]
|
|
139
|
+
}
|
|
140
|
+
})).form(({ v, f }) => v.form({
|
|
141
|
+
sidebar: {
|
|
142
|
+
position: "right",
|
|
143
|
+
fields: [
|
|
144
|
+
f.image,
|
|
145
|
+
f.role,
|
|
146
|
+
f.emailVerified
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
fields: [{
|
|
150
|
+
type: "tabs",
|
|
151
|
+
tabs: [{
|
|
152
|
+
id: "profile",
|
|
153
|
+
label: { key: "defaults.users.tabs.profile" },
|
|
154
|
+
fields: [{
|
|
155
|
+
type: "section",
|
|
156
|
+
label: { key: "defaults.users.sections.basicInfo" },
|
|
157
|
+
layout: "grid",
|
|
158
|
+
columns: 2,
|
|
159
|
+
fields: [f.name, f.email]
|
|
160
|
+
}]
|
|
161
|
+
}, {
|
|
162
|
+
id: "security",
|
|
163
|
+
label: { key: "defaults.users.tabs.security" },
|
|
164
|
+
fields: [{
|
|
165
|
+
type: "section",
|
|
166
|
+
label: { key: "defaults.users.sections.accessControl" },
|
|
167
|
+
fields: [
|
|
168
|
+
f.banned,
|
|
169
|
+
f.banReason,
|
|
170
|
+
f.banExpires
|
|
171
|
+
]
|
|
172
|
+
}]
|
|
173
|
+
}]
|
|
174
|
+
}]
|
|
175
|
+
})),
|
|
176
|
+
assets: bindCollectionToBuilder(starterModule.state.collections.assets, adminBaseBuilder).admin(({ c }) => ({
|
|
177
|
+
label: { key: "defaults.assets.label" },
|
|
178
|
+
icon: c.icon("ph:image"),
|
|
179
|
+
description: { key: "defaults.assets.description" },
|
|
180
|
+
group: "administration"
|
|
181
|
+
})).list(({ v, f, a }) => v.table({
|
|
182
|
+
columns: [
|
|
183
|
+
"filename",
|
|
184
|
+
"mimeType",
|
|
185
|
+
"size"
|
|
186
|
+
],
|
|
187
|
+
searchable: ["filename", f.alt],
|
|
188
|
+
defaultSort: {
|
|
189
|
+
field: "createdAt",
|
|
190
|
+
direction: "desc"
|
|
191
|
+
},
|
|
192
|
+
actions: {
|
|
193
|
+
header: {
|
|
194
|
+
primary: [],
|
|
195
|
+
secondary: []
|
|
196
|
+
},
|
|
197
|
+
row: [a.delete],
|
|
198
|
+
bulk: [a.deleteMany]
|
|
199
|
+
}
|
|
200
|
+
})).form(({ v, f }) => v.form({
|
|
201
|
+
sidebar: {
|
|
202
|
+
position: "right",
|
|
203
|
+
fields: [{
|
|
204
|
+
type: "section",
|
|
205
|
+
label: { key: "defaults.assets.sections.fileInfo" },
|
|
206
|
+
fields: [
|
|
207
|
+
"filename",
|
|
208
|
+
"mimeType",
|
|
209
|
+
"size",
|
|
210
|
+
"visibility"
|
|
211
|
+
]
|
|
212
|
+
}]
|
|
213
|
+
},
|
|
214
|
+
fields: [{
|
|
215
|
+
type: "section",
|
|
216
|
+
label: { key: "defaults.assets.sections.dimensions" },
|
|
217
|
+
layout: "grid",
|
|
218
|
+
columns: 2,
|
|
219
|
+
fields: [f.width, f.height]
|
|
220
|
+
}, {
|
|
221
|
+
type: "section",
|
|
222
|
+
label: { key: "defaults.assets.sections.metadata" },
|
|
223
|
+
fields: [f.alt, f.caption]
|
|
224
|
+
}]
|
|
225
|
+
})),
|
|
226
|
+
session: starterModule.state.collections.session.admin({ hidden: true }),
|
|
227
|
+
account: starterModule.state.collections.account.admin({ hidden: true }),
|
|
228
|
+
verification: starterModule.state.collections.verification.admin({ hidden: true }),
|
|
229
|
+
apikey: starterModule.state.collections.apikey.admin({ hidden: true }),
|
|
230
|
+
adminSavedViews: savedViewsCollection.admin({ hidden: true }),
|
|
231
|
+
adminPreferences: adminPreferencesCollection.admin({ hidden: true }),
|
|
232
|
+
adminLocks: locksCollection.admin({ hidden: true })
|
|
233
|
+
}).sidebar(({ s, c }) => s.sidebar({ sections: [s.section({
|
|
234
|
+
id: "administration",
|
|
235
|
+
title: { key: "defaults.sidebar.administration" },
|
|
236
|
+
items: [{
|
|
237
|
+
type: "collection",
|
|
238
|
+
collection: "user",
|
|
239
|
+
icon: c.icon("ph:users")
|
|
240
|
+
}, {
|
|
241
|
+
type: "collection",
|
|
242
|
+
collection: "assets",
|
|
243
|
+
icon: c.icon("ph:image")
|
|
244
|
+
}]
|
|
245
|
+
})] }));
|
|
246
|
+
|
|
247
|
+
//#endregion
|
|
248
|
+
export { adminModule, adminRpc };
|
|
249
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/server/modules/admin/index.ts"],"sourcesContent":["/**\n * Admin Module\n *\n * Complete backend module for running the QUESTPIE admin panel.\n * This is the main entry point for setting up the admin backend.\n *\n * Includes:\n * - Auth collections (users, sessions, accounts, verifications, apikeys)\n * - Assets collection with file upload support\n * - Admin saved views collection (named view configurations)\n * - Admin preferences collection (user-specific view state)\n * - Setup functions for bootstrapping first admin\n * - Core auth options (Better Auth configuration)\n *\n * @example\n * ```ts\n * import { q } from \"questpie\";\n * import { adminModule } from \"@questpie/admin/server\";\n *\n * const cms = q({ name: \"my-app\" })\n * .use(adminModule)\n * .collections({\n * posts: postsCollection,\n * })\n * .build({\n * db: { url: process.env.DATABASE_URL },\n * storage: { driver: s3Driver(...) },\n * });\n * ```\n */\n\nimport { CollectionBuilder, q, rpc, starterModule } from \"questpie\";\n// Side-effect imports: apply runtime patches and type augmentation\nimport \"../../augmentation.js\";\nimport \"../../patch.js\";\nimport { adminFields } from \"../../fields/index.js\";\nimport { adminPreferencesCollection } from \"../admin-preferences/collections/admin-preferences.collection.js\";\nimport { locksCollection } from \"../admin-preferences/collections/locks.collection.js\";\nimport { savedViewsCollection } from \"../admin-preferences/collections/saved-views.collection.js\";\nimport { adminConfigFunctions } from \"./functions/admin-config.js\";\nimport { actionFunctions } from \"./functions/execute-action.js\";\nimport { localeFunctions } from \"./functions/locales.js\";\nimport { previewFunctions } from \"./functions/preview.js\";\nimport { reactiveFunctions } from \"./functions/reactive.js\";\nimport { setupFunctions } from \"./functions/setup.js\";\nimport { translationFunctions } from \"./functions/translations.js\";\nimport { widgetDataFunctions } from \"./functions/widget-data.js\";\n\n// Re-export admin preferences collection\nexport { adminPreferencesCollection } from \"../admin-preferences/collections/admin-preferences.collection.js\";\n// Re-export locks collection\nexport { locksCollection } from \"../admin-preferences/collections/locks.collection.js\";\n// Re-export saved views types\nexport {\n\ttype FilterOperator,\n\ttype FilterRule,\n\ttype SortConfig,\n\tsavedViewsCollection,\n\ttype ViewConfiguration,\n} from \"../admin-preferences/collections/saved-views.collection.js\";\n// Re-export admin config functions\nexport {\n\tadminConfigFunctions,\n\tgetAdminConfig,\n} from \"./functions/admin-config.js\";\n// Re-export action functions\nexport {\n\tactionFunctions,\n\ttype ExecuteActionRequest,\n\ttype ExecuteActionResponse,\n\texecuteAction,\n\texecuteActionFn,\n\tgetActionsConfig,\n\tgetActionsConfigFn,\n} from \"./functions/execute-action.js\";\n// Re-export locale functions for individual use\nexport { getContentLocales, localeFunctions } from \"./functions/locales.js\";\n// Re-export server-only preview functions (crypto-based token verification)\n// For browser-safe utilities (isDraftMode, createDraftModeCookie, etc.), use @questpie/admin/shared\nexport {\n\tcreatePreviewFunctions,\n\tcreatePreviewTokenVerifier,\n\tgetPreviewUrl,\n\ttype PreviewTokenPayload,\n\tpreviewFunctions,\n\tverifyPreviewTokenDirect,\n} from \"./functions/preview.js\";\n// Re-export reactive field functions\nexport {\n\tbatchReactive,\n\tfieldOptions,\n\treactiveFunctions,\n} from \"./functions/reactive.js\";\n// Re-export setup functions for individual use\nexport {\n\tcreateFirstAdmin,\n\tisSetupRequired,\n\tsetupFunctions,\n} from \"./functions/setup.js\";\n// Re-export translation functions for individual use\nexport {\n\tgetAdminLocales,\n\tgetAdminTranslations,\n\ttranslationFunctions,\n} from \"./functions/translations.js\";\n// Re-export widget data functions\nexport {\n\tfetchWidgetData,\n\twidgetDataFunctions,\n} from \"./functions/widget-data.js\";\n\nconst r = rpc();\n\nexport const adminRpc = r.router({\n\t...setupFunctions,\n\t...localeFunctions,\n\t...previewFunctions,\n\t...adminConfigFunctions,\n\t...actionFunctions,\n\t...translationFunctions,\n\t...widgetDataFunctions,\n\t...reactiveFunctions,\n});\n\nfunction bindCollectionToBuilder<TCollection extends CollectionBuilder<any>>(\n\tcollection: TCollection,\n\tbuilder: unknown,\n): TCollection {\n\tconst rebound = new CollectionBuilder({\n\t\t...(collection.state as any),\n\t\t\"~questpieApp\": builder,\n\t} as any);\n\n\tif ((collection as any)._indexesFn) {\n\t\t(rebound as any)._indexesFn = (collection as any)._indexesFn;\n\t}\n\n\treturn rebound as TCollection;\n}\n\nconst adminBaseBuilder = q({ name: \"questpie-admin\" })\n\t// Include all starterModule functionality (auth, assets)\n\t.use(starterModule)\n\t// Register default server-side view/component registries.\n\t// These must exist so server config builders (`c.*`, `v.*`) resolve from registry.\n\t.listViews({\n\t\ttable: q.listView(\"table\"),\n\t})\n\t.editViews({\n\t\tform: q.editView(\"form\"),\n\t})\n\t.components({\n\t\ticon: q.component(\"icon\"),\n\t\tbadge: q.component(\"badge\"),\n\t});\n\n/**\n * Admin Module - the complete backend for QUESTPIE admin panel.\n *\n * This module provides everything needed to run the admin panel:\n * - User authentication (Better Auth) - from starterModule\n * - File uploads (assets) - from starterModule\n * - Saved views for collection filters (named configurations)\n * - User preferences (view state synced across devices)\n * - Setup flow for first admin creation\n *\n * @example\n * ```ts\n * import { q } from \"questpie\";\n * import { adminModule } from \"@questpie/admin/server\";\n *\n * const cms = q({ name: \"my-app\" })\n * .use(adminModule)\n * .collections({\n * posts: postsCollection,\n * })\n * .build({\n * db: { url: process.env.DATABASE_URL },\n * });\n * ```\n *\n * @example\n * ```ts\n * // Extend assets collection with custom fields\n * import { q, collection, varchar } from \"questpie\";\n * import { adminModule } from \"@questpie/admin/server\";\n *\n * const cms = q({ name: \"my-app\" })\n * .use(adminModule)\n * .collections({\n * // Override assets with additional fields\n * assets: adminModule.state.collections.assets.merge(\n * collection(\"assets\").fields({\n * folder: varchar(\"folder\", { length: 255 }),\n * tags: varchar(\"tags\", { length: 1000 }),\n * })\n * ),\n * })\n * .build({ ... });\n * ```\n */\nexport const adminModule = adminBaseBuilder\n\t// Register admin-specific field types (richText, blocks)\n\t.fields(adminFields)\n\t// Add admin-specific collections with admin UI config\n\t.collections({\n\t\t// Override auth collections with admin UI config\n\t\tuser: bindCollectionToBuilder(\n\t\t\tstarterModule.state.collections.user,\n\t\t\tadminBaseBuilder,\n\t\t)\n\t\t\t.admin(({ c }) => ({\n\t\t\t\tlabel: { key: \"defaults.users.label\" },\n\t\t\t\ticon: c.icon(\"ph:users\"),\n\t\t\t\tdescription: { key: \"defaults.users.description\" },\n\t\t\t\tgroup: \"administration\",\n\t\t\t}))\n\t\t\t.list(({ v, f, a }) =>\n\t\t\t\tv.table({\n\t\t\t\t\tcolumns: [f.name, f.email, f.role, f.banned],\n\t\t\t\t\tsearchable: [f.name, f.email],\n\t\t\t\t\tdefaultSort: { field: f.name, direction: \"asc\" },\n\t\t\t\t\tactions: {\n\t\t\t\t\t\theader: { primary: [a.create], secondary: [] },\n\t\t\t\t\t\trow: [a.delete],\n\t\t\t\t\t\tbulk: [a.deleteMany],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.form(({ v, f }) =>\n\t\t\t\tv.form({\n\t\t\t\t\tsidebar: {\n\t\t\t\t\t\tposition: \"right\",\n\t\t\t\t\t\tfields: [f.image, f.role, f.emailVerified],\n\t\t\t\t\t},\n\t\t\t\t\tfields: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: \"tabs\",\n\t\t\t\t\t\t\ttabs: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: \"profile\",\n\t\t\t\t\t\t\t\t\tlabel: { key: \"defaults.users.tabs.profile\" },\n\t\t\t\t\t\t\t\t\tfields: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\ttype: \"section\",\n\t\t\t\t\t\t\t\t\t\t\tlabel: { key: \"defaults.users.sections.basicInfo\" },\n\t\t\t\t\t\t\t\t\t\t\tlayout: \"grid\",\n\t\t\t\t\t\t\t\t\t\t\tcolumns: 2,\n\t\t\t\t\t\t\t\t\t\t\tfields: [f.name, f.email],\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: \"security\",\n\t\t\t\t\t\t\t\t\tlabel: { key: \"defaults.users.tabs.security\" },\n\t\t\t\t\t\t\t\t\tfields: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\ttype: \"section\",\n\t\t\t\t\t\t\t\t\t\t\tlabel: { key: \"defaults.users.sections.accessControl\" },\n\t\t\t\t\t\t\t\t\t\t\tfields: [f.banned, f.banReason, f.banExpires],\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t),\n\n\t\tassets: bindCollectionToBuilder(\n\t\t\tstarterModule.state.collections.assets,\n\t\t\tadminBaseBuilder,\n\t\t)\n\t\t\t.admin(({ c }) => ({\n\t\t\t\tlabel: { key: \"defaults.assets.label\" },\n\t\t\t\ticon: c.icon(\"ph:image\"),\n\t\t\t\tdescription: { key: \"defaults.assets.description\" },\n\t\t\t\tgroup: \"administration\",\n\t\t\t}))\n\t\t\t.list(({ v, f, a }) =>\n\t\t\t\tv.table({\n\t\t\t\t\t// Note: filename, mimeType, size, createdAt are upload fields (added by .upload())\n\t\t\t\t\t// so we use string literals instead of f.* proxy\n\t\t\t\t\tcolumns: [\"filename\", \"mimeType\", \"size\"],\n\t\t\t\t\tsearchable: [\"filename\", f.alt],\n\t\t\t\t\tdefaultSort: { field: \"createdAt\", direction: \"desc\" },\n\t\t\t\t\tactions: {\n\t\t\t\t\t\theader: { primary: [], secondary: [] },\n\t\t\t\t\t\trow: [a.delete],\n\t\t\t\t\t\tbulk: [a.deleteMany],\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.form(({ v, f }) =>\n\t\t\t\tv.form({\n\t\t\t\t\tsidebar: {\n\t\t\t\t\t\tposition: \"right\",\n\t\t\t\t\t\tfields: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype: \"section\",\n\t\t\t\t\t\t\t\tlabel: { key: \"defaults.assets.sections.fileInfo\" },\n\t\t\t\t\t\t\t\t// Note: filename, mimeType, size, visibility are upload fields\n\t\t\t\t\t\t\t\tfields: [\"filename\", \"mimeType\", \"size\", \"visibility\"],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\tfields: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: \"section\",\n\t\t\t\t\t\t\tlabel: { key: \"defaults.assets.sections.dimensions\" },\n\t\t\t\t\t\t\tlayout: \"grid\",\n\t\t\t\t\t\t\tcolumns: 2,\n\t\t\t\t\t\t\tfields: [f.width, f.height],\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: \"section\",\n\t\t\t\t\t\t\tlabel: { key: \"defaults.assets.sections.metadata\" },\n\t\t\t\t\t\t\tfields: [f.alt, f.caption],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t),\n\n\t\t// Hide internal auth collections\n\t\tsession: starterModule.state.collections.session.admin({ hidden: true }),\n\t\taccount: starterModule.state.collections.account.admin({ hidden: true }),\n\t\tverification: starterModule.state.collections.verification.admin({\n\t\t\thidden: true,\n\t\t}),\n\t\tapikey: starterModule.state.collections.apikey.admin({ hidden: true }),\n\n\t\t// Admin-specific collections (hidden from sidebar)\n\t\tadminSavedViews: savedViewsCollection.admin({ hidden: true }),\n\t\tadminPreferences: adminPreferencesCollection.admin({ hidden: true }),\n\t\tadminLocks: locksCollection.admin({ hidden: true }),\n\t})\n\t// Default sidebar\n\t.sidebar(({ s, c }) =>\n\t\ts.sidebar({\n\t\t\tsections: [\n\t\t\t\ts.section({\n\t\t\t\t\tid: \"administration\",\n\t\t\t\t\ttitle: { key: \"defaults.sidebar.administration\" },\n\t\t\t\t\titems: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: \"collection\",\n\t\t\t\t\t\t\tcollection: \"user\",\n\t\t\t\t\t\t\ticon: c.icon(\"ph:users\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttype: \"collection\",\n\t\t\t\t\t\t\tcollection: \"assets\",\n\t\t\t\t\t\t\ticon: c.icon(\"ph:image\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t}),\n\t);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+G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Q;KAAa;IACtD,CACD;GACD;EACD,QAAQ,CACP;GACC,MAAM;GACN,OAAO,EAAE,KAAK,uCAAuC;GACrD,QAAQ;GACR,SAAS;GACT,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO;GAC3B,EACD;GACC,MAAM;GACN,OAAO,EAAE,KAAK,qCAAqC;GACnD,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ;GAC1B,CACD;EACD,CAAC,CACF;CAGF,SAAS,cAAc,MAAM,YAAY,QAAQ,MAAM,EAAE,QAAQ,MAAM,CAAC;CACxE,SAAS,cAAc,MAAM,YAAY,QAAQ,MAAM,EAAE,QAAQ,MAAM,CAAC;CACxE,cAAc,cAAc,MAAM,YAAY,aAAa,MAAM,EAChE,QAAQ,MACR,CAAC;CACF,QAAQ,cAAc,MAAM,YAAY,OAAO,MAAM,EAAE,QAAQ,MAAM,CAAC;CAGtE,iBAAiB,qBAAqB,MAAM,EAAE,QAAQ,MAAM,CAAC;CAC7D,kBAAkB,2BAA2B,MAAM,EAAE,QAAQ,MAAM,CAAC;CACpE,YAAY,gBAAgB,MAAM,EAAE,QAAQ,MAAM,CAAC;CACnD,CAAC,CAED,SAAS,EAAE,GAAG,QACd,EAAE,QAAQ,EACT,UAAU,CACT,EAAE,QAAQ;CACT,IAAI;CACJ,OAAO,EAAE,KAAK,mCAAmC;CACjD,OAAO,CACN;EACC,MAAM;EACN,YAAY;EACZ,MAAM,EAAE,KAAK,WAAW;EACxB,EACD;EACC,MAAM;EACN,YAAY;EACZ,MAAM,EAAE,KAAK,WAAW;EACxB,CACD;CACD,CAAC,CACF,EACD,CAAC,CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { q } from "questpie";
|
|
2
|
+
import { uniqueIndex } from "drizzle-orm/pg-core";
|
|
3
|
+
|
|
4
|
+
//#region src/server/modules/admin-preferences/collections/admin-preferences.collection.ts
|
|
5
|
+
/**
|
|
6
|
+
* Admin Preferences Collection
|
|
7
|
+
*
|
|
8
|
+
* Stores user-specific preferences for admin UI state.
|
|
9
|
+
* This includes view configurations (columns, filters, sort)
|
|
10
|
+
* that persist across devices and sessions.
|
|
11
|
+
*
|
|
12
|
+
* Key format: "viewState:{collectionName}" for view state preferences
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { adminModule } from "@questpie/admin/server";
|
|
17
|
+
*
|
|
18
|
+
* const cms = q({ name: "my-app" })
|
|
19
|
+
* .use(adminModule)
|
|
20
|
+
* .collections({ ... })
|
|
21
|
+
* .build({ ... });
|
|
22
|
+
*
|
|
23
|
+
* // Access preferences
|
|
24
|
+
* const prefs = await cms.api.collections.adminPreferences.findOne({
|
|
25
|
+
* where: { userId: currentUser.id, key: "viewState:posts" }
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
const adminPreferencesCollection = q.collection("admin_preferences").fields((f) => ({
|
|
30
|
+
userId: f.text({
|
|
31
|
+
required: true,
|
|
32
|
+
maxLength: 255,
|
|
33
|
+
label: "User ID"
|
|
34
|
+
}),
|
|
35
|
+
key: f.text({
|
|
36
|
+
required: true,
|
|
37
|
+
maxLength: 255,
|
|
38
|
+
label: "Key"
|
|
39
|
+
}),
|
|
40
|
+
value: f.json({
|
|
41
|
+
required: true,
|
|
42
|
+
label: "Value"
|
|
43
|
+
})
|
|
44
|
+
})).options({ timestamps: true }).indexes(({ table }) => [uniqueIndex("admin_preferences_user_key_idx").on(table.userId, table.key)]);
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { adminPreferencesCollection };
|
|
48
|
+
//# sourceMappingURL=admin-preferences.collection.mjs.map
|
package/dist/server/modules/admin-preferences/collections/admin-preferences.collection.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-preferences.collection.mjs","names":[],"sources":["../../../../../src/server/modules/admin-preferences/collections/admin-preferences.collection.ts"],"sourcesContent":["import { uniqueIndex } from \"drizzle-orm/pg-core\";\nimport { q } from \"questpie\";\n\n/**\n * Admin Preferences Collection\n *\n * Stores user-specific preferences for admin UI state.\n * This includes view configurations (columns, filters, sort)\n * that persist across devices and sessions.\n *\n * Key format: \"viewState:{collectionName}\" for view state preferences\n *\n * @example\n * ```ts\n * import { adminModule } from \"@questpie/admin/server\";\n *\n * const cms = q({ name: \"my-app\" })\n * .use(adminModule)\n * .collections({ ... })\n * .build({ ... });\n *\n * // Access preferences\n * const prefs = await cms.api.collections.adminPreferences.findOne({\n * where: { userId: currentUser.id, key: \"viewState:posts\" }\n * });\n * ```\n */\nexport const adminPreferencesCollection = q\n .collection(\"admin_preferences\")\n .fields((f) => ({\n // User who owns this preference\n userId: f.text({ required: true, maxLength: 255, label: \"User ID\" }),\n\n // Preference key (e.g., \"viewState:posts\")\n key: f.text({ required: true, maxLength: 255, label: \"Key\" }),\n\n // Preference value (JSON)\n value: f.json({ required: true, label: \"Value\" }),\n }))\n .options({\n timestamps: true,\n })\n .indexes(({ table }) => [\n // Unique constraint on userId + key\n // Type assertion needed due to Drizzle ORM duplicate dependency resolution\n uniqueIndex(\"admin_preferences_user_key_idx\").on(\n table.userId as any,\n table.key as any,\n ),\n ]);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAa,6BAA6B,EACvC,WAAW,oBAAoB,CAC/B,QAAQ,OAAO;CAEd,QAAQ,EAAE,KAAK;EAAE,UAAU;EAAM,WAAW;EAAK,OAAO;EAAW,CAAC;CAGpE,KAAK,EAAE,KAAK;EAAE,UAAU;EAAM,WAAW;EAAK,OAAO;EAAO,CAAC;CAG7D,OAAO,EAAE,KAAK;EAAE,UAAU;EAAM,OAAO;EAAS,CAAC;CAClD,EAAE,CACF,QAAQ,EACP,YAAY,MACb,CAAC,CACD,SAAS,EAAE,YAAY,CAGtB,YAAY,iCAAiC,CAAC,GAC5C,MAAM,QACN,MAAM,IACP,CACF,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { q } from "questpie";
|
|
2
|
+
|
|
3
|
+
//#region src/server/modules/admin-preferences/collections/locks.collection.ts
|
|
4
|
+
/**
|
|
5
|
+
* Admin Locks Collection
|
|
6
|
+
*
|
|
7
|
+
* Stores document locks for collaborative editing awareness.
|
|
8
|
+
* When a user opens a document for editing, a lock is created.
|
|
9
|
+
* Other users see who is editing and the document becomes read-only for them.
|
|
10
|
+
*
|
|
11
|
+
* Lock behavior:
|
|
12
|
+
* - Locks expire after 60 seconds without heartbeat
|
|
13
|
+
* - Client sends heartbeat every 30 seconds to keep lock alive
|
|
14
|
+
* - On browser close/crash, lock expires automatically
|
|
15
|
+
* - Realtime subscription shows locks in table rows
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Acquire lock when opening document
|
|
20
|
+
* await cms.api.collections.adminLocks.create({
|
|
21
|
+
* resourceType: "collection",
|
|
22
|
+
* resource: "posts",
|
|
23
|
+
* resourceId: "123",
|
|
24
|
+
* userId: currentUser.id,
|
|
25
|
+
* userName: currentUser.name,
|
|
26
|
+
* expiresAt: new Date(Date.now() + 60000),
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* // Heartbeat to keep lock alive
|
|
30
|
+
* await cms.api.collections.adminLocks.update({
|
|
31
|
+
* id: lockId,
|
|
32
|
+
* data: { expiresAt: new Date(Date.now() + 60000) },
|
|
33
|
+
* });
|
|
34
|
+
*
|
|
35
|
+
* // Release lock when closing document
|
|
36
|
+
* await cms.api.collections.adminLocks.delete({ id: lockId });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
const locksCollection = q.collection("admin_locks").fields((f) => ({
|
|
40
|
+
resourceType: f.select({
|
|
41
|
+
required: true,
|
|
42
|
+
options: [{
|
|
43
|
+
value: "collection",
|
|
44
|
+
label: "Collection"
|
|
45
|
+
}, {
|
|
46
|
+
value: "global",
|
|
47
|
+
label: "Global"
|
|
48
|
+
}],
|
|
49
|
+
label: "Resource Type"
|
|
50
|
+
}),
|
|
51
|
+
resource: f.text({
|
|
52
|
+
required: true,
|
|
53
|
+
maxLength: 255,
|
|
54
|
+
label: "Resource"
|
|
55
|
+
}),
|
|
56
|
+
resourceId: f.text({
|
|
57
|
+
required: true,
|
|
58
|
+
maxLength: 255,
|
|
59
|
+
label: "Resource ID"
|
|
60
|
+
}),
|
|
61
|
+
user: f.relation({
|
|
62
|
+
to: "user",
|
|
63
|
+
required: true,
|
|
64
|
+
label: "User"
|
|
65
|
+
}),
|
|
66
|
+
sessionId: f.text({
|
|
67
|
+
required: true,
|
|
68
|
+
maxLength: 64,
|
|
69
|
+
label: "Session ID"
|
|
70
|
+
}),
|
|
71
|
+
expiresAt: f.date({
|
|
72
|
+
required: true,
|
|
73
|
+
label: "Expires At"
|
|
74
|
+
})
|
|
75
|
+
})).options({ timestamps: true });
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
export { locksCollection };
|
|
79
|
+
//# sourceMappingURL=locks.collection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locks.collection.mjs","names":[],"sources":["../../../../../src/server/modules/admin-preferences/collections/locks.collection.ts"],"sourcesContent":["import { q } from \"questpie\";\n\n/**\n * Admin Locks Collection\n *\n * Stores document locks for collaborative editing awareness.\n * When a user opens a document for editing, a lock is created.\n * Other users see who is editing and the document becomes read-only for them.\n *\n * Lock behavior:\n * - Locks expire after 60 seconds without heartbeat\n * - Client sends heartbeat every 30 seconds to keep lock alive\n * - On browser close/crash, lock expires automatically\n * - Realtime subscription shows locks in table rows\n *\n * @example\n * ```ts\n * // Acquire lock when opening document\n * await cms.api.collections.adminLocks.create({\n * resourceType: \"collection\",\n * resource: \"posts\",\n * resourceId: \"123\",\n * userId: currentUser.id,\n * userName: currentUser.name,\n * expiresAt: new Date(Date.now() + 60000),\n * });\n *\n * // Heartbeat to keep lock alive\n * await cms.api.collections.adminLocks.update({\n * id: lockId,\n * data: { expiresAt: new Date(Date.now() + 60000) },\n * });\n *\n * // Release lock when closing document\n * await cms.api.collections.adminLocks.delete({ id: lockId });\n * ```\n */\nexport const locksCollection = q\n\t.collection(\"admin_locks\")\n\t.fields((f) => ({\n\t\t// Resource type: \"collection\" or \"global\"\n\t\tresourceType: f.select({\n\t\t\trequired: true,\n\t\t\toptions: [\n\t\t\t\t{ value: \"collection\", label: \"Collection\" },\n\t\t\t\t{ value: \"global\", label: \"Global\" },\n\t\t\t],\n\t\t\tlabel: \"Resource Type\",\n\t\t}),\n\n\t\t// Resource name (collection slug or global slug)\n\t\tresource: f.text({\n\t\t\trequired: true,\n\t\t\tmaxLength: 255,\n\t\t\tlabel: \"Resource\",\n\t\t}),\n\n\t\t// Document ID being locked\n\t\tresourceId: f.text({\n\t\t\trequired: true,\n\t\t\tmaxLength: 255,\n\t\t\tlabel: \"Resource ID\",\n\t\t}),\n\n\t\t// User who holds the lock (relation to user collection)\n\t\tuser: f.relation({\n\t\t\tto: \"user\",\n\t\t\trequired: true,\n\t\t\tlabel: \"User\",\n\t\t}),\n\n\t\t// Browser session ID (unique per tab, allows same user to edit in multiple tabs)\n\t\tsessionId: f.text({\n\t\t\trequired: true,\n\t\t\tmaxLength: 64,\n\t\t\tlabel: \"Session ID\",\n\t\t}),\n\n\t\t// Lock expiration time (refreshed by heartbeat)\n\t\texpiresAt: f.date({\n\t\t\trequired: true,\n\t\t\tlabel: \"Expires At\",\n\t\t}),\n\t}))\n\t.options({\n\t\ttimestamps: true,\n\t});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAa,kBAAkB,EAC7B,WAAW,cAAc,CACzB,QAAQ,OAAO;CAEf,cAAc,EAAE,OAAO;EACtB,UAAU;EACV,SAAS,CACR;GAAE,OAAO;GAAc,OAAO;GAAc,EAC5C;GAAE,OAAO;GAAU,OAAO;GAAU,CACpC;EACD,OAAO;EACP,CAAC;CAGF,UAAU,EAAE,KAAK;EAChB,UAAU;EACV,WAAW;EACX,OAAO;EACP,CAAC;CAGF,YAAY,EAAE,KAAK;EAClB,UAAU;EACV,WAAW;EACX,OAAO;EACP,CAAC;CAGF,MAAM,EAAE,SAAS;EAChB,IAAI;EACJ,UAAU;EACV,OAAO;EACP,CAAC;CAGF,WAAW,EAAE,KAAK;EACjB,UAAU;EACV,WAAW;EACX,OAAO;EACP,CAAC;CAGF,WAAW,EAAE,KAAK;EACjB,UAAU;EACV,OAAO;EACP,CAAC;CACF,EAAE,CACF,QAAQ,EACR,YAAY,MACZ,CAAC"}
|