@questpie/admin 3.2.4 → 3.2.5
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/client/blocks/block-renderer.d.mts +2 -2
- package/dist/client/blocks/block-renderer.mjs +164 -339
- package/dist/client/components/actions/action-button.mjs +9 -9
- package/dist/client/components/actions/action-dialog.mjs +195 -493
- package/dist/client/components/actions/confirmation-dialog.mjs +44 -159
- package/dist/client/components/actions/header-actions.mjs +73 -165
- package/dist/client/components/admin-link.mjs +40 -126
- package/dist/client/components/auth/auth-loading.mjs +9 -44
- package/dist/client/components/blocks/block-canvas.mjs +31 -95
- package/dist/client/components/blocks/block-editor-context.mjs +13 -57
- package/dist/client/components/blocks/block-editor-layout.mjs +72 -166
- package/dist/client/components/blocks/block-editor-provider.mjs +184 -245
- package/dist/client/components/blocks/block-fields-renderer.mjs +54 -229
- package/dist/client/components/blocks/block-insert-button.mjs +49 -165
- package/dist/client/components/blocks/block-item-menu.mjs +102 -301
- package/dist/client/components/blocks/block-item.mjs +136 -370
- package/dist/client/components/blocks/block-library-sidebar.mjs +103 -230
- package/dist/client/components/blocks/block-tree.mjs +12 -68
- package/dist/client/components/blocks/block-type-icon.mjs +14 -56
- package/dist/client/components/brand-logo.mjs +35 -149
- package/dist/client/components/component-renderer.mjs +42 -118
- package/dist/client/components/error-boundary.mjs +14 -58
- package/dist/client/components/fields/array-field.mjs +209 -521
- package/dist/client/components/fields/asset-preview-field.mjs +41 -141
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +60 -156
- package/dist/client/components/fields/boolean-field.mjs +29 -59
- package/dist/client/components/fields/date-field.mjs +7 -37
- package/dist/client/components/fields/datetime-field.mjs +7 -38
- package/dist/client/components/fields/email-field.mjs +25 -54
- package/dist/client/components/fields/field-wrapper.mjs +30 -105
- package/dist/client/components/fields/json-field.mjs +94 -296
- package/dist/client/components/fields/locale-badge.mjs +6 -15
- package/dist/client/components/fields/number-field.mjs +27 -60
- package/dist/client/components/fields/object-array-field.mjs +283 -659
- package/dist/client/components/fields/object-field.mjs +165 -633
- package/dist/client/components/fields/relation/displays/cards-display.mjs +106 -220
- package/dist/client/components/fields/relation/displays/chips-display.mjs +78 -150
- package/dist/client/components/fields/relation/displays/grid-display.mjs +92 -186
- package/dist/client/components/fields/relation/displays/list-display.mjs +122 -239
- package/dist/client/components/fields/relation/displays/table-display.mjs +70 -244
- package/dist/client/components/fields/relation/relation-items-display.mjs +30 -126
- package/dist/client/components/fields/relation-field.mjs +10 -66
- package/dist/client/components/fields/relation-picker.mjs +18 -18
- package/dist/client/components/fields/relation-select.mjs +12 -12
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +80 -180
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +2 -2
- package/dist/client/components/fields/rich-text-editor/image-upload.mjs +13 -29
- package/dist/client/components/fields/rich-text-editor/index.mjs +195 -513
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +61 -111
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs +105 -415
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +256 -511
- package/dist/client/components/fields/rich-text-field.mjs +14 -53
- package/dist/client/components/fields/select-field.mjs +39 -74
- package/dist/client/components/fields/text-field.mjs +26 -59
- package/dist/client/components/fields/textarea-field.mjs +26 -58
- package/dist/client/components/fields/time-field.mjs +7 -35
- package/dist/client/components/fields/upload-field.mjs +47 -165
- package/dist/client/components/filter-builder/columns-tab.mjs +80 -280
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +197 -540
- package/dist/client/components/filter-builder/filters-tab.mjs +96 -386
- package/dist/client/components/filter-builder/saved-views-tab.mjs +133 -351
- package/dist/client/components/history-sidebar.mjs +285 -605
- package/dist/client/components/layout/field-layout-renderer.mjs +106 -254
- package/dist/client/components/locale-switcher.mjs +106 -228
- package/dist/client/components/media/media-grid.mjs +84 -273
- package/dist/client/components/media/media-picker-dialog.mjs +176 -476
- package/dist/client/components/preview/live-preview-mode.mjs +233 -458
- package/dist/client/components/preview/preview-pane.mjs +22 -22
- package/dist/client/components/primitives/asset-preview.mjs +290 -666
- package/dist/client/components/primitives/checkbox-input.mjs +9 -35
- package/dist/client/components/primitives/date-input.mjs +109 -327
- package/dist/client/components/primitives/dropzone.mjs +209 -336
- package/dist/client/components/primitives/field-select-control.mjs +12 -80
- package/dist/client/components/primitives/number-input.mjs +4 -4
- package/dist/client/components/primitives/select-multi.mjs +200 -559
- package/dist/client/components/primitives/select-single.mjs +165 -499
- package/dist/client/components/primitives/time-input.mjs +43 -117
- package/dist/client/components/primitives/toggle-input.mjs +9 -29
- package/dist/client/components/sheets/resource-sheet.mjs +61 -70
- package/dist/client/components/ui/accordion.mjs +35 -155
- package/dist/client/components/ui/alert.mjs +13 -68
- package/dist/client/components/ui/badge.mjs +9 -51
- package/dist/client/components/ui/button.mjs +8 -54
- package/dist/client/components/ui/card.mjs +37 -193
- package/dist/client/components/ui/checkbox.mjs +12 -68
- package/dist/client/components/ui/command.mjs +48 -219
- package/dist/client/components/ui/dialog.mjs +50 -262
- package/dist/client/components/ui/drawer.mjs +55 -259
- package/dist/client/components/ui/dropdown-menu.mjs +86 -427
- package/dist/client/components/ui/empty-state.mjs +28 -98
- package/dist/client/components/ui/field.mjs +73 -309
- package/dist/client/components/ui/input-group.mjs +42 -167
- package/dist/client/components/ui/input.mjs +7 -37
- package/dist/client/components/ui/kbd.mjs +6 -36
- package/dist/client/components/ui/label.mjs +7 -37
- package/dist/client/components/ui/popover.mjs +34 -169
- package/dist/client/components/ui/responsive-dialog.mjs +67 -273
- package/dist/client/components/ui/scroll-fade.mjs +63 -158
- package/dist/client/components/ui/search-input.mjs +33 -100
- package/dist/client/components/ui/select.mjs +72 -393
- package/dist/client/components/ui/separator.mjs +7 -38
- package/dist/client/components/ui/sheet.mjs +49 -269
- package/dist/client/components/ui/sidebar.mjs +171 -690
- package/dist/client/components/ui/skeleton.mjs +7 -38
- package/dist/client/components/ui/sonner.mjs +11 -42
- package/dist/client/components/ui/switch.mjs +9 -45
- package/dist/client/components/ui/table.mjs +48 -266
- package/dist/client/components/ui/tabs.mjs +26 -139
- package/dist/client/components/ui/textarea.mjs +6 -32
- package/dist/client/components/ui/tooltip.mjs +27 -129
- package/dist/client/components/widgets/chart-widget.mjs +174 -522
- package/dist/client/components/widgets/progress-widget.mjs +66 -172
- package/dist/client/components/widgets/quick-actions-widget.mjs +102 -261
- package/dist/client/components/widgets/recent-items-widget.mjs +69 -195
- package/dist/client/components/widgets/stats-widget.mjs +41 -175
- package/dist/client/components/widgets/table-widget.mjs +9 -9
- package/dist/client/components/widgets/timeline-widget.mjs +86 -226
- package/dist/client/components/widgets/value-widget.mjs +74 -381
- package/dist/client/components/widgets/widget-empty-state.mjs +26 -76
- package/dist/client/components/widgets/widget-skeletons.mjs +138 -421
- package/dist/client/contexts/focus-context.mjs +63 -146
- package/dist/client/hooks/typed-hooks.mjs +241 -701
- package/dist/client/hooks/use-action.mjs +62 -198
- package/dist/client/hooks/use-admin-config.mjs +5 -35
- package/dist/client/hooks/use-admin-preferences.mjs +16 -88
- package/dist/client/hooks/use-admin-routes.mjs +22 -56
- package/dist/client/hooks/use-audit-history.mjs +21 -69
- package/dist/client/hooks/use-brand.mjs +1 -9
- package/dist/client/hooks/use-collection-fields.mjs +17 -57
- package/dist/client/hooks/use-collection-meta.mjs +12 -44
- package/dist/client/hooks/use-collection-schema.mjs +10 -33
- package/dist/client/hooks/use-collection-validation.mjs +23 -53
- package/dist/client/hooks/use-collection.mjs +194 -614
- package/dist/client/hooks/use-current-user.mjs +0 -1
- package/dist/client/hooks/use-field-hooks.mjs +10 -10
- package/dist/client/hooks/use-field-options.mjs +61 -202
- package/dist/client/hooks/use-global-fields.mjs +14 -46
- package/dist/client/hooks/use-global-meta.mjs +9 -30
- package/dist/client/hooks/use-global-schema.mjs +9 -30
- package/dist/client/hooks/use-global.mjs +63 -219
- package/dist/client/hooks/use-locks.mjs +117 -325
- package/dist/client/hooks/use-media-query.mjs +16 -36
- package/dist/client/hooks/use-prefill-params.mjs +0 -1
- package/dist/client/hooks/use-questpie-query-options.mjs +12 -29
- package/dist/client/hooks/use-reactive-fields.mjs +1 -1
- package/dist/client/hooks/use-reactive-prop.mjs +65 -223
- package/dist/client/hooks/use-realtime-highlight.mjs +51 -114
- package/dist/client/hooks/use-saved-views.mjs +22 -103
- package/dist/client/hooks/use-search-param-toggle.mjs +28 -79
- package/dist/client/hooks/use-search.mjs +31 -143
- package/dist/client/hooks/use-server-actions.mjs +18 -50
- package/dist/client/hooks/use-server-validation.mjs +72 -166
- package/dist/client/hooks/use-server-widget-data.mjs +7 -33
- package/dist/client/hooks/use-setup-status.mjs +12 -25
- package/dist/client/hooks/use-sidebar-search-param.mjs +33 -78
- package/dist/client/hooks/use-transition-stage.mjs +8 -38
- package/dist/client/hooks/use-upload.mjs +54 -152
- package/dist/client/hooks/use-validation-error-map.mjs +6 -26
- package/dist/client/hooks/use-view-state.mjs +187 -437
- package/dist/client/i18n/hooks.mjs +65 -197
- package/dist/client/lib/render-profiler.mjs +14 -41
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/block-scope-context.mjs +14 -36
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-banner.mjs +42 -108
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/preview/preview-field.mjs +167 -348
- package/dist/client/preview/use-collection-preview.mjs +121 -215
- package/dist/client/runtime/content-locales-provider.mjs +31 -83
- package/dist/client/runtime/locale-scope.mjs +22 -63
- package/dist/client/runtime/provider.mjs +100 -255
- package/dist/client/runtime/translations-provider.mjs +41 -107
- package/dist/client/scope/picker.d.mts +2 -2
- package/dist/client/scope/picker.mjs +86 -321
- package/dist/client/scope/provider.d.mts +2 -2
- package/dist/client/scope/provider.mjs +8 -17
- package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
- package/dist/client/views/auth/accept-invite-form.mjs +121 -412
- package/dist/client/views/auth/auth-layout.d.mts +3 -3
- package/dist/client/views/auth/auth-layout.mjs +104 -284
- package/dist/client/views/auth/forgot-password-form.mjs +94 -325
- package/dist/client/views/auth/invite-form.mjs +107 -442
- package/dist/client/views/auth/login-form.d.mts +2 -2
- package/dist/client/views/auth/login-form.mjs +116 -337
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/reset-password-form.mjs +128 -453
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/auth/setup-form.mjs +140 -478
- package/dist/client/views/collection/auto-form-fields.mjs +243 -615
- package/dist/client/views/collection/bulk-action-toolbar.mjs +212 -379
- package/dist/client/views/collection/cells/complex-cells.mjs +183 -611
- package/dist/client/views/collection/cells/primitive-cells.mjs +109 -363
- package/dist/client/views/collection/cells/relation-cells.mjs +86 -233
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +142 -371
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +35 -131
- package/dist/client/views/collection/cells/upload-cells.mjs +60 -177
- package/dist/client/views/collection/columns/build-columns.mjs +8 -48
- package/dist/client/views/collection/field-renderer.mjs +58 -182
- package/dist/client/views/collection/form-view.mjs +284 -518
- package/dist/client/views/collection/table-view.mjs +231 -463
- package/dist/client/views/collection/view-skeletons.mjs +112 -237
- package/dist/client/views/common/global-search.mjs +241 -560
- package/dist/client/views/dashboard/dashboard-grid.mjs +256 -775
- package/dist/client/views/dashboard/dashboard-widget.mjs +38 -126
- package/dist/client/views/dashboard/widget-card.mjs +61 -269
- package/dist/client/views/globals/global-form-view.mjs +477 -1301
- package/dist/client/views/layout/admin-layout-provider.mjs +28 -88
- package/dist/client/views/layout/admin-layout.mjs +83 -246
- package/dist/client/views/layout/admin-router.mjs +458 -1274
- package/dist/client/views/layout/admin-sidebar.mjs +510 -1292
- package/dist/client/views/layout/admin-theme.mjs +30 -64
- package/dist/client/views/layout/admin-view-layout.mjs +40 -144
- package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
- package/dist/client/views/pages/accept-invite-page.mjs +95 -290
- package/dist/client/views/pages/dashboard-page.d.mts +2 -2
- package/dist/client/views/pages/dashboard-page.mjs +11 -57
- package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.mjs +31 -83
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.mjs +35 -90
- package/dist/client/views/pages/login-page.mjs +41 -121
- package/dist/client/views/pages/reset-password-page.mjs +46 -173
- package/dist/client/views/pages/setup-page.mjs +33 -95
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/components/rich-text/rich-text-renderer.mjs +9 -33
- package/dist/server/modules/admin/collections/account.d.mts +46 -46
- package/dist/server/modules/admin/collections/admin-locks.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
- package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
- package/dist/server/modules/admin/collections/assets.d.mts +39 -39
- package/dist/server/modules/admin/collections/session.d.mts +41 -41
- package/dist/server/modules/admin/collections/user.d.mts +63 -63
- package/dist/server/modules/admin/collections/verification.d.mts +36 -36
- package/dist/server/modules/admin/index.d.mts +20 -19
- package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
- package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
- package/dist/server/modules/admin/routes/locales.d.mts +2 -2
- package/dist/server/modules/admin/routes/preview.d.mts +11 -11
- package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
- package/dist/server/modules/admin/routes/setup.d.mts +7 -7
- package/dist/server/modules/admin/routes/translations.d.mts +4 -4
- package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +45 -45
- package/dist/server/modules/audit/.generated/module.d.mts +6 -6
- package/dist/server/modules/audit/collections/audit-log.d.mts +78 -78
- package/dist/server/modules/audit/jobs/audit-cleanup.d.mts +2 -2
- package/package.json +3 -5
|
@@ -2,7 +2,6 @@ import { useTranslation } from "../../i18n/hooks.mjs";
|
|
|
2
2
|
import { selectBasePath, selectClient, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
|
|
3
3
|
import { AuthLayout } from "../auth/auth-layout.mjs";
|
|
4
4
|
import { SetupForm } from "../auth/setup-form.mjs";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import * as React from "react";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
|
|
@@ -28,74 +27,41 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
28
27
|
* })
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
|
-
function SetupPage(
|
|
32
|
-
const $ = c(29);
|
|
33
|
-
const { title, description, logo, redirectTo, loginPath, showLoginLink: t1 } = t0;
|
|
34
|
-
const showLoginLink = t1 === void 0 ? true : t1;
|
|
30
|
+
function SetupPage({ title, description, logo, redirectTo, loginPath, showLoginLink = true }) {
|
|
35
31
|
const { t } = useTranslation();
|
|
36
32
|
const client = useAdminStore(selectClient);
|
|
37
33
|
const navigate = useAdminStore(selectNavigate);
|
|
38
34
|
const basePath = useAdminStore(selectBasePath);
|
|
39
35
|
const [error, setError] = React.useState(null);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
else setError(t("error.failedToCreateAdminAccount"));
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
navigate(successRedirect);
|
|
57
|
-
} catch (t3$1) {
|
|
58
|
-
const err = t3$1;
|
|
59
|
-
if (err instanceof Error) setError(err.message);
|
|
60
|
-
else setError(t("error.anErrorOccurred"));
|
|
36
|
+
const handleSubmit = async (values) => {
|
|
37
|
+
setError(null);
|
|
38
|
+
const successRedirect = redirectTo !== void 0 ? redirectTo : `${basePath}/login`;
|
|
39
|
+
try {
|
|
40
|
+
const result = await client.routes.createFirstAdmin({
|
|
41
|
+
email: values.email,
|
|
42
|
+
password: values.password,
|
|
43
|
+
name: values.name
|
|
44
|
+
});
|
|
45
|
+
if (!result.success) {
|
|
46
|
+
if (result.error) setError(result.error);
|
|
47
|
+
else setError(t("error.failedToCreateAdminAccount"));
|
|
48
|
+
return;
|
|
61
49
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
$[7] = loginPath;
|
|
78
|
-
$[8] = navigate;
|
|
79
|
-
$[9] = t3;
|
|
80
|
-
} else t3 = $[9];
|
|
81
|
-
const handleLoginClick = t3;
|
|
82
|
-
let t4;
|
|
83
|
-
if ($[10] !== t || $[11] !== title) {
|
|
84
|
-
t4 = title ?? t("auth.createFirstAdmin");
|
|
85
|
-
$[10] = t;
|
|
86
|
-
$[11] = title;
|
|
87
|
-
$[12] = t4;
|
|
88
|
-
} else t4 = $[12];
|
|
89
|
-
let t5;
|
|
90
|
-
if ($[13] !== description || $[14] !== t) {
|
|
91
|
-
t5 = description ?? t("auth.createAccountDescription");
|
|
92
|
-
$[13] = description;
|
|
93
|
-
$[14] = t;
|
|
94
|
-
$[15] = t5;
|
|
95
|
-
} else t5 = $[15];
|
|
96
|
-
let t6;
|
|
97
|
-
if ($[16] !== handleLoginClick || $[17] !== showLoginLink || $[18] !== t) {
|
|
98
|
-
t6 = showLoginLink && /* @__PURE__ */ jsxs("p", {
|
|
50
|
+
navigate(successRedirect);
|
|
51
|
+
} catch (err) {
|
|
52
|
+
if (err instanceof Error) setError(err.message);
|
|
53
|
+
else setError(t("error.anErrorOccurred"));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const handleLoginClick = () => {
|
|
57
|
+
navigate(loginPath ?? `${basePath}/login`);
|
|
58
|
+
};
|
|
59
|
+
return /* @__PURE__ */ jsx(AuthLayout, {
|
|
60
|
+
title: title ?? t("auth.createFirstAdmin"),
|
|
61
|
+
description: description ?? t("auth.createAccountDescription"),
|
|
62
|
+
logo,
|
|
63
|
+
className: "qa-setup-page",
|
|
64
|
+
footer: showLoginLink && /* @__PURE__ */ jsxs("p", {
|
|
99
65
|
className: "text-muted-foreground text-center text-xs",
|
|
100
66
|
children: [
|
|
101
67
|
t("auth.alreadyHaveAccount"),
|
|
@@ -107,40 +73,12 @@ function SetupPage(t0) {
|
|
|
107
73
|
children: t("auth.signIn")
|
|
108
74
|
})
|
|
109
75
|
]
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
$[17] = showLoginLink;
|
|
113
|
-
$[18] = t;
|
|
114
|
-
$[19] = t6;
|
|
115
|
-
} else t6 = $[19];
|
|
116
|
-
let t7;
|
|
117
|
-
if ($[20] !== error || $[21] !== handleSubmit) {
|
|
118
|
-
t7 = /* @__PURE__ */ jsx(SetupForm, {
|
|
76
|
+
}),
|
|
77
|
+
children: /* @__PURE__ */ jsx(SetupForm, {
|
|
119
78
|
onSubmit: handleSubmit,
|
|
120
79
|
error
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
$[21] = handleSubmit;
|
|
124
|
-
$[22] = t7;
|
|
125
|
-
} else t7 = $[22];
|
|
126
|
-
let t8;
|
|
127
|
-
if ($[23] !== logo || $[24] !== t4 || $[25] !== t5 || $[26] !== t6 || $[27] !== t7) {
|
|
128
|
-
t8 = /* @__PURE__ */ jsx(AuthLayout, {
|
|
129
|
-
title: t4,
|
|
130
|
-
description: t5,
|
|
131
|
-
logo,
|
|
132
|
-
className: "qa-setup-page",
|
|
133
|
-
footer: t6,
|
|
134
|
-
children: t7
|
|
135
|
-
});
|
|
136
|
-
$[23] = logo;
|
|
137
|
-
$[24] = t4;
|
|
138
|
-
$[25] = t5;
|
|
139
|
-
$[26] = t6;
|
|
140
|
-
$[27] = t7;
|
|
141
|
-
$[28] = t8;
|
|
142
|
-
} else t8 = $[28];
|
|
143
|
-
return t8;
|
|
80
|
+
})
|
|
81
|
+
});
|
|
144
82
|
}
|
|
145
83
|
|
|
146
84
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/rich-text/rich-text-renderer.d.ts
|
|
4
4
|
/**
|
|
@@ -98,6 +98,6 @@ declare function RichTextRenderer({
|
|
|
98
98
|
content,
|
|
99
99
|
styles: customStyles,
|
|
100
100
|
className
|
|
101
|
-
}: RichTextRendererProps):
|
|
101
|
+
}: RichTextRendererProps): react_jsx_runtime17.JSX.Element | null;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { RichTextRenderer, RichTextStyles, TipTapDoc, TipTapNode };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { cn } from "../../client/lib/utils.mjs";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
|
|
5
4
|
//#region src/components/rich-text/rich-text-renderer.tsx
|
|
@@ -198,39 +197,16 @@ function renderNode(node, index, styles) {
|
|
|
198
197
|
* />
|
|
199
198
|
* ```
|
|
200
199
|
*/
|
|
201
|
-
function RichTextRenderer(
|
|
202
|
-
const $ = c(8);
|
|
203
|
-
const { content, styles: customStyles, className } = t0;
|
|
200
|
+
function RichTextRenderer({ content, styles: customStyles, className }) {
|
|
204
201
|
if (!content || !content.content || content.content.length === 0) return null;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
t2 = content.content.map((node, i) => renderNode(node, i, styles));
|
|
214
|
-
$[0] = className;
|
|
215
|
-
$[1] = content.content;
|
|
216
|
-
$[2] = customStyles;
|
|
217
|
-
$[3] = t1;
|
|
218
|
-
$[4] = t2;
|
|
219
|
-
} else {
|
|
220
|
-
t1 = $[3];
|
|
221
|
-
t2 = $[4];
|
|
222
|
-
}
|
|
223
|
-
let t3;
|
|
224
|
-
if ($[5] !== t1 || $[6] !== t2) {
|
|
225
|
-
t3 = /* @__PURE__ */ jsx("div", {
|
|
226
|
-
className: t1,
|
|
227
|
-
children: t2
|
|
228
|
-
});
|
|
229
|
-
$[5] = t1;
|
|
230
|
-
$[6] = t2;
|
|
231
|
-
$[7] = t3;
|
|
232
|
-
} else t3 = $[7];
|
|
233
|
-
return t3;
|
|
202
|
+
const styles = {
|
|
203
|
+
...defaultStyles,
|
|
204
|
+
...customStyles
|
|
205
|
+
};
|
|
206
|
+
return /* @__PURE__ */ jsx("div", {
|
|
207
|
+
className: cn(styles.doc, className),
|
|
208
|
+
children: content.content.map((node, i) => renderNode(node, i, styles))
|
|
209
|
+
});
|
|
234
210
|
}
|
|
235
211
|
|
|
236
212
|
//#endregion
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as questpie_shared23 from "questpie/shared";
|
|
2
|
+
import * as questpie180 from "questpie";
|
|
3
3
|
import * as questpie_src_server_modules_core_fields_email_js4 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
4
|
import * as questpie_src_server_modules_core_fields_json_js4 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as drizzle_orm_pg_core38 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm21 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/account.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
9
|
+
declare const _default: questpie180.CollectionBuilder<questpie_shared23.Override<questpie180.EmptyCollectionState<"account", undefined, {
|
|
10
|
+
readonly text: typeof questpie180.text;
|
|
11
|
+
readonly textarea: typeof questpie180.textarea;
|
|
12
12
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js4.email;
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
13
|
+
readonly url: typeof questpie180.url;
|
|
14
|
+
readonly number: typeof questpie180.number;
|
|
15
|
+
readonly boolean: typeof questpie180.boolean;
|
|
16
|
+
readonly date: typeof questpie180.date;
|
|
17
|
+
readonly datetime: typeof questpie180.datetime;
|
|
18
|
+
readonly time: typeof questpie180.time;
|
|
19
|
+
readonly select: typeof questpie180.select;
|
|
20
|
+
readonly upload: typeof questpie180.upload;
|
|
21
|
+
readonly relation: typeof questpie180.relation;
|
|
22
|
+
readonly object: typeof questpie180.object;
|
|
23
23
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js4.json;
|
|
24
|
-
readonly from: typeof
|
|
24
|
+
readonly from: typeof questpie180.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "account";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly accountId:
|
|
30
|
-
readonly providerId:
|
|
31
|
-
readonly accessToken:
|
|
32
|
-
readonly refreshToken:
|
|
33
|
-
readonly accessTokenExpiresAt:
|
|
34
|
-
readonly refreshTokenExpiresAt:
|
|
35
|
-
readonly scope:
|
|
36
|
-
readonly idToken:
|
|
37
|
-
readonly password:
|
|
28
|
+
readonly userId: drizzle_orm21.NotNull<drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly accountId: drizzle_orm21.NotNull<drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly providerId: drizzle_orm21.NotNull<drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly accessToken: drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>;
|
|
32
|
+
readonly refreshToken: drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>;
|
|
33
|
+
readonly accessTokenExpiresAt: drizzle_orm_pg_core38.PgTimestampBuilder;
|
|
34
|
+
readonly refreshTokenExpiresAt: drizzle_orm_pg_core38.PgTimestampBuilder;
|
|
35
|
+
readonly scope: drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>;
|
|
36
|
+
readonly idToken: drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>;
|
|
37
|
+
readonly password: drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>;
|
|
38
38
|
};
|
|
39
39
|
virtuals: undefined;
|
|
40
|
-
relations: Record<string,
|
|
40
|
+
relations: Record<string, questpie180.RelationConfig>;
|
|
41
41
|
indexes: Record<string, any>;
|
|
42
42
|
title: "providerId";
|
|
43
|
-
options:
|
|
43
|
+
options: questpie180.CollectionOptions & {
|
|
44
44
|
timestamps: true;
|
|
45
45
|
};
|
|
46
46
|
hooks: Record<string, any>;
|
|
47
47
|
access: Record<string, any>;
|
|
48
48
|
searchable: undefined;
|
|
49
49
|
fieldDefinitions: {
|
|
50
|
-
readonly userId:
|
|
50
|
+
readonly userId: questpie180.FieldWithMethods<Omit<questpie180.TextFieldState, "notNull" | "column"> & {
|
|
51
51
|
notNull: true;
|
|
52
|
-
column:
|
|
53
|
-
},
|
|
54
|
-
readonly accountId:
|
|
52
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
}, questpie180.TextFieldMethods>;
|
|
54
|
+
readonly accountId: questpie180.FieldWithMethods<Omit<questpie180.TextFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
|
-
column:
|
|
57
|
-
},
|
|
58
|
-
readonly providerId:
|
|
56
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>>;
|
|
57
|
+
}, questpie180.TextFieldMethods>;
|
|
58
|
+
readonly providerId: questpie180.FieldWithMethods<Omit<questpie180.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
61
|
-
},
|
|
62
|
-
readonly accessToken:
|
|
63
|
-
readonly refreshToken:
|
|
64
|
-
readonly accessTokenExpiresAt:
|
|
65
|
-
readonly refreshTokenExpiresAt:
|
|
66
|
-
readonly scope:
|
|
67
|
-
readonly idToken:
|
|
68
|
-
readonly password:
|
|
60
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core38.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
|
+
}, questpie180.TextFieldMethods>;
|
|
62
|
+
readonly accessToken: questpie180.FieldWithMethods<questpie180.TextFieldState, questpie180.TextFieldMethods>;
|
|
63
|
+
readonly refreshToken: questpie180.FieldWithMethods<questpie180.TextFieldState, questpie180.TextFieldMethods>;
|
|
64
|
+
readonly accessTokenExpiresAt: questpie180.FieldWithMethods<questpie180.DatetimeFieldState, questpie180.DatetimeFieldMethods>;
|
|
65
|
+
readonly refreshTokenExpiresAt: questpie180.FieldWithMethods<questpie180.DatetimeFieldState, questpie180.DatetimeFieldMethods>;
|
|
66
|
+
readonly scope: questpie180.FieldWithMethods<questpie180.TextFieldState, questpie180.TextFieldMethods>;
|
|
67
|
+
readonly idToken: questpie180.FieldWithMethods<questpie180.TextFieldState, questpie180.TextFieldMethods>;
|
|
68
|
+
readonly password: questpie180.FieldWithMethods<questpie180.TextFieldState, questpie180.TextFieldMethods>;
|
|
69
69
|
};
|
|
70
70
|
upload: undefined;
|
|
71
71
|
output: {};
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as questpie_shared24 from "questpie/shared";
|
|
2
|
+
import * as questpie229 from "questpie";
|
|
3
3
|
import * as questpie_src_server_modules_core_fields_email_js5 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
4
|
import * as questpie_src_server_modules_core_fields_json_js5 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as drizzle_orm_pg_core51 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm27 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/admin-locks.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
9
|
+
declare const _default: questpie229.CollectionBuilder<questpie_shared24.Override<questpie229.EmptyCollectionState<"admin_locks", undefined, {
|
|
10
|
+
readonly text: typeof questpie229.text;
|
|
11
|
+
readonly textarea: typeof questpie229.textarea;
|
|
12
12
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js5.email;
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
13
|
+
readonly url: typeof questpie229.url;
|
|
14
|
+
readonly number: typeof questpie229.number;
|
|
15
|
+
readonly boolean: typeof questpie229.boolean;
|
|
16
|
+
readonly date: typeof questpie229.date;
|
|
17
|
+
readonly datetime: typeof questpie229.datetime;
|
|
18
|
+
readonly time: typeof questpie229.time;
|
|
19
|
+
readonly select: typeof questpie229.select;
|
|
20
|
+
readonly upload: typeof questpie229.upload;
|
|
21
|
+
readonly relation: typeof questpie229.relation;
|
|
22
|
+
readonly object: typeof questpie229.object;
|
|
23
23
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js5.json;
|
|
24
|
-
readonly from: typeof
|
|
24
|
+
readonly from: typeof questpie229.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "admin_locks";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly resourceType:
|
|
29
|
-
readonly resource:
|
|
30
|
-
readonly resourceId:
|
|
31
|
-
readonly user:
|
|
32
|
-
readonly sessionId:
|
|
33
|
-
readonly expiresAt:
|
|
28
|
+
readonly resourceType: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly resource: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly resourceId: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly user: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
32
|
+
readonly sessionId: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
33
|
+
readonly expiresAt: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgDateStringBuilder>;
|
|
34
34
|
};
|
|
35
35
|
virtuals: undefined;
|
|
36
|
-
relations: Record<string,
|
|
36
|
+
relations: Record<string, questpie229.RelationConfig>;
|
|
37
37
|
indexes: Record<string, any>;
|
|
38
38
|
title: undefined;
|
|
39
|
-
options:
|
|
39
|
+
options: questpie229.CollectionOptions & {
|
|
40
40
|
timestamps: true;
|
|
41
41
|
};
|
|
42
42
|
hooks: Record<string, any>;
|
|
43
43
|
access: Record<string, any>;
|
|
44
44
|
searchable: undefined;
|
|
45
45
|
fieldDefinitions: {
|
|
46
|
-
readonly resourceType:
|
|
46
|
+
readonly resourceType: questpie229.FieldWithMethods<Omit<questpie229.SelectFieldState, "notNull" | "column"> & {
|
|
47
47
|
notNull: true;
|
|
48
|
-
column:
|
|
48
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
49
49
|
} & {
|
|
50
|
-
label:
|
|
51
|
-
},
|
|
52
|
-
readonly resource:
|
|
50
|
+
label: questpie_shared24.I18nText;
|
|
51
|
+
}, questpie229.SelectFieldMethods>;
|
|
52
|
+
readonly resource: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
|
|
53
53
|
notNull: true;
|
|
54
|
-
column:
|
|
54
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
55
55
|
} & {
|
|
56
|
-
label:
|
|
57
|
-
},
|
|
58
|
-
readonly resourceId:
|
|
56
|
+
label: questpie_shared24.I18nText;
|
|
57
|
+
}, questpie229.TextFieldMethods>;
|
|
58
|
+
readonly resourceId: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
60
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
61
|
} & {
|
|
62
|
-
label:
|
|
63
|
-
},
|
|
64
|
-
readonly user:
|
|
62
|
+
label: questpie_shared24.I18nText;
|
|
63
|
+
}, questpie229.TextFieldMethods>;
|
|
64
|
+
readonly user: questpie229.FieldWithMethods<Omit<questpie229.RelationFieldState<"user">, "notNull" | "column"> & {
|
|
65
65
|
notNull: true;
|
|
66
|
-
column:
|
|
66
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
69
|
-
},
|
|
70
|
-
readonly sessionId:
|
|
68
|
+
label: questpie_shared24.I18nText;
|
|
69
|
+
}, questpie229.RelationFieldMethods>;
|
|
70
|
+
readonly sessionId: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
|
|
71
71
|
notNull: true;
|
|
72
|
-
column:
|
|
72
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgVarcharBuilder<[string, ...string[]]>>;
|
|
73
73
|
} & {
|
|
74
|
-
label:
|
|
75
|
-
},
|
|
76
|
-
readonly expiresAt:
|
|
74
|
+
label: questpie_shared24.I18nText;
|
|
75
|
+
}, questpie229.TextFieldMethods>;
|
|
76
|
+
readonly expiresAt: questpie229.FieldWithMethods<Omit<questpie229.DateFieldState, "notNull" | "column"> & {
|
|
77
77
|
notNull: true;
|
|
78
|
-
column:
|
|
78
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core51.PgDateStringBuilder>;
|
|
79
79
|
} & {
|
|
80
|
-
label:
|
|
81
|
-
},
|
|
80
|
+
label: questpie_shared24.I18nText;
|
|
81
|
+
}, questpie229.DateFieldMethods>;
|
|
82
82
|
};
|
|
83
83
|
upload: undefined;
|
|
84
84
|
output: {};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as questpie_shared57 from "questpie/shared";
|
|
2
|
+
import * as questpie407 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js8 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js8 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core130 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm69 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/admin-preferences.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
12
|
-
readonly email: typeof
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
23
|
-
readonly json: typeof
|
|
24
|
-
readonly from: typeof
|
|
9
|
+
declare const _default: questpie407.CollectionBuilder<questpie_shared57.Override<questpie407.EmptyCollectionState<"admin_preferences", undefined, {
|
|
10
|
+
readonly text: typeof questpie407.text;
|
|
11
|
+
readonly textarea: typeof questpie407.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js8.email;
|
|
13
|
+
readonly url: typeof questpie407.url;
|
|
14
|
+
readonly number: typeof questpie407.number;
|
|
15
|
+
readonly boolean: typeof questpie407.boolean;
|
|
16
|
+
readonly date: typeof questpie407.date;
|
|
17
|
+
readonly datetime: typeof questpie407.datetime;
|
|
18
|
+
readonly time: typeof questpie407.time;
|
|
19
|
+
readonly select: typeof questpie407.select;
|
|
20
|
+
readonly upload: typeof questpie407.upload;
|
|
21
|
+
readonly relation: typeof questpie407.relation;
|
|
22
|
+
readonly object: typeof questpie407.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js8.json;
|
|
24
|
+
readonly from: typeof questpie407.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "admin_preferences";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly key:
|
|
30
|
-
readonly value:
|
|
28
|
+
readonly userId: drizzle_orm69.NotNull<drizzle_orm_pg_core130.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly key: drizzle_orm69.NotNull<drizzle_orm_pg_core130.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly value: drizzle_orm69.NotNull<drizzle_orm_pg_core130.PgJsonbBuilder>;
|
|
31
31
|
};
|
|
32
32
|
virtuals: undefined;
|
|
33
|
-
relations: Record<string,
|
|
34
|
-
indexes: Record<string, any> &
|
|
33
|
+
relations: Record<string, questpie407.RelationConfig>;
|
|
34
|
+
indexes: Record<string, any> & drizzle_orm_pg_core130.IndexBuilder[];
|
|
35
35
|
title: undefined;
|
|
36
|
-
options:
|
|
36
|
+
options: questpie407.CollectionOptions & {
|
|
37
37
|
timestamps: true;
|
|
38
38
|
};
|
|
39
39
|
hooks: Record<string, any>;
|
|
40
40
|
access: Record<string, any>;
|
|
41
41
|
searchable: undefined;
|
|
42
42
|
fieldDefinitions: {
|
|
43
|
-
readonly userId:
|
|
43
|
+
readonly userId: questpie407.FieldWithMethods<Omit<questpie407.TextFieldState, "notNull" | "column"> & {
|
|
44
44
|
notNull: true;
|
|
45
|
-
column:
|
|
45
|
+
column: drizzle_orm69.NotNull<drizzle_orm_pg_core130.PgVarcharBuilder<[string, ...string[]]>>;
|
|
46
46
|
} & {
|
|
47
|
-
label:
|
|
48
|
-
},
|
|
49
|
-
readonly key:
|
|
47
|
+
label: questpie_shared57.I18nText;
|
|
48
|
+
}, questpie407.TextFieldMethods>;
|
|
49
|
+
readonly key: questpie407.FieldWithMethods<Omit<questpie407.TextFieldState, "notNull" | "column"> & {
|
|
50
50
|
notNull: true;
|
|
51
|
-
column:
|
|
51
|
+
column: drizzle_orm69.NotNull<drizzle_orm_pg_core130.PgVarcharBuilder<[string, ...string[]]>>;
|
|
52
52
|
} & {
|
|
53
|
-
label:
|
|
54
|
-
},
|
|
55
|
-
readonly value:
|
|
53
|
+
label: questpie_shared57.I18nText;
|
|
54
|
+
}, questpie407.TextFieldMethods>;
|
|
55
|
+
readonly value: questpie407.Field<Omit<questpie407.JsonFieldState, "notNull" | "column"> & {
|
|
56
56
|
notNull: true;
|
|
57
|
-
column:
|
|
57
|
+
column: drizzle_orm69.NotNull<drizzle_orm_pg_core130.PgJsonbBuilder>;
|
|
58
58
|
} & {
|
|
59
|
-
label:
|
|
59
|
+
label: questpie_shared57.I18nText;
|
|
60
60
|
}>;
|
|
61
61
|
};
|
|
62
62
|
upload: undefined;
|