@btst/stack 1.10.0 → 1.12.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/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0__react@19.2.0/node_modules/@dnd-kit/sortable/dist/sortable.esm.cjs +77 -0
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0__react@19.2.0/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +79 -3
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_850cfbef1935a6e49a6ad6c93c7ca70d/node_modules/@radix-ui/react-avatar/dist/index.cjs +140 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_850cfbef1935a6e49a6ad6c93c7ca70d/node_modules/@radix-ui/react-avatar/dist/index.mjs +119 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +80 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.3_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +64 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/kanban/api/plugin.cjs +846 -0
- package/dist/packages/better-stack/src/plugins/kanban/api/plugin.mjs +844 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/forms/board-form.cjs +85 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/forms/board-form.mjs +83 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/forms/column-form.cjs +72 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/forms/column-form.mjs +70 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/forms/task-form.cjs +200 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/forms/task-form.mjs +198 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/loading/board-skeleton.cjs +47 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/loading/board-skeleton.mjs +45 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/loading/boards-list-skeleton.cjs +30 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/loading/boards-list-skeleton.mjs +28 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/404-page.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/404-page.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/board-page.cjs +31 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/board-page.internal.cjs +458 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/board-page.internal.mjs +456 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/board-page.mjs +29 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/boards-list-page.cjs +30 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/boards-list-page.internal.cjs +72 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/boards-list-page.internal.mjs +70 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/boards-list-page.mjs +28 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/new-board-page.cjs +30 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/new-board-page.internal.cjs +51 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/new-board-page.internal.mjs +49 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/pages/new-board-page.mjs +28 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/column-content.cjs +76 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/column-content.mjs +74 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/default-error.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/default-error.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/empty-state.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/empty-state.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/kanban-board.cjs +78 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/kanban-board.mjs +76 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/page-wrapper.cjs +15 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/page-wrapper.mjs +13 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/task-card.cjs +68 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/task-card.mjs +66 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/user-avatar.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/components/shared/user-avatar.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/hooks/kanban-hooks.cjs +391 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/hooks/kanban-hooks.mjs +381 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/plugin.cjs +290 -0
- package/dist/packages/better-stack/src/plugins/kanban/client/plugin.mjs +288 -0
- package/dist/packages/better-stack/src/plugins/kanban/db.cjs +125 -0
- package/dist/packages/better-stack/src/plugins/kanban/db.mjs +123 -0
- package/dist/packages/better-stack/src/plugins/kanban/schemas.cjs +117 -0
- package/dist/packages/better-stack/src/plugins/kanban/schemas.mjs +102 -0
- package/dist/packages/better-stack/src/plugins/kanban/utils.cjs +49 -0
- package/dist/packages/better-stack/src/plugins/kanban/utils.mjs +45 -0
- package/dist/packages/ui/src/components/avatar.cjs +58 -0
- package/dist/packages/ui/src/components/avatar.mjs +54 -0
- package/dist/packages/ui/src/components/command.cjs +3 -3
- package/dist/packages/ui/src/components/command.mjs +3 -3
- package/dist/packages/ui/src/components/form-builder/index.mjs +2 -2
- package/dist/packages/ui/src/components/kanban.cjs +835 -0
- package/dist/packages/ui/src/components/kanban.mjs +805 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +15 -11
- package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +15 -11
- package/dist/packages/ui/src/components/popover.cjs +8 -3
- package/dist/packages/ui/src/components/popover.mjs +9 -4
- package/dist/packages/ui/src/components/search-select.cjs +75 -0
- package/dist/packages/ui/src/components/search-select.mjs +73 -0
- package/dist/packages/ui/src/components/ui-builder/index.cjs +9 -7
- package/dist/packages/ui/src/components/ui-builder/index.mjs +9 -7
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +6 -3
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +6 -3
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +228 -48
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +228 -48
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +4 -2
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +4 -2
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +6 -3
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +6 -3
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/draggable-new-component.cjs +67 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/draggable-new-component.mjs +62 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +181 -37
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +181 -38
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +9 -2
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +9 -2
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +3 -2
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +3 -2
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +17 -5
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +17 -5
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +70 -16
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +73 -20
- package/dist/packages/ui/src/lib/compose-refs.cjs +56 -0
- package/dist/packages/ui/src/lib/compose-refs.mjs +39 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +14 -9
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +14 -9
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +38 -10
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +35 -11
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +1 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +1 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +7 -4
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +7 -4
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +4 -4
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +4 -4
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +53 -16
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +53 -16
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +23 -7
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +23 -7
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +110 -11
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +111 -13
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +3 -2
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +3 -2
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +53 -7
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +54 -8
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +4 -3
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +4 -3
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +12 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +12 -1
- package/dist/plugins/blog/api/index.d.cts +1 -1
- package/dist/plugins/blog/api/index.d.mts +1 -1
- package/dist/plugins/blog/api/index.d.ts +1 -1
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +1 -1
- package/dist/plugins/blog/client/index.d.mts +1 -1
- package/dist/plugins/blog/client/index.d.ts +1 -1
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/kanban/api/index.cjs +7 -0
- package/dist/plugins/kanban/api/index.d.cts +403 -0
- package/dist/plugins/kanban/api/index.d.mts +403 -0
- package/dist/plugins/kanban/api/index.d.ts +403 -0
- package/dist/plugins/kanban/api/index.mjs +1 -0
- package/dist/plugins/kanban/client/components/index.cjs +35 -0
- package/dist/plugins/kanban/client/components/index.d.cts +102 -0
- package/dist/plugins/kanban/client/components/index.d.mts +102 -0
- package/dist/plugins/kanban/client/components/index.d.ts +102 -0
- package/dist/plugins/kanban/client/components/index.mjs +15 -0
- package/dist/plugins/kanban/client/hooks/index.cjs +15 -0
- package/dist/plugins/kanban/client/hooks/index.d.cts +143 -0
- package/dist/plugins/kanban/client/hooks/index.d.mts +143 -0
- package/dist/plugins/kanban/client/hooks/index.d.ts +143 -0
- package/dist/plugins/kanban/client/hooks/index.mjs +1 -0
- package/dist/plugins/kanban/client/index.cjs +7 -0
- package/dist/plugins/kanban/client/index.d.cts +196 -0
- package/dist/plugins/kanban/client/index.d.mts +196 -0
- package/dist/plugins/kanban/client/index.d.ts +196 -0
- package/dist/plugins/kanban/client/index.mjs +1 -0
- package/dist/plugins/kanban/client.css +68 -0
- package/dist/plugins/kanban/query-keys.cjs +105 -0
- package/dist/plugins/kanban/query-keys.d.cts +59 -0
- package/dist/plugins/kanban/query-keys.d.mts +59 -0
- package/dist/plugins/kanban/query-keys.d.ts +59 -0
- package/dist/plugins/kanban/query-keys.mjs +103 -0
- package/dist/plugins/kanban/style.css +7 -0
- package/dist/plugins/ui-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +2 -2
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +2 -2
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/index.d.cts +17 -7
- package/dist/plugins/ui-builder/client/index.d.mts +17 -7
- package/dist/plugins/ui-builder/client/index.d.ts +17 -7
- package/dist/plugins/ui-builder/index.d.cts +2 -2
- package/dist/plugins/ui-builder/index.d.mts +2 -2
- package/dist/plugins/ui-builder/index.d.ts +2 -2
- package/dist/plugins/ui-builder/style.css +6 -0
- package/dist/shared/{stack.BSM2cgoq.d.cts → stack.BYysGdHl.d.cts} +1 -1
- package/dist/shared/{stack.CqfZWfjJ.d.cts → stack.BdJFrdyt.d.cts} +8 -2
- package/dist/shared/{stack.e1FN86dE.d.mts → stack.ChVuHi5e.d.mts} +8 -2
- package/dist/shared/stack.DKDMI-QO.d.cts +70 -0
- package/dist/shared/stack.DKDMI-QO.d.mts +70 -0
- package/dist/shared/stack.DKDMI-QO.d.ts +70 -0
- package/dist/shared/{stack.CLtOoAqF.d.mts → stack.DYCFcnkL.d.mts} +1 -1
- package/dist/shared/{stack.MMntCVZZ.d.ts → stack.EhM4pmtN.d.ts} +8 -2
- package/dist/shared/stack.FeaWkglm.d.cts +190 -0
- package/dist/shared/stack.FeaWkglm.d.mts +190 -0
- package/dist/shared/stack.FeaWkglm.d.ts +190 -0
- package/dist/shared/{stack.BD1m-4yB.d.ts → stack.kFbDspnF.d.ts} +1 -1
- package/package.json +56 -2
- package/src/plugins/kanban/api/index.ts +6 -0
- package/src/plugins/kanban/api/plugin.ts +1245 -0
- package/src/plugins/kanban/client/components/forms/board-form.tsx +108 -0
- package/src/plugins/kanban/client/components/forms/column-form.tsx +97 -0
- package/src/plugins/kanban/client/components/forms/task-form.tsx +274 -0
- package/src/plugins/kanban/client/components/index.tsx +21 -0
- package/src/plugins/kanban/client/components/loading/board-skeleton.tsx +49 -0
- package/src/plugins/kanban/client/components/loading/boards-list-skeleton.tsx +34 -0
- package/src/plugins/kanban/client/components/loading/index.tsx +2 -0
- package/src/plugins/kanban/client/components/pages/404-page.tsx +28 -0
- package/src/plugins/kanban/client/components/pages/board-page.internal.tsx +575 -0
- package/src/plugins/kanban/client/components/pages/board-page.tsx +31 -0
- package/src/plugins/kanban/client/components/pages/boards-list-page.internal.tsx +101 -0
- package/src/plugins/kanban/client/components/pages/boards-list-page.tsx +26 -0
- package/src/plugins/kanban/client/components/pages/new-board-page.internal.tsx +65 -0
- package/src/plugins/kanban/client/components/pages/new-board-page.tsx +26 -0
- package/src/plugins/kanban/client/components/shared/column-content.tsx +108 -0
- package/src/plugins/kanban/client/components/shared/default-error.tsx +32 -0
- package/src/plugins/kanban/client/components/shared/empty-state.tsx +37 -0
- package/src/plugins/kanban/client/components/shared/kanban-board.tsx +87 -0
- package/src/plugins/kanban/client/components/shared/page-wrapper.tsx +20 -0
- package/src/plugins/kanban/client/components/shared/task-card.tsx +79 -0
- package/src/plugins/kanban/client/components/shared/user-avatar.tsx +63 -0
- package/src/plugins/kanban/client/hooks/index.tsx +11 -0
- package/src/plugins/kanban/client/hooks/kanban-hooks.tsx +560 -0
- package/src/plugins/kanban/client/index.ts +8 -0
- package/src/plugins/kanban/client/localization/index.ts +28 -0
- package/src/plugins/kanban/client/localization/kanban-common.ts +69 -0
- package/src/plugins/kanban/client/localization/kanban-forms.ts +70 -0
- package/src/plugins/kanban/client/localization/kanban-list.ts +36 -0
- package/src/plugins/kanban/client/overrides.ts +145 -0
- package/src/plugins/kanban/client/plugin.tsx +463 -0
- package/src/plugins/kanban/client.css +68 -0
- package/src/plugins/kanban/db.ts +125 -0
- package/src/plugins/kanban/query-keys.ts +154 -0
- package/src/plugins/kanban/schemas.ts +143 -0
- package/src/plugins/kanban/style.css +7 -0
- package/src/plugins/kanban/types.ts +106 -0
- package/src/plugins/kanban/utils.ts +107 -0
- package/src/plugins/ui-builder/style.css +6 -0
- package/dist/shared/{stack.DLhzx1-D.d.mts → stack.CcI4sYJP.d.cts} +1 -1
- package/dist/shared/{stack.DLhzx1-D.d.ts → stack.CcI4sYJP.d.mts} +1 -1
- package/dist/shared/{stack.DLhzx1-D.d.cts → stack.CcI4sYJP.d.ts} +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const queryKeyFactory = require('@lukemorales/query-key-factory');
|
|
4
|
+
|
|
5
|
+
function isErrorResponse(response) {
|
|
6
|
+
return typeof response === "object" && response !== null && "error" in response && response.error !== null && response.error !== void 0;
|
|
7
|
+
}
|
|
8
|
+
function toError(error) {
|
|
9
|
+
if (error instanceof Error) {
|
|
10
|
+
return error;
|
|
11
|
+
}
|
|
12
|
+
if (typeof error === "object" && error !== null) {
|
|
13
|
+
const errorObj = error;
|
|
14
|
+
const message = (typeof errorObj.message === "string" ? errorObj.message : null) || (typeof errorObj.error === "string" ? errorObj.error : null) || JSON.stringify(error);
|
|
15
|
+
const err = new Error(message);
|
|
16
|
+
Object.assign(err, error);
|
|
17
|
+
return err;
|
|
18
|
+
}
|
|
19
|
+
return new Error(String(error));
|
|
20
|
+
}
|
|
21
|
+
function createKanbanQueryKeys(client, headers) {
|
|
22
|
+
const boards = createBoardsQueries(client, headers);
|
|
23
|
+
return queryKeyFactory.mergeQueryKeys(boards);
|
|
24
|
+
}
|
|
25
|
+
function createBoardsQueries(client, headers) {
|
|
26
|
+
return queryKeyFactory.createQueryKeys("boards", {
|
|
27
|
+
list: (params) => ({
|
|
28
|
+
queryKey: [
|
|
29
|
+
{
|
|
30
|
+
slug: params?.slug,
|
|
31
|
+
ownerId: params?.ownerId,
|
|
32
|
+
organizationId: params?.organizationId,
|
|
33
|
+
limit: params?.limit ?? 50,
|
|
34
|
+
offset: params?.offset ?? 0
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
queryFn: async () => {
|
|
38
|
+
try {
|
|
39
|
+
const response = await client("/boards", {
|
|
40
|
+
method: "GET",
|
|
41
|
+
query: {
|
|
42
|
+
slug: params?.slug,
|
|
43
|
+
ownerId: params?.ownerId,
|
|
44
|
+
organizationId: params?.organizationId,
|
|
45
|
+
limit: params?.limit ?? 50,
|
|
46
|
+
offset: params?.offset ?? 0
|
|
47
|
+
},
|
|
48
|
+
headers
|
|
49
|
+
});
|
|
50
|
+
if (isErrorResponse(response)) {
|
|
51
|
+
const errorResponse = response;
|
|
52
|
+
throw toError(errorResponse.error);
|
|
53
|
+
}
|
|
54
|
+
return response.data ?? [];
|
|
55
|
+
} catch (error) {
|
|
56
|
+
throw error;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
detail: (boardId) => ({
|
|
61
|
+
queryKey: [boardId],
|
|
62
|
+
queryFn: async () => {
|
|
63
|
+
if (!boardId) return null;
|
|
64
|
+
try {
|
|
65
|
+
const response = await client("/boards/:id", {
|
|
66
|
+
method: "GET",
|
|
67
|
+
params: { id: boardId },
|
|
68
|
+
headers
|
|
69
|
+
});
|
|
70
|
+
if (isErrorResponse(response)) {
|
|
71
|
+
const errorResponse = response;
|
|
72
|
+
throw toError(errorResponse.error);
|
|
73
|
+
}
|
|
74
|
+
return response.data ?? null;
|
|
75
|
+
} catch (error) {
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}),
|
|
80
|
+
// Get board by slug
|
|
81
|
+
bySlug: (slug) => ({
|
|
82
|
+
queryKey: ["slug", slug],
|
|
83
|
+
queryFn: async () => {
|
|
84
|
+
if (!slug) return null;
|
|
85
|
+
try {
|
|
86
|
+
const response = await client("/boards", {
|
|
87
|
+
method: "GET",
|
|
88
|
+
query: { slug, limit: 1 },
|
|
89
|
+
headers
|
|
90
|
+
});
|
|
91
|
+
if (isErrorResponse(response)) {
|
|
92
|
+
const errorResponse = response;
|
|
93
|
+
throw toError(errorResponse.error);
|
|
94
|
+
}
|
|
95
|
+
const boards = response.data ?? [];
|
|
96
|
+
return boards[0] ?? null;
|
|
97
|
+
} catch (error) {
|
|
98
|
+
throw error;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
exports.createKanbanQueryKeys = createKanbanQueryKeys;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
+
import { S as SerializedBoardWithColumns } from '../../shared/stack.DKDMI-QO.cjs';
|
|
4
|
+
import { KanbanApiRouter } from './api/index.cjs';
|
|
5
|
+
import '@btst/stack/plugins/api';
|
|
6
|
+
import 'better-call';
|
|
7
|
+
import 'zod';
|
|
8
|
+
|
|
9
|
+
interface BoardsListParams {
|
|
10
|
+
slug?: string;
|
|
11
|
+
ownerId?: string;
|
|
12
|
+
organizationId?: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
}
|
|
16
|
+
declare function createKanbanQueryKeys(client: ReturnType<typeof createApiClient<KanbanApiRouter>>, headers?: HeadersInit): {
|
|
17
|
+
boards: {
|
|
18
|
+
_def: readonly ["boards"];
|
|
19
|
+
} & {
|
|
20
|
+
list: ((params?: BoardsListParams | undefined) => Omit<{
|
|
21
|
+
queryKey: readonly ["boards", "list", {
|
|
22
|
+
slug: string | undefined;
|
|
23
|
+
ownerId: string | undefined;
|
|
24
|
+
organizationId: string | undefined;
|
|
25
|
+
limit: number;
|
|
26
|
+
offset: number;
|
|
27
|
+
}];
|
|
28
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns[], readonly ["boards", "list", {
|
|
29
|
+
slug: string | undefined;
|
|
30
|
+
ownerId: string | undefined;
|
|
31
|
+
organizationId: string | undefined;
|
|
32
|
+
limit: number;
|
|
33
|
+
offset: number;
|
|
34
|
+
}]>;
|
|
35
|
+
} & {
|
|
36
|
+
_def: readonly ["boards", "list"];
|
|
37
|
+
}, "_def">) & {
|
|
38
|
+
_def: readonly ["boards", "list"];
|
|
39
|
+
};
|
|
40
|
+
detail: ((boardId: string) => Omit<{
|
|
41
|
+
queryKey: readonly ["boards", "detail", string];
|
|
42
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns | null, readonly ["boards", "detail", string]>;
|
|
43
|
+
} & {
|
|
44
|
+
_def: readonly ["boards", "detail"];
|
|
45
|
+
}, "_def">) & {
|
|
46
|
+
_def: readonly ["boards", "detail"];
|
|
47
|
+
};
|
|
48
|
+
bySlug: ((slug: string) => Omit<{
|
|
49
|
+
queryKey: readonly ["boards", "bySlug", string, string];
|
|
50
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns | null, readonly ["boards", "bySlug", string, string]>;
|
|
51
|
+
} & {
|
|
52
|
+
_def: readonly ["boards", "bySlug"];
|
|
53
|
+
}, "_def">) & {
|
|
54
|
+
_def: readonly ["boards", "bySlug"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { createKanbanQueryKeys };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
+
import { S as SerializedBoardWithColumns } from '../../shared/stack.DKDMI-QO.mjs';
|
|
4
|
+
import { KanbanApiRouter } from './api/index.mjs';
|
|
5
|
+
import '@btst/stack/plugins/api';
|
|
6
|
+
import 'better-call';
|
|
7
|
+
import 'zod';
|
|
8
|
+
|
|
9
|
+
interface BoardsListParams {
|
|
10
|
+
slug?: string;
|
|
11
|
+
ownerId?: string;
|
|
12
|
+
organizationId?: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
}
|
|
16
|
+
declare function createKanbanQueryKeys(client: ReturnType<typeof createApiClient<KanbanApiRouter>>, headers?: HeadersInit): {
|
|
17
|
+
boards: {
|
|
18
|
+
_def: readonly ["boards"];
|
|
19
|
+
} & {
|
|
20
|
+
list: ((params?: BoardsListParams | undefined) => Omit<{
|
|
21
|
+
queryKey: readonly ["boards", "list", {
|
|
22
|
+
slug: string | undefined;
|
|
23
|
+
ownerId: string | undefined;
|
|
24
|
+
organizationId: string | undefined;
|
|
25
|
+
limit: number;
|
|
26
|
+
offset: number;
|
|
27
|
+
}];
|
|
28
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns[], readonly ["boards", "list", {
|
|
29
|
+
slug: string | undefined;
|
|
30
|
+
ownerId: string | undefined;
|
|
31
|
+
organizationId: string | undefined;
|
|
32
|
+
limit: number;
|
|
33
|
+
offset: number;
|
|
34
|
+
}]>;
|
|
35
|
+
} & {
|
|
36
|
+
_def: readonly ["boards", "list"];
|
|
37
|
+
}, "_def">) & {
|
|
38
|
+
_def: readonly ["boards", "list"];
|
|
39
|
+
};
|
|
40
|
+
detail: ((boardId: string) => Omit<{
|
|
41
|
+
queryKey: readonly ["boards", "detail", string];
|
|
42
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns | null, readonly ["boards", "detail", string]>;
|
|
43
|
+
} & {
|
|
44
|
+
_def: readonly ["boards", "detail"];
|
|
45
|
+
}, "_def">) & {
|
|
46
|
+
_def: readonly ["boards", "detail"];
|
|
47
|
+
};
|
|
48
|
+
bySlug: ((slug: string) => Omit<{
|
|
49
|
+
queryKey: readonly ["boards", "bySlug", string, string];
|
|
50
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns | null, readonly ["boards", "bySlug", string, string]>;
|
|
51
|
+
} & {
|
|
52
|
+
_def: readonly ["boards", "bySlug"];
|
|
53
|
+
}, "_def">) & {
|
|
54
|
+
_def: readonly ["boards", "bySlug"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { createKanbanQueryKeys };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { createApiClient } from '@btst/stack/plugins/client';
|
|
3
|
+
import { S as SerializedBoardWithColumns } from '../../shared/stack.DKDMI-QO.js';
|
|
4
|
+
import { KanbanApiRouter } from './api/index.js';
|
|
5
|
+
import '@btst/stack/plugins/api';
|
|
6
|
+
import 'better-call';
|
|
7
|
+
import 'zod';
|
|
8
|
+
|
|
9
|
+
interface BoardsListParams {
|
|
10
|
+
slug?: string;
|
|
11
|
+
ownerId?: string;
|
|
12
|
+
organizationId?: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
offset?: number;
|
|
15
|
+
}
|
|
16
|
+
declare function createKanbanQueryKeys(client: ReturnType<typeof createApiClient<KanbanApiRouter>>, headers?: HeadersInit): {
|
|
17
|
+
boards: {
|
|
18
|
+
_def: readonly ["boards"];
|
|
19
|
+
} & {
|
|
20
|
+
list: ((params?: BoardsListParams | undefined) => Omit<{
|
|
21
|
+
queryKey: readonly ["boards", "list", {
|
|
22
|
+
slug: string | undefined;
|
|
23
|
+
ownerId: string | undefined;
|
|
24
|
+
organizationId: string | undefined;
|
|
25
|
+
limit: number;
|
|
26
|
+
offset: number;
|
|
27
|
+
}];
|
|
28
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns[], readonly ["boards", "list", {
|
|
29
|
+
slug: string | undefined;
|
|
30
|
+
ownerId: string | undefined;
|
|
31
|
+
organizationId: string | undefined;
|
|
32
|
+
limit: number;
|
|
33
|
+
offset: number;
|
|
34
|
+
}]>;
|
|
35
|
+
} & {
|
|
36
|
+
_def: readonly ["boards", "list"];
|
|
37
|
+
}, "_def">) & {
|
|
38
|
+
_def: readonly ["boards", "list"];
|
|
39
|
+
};
|
|
40
|
+
detail: ((boardId: string) => Omit<{
|
|
41
|
+
queryKey: readonly ["boards", "detail", string];
|
|
42
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns | null, readonly ["boards", "detail", string]>;
|
|
43
|
+
} & {
|
|
44
|
+
_def: readonly ["boards", "detail"];
|
|
45
|
+
}, "_def">) & {
|
|
46
|
+
_def: readonly ["boards", "detail"];
|
|
47
|
+
};
|
|
48
|
+
bySlug: ((slug: string) => Omit<{
|
|
49
|
+
queryKey: readonly ["boards", "bySlug", string, string];
|
|
50
|
+
queryFn: _tanstack_react_query.QueryFunction<SerializedBoardWithColumns | null, readonly ["boards", "bySlug", string, string]>;
|
|
51
|
+
} & {
|
|
52
|
+
_def: readonly ["boards", "bySlug"];
|
|
53
|
+
}, "_def">) & {
|
|
54
|
+
_def: readonly ["boards", "bySlug"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { createKanbanQueryKeys };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { mergeQueryKeys, createQueryKeys } from '@lukemorales/query-key-factory';
|
|
2
|
+
|
|
3
|
+
function isErrorResponse(response) {
|
|
4
|
+
return typeof response === "object" && response !== null && "error" in response && response.error !== null && response.error !== void 0;
|
|
5
|
+
}
|
|
6
|
+
function toError(error) {
|
|
7
|
+
if (error instanceof Error) {
|
|
8
|
+
return error;
|
|
9
|
+
}
|
|
10
|
+
if (typeof error === "object" && error !== null) {
|
|
11
|
+
const errorObj = error;
|
|
12
|
+
const message = (typeof errorObj.message === "string" ? errorObj.message : null) || (typeof errorObj.error === "string" ? errorObj.error : null) || JSON.stringify(error);
|
|
13
|
+
const err = new Error(message);
|
|
14
|
+
Object.assign(err, error);
|
|
15
|
+
return err;
|
|
16
|
+
}
|
|
17
|
+
return new Error(String(error));
|
|
18
|
+
}
|
|
19
|
+
function createKanbanQueryKeys(client, headers) {
|
|
20
|
+
const boards = createBoardsQueries(client, headers);
|
|
21
|
+
return mergeQueryKeys(boards);
|
|
22
|
+
}
|
|
23
|
+
function createBoardsQueries(client, headers) {
|
|
24
|
+
return createQueryKeys("boards", {
|
|
25
|
+
list: (params) => ({
|
|
26
|
+
queryKey: [
|
|
27
|
+
{
|
|
28
|
+
slug: params?.slug,
|
|
29
|
+
ownerId: params?.ownerId,
|
|
30
|
+
organizationId: params?.organizationId,
|
|
31
|
+
limit: params?.limit ?? 50,
|
|
32
|
+
offset: params?.offset ?? 0
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
queryFn: async () => {
|
|
36
|
+
try {
|
|
37
|
+
const response = await client("/boards", {
|
|
38
|
+
method: "GET",
|
|
39
|
+
query: {
|
|
40
|
+
slug: params?.slug,
|
|
41
|
+
ownerId: params?.ownerId,
|
|
42
|
+
organizationId: params?.organizationId,
|
|
43
|
+
limit: params?.limit ?? 50,
|
|
44
|
+
offset: params?.offset ?? 0
|
|
45
|
+
},
|
|
46
|
+
headers
|
|
47
|
+
});
|
|
48
|
+
if (isErrorResponse(response)) {
|
|
49
|
+
const errorResponse = response;
|
|
50
|
+
throw toError(errorResponse.error);
|
|
51
|
+
}
|
|
52
|
+
return response.data ?? [];
|
|
53
|
+
} catch (error) {
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
detail: (boardId) => ({
|
|
59
|
+
queryKey: [boardId],
|
|
60
|
+
queryFn: async () => {
|
|
61
|
+
if (!boardId) return null;
|
|
62
|
+
try {
|
|
63
|
+
const response = await client("/boards/:id", {
|
|
64
|
+
method: "GET",
|
|
65
|
+
params: { id: boardId },
|
|
66
|
+
headers
|
|
67
|
+
});
|
|
68
|
+
if (isErrorResponse(response)) {
|
|
69
|
+
const errorResponse = response;
|
|
70
|
+
throw toError(errorResponse.error);
|
|
71
|
+
}
|
|
72
|
+
return response.data ?? null;
|
|
73
|
+
} catch (error) {
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
// Get board by slug
|
|
79
|
+
bySlug: (slug) => ({
|
|
80
|
+
queryKey: ["slug", slug],
|
|
81
|
+
queryFn: async () => {
|
|
82
|
+
if (!slug) return null;
|
|
83
|
+
try {
|
|
84
|
+
const response = await client("/boards", {
|
|
85
|
+
method: "GET",
|
|
86
|
+
query: { slug, limit: 1 },
|
|
87
|
+
headers
|
|
88
|
+
});
|
|
89
|
+
if (isErrorResponse(response)) {
|
|
90
|
+
const errorResponse = response;
|
|
91
|
+
throw toError(errorResponse.error);
|
|
92
|
+
}
|
|
93
|
+
const boards = response.data ?? [];
|
|
94
|
+
return boards[0] ?? null;
|
|
95
|
+
} catch (error) {
|
|
96
|
+
throw error;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { createKanbanQueryKeys };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Kanban Plugin Full Styles */
|
|
2
|
+
/* This file includes Tailwind directives for consumers who need the full stylesheet */
|
|
3
|
+
|
|
4
|
+
@import "./client.css";
|
|
5
|
+
|
|
6
|
+
/* Import minimal-tiptap styles for rich text editor in task forms */
|
|
7
|
+
@import "@workspace/ui/components/minimal-tiptap/styles.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { a as ComponentRegistry, P as PropValue } from '../../../../shared/stack.
|
|
2
|
+
import { a as ComponentRegistry, P as PropValue } from '../../../../shared/stack.BdJFrdyt.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../../../shared/stack.8nldKomx.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { a as ComponentRegistry, P as PropValue } from '../../../../shared/stack.
|
|
2
|
+
import { a as ComponentRegistry, P as PropValue } from '../../../../shared/stack.ChVuHi5e.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../../../shared/stack.8nldKomx.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { a as ComponentRegistry, P as PropValue } from '../../../../shared/stack.
|
|
2
|
+
import { a as ComponentRegistry, P as PropValue } from '../../../../shared/stack.EhM4pmtN.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../../../shared/stack.8nldKomx.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.
|
|
3
|
-
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.
|
|
2
|
+
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.BYysGdHl.cjs';
|
|
3
|
+
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.BdJFrdyt.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../../../shared/stack.8nldKomx.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.
|
|
3
|
-
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.
|
|
2
|
+
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.DYCFcnkL.mjs';
|
|
3
|
+
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.ChVuHi5e.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../../../shared/stack.8nldKomx.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.
|
|
3
|
-
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.
|
|
2
|
+
import { S as SerializedUIBuilderPage } from '../../../../shared/stack.kFbDspnF.js';
|
|
3
|
+
import { C as ComponentLayer, V as Variable } from '../../../../shared/stack.EhM4pmtN.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../../../shared/stack.8nldKomx.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
3
|
+
import react__default, { ComponentType } from 'react';
|
|
4
4
|
import * as _btst_yar from '@btst/yar';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { c as UIBuilderClientHooks } from '../../../shared/stack.
|
|
7
|
-
import { a as ComponentRegistry, F as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.
|
|
8
|
-
import
|
|
6
|
+
import { c as UIBuilderClientHooks } from '../../../shared/stack.BYysGdHl.cjs';
|
|
7
|
+
import { a as ComponentRegistry, F as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.BdJFrdyt.cjs';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import { F as FieldConfigItem, A as AutoFormInputComponentProps } from '../../../shared/stack.8nldKomx.cjs';
|
|
9
10
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.cjs';
|
|
10
11
|
export { CreateUIBuilderPageInput, UpdateUIBuilderPageInput, UseUIBuilderPagesOptions, UseUIBuilderPagesResult, useCreateUIBuilderPage, useDeleteUIBuilderPage, useSuspenseUIBuilderPage, useSuspenseUIBuilderPageBySlug, useSuspenseUIBuilderPages, useUIBuilderPage, useUIBuilderPageBySlug, useUIBuilderPages, useUpdateUIBuilderPage } from './hooks/index.cjs';
|
|
11
12
|
import 'zod';
|
|
12
13
|
import 'react-hook-form';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Configuration for UI Builder client plugin
|
|
@@ -202,8 +202,18 @@ declare function createComponentRegistry(components: ComponentRegistry): Compone
|
|
|
202
202
|
declare const classNameFieldOverrides: FieldConfigFunction;
|
|
203
203
|
declare const childrenFieldOverrides: FieldConfigFunction;
|
|
204
204
|
declare const iconNameFieldOverrides: FieldConfigFunction;
|
|
205
|
-
declare const childrenAsTextareaFieldOverrides:
|
|
206
|
-
|
|
205
|
+
declare const childrenAsTextareaFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
206
|
+
renderParent: (({ children }: {
|
|
207
|
+
children: react__default.ReactNode;
|
|
208
|
+
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
209
|
+
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
210
|
+
};
|
|
211
|
+
declare const childrenAsTipTapFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
212
|
+
renderParent: (({ children }: {
|
|
213
|
+
children: react__default.ReactNode;
|
|
214
|
+
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
215
|
+
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
216
|
+
};
|
|
207
217
|
declare const commonFieldOverrides: (allowBinding?: boolean) => Record<string, FieldConfigFunction> | {
|
|
208
218
|
className: (layer: ComponentLayer) => FieldConfigItem;
|
|
209
219
|
children: (layer: ComponentLayer) => FieldConfigItem;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
3
|
+
import react__default, { ComponentType } from 'react';
|
|
4
4
|
import * as _btst_yar from '@btst/yar';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { c as UIBuilderClientHooks } from '../../../shared/stack.
|
|
7
|
-
import { a as ComponentRegistry, F as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.
|
|
8
|
-
import
|
|
6
|
+
import { c as UIBuilderClientHooks } from '../../../shared/stack.DYCFcnkL.mjs';
|
|
7
|
+
import { a as ComponentRegistry, F as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.ChVuHi5e.mjs';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import { F as FieldConfigItem, A as AutoFormInputComponentProps } from '../../../shared/stack.8nldKomx.mjs';
|
|
9
10
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.mjs';
|
|
10
11
|
export { CreateUIBuilderPageInput, UpdateUIBuilderPageInput, UseUIBuilderPagesOptions, UseUIBuilderPagesResult, useCreateUIBuilderPage, useDeleteUIBuilderPage, useSuspenseUIBuilderPage, useSuspenseUIBuilderPageBySlug, useSuspenseUIBuilderPages, useUIBuilderPage, useUIBuilderPageBySlug, useUIBuilderPages, useUpdateUIBuilderPage } from './hooks/index.mjs';
|
|
11
12
|
import 'zod';
|
|
12
13
|
import 'react-hook-form';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Configuration for UI Builder client plugin
|
|
@@ -202,8 +202,18 @@ declare function createComponentRegistry(components: ComponentRegistry): Compone
|
|
|
202
202
|
declare const classNameFieldOverrides: FieldConfigFunction;
|
|
203
203
|
declare const childrenFieldOverrides: FieldConfigFunction;
|
|
204
204
|
declare const iconNameFieldOverrides: FieldConfigFunction;
|
|
205
|
-
declare const childrenAsTextareaFieldOverrides:
|
|
206
|
-
|
|
205
|
+
declare const childrenAsTextareaFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
206
|
+
renderParent: (({ children }: {
|
|
207
|
+
children: react__default.ReactNode;
|
|
208
|
+
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
209
|
+
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
210
|
+
};
|
|
211
|
+
declare const childrenAsTipTapFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
212
|
+
renderParent: (({ children }: {
|
|
213
|
+
children: react__default.ReactNode;
|
|
214
|
+
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
215
|
+
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
216
|
+
};
|
|
207
217
|
declare const commonFieldOverrides: (allowBinding?: boolean) => Record<string, FieldConfigFunction> | {
|
|
208
218
|
className: (layer: ComponentLayer) => FieldConfigItem;
|
|
209
219
|
children: (layer: ComponentLayer) => FieldConfigItem;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentType } from 'react';
|
|
3
|
+
import react__default, { ComponentType } from 'react';
|
|
4
4
|
import * as _btst_yar from '@btst/yar';
|
|
5
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import { c as UIBuilderClientHooks } from '../../../shared/stack.
|
|
7
|
-
import { a as ComponentRegistry, F as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.
|
|
8
|
-
import
|
|
6
|
+
import { c as UIBuilderClientHooks } from '../../../shared/stack.kFbDspnF.js';
|
|
7
|
+
import { a as ComponentRegistry, F as FieldConfigFunction, C as ComponentLayer } from '../../../shared/stack.EhM4pmtN.js';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import { F as FieldConfigItem, A as AutoFormInputComponentProps } from '../../../shared/stack.8nldKomx.js';
|
|
9
10
|
export { PageBuilderPage, PageListPage, PageRenderer, PageRendererProps, SuspensePageRenderer } from './components/index.js';
|
|
10
11
|
export { CreateUIBuilderPageInput, UpdateUIBuilderPageInput, UseUIBuilderPagesOptions, UseUIBuilderPagesResult, useCreateUIBuilderPage, useDeleteUIBuilderPage, useSuspenseUIBuilderPage, useSuspenseUIBuilderPageBySlug, useSuspenseUIBuilderPages, useUIBuilderPage, useUIBuilderPageBySlug, useUIBuilderPages, useUpdateUIBuilderPage } from './hooks/index.js';
|
|
11
12
|
import 'zod';
|
|
12
13
|
import 'react-hook-form';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Configuration for UI Builder client plugin
|
|
@@ -202,8 +202,18 @@ declare function createComponentRegistry(components: ComponentRegistry): Compone
|
|
|
202
202
|
declare const classNameFieldOverrides: FieldConfigFunction;
|
|
203
203
|
declare const childrenFieldOverrides: FieldConfigFunction;
|
|
204
204
|
declare const iconNameFieldOverrides: FieldConfigFunction;
|
|
205
|
-
declare const childrenAsTextareaFieldOverrides:
|
|
206
|
-
|
|
205
|
+
declare const childrenAsTextareaFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
206
|
+
renderParent: (({ children }: {
|
|
207
|
+
children: react__default.ReactNode;
|
|
208
|
+
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
209
|
+
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
210
|
+
};
|
|
211
|
+
declare const childrenAsTipTapFieldOverrides: (layer: ComponentLayer, allowVariableBinding?: boolean) => {
|
|
212
|
+
renderParent: (({ children }: {
|
|
213
|
+
children: react__default.ReactNode;
|
|
214
|
+
}) => react_jsx_runtime.JSX.Element) | undefined;
|
|
215
|
+
fieldType: ({ label, isRequired, fieldConfigItem, field, fieldProps, }: AutoFormInputComponentProps) => react_jsx_runtime.JSX.Element;
|
|
216
|
+
};
|
|
207
217
|
declare const commonFieldOverrides: (allowBinding?: boolean) => Record<string, FieldConfigFunction> | {
|
|
208
218
|
className: (layer: ComponentLayer) => FieldConfigItem;
|
|
209
219
|
children: (layer: ComponentLayer) => FieldConfigItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { C as ContentTypeConfig } from '../../shared/stack.BsXokfNh.cjs';
|
|
3
|
-
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.
|
|
4
|
-
export { C as ComponentLayer, a as ComponentRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.
|
|
3
|
+
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.BYysGdHl.cjs';
|
|
4
|
+
export { C as ComponentLayer, a as ComponentRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.BdJFrdyt.cjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../shared/stack.8nldKomx.cjs';
|
|
7
7
|
import 'react-hook-form';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { C as ContentTypeConfig } from '../../shared/stack.BsXokfNh.mjs';
|
|
3
|
-
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.
|
|
4
|
-
export { C as ComponentLayer, a as ComponentRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.
|
|
3
|
+
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.DYCFcnkL.mjs';
|
|
4
|
+
export { C as ComponentLayer, a as ComponentRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.ChVuHi5e.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../shared/stack.8nldKomx.mjs';
|
|
7
7
|
import 'react-hook-form';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { C as ContentTypeConfig } from '../../shared/stack.BsXokfNh.js';
|
|
3
|
-
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.
|
|
4
|
-
export { C as ComponentLayer, a as ComponentRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.
|
|
3
|
+
export { L as LoaderContext, b as PaginatedUIBuilderPages, P as ParsedUIBuilderPage, S as SerializedUIBuilderPage, c as UIBuilderClientHooks, a as UIBuilderPage, U as UIBuilderPageData } from '../../shared/stack.kFbDspnF.js';
|
|
4
|
+
export { C as ComponentLayer, a as ComponentRegistry, R as RegistryEntry, V as Variable } from '../../shared/stack.EhM4pmtN.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../../shared/stack.8nldKomx.js';
|
|
7
7
|
import 'react-hook-form';
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
@import "./client.css";
|
|
2
2
|
|
|
3
|
+
/* Import minimal-tiptap styles for rich text editor in form field overrides */
|
|
4
|
+
@import "@workspace/ui/components/minimal-tiptap/styles.css";
|
|
5
|
+
|
|
6
|
+
/* Load Tailwind Typography plugin for prose classes used by Markdown component */
|
|
7
|
+
@plugin "@tailwindcss/typography";
|
|
8
|
+
|
|
3
9
|
/*
|
|
4
10
|
* UI Builder Plugin CSS - Includes Tailwind class scanning
|
|
5
11
|
*
|