@middag-io/react 0.45.0 → 0.45.2
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/docs/public/schemas/ai-contract-manifest.json +1820 -0
- package/docs/public/schemas/blocks.json +445 -0
- package/docs/public/schemas/components.json +166 -0
- package/docs/public/schemas/connectors.json +97 -0
- package/docs/public/schemas/fragment.json +2329 -0
- package/docs/public/schemas/manifest.json +119 -0
- package/docs/public/schemas/navigation.json +72 -0
- package/docs/public/schemas/page-contract.json +2329 -0
- package/docs/public/schemas/shared-props.json +118 -0
- package/docs/public/schemas/theme-defaults.json +253 -0
- package/docs/public/schemas/theme.json +401 -0
- package/package.json +109 -3
- package/src/assets/lottie/calendar/schedule-1.json +1 -0
- package/src/assets/lottie/calendar/schedule-2.json +1 -0
- package/src/assets/lottie/celebration/confetti-1.json +1 -0
- package/src/assets/lottie/celebration/confetti-2.json +1 -0
- package/src/assets/lottie/celebration/confetti-3.json +1 -0
- package/src/assets/lottie/cloud/cloud-1.json +1 -0
- package/src/assets/lottie/cloud/cloud-2.json +1 -0
- package/src/assets/lottie/connection/network-1.json +1 -0
- package/src/assets/lottie/connection/network-2.json +1 -0
- package/src/assets/lottie/connection/network-3.json +1 -0
- package/src/assets/lottie/dashboard/analytics-1.json +1 -0
- package/src/assets/lottie/dashboard/analytics-2.json +1 -0
- package/src/assets/lottie/dashboard/analytics-3.json +1 -0
- package/src/assets/lottie/email/mail-1.json +1 -0
- package/src/assets/lottie/email/mail-2.json +1 -0
- package/src/assets/lottie/email/mail-3.json +1 -0
- package/src/assets/lottie/empty-state/empty-1.json +1 -0
- package/src/assets/lottie/empty-state/empty-2.json +1 -0
- package/src/assets/lottie/empty-state/empty-3.json +1 -0
- package/src/assets/lottie/error/warning-1.json +1 -0
- package/src/assets/lottie/error/warning-2.json +1 -0
- package/src/assets/lottie/error/warning-3.json +1 -0
- package/src/assets/lottie/index.ts +49 -0
- package/src/assets/lottie/loading/spinner-1.json +1 -0
- package/src/assets/lottie/loading/spinner-2.json +1 -0
- package/src/assets/lottie/loading/spinner-3.json +1 -0
- package/src/assets/lottie/maintenance/construction-1.json +1 -0
- package/src/assets/lottie/maintenance/construction-2.json +1 -0
- package/src/assets/lottie/maintenance/construction-3.json +1 -0
- package/src/assets/lottie/not-found/404-1.json +1 -0
- package/src/assets/lottie/not-found/404-2.json +1 -0
- package/src/assets/lottie/not-found/404-3.json +1 -0
- package/src/assets/lottie/notification/bell-1.json +1 -0
- package/src/assets/lottie/notification/bell-2.json +1 -0
- package/src/assets/lottie/notification/bell-3.json +1 -0
- package/src/assets/lottie/onboarding/welcome-1.json +1 -0
- package/src/assets/lottie/onboarding/welcome-2.json +1 -0
- package/src/assets/lottie/onboarding/welcome-3.json +1 -0
- package/src/assets/lottie/payment/wallet-1.json +1 -0
- package/src/assets/lottie/payment/wallet-2.json +1 -0
- package/src/assets/lottie/payment/wallet-3.json +1 -0
- package/src/assets/lottie/search/search-1.json +1 -0
- package/src/assets/lottie/search/search-2.json +1 -0
- package/src/assets/lottie/search/search-3.json +1 -0
- package/src/assets/lottie/security/lock-1.json +1 -0
- package/src/assets/lottie/security/lock-2.json +1 -0
- package/src/assets/lottie/security/lock-3.json +1 -0
- package/src/assets/lottie/settings/gear-1.json +1 -0
- package/src/assets/lottie/settings/gear-2.json +1 -0
- package/src/assets/lottie/settings/gear-3.json +1 -0
- package/src/assets/lottie/success/check-1.json +1 -0
- package/src/assets/lottie/success/check-2.json +1 -0
- package/src/assets/lottie/success/check-3.json +1 -0
- package/src/assets/lottie/upload/upload-1.json +1 -0
- package/src/assets/lottie/upload/upload-2.json +1 -0
- package/src/assets/lottie/upload/upload-3.json +1 -0
- package/src/assets/lottie/user/profile-1.json +1 -0
- package/src/assets/lottie/user/profile-2.json +1 -0
- package/src/assets/lottie/user/profile-3.json +1 -0
- package/src/base/blocks/ActionGridBlock.tsx +151 -0
- package/src/base/blocks/ActivityTimelineBlock.tsx +180 -0
- package/src/base/blocks/CardGridBlock.tsx +384 -0
- package/src/base/blocks/ChartBlock.tsx +81 -0
- package/src/base/blocks/DenseTableBlock.tsx +403 -0
- package/src/base/blocks/DetailPanelBlock.tsx +189 -0
- package/src/base/blocks/EmptyStateBlock.tsx +46 -0
- package/src/base/blocks/FormPanelBlock.lazy.tsx +38 -0
- package/src/base/blocks/FormPanelBlock.tsx +480 -0
- package/src/base/blocks/LinkListBlock.tsx +94 -0
- package/src/base/blocks/MarkdownPanelBlock.tsx +60 -0
- package/src/base/blocks/MetricCardBlock.tsx +128 -0
- package/src/base/blocks/StatusStripBlock.tsx +43 -0
- package/src/base/blocks/TabsBlock.tsx +94 -0
- package/src/base/form/FormField.tsx +607 -0
- package/src/base/form/fields/CheckboxField.tsx +56 -0
- package/src/base/form/fields/ColorField.tsx +76 -0
- package/src/base/form/fields/CurrencyField.tsx +126 -0
- package/src/base/form/fields/DateField.tsx +168 -0
- package/src/base/form/fields/DateRangeField.tsx +66 -0
- package/src/base/form/fields/DocumentField.tsx +222 -0
- package/src/base/form/fields/EntityPickerField.tsx +244 -0
- package/src/base/form/fields/FileUploadField.tsx +253 -0
- package/src/base/form/fields/MultiSelectField.tsx +286 -0
- package/src/base/form/fields/NativeSelectField.tsx +67 -0
- package/src/base/form/fields/NumberField.tsx +67 -0
- package/src/base/form/fields/OtpField.tsx +88 -0
- package/src/base/form/fields/PasswordField.tsx +69 -0
- package/src/base/form/fields/PhoneField.tsx +64 -0
- package/src/base/form/fields/RadioField.tsx +66 -0
- package/src/base/form/fields/RatingField.tsx +52 -0
- package/src/base/form/fields/SelectField.tsx +76 -0
- package/src/base/form/fields/SliderField.tsx +77 -0
- package/src/base/form/fields/SlugField.tsx +114 -0
- package/src/base/form/fields/StaticField.tsx +25 -0
- package/src/base/form/fields/SwitchField.tsx +56 -0
- package/src/base/form/fields/TagsField.tsx +128 -0
- package/src/base/form/fields/TextField.tsx +55 -0
- package/src/base/form/fields/TextareaField.tsx +55 -0
- package/src/base/form/fields/document-validation.ts +126 -0
- package/src/base/form/fields/field-registry.ts +53 -0
- package/src/base/form/fields/register-default-fields.ts +86 -0
- package/src/base/form/form-schema-builder.ts +192 -0
- package/src/base/form/form-utils.ts +71 -0
- package/src/base/hooks/useIsDark.ts +50 -0
- package/src/base/hooks/useLazyTabs.ts +98 -0
- package/src/base/hooks/usePolling.ts +43 -0
- package/src/base/hooks/useRemember.ts +58 -0
- package/src/base/hooks/useToast.ts +27 -0
- package/src/base/layout/BlockRegion.tsx +39 -0
- package/src/base/layout/DashboardLayout.tsx +110 -0
- package/src/base/layout/SidebarLayout.tsx +38 -0
- package/src/base/layout/StackLayout.tsx +32 -0
- package/src/base/layout/WizardLayout.tsx +49 -0
- package/src/base/partials/ActionBar/index.tsx +115 -0
- package/src/base/partials/ConfirmationDialog/index.tsx +128 -0
- package/src/base/partials/DataTable/cell-registry.ts +50 -0
- package/src/base/partials/DataTable/cell-renderers.tsx +372 -0
- package/src/base/partials/DataTable/index.tsx +1282 -0
- package/src/base/partials/DataTable/register-default-cells.ts +37 -0
- package/src/base/partials/DataTable/sanitize-html.ts +45 -0
- package/src/base/partials/DataTable/types.ts +229 -0
- package/src/base/partials/DetailSection/index.tsx +316 -0
- package/src/base/partials/EmptyPlaceholder/index.tsx +162 -0
- package/src/base/partials/EntityItem/index.tsx +154 -0
- package/src/base/partials/FilterBar/index.tsx +256 -0
- package/src/base/partials/FormSection/index.tsx +87 -0
- package/src/base/partials/LogViewer/JsonBlock.tsx +39 -0
- package/src/base/partials/LogViewer/LogEntry.tsx +68 -0
- package/src/base/partials/LogViewer/LogViewerToolbar.tsx +71 -0
- package/src/base/partials/LogViewer/index.tsx +110 -0
- package/src/base/partials/LogViewer/types.ts +28 -0
- package/src/base/partials/MarkdownContent/index.tsx +307 -0
- package/src/base/partials/MenuBar/index.tsx +80 -0
- package/src/base/partials/QuickRecordSheet/index.tsx +59 -0
- package/src/base/partials/ResizableSidebar/index.tsx +70 -0
- package/src/base/partials/StatRow/index.tsx +28 -0
- package/src/base/partials/StatusBar/index.tsx +126 -0
- package/src/base/partials/StatusIndicator/index.tsx +61 -0
- package/src/base/partials/StepIndicator/index.tsx +63 -0
- package/src/base/partials/TableOfContents/index.tsx +78 -0
- package/src/base/partials/TimelineList/index.tsx +273 -0
- package/src/base/partials/ToggleGroupControl/index.tsx +100 -0
- package/src/base/partials/TreeView/index.tsx +75 -0
- package/src/base/partials/index.ts +23 -0
- package/src/base/shell/AuthShell.tsx +54 -0
- package/src/base/shell/BasicShell.tsx +286 -0
- package/src/base/shell/ImmersiveShell.tsx +85 -0
- package/src/base/shell/partials/EditablePanelContext.tsx +82 -0
- package/src/base/shell/partials/EditablePanelProvider.tsx +122 -0
- package/src/base/shell/partials/InlineEditablePanel.tsx +239 -0
- package/src/base/shell/partials/InspectorContext.tsx +173 -0
- package/src/base/shell/partials/InspectorPanel.tsx +65 -0
- package/src/base/shell/partials/NavErrorBoundary.tsx +82 -0
- package/src/base/shell/partials/OverlayScreen.tsx +67 -0
- package/src/base/shell/partials/PageActionButton.tsx +203 -0
- package/src/base/theme/appearance.ts +133 -0
- package/src/base/theme/host-layout-detector.ts +119 -0
- package/src/base/theme/host-theme-detector.ts +146 -0
- package/src/base/theme/sidebar-safelist.txt +20 -0
- package/src/base/theme/tailwind-theme.css +136 -0
- package/src/base/theme/theme-bridge.css +164 -0
- package/src/base/theme/theme-context.tsx +142 -0
- package/src/base/theme/themes/classic.css +174 -0
- package/src/base/theme/tokens.css +290 -0
- package/src/base/theme/useHostTheme.ts +95 -0
- package/src/base/utils/clipboard.ts +39 -0
- package/src/base/utils/conditions.ts +27 -0
- package/src/base/utils/icon-registry.ts +78 -0
- package/src/base/utils/icons.ts +31 -0
- package/src/base/utils/interpolate.ts +9 -0
- package/src/base/utils/register-default-icons.ts +163 -0
- package/src/base/utils/storage.ts +65 -0
- package/src/base/utils/time.ts +139 -0
- package/src/contracts/block-data/actions.ts +73 -0
- package/src/contracts/block-data/data-display.ts +343 -0
- package/src/contracts/block-data/form.ts +164 -0
- package/src/contracts/block-data/index.ts +15 -0
- package/src/contracts/block-data/interactive.ts +34 -0
- package/src/contracts/block-data/shared.ts +44 -0
- package/src/contracts/connectors.ts +60 -0
- package/src/contracts/generated/contract-schema.ts +1237 -0
- package/src/contracts/generated/contract-types.ts +675 -0
- package/src/contracts/generated/index.ts +15 -0
- package/src/contracts/navigation.ts +59 -0
- package/src/contracts/page-contract-schema.ts +40 -0
- package/src/contracts/page-contract.ts +79 -0
- package/src/contracts/shared-props.ts +92 -0
- package/src/engine/ContractPage.tsx +178 -0
- package/src/engine/EntityRoutes.tsx +72 -0
- package/src/engine/HostSlot.tsx +126 -0
- package/src/engine/LazyBlock.tsx +92 -0
- package/src/engine/bootstrap.tsx +20 -0
- package/src/engine/providers/auth.tsx +87 -0
- package/src/engine/providers/error-reporter.tsx +89 -0
- package/src/engine/providers/flash.tsx +44 -0
- package/src/engine/providers/index.ts +18 -0
- package/src/engine/providers/inertia-error-reporter.tsx +61 -0
- package/src/engine/providers/progress.tsx +56 -0
- package/src/engine/providers/scope.tsx +51 -0
- package/src/engine/register-defaults.ts +88 -0
- package/src/engine/registries.ts +96 -0
- package/src/i18n/I18nProvider.tsx +53 -0
- package/src/i18n/MANIFEST.md +101 -0
- package/src/i18n/host-resolver.ts +18 -0
- package/src/i18n/instance.ts +69 -0
- package/src/i18n/locales/en/ui.json +277 -0
- package/src/i18n/locales/en/validators.json +13 -0
- package/src/i18n/locales/pt-BR/ui.json +277 -0
- package/src/i18n/locales/pt-BR/validators.json +13 -0
- package/src/i18n/register-strings.ts +10 -0
- package/src/i18n/render-label.ts +33 -0
- package/src/i18n/resolve-field-error.ts +29 -0
- package/src/i18n/useHostString.ts +50 -0
- package/src/i18n/useTranslation.ts +83 -0
- package/src/lib/actions/resolve-action-target.ts +151 -0
- package/src/lib/hooks/use-copy-to-clipboard.ts +37 -0
- package/src/lib/hooks/use-file-upload.ts +406 -0
- package/src/lib/hooks/use-mobile.ts +21 -0
- package/src/lib/host-pending.ts +76 -0
- package/src/lib/portal-container.ts +16 -0
- package/src/lib/test-ids.ts +40 -0
- package/src/lib/utils.ts +6 -0
- package/src/primitives/reui/MANIFEST.md +97 -0
- package/src/primitives/reui/accordion.tsx +64 -0
- package/src/primitives/reui/alert-dialog.tsx +196 -0
- package/src/primitives/reui/alert.tsx +92 -0
- package/src/primitives/reui/aspect-ratio.tsx +9 -0
- package/src/primitives/reui/autocomplete.tsx +343 -0
- package/src/primitives/reui/avatar.tsx +109 -0
- package/src/primitives/reui/badge.tsx +94 -0
- package/src/primitives/reui/breadcrumb.tsx +109 -0
- package/src/primitives/reui/button-group.tsx +83 -0
- package/src/primitives/reui/button.tsx +64 -0
- package/src/primitives/reui/calendar.tsx +220 -0
- package/src/primitives/reui/card.tsx +92 -0
- package/src/primitives/reui/carousel.tsx +239 -0
- package/src/primitives/reui/chart.tsx +388 -0
- package/src/primitives/reui/checkbox.tsx +30 -0
- package/src/primitives/reui/collapsible.tsx +31 -0
- package/src/primitives/reui/combobox.tsx +308 -0
- package/src/primitives/reui/command.tsx +182 -0
- package/src/primitives/reui/context-menu.tsx +250 -0
- package/src/primitives/reui/data-grid/data-grid-column-filter.tsx +172 -0
- package/src/primitives/reui/data-grid/data-grid-column-header.tsx +420 -0
- package/src/primitives/reui/data-grid/data-grid-column-visibility.tsx +51 -0
- package/src/primitives/reui/data-grid/data-grid-pagination.tsx +235 -0
- package/src/primitives/reui/data-grid/data-grid-scroll-area.tsx +427 -0
- package/src/primitives/reui/data-grid/data-grid-table-dnd-rows.tsx +308 -0
- package/src/primitives/reui/data-grid/data-grid-table-dnd.tsx +318 -0
- package/src/primitives/reui/data-grid/data-grid-table-virtual.tsx +491 -0
- package/src/primitives/reui/data-grid/data-grid-table.tsx +1430 -0
- package/src/primitives/reui/data-grid/data-grid.tsx +269 -0
- package/src/primitives/reui/data-grid-pagination.tsx +235 -0
- package/src/primitives/reui/date-selector.tsx +1353 -0
- package/src/primitives/reui/dialog.tsx +158 -0
- package/src/primitives/reui/drawer.tsx +133 -0
- package/src/primitives/reui/dropdown-menu.tsx +257 -0
- package/src/primitives/reui/empty.tsx +104 -0
- package/src/primitives/reui/field.tsx +246 -0
- package/src/primitives/reui/filters.tsx +1891 -0
- package/src/primitives/reui/frame.tsx +170 -0
- package/src/primitives/reui/hover-card.tsx +42 -0
- package/src/primitives/reui/icon-placeholder.tsx +39 -0
- package/src/primitives/reui/index.ts +98 -0
- package/src/primitives/reui/input-group.tsx +170 -0
- package/src/primitives/reui/input-otp.tsx +75 -0
- package/src/primitives/reui/input.tsx +21 -0
- package/src/primitives/reui/item.tsx +193 -0
- package/src/primitives/reui/kanban.tsx +743 -0
- package/src/primitives/reui/kbd.tsx +28 -0
- package/src/primitives/reui/label.tsx +22 -0
- package/src/primitives/reui/menubar.tsx +274 -0
- package/src/primitives/reui/native-select.tsx +62 -0
- package/src/primitives/reui/navigation-menu.tsx +168 -0
- package/src/primitives/reui/number-field.tsx +250 -0
- package/src/primitives/reui/pagination.tsx +127 -0
- package/src/primitives/reui/phone-input.tsx +231 -0
- package/src/primitives/reui/popover.tsx +87 -0
- package/src/primitives/reui/progress.tsx +31 -0
- package/src/primitives/reui/radio-group.tsx +43 -0
- package/src/primitives/reui/rating.tsx +177 -0
- package/src/primitives/reui/resizable.tsx +51 -0
- package/src/primitives/reui/scroll-area.tsx +58 -0
- package/src/primitives/reui/scrollspy.tsx +240 -0
- package/src/primitives/reui/select.tsx +188 -0
- package/src/primitives/reui/separator.tsx +28 -0
- package/src/primitives/reui/sheet.tsx +141 -0
- package/src/primitives/reui/sidebar.tsx +732 -0
- package/src/primitives/reui/skeleton.tsx +13 -0
- package/src/primitives/reui/slider.tsx +61 -0
- package/src/primitives/reui/sonner.tsx +47 -0
- package/src/primitives/reui/sortable.tsx +414 -0
- package/src/primitives/reui/spinner.tsx +16 -0
- package/src/primitives/reui/stepper.tsx +484 -0
- package/src/primitives/reui/svgs/claudeAiIcon.tsx +12 -0
- package/src/primitives/reui/svgs/gemini.tsx +171 -0
- package/src/primitives/reui/svgs/openai.tsx +9 -0
- package/src/primitives/reui/svgs/openaiDark.tsx +12 -0
- package/src/primitives/reui/switch.tsx +33 -0
- package/src/primitives/reui/table.tsx +114 -0
- package/src/primitives/reui/tabs.tsx +91 -0
- package/src/primitives/reui/textarea.tsx +18 -0
- package/src/primitives/reui/timeline.tsx +219 -0
- package/src/primitives/reui/toggle-group.tsx +83 -0
- package/src/primitives/reui/toggle.tsx +45 -0
- package/src/primitives/reui/tooltip.tsx +55 -0
- package/src/primitives/reui/tree.tsx +247 -0
- package/src/theme.css +71 -0
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated by scripts/gen-contracts.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
*
|
|
4
|
+
* TypeScript types for the MIDDAG wire contract.
|
|
5
|
+
*
|
|
6
|
+
* Source of truth: middag-php-ui value objects -> JSON Schema (draft 2020-12).
|
|
7
|
+
* Regenerate: npm run gen:contracts
|
|
8
|
+
* Drift gate: npm run gen:contracts:check
|
|
9
|
+
*
|
|
10
|
+
* @source middag-php-ui/schema/{page-contract,fragment}.json
|
|
11
|
+
* @contract-version 1
|
|
12
|
+
* @hash 61137d173165ca8e
|
|
13
|
+
*/
|
|
14
|
+
export type Label = string | Translatable;
|
|
15
|
+
export type ActionTarget =
|
|
16
|
+
| {
|
|
17
|
+
kind: "link";
|
|
18
|
+
href: string;
|
|
19
|
+
external?: true;
|
|
20
|
+
}
|
|
21
|
+
| {
|
|
22
|
+
kind: "route";
|
|
23
|
+
route: string;
|
|
24
|
+
params?: {
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
| {
|
|
29
|
+
kind: "request";
|
|
30
|
+
endpoint: string;
|
|
31
|
+
method: HttpMethod;
|
|
32
|
+
}
|
|
33
|
+
| {
|
|
34
|
+
kind: "panel";
|
|
35
|
+
};
|
|
36
|
+
export type HttpMethod = "get" | "post" | "put" | "patch" | "delete";
|
|
37
|
+
export type ActionIntent =
|
|
38
|
+
| "primary"
|
|
39
|
+
| "secondary"
|
|
40
|
+
| "danger"
|
|
41
|
+
| "success"
|
|
42
|
+
| "warning"
|
|
43
|
+
| "info"
|
|
44
|
+
| "link"
|
|
45
|
+
| "ghost";
|
|
46
|
+
export type ThemeMode = "light" | "dark" | "system";
|
|
47
|
+
export type NotificationLevel = "success" | "info" | "warning" | "error";
|
|
48
|
+
export type FragmentKind =
|
|
49
|
+
| "block"
|
|
50
|
+
| "region"
|
|
51
|
+
| "table"
|
|
52
|
+
| "form"
|
|
53
|
+
| "detail"
|
|
54
|
+
| "inspector"
|
|
55
|
+
| "notifications"
|
|
56
|
+
| "custom";
|
|
57
|
+
export type ResourcePatch =
|
|
58
|
+
| {
|
|
59
|
+
preferences?: UserPreferences;
|
|
60
|
+
capabilities?: {
|
|
61
|
+
[k: string]: boolean;
|
|
62
|
+
};
|
|
63
|
+
featureFlags?: {
|
|
64
|
+
[k: string]: boolean;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
| [];
|
|
68
|
+
export type ValueFormat =
|
|
69
|
+
| "text"
|
|
70
|
+
| "date"
|
|
71
|
+
| "datetime"
|
|
72
|
+
| "time"
|
|
73
|
+
| "number"
|
|
74
|
+
| "currency"
|
|
75
|
+
| "boolean"
|
|
76
|
+
| "badge";
|
|
77
|
+
export type ColumnVariant =
|
|
78
|
+
| "text"
|
|
79
|
+
| "status"
|
|
80
|
+
| "badge"
|
|
81
|
+
| "boolean"
|
|
82
|
+
| "timestamp"
|
|
83
|
+
| "link"
|
|
84
|
+
| "rich_status"
|
|
85
|
+
| "html"
|
|
86
|
+
| "link_group"
|
|
87
|
+
| "annotated"
|
|
88
|
+
| "progress";
|
|
89
|
+
export type FilterType = "select" | "text" | "date" | "date_range" | "boolean" | "number_range";
|
|
90
|
+
export type FieldConstraints =
|
|
91
|
+
| {
|
|
92
|
+
required?: true;
|
|
93
|
+
min?: number;
|
|
94
|
+
max?: number;
|
|
95
|
+
minLength?: number;
|
|
96
|
+
maxLength?: number;
|
|
97
|
+
pattern?: string;
|
|
98
|
+
step?: string;
|
|
99
|
+
}
|
|
100
|
+
| [];
|
|
101
|
+
export type FileValue =
|
|
102
|
+
| string
|
|
103
|
+
| {
|
|
104
|
+
url: string;
|
|
105
|
+
name?: string;
|
|
106
|
+
size?: number;
|
|
107
|
+
type?: string;
|
|
108
|
+
id?: string;
|
|
109
|
+
uploadToken?: string;
|
|
110
|
+
};
|
|
111
|
+
export type FieldError = string | string[];
|
|
112
|
+
export type FormSchemaNode = FormFieldNode | FormSectionNode | FormGroupNode | FormHeaderNode;
|
|
113
|
+
export type FormFieldNode =
|
|
114
|
+
| {
|
|
115
|
+
kind: "field";
|
|
116
|
+
key: string;
|
|
117
|
+
component: "text" | "email" | "url" | "password" | "color";
|
|
118
|
+
props: FieldPropsBase;
|
|
119
|
+
}
|
|
120
|
+
| {
|
|
121
|
+
kind: "field";
|
|
122
|
+
key: string;
|
|
123
|
+
component: "textarea";
|
|
124
|
+
props: FieldPropsBase & {
|
|
125
|
+
rows?: number;
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
| {
|
|
129
|
+
kind: "field";
|
|
130
|
+
key: string;
|
|
131
|
+
component: "otp";
|
|
132
|
+
props: FieldPropsBase & {
|
|
133
|
+
maxLength?: number;
|
|
134
|
+
pattern?: "digits" | "alphanumeric";
|
|
135
|
+
groupSize?: number;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
| {
|
|
139
|
+
kind: "field";
|
|
140
|
+
key: string;
|
|
141
|
+
component: "int" | "float";
|
|
142
|
+
props: FieldPropsBase & {
|
|
143
|
+
min?: number;
|
|
144
|
+
max?: number;
|
|
145
|
+
step?: number;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
| {
|
|
149
|
+
kind: "field";
|
|
150
|
+
key: string;
|
|
151
|
+
component: "slider";
|
|
152
|
+
props: FieldPropsBase & {
|
|
153
|
+
min?: number;
|
|
154
|
+
max?: number;
|
|
155
|
+
step?: number;
|
|
156
|
+
multiple?: boolean;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
| {
|
|
160
|
+
kind: "field";
|
|
161
|
+
key: string;
|
|
162
|
+
component: "select" | "radio";
|
|
163
|
+
props: OptionFieldProps;
|
|
164
|
+
}
|
|
165
|
+
| {
|
|
166
|
+
kind: "field";
|
|
167
|
+
key: string;
|
|
168
|
+
component: "multiselect";
|
|
169
|
+
props: OptionFieldProps;
|
|
170
|
+
}
|
|
171
|
+
| {
|
|
172
|
+
kind: "field";
|
|
173
|
+
key: string;
|
|
174
|
+
component: "native_select";
|
|
175
|
+
props: OptionFieldProps;
|
|
176
|
+
}
|
|
177
|
+
| {
|
|
178
|
+
kind: "field";
|
|
179
|
+
key: string;
|
|
180
|
+
component: "checkbox" | "switch";
|
|
181
|
+
props: FieldPropsBase;
|
|
182
|
+
}
|
|
183
|
+
| {
|
|
184
|
+
kind: "field";
|
|
185
|
+
key: string;
|
|
186
|
+
component: "date" | "datetime";
|
|
187
|
+
props: FieldPropsBase;
|
|
188
|
+
}
|
|
189
|
+
| {
|
|
190
|
+
kind: "field";
|
|
191
|
+
key: string;
|
|
192
|
+
component: "duration";
|
|
193
|
+
props: FieldPropsBase;
|
|
194
|
+
}
|
|
195
|
+
| {
|
|
196
|
+
kind: "field";
|
|
197
|
+
key: string;
|
|
198
|
+
component: "file";
|
|
199
|
+
props: FieldPropsBase & {
|
|
200
|
+
accept?: string;
|
|
201
|
+
multiple?: boolean;
|
|
202
|
+
maxFiles?: number;
|
|
203
|
+
maxSize?: number;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
| {
|
|
207
|
+
kind: "field";
|
|
208
|
+
key: string;
|
|
209
|
+
component: "entity_picker";
|
|
210
|
+
props: OptionFieldProps & {
|
|
211
|
+
autocompleteHref?: string;
|
|
212
|
+
autocompleteMinChars?: number;
|
|
213
|
+
entityDisplayField?: string;
|
|
214
|
+
entitySubtitleField?: string;
|
|
215
|
+
entityAvatarField?: string;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
| {
|
|
219
|
+
kind: "field";
|
|
220
|
+
key: string;
|
|
221
|
+
component: "phone";
|
|
222
|
+
props: FieldPropsBase & {
|
|
223
|
+
defaultCountry?: string;
|
|
224
|
+
fixedCountry?: boolean;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
| {
|
|
228
|
+
kind: "field";
|
|
229
|
+
key: string;
|
|
230
|
+
component: "document";
|
|
231
|
+
props: FieldPropsBase & {
|
|
232
|
+
documentType?: string;
|
|
233
|
+
documentScope?: "person" | "company" | "any";
|
|
234
|
+
documentMasks?: {
|
|
235
|
+
[k: string]: FormFieldDocumentMask;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
| {
|
|
240
|
+
kind: "field";
|
|
241
|
+
key: string;
|
|
242
|
+
component: "currency";
|
|
243
|
+
props: FieldPropsBase & {
|
|
244
|
+
currency?: string;
|
|
245
|
+
currencyLocale?: string;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
| {
|
|
249
|
+
kind: "field";
|
|
250
|
+
key: string;
|
|
251
|
+
component: "slug";
|
|
252
|
+
props: FieldPropsBase & {
|
|
253
|
+
sourceField?: string;
|
|
254
|
+
prefix?: string;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
| {
|
|
258
|
+
kind: "field";
|
|
259
|
+
key: string;
|
|
260
|
+
component: "tags";
|
|
261
|
+
props: FieldPropsBase & {
|
|
262
|
+
maxTags?: number;
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
| {
|
|
266
|
+
kind: "field";
|
|
267
|
+
key: string;
|
|
268
|
+
component: "rating";
|
|
269
|
+
props: FieldPropsBase & {
|
|
270
|
+
maxRating?: number;
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
| {
|
|
274
|
+
kind: "field";
|
|
275
|
+
key: string;
|
|
276
|
+
component: "date_range";
|
|
277
|
+
props: FieldPropsBase & {
|
|
278
|
+
operator?: string;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
| {
|
|
282
|
+
kind: "field";
|
|
283
|
+
key: string;
|
|
284
|
+
component: "hidden";
|
|
285
|
+
props: FieldPropsBase;
|
|
286
|
+
}
|
|
287
|
+
| {
|
|
288
|
+
kind: "field";
|
|
289
|
+
key: string;
|
|
290
|
+
component: "static";
|
|
291
|
+
props: FieldPropsBase;
|
|
292
|
+
}
|
|
293
|
+
| {
|
|
294
|
+
kind: "field";
|
|
295
|
+
key: string;
|
|
296
|
+
component: "header";
|
|
297
|
+
props: {
|
|
298
|
+
label: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
export type OptionFieldProps = FieldPropsBase & {
|
|
302
|
+
options?: {
|
|
303
|
+
value: string;
|
|
304
|
+
label: string;
|
|
305
|
+
}[];
|
|
306
|
+
};
|
|
307
|
+
export type RegionUpdateMode = "replace" | "append" | "prepend" | "remove" | "update";
|
|
308
|
+
export type ActionTargetKind = "link" | "route" | "request" | "panel";
|
|
309
|
+
export type ChartType = "line" | "bar" | "area";
|
|
310
|
+
export type ConditionOperator =
|
|
311
|
+
| "eq"
|
|
312
|
+
| "neq"
|
|
313
|
+
| "in"
|
|
314
|
+
| "not_in"
|
|
315
|
+
| "gt"
|
|
316
|
+
| "gte"
|
|
317
|
+
| "lt"
|
|
318
|
+
| "lte"
|
|
319
|
+
| "truthy"
|
|
320
|
+
| "falsy"
|
|
321
|
+
| "exists"
|
|
322
|
+
| "empty"
|
|
323
|
+
| "matches";
|
|
324
|
+
export type FieldType =
|
|
325
|
+
| "text"
|
|
326
|
+
| "textarea"
|
|
327
|
+
| "richtext"
|
|
328
|
+
| "password"
|
|
329
|
+
| "otp"
|
|
330
|
+
| "email"
|
|
331
|
+
| "url"
|
|
332
|
+
| "int"
|
|
333
|
+
| "float"
|
|
334
|
+
| "slider"
|
|
335
|
+
| "select"
|
|
336
|
+
| "multiselect"
|
|
337
|
+
| "native_select"
|
|
338
|
+
| "radio"
|
|
339
|
+
| "checkbox"
|
|
340
|
+
| "switch"
|
|
341
|
+
| "date"
|
|
342
|
+
| "datetime"
|
|
343
|
+
| "time"
|
|
344
|
+
| "duration"
|
|
345
|
+
| "file"
|
|
346
|
+
| "entity_picker"
|
|
347
|
+
| "autocomplete"
|
|
348
|
+
| "tags"
|
|
349
|
+
| "hidden"
|
|
350
|
+
| "static"
|
|
351
|
+
| "header";
|
|
352
|
+
export type FormComponent =
|
|
353
|
+
| "text"
|
|
354
|
+
| "textarea"
|
|
355
|
+
| "password"
|
|
356
|
+
| "otp"
|
|
357
|
+
| "email"
|
|
358
|
+
| "url"
|
|
359
|
+
| "int"
|
|
360
|
+
| "float"
|
|
361
|
+
| "slider"
|
|
362
|
+
| "select"
|
|
363
|
+
| "native_select"
|
|
364
|
+
| "multiselect"
|
|
365
|
+
| "radio"
|
|
366
|
+
| "checkbox"
|
|
367
|
+
| "switch"
|
|
368
|
+
| "date"
|
|
369
|
+
| "datetime"
|
|
370
|
+
| "duration"
|
|
371
|
+
| "file"
|
|
372
|
+
| "entity_picker"
|
|
373
|
+
| "phone"
|
|
374
|
+
| "document"
|
|
375
|
+
| "currency"
|
|
376
|
+
| "color"
|
|
377
|
+
| "slug"
|
|
378
|
+
| "tags"
|
|
379
|
+
| "rating"
|
|
380
|
+
| "date_range"
|
|
381
|
+
| "hidden"
|
|
382
|
+
| "static"
|
|
383
|
+
| "header";
|
|
384
|
+
export type RenderTarget = "html" | "props";
|
|
385
|
+
|
|
386
|
+
export interface PageContract {
|
|
387
|
+
version: "1";
|
|
388
|
+
shell: string;
|
|
389
|
+
page: PageMeta;
|
|
390
|
+
layout: LayoutDescriptor;
|
|
391
|
+
resources?: PageResources;
|
|
392
|
+
notifications?: Notification[];
|
|
393
|
+
entities?: {
|
|
394
|
+
[k: string]: string;
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
export interface PageMeta {
|
|
398
|
+
key: string;
|
|
399
|
+
title: Label;
|
|
400
|
+
subtitle?: Label;
|
|
401
|
+
breadcrumbs?: Breadcrumb[];
|
|
402
|
+
actions?: Action[];
|
|
403
|
+
}
|
|
404
|
+
export interface Translatable {
|
|
405
|
+
key: string;
|
|
406
|
+
domain: string;
|
|
407
|
+
params?: {
|
|
408
|
+
[k: string]: unknown;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
export interface Breadcrumb {
|
|
412
|
+
label: Label;
|
|
413
|
+
href?: string;
|
|
414
|
+
external?: true;
|
|
415
|
+
}
|
|
416
|
+
export interface Action {
|
|
417
|
+
id: string;
|
|
418
|
+
label: Label;
|
|
419
|
+
target: ActionTarget;
|
|
420
|
+
intent: ActionIntent;
|
|
421
|
+
icon?: string;
|
|
422
|
+
confirmation?: Confirmation;
|
|
423
|
+
capability?: string;
|
|
424
|
+
disabled?: true;
|
|
425
|
+
loading?: true;
|
|
426
|
+
}
|
|
427
|
+
export interface Confirmation {
|
|
428
|
+
title: Label;
|
|
429
|
+
message: Label;
|
|
430
|
+
variant: string;
|
|
431
|
+
confirmLabel?: Label;
|
|
432
|
+
cancelLabel?: Label;
|
|
433
|
+
}
|
|
434
|
+
export interface LayoutDescriptor {
|
|
435
|
+
template: string;
|
|
436
|
+
regions:
|
|
437
|
+
| {
|
|
438
|
+
[k: string]: BlockDescriptor[];
|
|
439
|
+
}
|
|
440
|
+
| [];
|
|
441
|
+
meta?: {
|
|
442
|
+
[k: string]: unknown;
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
export interface BlockDescriptor {
|
|
446
|
+
type: string;
|
|
447
|
+
key: string;
|
|
448
|
+
data:
|
|
449
|
+
| {
|
|
450
|
+
[k: string]: unknown;
|
|
451
|
+
}
|
|
452
|
+
| [];
|
|
453
|
+
variant?: string;
|
|
454
|
+
title?: Label;
|
|
455
|
+
subtitle?: Label;
|
|
456
|
+
actions?: Action[];
|
|
457
|
+
meta?: {
|
|
458
|
+
[k: string]: unknown;
|
|
459
|
+
};
|
|
460
|
+
poll?: PollConfig;
|
|
461
|
+
deferred?: boolean;
|
|
462
|
+
remember?: boolean;
|
|
463
|
+
}
|
|
464
|
+
export interface PollConfig {
|
|
465
|
+
endpoint: string;
|
|
466
|
+
intervalMs: number;
|
|
467
|
+
pauseWhenHidden: boolean;
|
|
468
|
+
stopAfterMs?: number;
|
|
469
|
+
}
|
|
470
|
+
export interface PageResources {
|
|
471
|
+
preferences: UserPreferences;
|
|
472
|
+
capabilities:
|
|
473
|
+
| {
|
|
474
|
+
[k: string]: boolean;
|
|
475
|
+
}
|
|
476
|
+
| [];
|
|
477
|
+
featureFlags:
|
|
478
|
+
| {
|
|
479
|
+
[k: string]: boolean;
|
|
480
|
+
}
|
|
481
|
+
| [];
|
|
482
|
+
user?: Identity;
|
|
483
|
+
branding?: Branding;
|
|
484
|
+
}
|
|
485
|
+
export interface UserPreferences {
|
|
486
|
+
theme: ThemeMode;
|
|
487
|
+
locale: string;
|
|
488
|
+
timezone?: string;
|
|
489
|
+
dateFormat?: string;
|
|
490
|
+
numberFormat?: string;
|
|
491
|
+
[k: string]: unknown;
|
|
492
|
+
}
|
|
493
|
+
export interface Identity {
|
|
494
|
+
id: string;
|
|
495
|
+
name: string;
|
|
496
|
+
email?: string;
|
|
497
|
+
avatarUrl?: string;
|
|
498
|
+
roles?: string[];
|
|
499
|
+
}
|
|
500
|
+
export interface Branding {
|
|
501
|
+
appName: string;
|
|
502
|
+
logoUrl?: string;
|
|
503
|
+
logoCompactUrl?: string;
|
|
504
|
+
}
|
|
505
|
+
export interface Notification {
|
|
506
|
+
level: NotificationLevel;
|
|
507
|
+
message: Label;
|
|
508
|
+
dismissible: boolean;
|
|
509
|
+
title?: Label;
|
|
510
|
+
timeout?: number;
|
|
511
|
+
action?: Action;
|
|
512
|
+
}
|
|
513
|
+
export interface Fragment {
|
|
514
|
+
version: "1";
|
|
515
|
+
kind: FragmentKind;
|
|
516
|
+
payload?: {
|
|
517
|
+
[k: string]: unknown;
|
|
518
|
+
};
|
|
519
|
+
notifications?: Notification[];
|
|
520
|
+
resources?: ResourcePatch;
|
|
521
|
+
customType?: string;
|
|
522
|
+
}
|
|
523
|
+
export interface InspectorDescriptor {
|
|
524
|
+
endpoint: string;
|
|
525
|
+
width: number;
|
|
526
|
+
poll?: PollConfig;
|
|
527
|
+
}
|
|
528
|
+
export interface EditablePanelDescriptor {
|
|
529
|
+
endpoint: string;
|
|
530
|
+
submitEndpoint?: string;
|
|
531
|
+
submitMethod: "post" | "put" | "patch";
|
|
532
|
+
width: number;
|
|
533
|
+
}
|
|
534
|
+
export interface NavigationNode {
|
|
535
|
+
key: string;
|
|
536
|
+
label: Label;
|
|
537
|
+
icon?: string;
|
|
538
|
+
href?: string;
|
|
539
|
+
badge?: string;
|
|
540
|
+
active?: true;
|
|
541
|
+
drilldown?: true;
|
|
542
|
+
collapsible?: true;
|
|
543
|
+
defaultOpen?: true;
|
|
544
|
+
children?: NavigationNode[];
|
|
545
|
+
}
|
|
546
|
+
export interface TableConfig {
|
|
547
|
+
columns: Column[];
|
|
548
|
+
filters?: FilterDefinition[];
|
|
549
|
+
rowActions?: Action[];
|
|
550
|
+
bulkActions?: Action[];
|
|
551
|
+
options: TableDisplayOptions;
|
|
552
|
+
}
|
|
553
|
+
export interface Column {
|
|
554
|
+
key: string;
|
|
555
|
+
label: Label;
|
|
556
|
+
sortable: boolean;
|
|
557
|
+
searchable: boolean;
|
|
558
|
+
format: ValueFormat;
|
|
559
|
+
formatOptions?: {
|
|
560
|
+
[k: string]: unknown;
|
|
561
|
+
};
|
|
562
|
+
options?: {
|
|
563
|
+
[k: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
variant?: ColumnVariant;
|
|
566
|
+
}
|
|
567
|
+
export interface FilterDefinition {
|
|
568
|
+
key: string;
|
|
569
|
+
label: Label;
|
|
570
|
+
type: FilterType;
|
|
571
|
+
options?: {
|
|
572
|
+
value: unknown;
|
|
573
|
+
label: Label;
|
|
574
|
+
}[];
|
|
575
|
+
placeholder?: Label;
|
|
576
|
+
default?: unknown;
|
|
577
|
+
}
|
|
578
|
+
export interface TableDisplayOptions {
|
|
579
|
+
perPage: number;
|
|
580
|
+
sortDirection: string;
|
|
581
|
+
selectable: boolean;
|
|
582
|
+
searchable: boolean;
|
|
583
|
+
sortColumn?: string;
|
|
584
|
+
}
|
|
585
|
+
export interface Pagination {
|
|
586
|
+
page: number;
|
|
587
|
+
perPage: number;
|
|
588
|
+
total: number;
|
|
589
|
+
lastPage: number;
|
|
590
|
+
}
|
|
591
|
+
export interface ChartSeries {
|
|
592
|
+
key: string;
|
|
593
|
+
label: string;
|
|
594
|
+
color?: string;
|
|
595
|
+
}
|
|
596
|
+
export interface Tab {
|
|
597
|
+
id: string;
|
|
598
|
+
label: Label;
|
|
599
|
+
blocks: BlockDescriptor[];
|
|
600
|
+
disabled?: boolean;
|
|
601
|
+
}
|
|
602
|
+
export interface FormStep {
|
|
603
|
+
id: string;
|
|
604
|
+
label: Label;
|
|
605
|
+
fields: string[];
|
|
606
|
+
help?: Label;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Validation errors keyed by field name. The reserved key "_" carries form-level errors; dotted keys target nested fields.
|
|
610
|
+
*/
|
|
611
|
+
export interface FormErrors {
|
|
612
|
+
[k: string]: FieldError;
|
|
613
|
+
}
|
|
614
|
+
export interface FieldPropsBase {
|
|
615
|
+
label: string;
|
|
616
|
+
placeholder?: string;
|
|
617
|
+
helpText?: string;
|
|
618
|
+
required?: boolean;
|
|
619
|
+
disabled?: boolean;
|
|
620
|
+
readOnly?: boolean;
|
|
621
|
+
validation?: FormFieldValidation;
|
|
622
|
+
visible_when?: FormCondition;
|
|
623
|
+
hidden_when?: FormCondition;
|
|
624
|
+
disabled_when?: FormCondition;
|
|
625
|
+
required_when?: FormCondition;
|
|
626
|
+
}
|
|
627
|
+
export interface FormFieldValidation {
|
|
628
|
+
minLength?: number;
|
|
629
|
+
maxLength?: number;
|
|
630
|
+
pattern?: string;
|
|
631
|
+
patternMessage?: string;
|
|
632
|
+
}
|
|
633
|
+
export interface FormCondition {
|
|
634
|
+
field: string;
|
|
635
|
+
operator: "equals" | "not_equals" | "in" | "not_in";
|
|
636
|
+
value: string | string[];
|
|
637
|
+
}
|
|
638
|
+
export interface FormFieldDocumentMask {
|
|
639
|
+
pattern: string;
|
|
640
|
+
maxLength: number;
|
|
641
|
+
placeholder?: string;
|
|
642
|
+
}
|
|
643
|
+
export interface FormSectionNode {
|
|
644
|
+
kind: "section";
|
|
645
|
+
id: string;
|
|
646
|
+
label: string;
|
|
647
|
+
defaultCollapsed?: boolean;
|
|
648
|
+
children: FormSchemaNode[];
|
|
649
|
+
}
|
|
650
|
+
export interface FormGroupNode {
|
|
651
|
+
kind: "group";
|
|
652
|
+
id: string;
|
|
653
|
+
columns?: 1 | 2;
|
|
654
|
+
children: FormSchemaNode[];
|
|
655
|
+
}
|
|
656
|
+
export interface FormHeaderNode {
|
|
657
|
+
kind: "header";
|
|
658
|
+
label: string;
|
|
659
|
+
}
|
|
660
|
+
export interface RegionUpdate {
|
|
661
|
+
region: string;
|
|
662
|
+
mode: RegionUpdateMode;
|
|
663
|
+
blocks?: BlockDescriptor[];
|
|
664
|
+
keys?: string[];
|
|
665
|
+
}
|
|
666
|
+
export interface ActionResult {
|
|
667
|
+
success: boolean;
|
|
668
|
+
notifications?: Notification[];
|
|
669
|
+
redirect?: string;
|
|
670
|
+
refreshBlocks?: string[];
|
|
671
|
+
errors?: FormErrors;
|
|
672
|
+
fragments?: Fragment[];
|
|
673
|
+
resources?: ResourcePatch;
|
|
674
|
+
}
|
|
675
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated by scripts/gen-contracts.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
*
|
|
4
|
+
* Barrel for the generated contract layer.
|
|
5
|
+
*
|
|
6
|
+
* Source of truth: middag-php-ui value objects -> JSON Schema (draft 2020-12).
|
|
7
|
+
* Regenerate: npm run gen:contracts
|
|
8
|
+
* Drift gate: npm run gen:contracts:check
|
|
9
|
+
*
|
|
10
|
+
* @source middag-php-ui/schema/{page-contract,fragment}.json
|
|
11
|
+
* @contract-version 1
|
|
12
|
+
* @hash 61137d173165ca8e
|
|
13
|
+
*/
|
|
14
|
+
export * from "./contract-types";
|
|
15
|
+
export { pageContractSchemaCore, fragmentSchemaCore } from "./contract-schema";
|