@lattice-php/lattice 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -42
- package/dist/_virtual/_rolldown/runtime.js +27 -0
- package/dist/action/components/action-form.d.ts +1 -29
- package/dist/action/components/action-form.js +6 -257
- package/dist/action/components/action-form.js.map +1 -1
- package/dist/action/components/action-group.d.ts +1 -1
- package/dist/action/components/action-group.js +7 -7
- package/dist/action/components/action-group.js.map +1 -1
- package/dist/action/components/action-trigger-provider.d.ts +2 -2
- package/dist/action/components/action-trigger-provider.js +1 -1
- package/dist/action/components/action-trigger-provider.js.map +1 -1
- package/dist/action/components/action.d.ts +1 -1
- package/dist/action/components/action.js +5 -5
- package/dist/action/components/action.js.map +1 -1
- package/dist/action/hooks/use-action.d.ts +1 -1
- package/dist/action/hooks/use-action.js +10 -10
- package/dist/action/hooks/use-action.js.map +1 -1
- package/dist/action/index.d.ts +1 -1
- package/dist/action/index.js +5 -3
- package/dist/action/lib/action-label.d.ts +1 -1
- package/dist/action/lib/action-label.js +1 -1
- package/dist/action/lib/action-label.js.map +1 -1
- package/dist/action/lib/run-action.d.ts +1 -9
- package/dist/action/lib/run-action.js +6 -20
- package/dist/action/lib/run-action.js.map +1 -1
- package/dist/action/plugin.d.ts +2 -1
- package/dist/action/plugin.js +3 -3
- package/dist/action/plugin.js.map +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/appearance/index.js.map +1 -1
- package/dist/chat/components/chat-box.d.ts +1 -1
- package/dist/chat/components/chat-box.js +4 -4
- package/dist/chat/components/chat-box.js.map +1 -1
- package/dist/chat/components/message-list.js +1 -1
- package/dist/chat/components/message-list.js.map +1 -1
- package/dist/chat/components/message.js +3 -3
- package/dist/chat/components/message.js.map +1 -1
- package/dist/chat/components/prompt-input.js +4 -4
- package/dist/chat/components/prompt-input.js.map +1 -1
- package/dist/chat/lib/transport.d.ts +1 -1
- package/dist/chat/lib/transport.js +1 -1
- package/dist/chat/lib/transport.js.map +1 -1
- package/dist/chat/parts/text.d.ts +1 -1
- package/dist/chat/parts/text.js.map +1 -1
- package/dist/chat/parts/tool-call.d.ts +1 -1
- package/dist/chat/parts/tool-call.js +1 -1
- package/dist/chat/parts/tool-call.js.map +1 -1
- package/dist/chat/plugin.d.ts +2 -1
- package/dist/chat/plugin.js +3 -3
- package/dist/chat/plugin.js.map +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/create-app.d.ts +2 -2
- package/dist/create-app.js +12 -10
- package/dist/create-app.js.map +1 -1
- package/dist/event-bridge.js +2 -2
- package/dist/event-bridge.js.map +1 -1
- package/dist/{ui → fragments}/fragment.d.ts +1 -1
- package/dist/{ui → fragments}/fragment.js +6 -6
- package/dist/fragments/fragment.js.map +1 -0
- package/dist/fragments/plugin.d.ts +2 -0
- package/dist/fragments/plugin.js +11 -0
- package/dist/fragments/plugin.js.map +1 -0
- package/dist/index.d.ts +21 -22
- package/dist/index.js +14 -18
- package/dist/inertia.js +2 -2
- package/dist/inertia.js.map +1 -1
- package/dist/layout/components/breadcrumbs.d.ts +1 -1
- package/dist/layout/components/breadcrumbs.js +2 -2
- package/dist/layout/components/breadcrumbs.js.map +1 -1
- package/dist/layout/components/callouts.d.ts +1 -1
- package/dist/layout/components/callouts.js +5 -5
- package/dist/layout/components/callouts.js.map +1 -1
- package/dist/layout/components/dropdown.d.ts +1 -1
- package/dist/layout/components/dropdown.js +1 -1
- package/dist/layout/components/dropdown.js.map +1 -1
- package/dist/layout/components/menu-item.d.ts +1 -1
- package/dist/layout/components/menu-item.js +6 -7
- package/dist/layout/components/menu-item.js.map +1 -1
- package/dist/layout/components/menu.d.ts +1 -1
- package/dist/layout/components/menu.js +1 -1
- package/dist/layout/components/menu.js.map +1 -1
- package/dist/layout/components/outlet.d.ts +1 -1
- package/dist/layout/components/outlet.js.map +1 -1
- package/dist/layout/components/popover.js +3 -3
- package/dist/layout/components/popover.js.map +1 -1
- package/dist/layout/components/schema-layout.js +1 -1
- package/dist/layout/components/schema-layout.js.map +1 -1
- package/dist/layout/components/sidebar.d.ts +1 -1
- package/dist/layout/components/sidebar.js +7 -7
- package/dist/layout/components/sidebar.js.map +1 -1
- package/dist/layout/components/topbar.d.ts +1 -1
- package/dist/layout/components/topbar.js +2 -2
- package/dist/layout/components/topbar.js.map +1 -1
- package/dist/layout/hooks/context.d.ts +1 -1
- package/dist/layout/hooks/context.js +2 -2
- package/dist/layout/hooks/context.js.map +1 -1
- package/dist/layout/index.js +2 -3
- package/dist/layout/plugin.d.ts +2 -1
- package/dist/layout/plugin.js +3 -3
- package/dist/layout/plugin.js.map +1 -1
- package/dist/notifications/api.js +1 -1
- package/dist/notifications/api.js.map +1 -1
- package/dist/notifications/components/empty-state.js +2 -2
- package/dist/notifications/components/empty-state.js.map +1 -1
- package/dist/notifications/components/notification-item.js +5 -5
- package/dist/notifications/components/notification-item.js.map +1 -1
- package/dist/notifications/components/notification-list.js +2 -2
- package/dist/notifications/components/notification-list.js.map +1 -1
- package/dist/notifications/components/notifications.d.ts +1 -1
- package/dist/notifications/components/notifications.js +4 -4
- package/dist/notifications/components/notifications.js.map +1 -1
- package/dist/notifications/plugin.d.ts +2 -1
- package/dist/notifications/plugin.js +3 -3
- package/dist/notifications/plugin.js.map +1 -1
- package/dist/page.js +2 -2
- package/dist/page.js.map +1 -1
- package/dist/provider-base.d.ts +2 -2
- package/dist/provider-base.js +3 -3
- package/dist/provider-base.js.map +1 -1
- package/dist/provider.d.ts +4 -2
- package/dist/provider.js +3 -1
- package/dist/provider.js.map +1 -1
- package/dist/realtime/build-effects.d.ts +1 -1
- package/dist/realtime/build-effects.js +1 -1
- package/dist/realtime/build-effects.js.map +1 -1
- package/dist/realtime/subscriptions.js +2 -2
- package/dist/realtime/subscriptions.js.map +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +6 -5
- package/dist/registry.js.map +1 -1
- package/dist/remote/components/data-list.d.ts +1 -1
- package/dist/remote/components/data-list.js +4 -4
- package/dist/remote/components/data-list.js.map +1 -1
- package/dist/remote/plugin.d.ts +2 -1
- package/dist/remote/plugin.js +3 -3
- package/dist/remote/plugin.js.map +1 -1
- package/dist/runtime.d.ts +9 -0
- package/dist/runtime.js +24 -0
- package/dist/toast/callout.js +2 -2
- package/dist/toast/callout.js.map +1 -1
- package/dist/toast/toast.js +2 -2
- package/dist/toast/toast.js.map +1 -1
- package/dist/toast/toaster.js +6 -6
- package/dist/toast/toaster.js.map +1 -1
- package/dist/toast/variant-styles.js +1 -1
- package/dist/toast/variant-styles.js.map +1 -1
- package/dist/types/core-augmentation.d.ts +4 -0
- package/dist/types/generated.d.ts +10 -9
- package/dist/types/index.d.ts +10 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +14 -5
- package/dist/vite.js.map +1 -1
- package/dist-standalone/chunks/chart-view-DFSCMDuw.js +59 -0
- package/dist-standalone/chunks/{test-id-Dh3L6Gfh.js → clsx-CjueKrWZ.js} +1 -1
- package/dist-standalone/chunks/{code-block-view-fzD5e55N.js → code-block-view-CetAq3Rk.js} +2 -2
- package/dist-standalone/chunks/date-picker-field-D6S8aN1p.js +1 -0
- package/dist-standalone/chunks/debounce-CBXrtDuZ.js +1 -0
- package/dist-standalone/chunks/dist-D2qBbka0.js +2 -0
- package/dist-standalone/chunks/floating-ui.dom-CO6FyQ6K.js +1 -0
- package/dist-standalone/chunks/icon-button-COE_nq4v.js +41 -0
- package/dist-standalone/chunks/instance-D6cXaqIT.js +1 -0
- package/dist-standalone/chunks/jsx-runtime-NZYk81nU.js +1 -0
- package/dist-standalone/chunks/locale-BZOrJtMq.js +1 -0
- package/dist-standalone/chunks/{notifications-echo-uU87iJAV.js → notifications-echo-BLO9_g1w.js} +1 -1
- package/dist-standalone/chunks/number-DjNO0Pxv.js +1 -0
- package/dist-standalone/chunks/page-props-DZ15iP5k.js +1 -0
- package/dist-standalone/chunks/react-CwJFpaho.js +1 -0
- package/dist-standalone/chunks/react-dom-Dl-LT-t1.js +1 -0
- package/dist-standalone/chunks/registry-context-BdTXNnGL.js +97 -0
- package/dist-standalone/chunks/{rich-editor-field-BZQIPOLc.js → rich-editor-field-n-mtzlT-.js} +35 -35
- package/dist-standalone/chunks/rolldown-runtime-hePW80VL.js +1 -0
- package/dist-standalone/chunks/runtime-Bh_GyTCD.js +23 -0
- package/dist-standalone/chunks/subscriptions-BICQU9ps.js +1 -0
- package/dist-standalone/chunks/time-picker-CAwU5Rl-.js +1 -0
- package/dist-standalone/chunks/timezone-Ckl1gbqB.js +1 -0
- package/dist-standalone/chunks/translatable-YXSlt1CF.js +1 -0
- package/dist-standalone/chunks/with-selector-Cse0iXU1.js +1 -0
- package/dist-standalone/jsx-runtime.js +1 -0
- package/dist-standalone/lattice.css +1 -1
- package/dist-standalone/lattice.js +2 -23
- package/dist-standalone/manifest.json +1 -1
- package/dist-standalone/react.js +1 -0
- package/dist-standalone/runtime.js +1 -0
- package/package.json +15 -239
- package/LICENSE.md +0 -21
- package/dist/core/api.d.ts +0 -42
- package/dist/core/api.js +0 -165
- package/dist/core/api.js.map +0 -1
- package/dist/core/collapsed-context.d.ts +0 -2
- package/dist/core/collapsed-context.js +0 -10
- package/dist/core/collapsed-context.js.map +0 -1
- package/dist/core/component-ref.d.ts +0 -11
- package/dist/core/component-ref.js +0 -33
- package/dist/core/component-ref.js.map +0 -1
- package/dist/core/event-names.d.ts +0 -23
- package/dist/core/event-names.js +0 -24
- package/dist/core/event-names.js.map +0 -1
- package/dist/core/headers.d.ts +0 -1
- package/dist/core/headers.js +0 -14
- package/dist/core/headers.js.map +0 -1
- package/dist/core/hooks/column-sizing.d.ts +0 -17
- package/dist/core/hooks/column-sizing.js +0 -54
- package/dist/core/hooks/column-sizing.js.map +0 -1
- package/dist/core/hooks/use-column-resizing.d.ts +0 -28
- package/dist/core/hooks/use-column-resizing.js +0 -220
- package/dist/core/hooks/use-column-resizing.js.map +0 -1
- package/dist/core/hooks/use-window-event.d.ts +0 -8
- package/dist/core/hooks/use-window-event.js +0 -22
- package/dist/core/hooks/use-window-event.js.map +0 -1
- package/dist/core/index.d.ts +0 -17
- package/dist/core/index.js +0 -13
- package/dist/core/materialize.d.ts +0 -9
- package/dist/core/materialize.js +0 -39
- package/dist/core/materialize.js.map +0 -1
- package/dist/core/nodes.d.ts +0 -11
- package/dist/core/nodes.js +0 -20
- package/dist/core/nodes.js.map +0 -1
- package/dist/core/registry-context.d.ts +0 -21
- package/dist/core/registry-context.js +0 -40
- package/dist/core/registry-context.js.map +0 -1
- package/dist/core/registry.d.ts +0 -38
- package/dist/core/registry.js +0 -60
- package/dist/core/registry.js.map +0 -1
- package/dist/core/renderer.d.ts +0 -8
- package/dist/core/renderer.js +0 -76
- package/dist/core/renderer.js.map +0 -1
- package/dist/core/test-id.d.ts +0 -8
- package/dist/core/test-id.js +0 -21
- package/dist/core/test-id.js.map +0 -1
- package/dist/core/types.d.ts +0 -26
- package/dist/core/types.js +0 -0
- package/dist/core/upload.d.ts +0 -25
- package/dist/core/upload.js +0 -48
- package/dist/core/upload.js.map +0 -1
- package/dist/effects/dispatch.d.ts +0 -19
- package/dist/effects/dispatch.js +0 -39
- package/dist/effects/dispatch.js.map +0 -1
- package/dist/effects/registry.d.ts +0 -12
- package/dist/effects/registry.js +0 -43
- package/dist/effects/registry.js.map +0 -1
- package/dist/effects/use-effect-dispatcher.d.ts +0 -8
- package/dist/effects/use-effect-dispatcher.js +0 -20
- package/dist/effects/use-effect-dispatcher.js.map +0 -1
- package/dist/effects/use-flash-effects.d.ts +0 -5
- package/dist/effects/use-flash-effects.js +0 -22
- package/dist/effects/use-flash-effects.js.map +0 -1
- package/dist/form/components/base/field.d.ts +0 -21
- package/dist/form/components/base/field.js +0 -80
- package/dist/form/components/base/field.js.map +0 -1
- package/dist/form/components/base/submit-button.d.ts +0 -7
- package/dist/form/components/base/submit-button.js +0 -49
- package/dist/form/components/base/submit-button.js.map +0 -1
- package/dist/form/components/fields/add-row-menu.d.ts +0 -9
- package/dist/form/components/fields/add-row-menu.js +0 -27
- package/dist/form/components/fields/add-row-menu.js.map +0 -1
- package/dist/form/components/fields/builder.d.ts +0 -2
- package/dist/form/components/fields/builder.js +0 -132
- package/dist/form/components/fields/builder.js.map +0 -1
- package/dist/form/components/fields/checkbox.d.ts +0 -2
- package/dist/form/components/fields/checkbox.js +0 -52
- package/dist/form/components/fields/checkbox.js.map +0 -1
- package/dist/form/components/fields/choice.d.ts +0 -2
- package/dist/form/components/fields/choice.js +0 -44
- package/dist/form/components/fields/choice.js.map +0 -1
- package/dist/form/components/fields/color-picker-field.d.ts +0 -2
- package/dist/form/components/fields/color-picker-field.js +0 -57
- package/dist/form/components/fields/color-picker-field.js.map +0 -1
- package/dist/form/components/fields/date-input.d.ts +0 -2
- package/dist/form/components/fields/date-input.js +0 -31
- package/dist/form/components/fields/date-input.js.map +0 -1
- package/dist/form/components/fields/date-picker-field.d.ts +0 -20
- package/dist/form/components/fields/date-picker-field.js +0 -197
- package/dist/form/components/fields/date-picker-field.js.map +0 -1
- package/dist/form/components/fields/date-picker-value.d.ts +0 -10
- package/dist/form/components/fields/date-picker-value.js +0 -125
- package/dist/form/components/fields/date-picker-value.js.map +0 -1
- package/dist/form/components/fields/date-picker.d.ts +0 -2
- package/dist/form/components/fields/date-picker.js +0 -17
- package/dist/form/components/fields/date-picker.js.map +0 -1
- package/dist/form/components/fields/date-time-input.d.ts +0 -2
- package/dist/form/components/fields/date-time-input.js +0 -35
- package/dist/form/components/fields/date-time-input.js.map +0 -1
- package/dist/form/components/fields/file-upload.d.ts +0 -2
- package/dist/form/components/fields/file-upload.js +0 -264
- package/dist/form/components/fields/file-upload.js.map +0 -1
- package/dist/form/components/fields/hidden-input.d.ts +0 -2
- package/dist/form/components/fields/hidden-input.js +0 -17
- package/dist/form/components/fields/hidden-input.js.map +0 -1
- package/dist/form/components/fields/number-input.d.ts +0 -2
- package/dist/form/components/fields/number-input.js +0 -60
- package/dist/form/components/fields/number-input.js.map +0 -1
- package/dist/form/components/fields/otp-input.d.ts +0 -2
- package/dist/form/components/fields/otp-input.js +0 -25
- package/dist/form/components/fields/otp-input.js.map +0 -1
- package/dist/form/components/fields/password-input.d.ts +0 -2
- package/dist/form/components/fields/password-input.js +0 -79
- package/dist/form/components/fields/password-input.js.map +0 -1
- package/dist/form/components/fields/repeater-rows.d.ts +0 -15
- package/dist/form/components/fields/repeater-rows.js +0 -48
- package/dist/form/components/fields/repeater-rows.js.map +0 -1
- package/dist/form/components/fields/repeater.d.ts +0 -2
- package/dist/form/components/fields/repeater.js +0 -109
- package/dist/form/components/fields/repeater.js.map +0 -1
- package/dist/form/components/fields/rich-editor-field.d.ts +0 -3
- package/dist/form/components/fields/rich-editor-field.js +0 -104
- package/dist/form/components/fields/rich-editor-field.js.map +0 -1
- package/dist/form/components/fields/rich-editor.d.ts +0 -2
- package/dist/form/components/fields/rich-editor.js +0 -15
- package/dist/form/components/fields/rich-editor.js.map +0 -1
- package/dist/form/components/fields/row-action-menu.d.ts +0 -18
- package/dist/form/components/fields/row-action-menu.js +0 -61
- package/dist/form/components/fields/row-action-menu.js.map +0 -1
- package/dist/form/components/fields/row-actions.d.ts +0 -10
- package/dist/form/components/fields/row-actions.js +0 -47
- package/dist/form/components/fields/row-actions.js.map +0 -1
- package/dist/form/components/fields/row-item.d.ts +0 -28
- package/dist/form/components/fields/row-item.js +0 -70
- package/dist/form/components/fields/row-item.js.map +0 -1
- package/dist/form/components/fields/row-key-inputs.d.ts +0 -7
- package/dist/form/components/fields/row-key-inputs.js +0 -16
- package/dist/form/components/fields/row-key-inputs.js.map +0 -1
- package/dist/form/components/fields/row-templates.d.ts +0 -9
- package/dist/form/components/fields/row-templates.js +0 -14
- package/dist/form/components/fields/row-templates.js.map +0 -1
- package/dist/form/components/fields/select.d.ts +0 -2
- package/dist/form/components/fields/select.js +0 -213
- package/dist/form/components/fields/select.js.map +0 -1
- package/dist/form/components/fields/simple-field.d.ts +0 -9
- package/dist/form/components/fields/simple-field.js +0 -22
- package/dist/form/components/fields/simple-field.js.map +0 -1
- package/dist/form/components/fields/table-rows.d.ts +0 -33
- package/dist/form/components/fields/table-rows.js +0 -176
- package/dist/form/components/fields/table-rows.js.map +0 -1
- package/dist/form/components/fields/text-input.d.ts +0 -2
- package/dist/form/components/fields/text-input.js +0 -42
- package/dist/form/components/fields/text-input.js.map +0 -1
- package/dist/form/components/fields/textarea.d.ts +0 -2
- package/dist/form/components/fields/textarea.js +0 -28
- package/dist/form/components/fields/textarea.js.map +0 -1
- package/dist/form/components/fields/time-input.d.ts +0 -2
- package/dist/form/components/fields/time-input.js +0 -69
- package/dist/form/components/fields/time-input.js.map +0 -1
- package/dist/form/components/fields/time-picker-columns.d.ts +0 -24
- package/dist/form/components/fields/time-picker-columns.js +0 -76
- package/dist/form/components/fields/time-picker-columns.js.map +0 -1
- package/dist/form/components/fields/time-picker.d.ts +0 -18
- package/dist/form/components/fields/time-picker.js +0 -131
- package/dist/form/components/fields/time-picker.js.map +0 -1
- package/dist/form/components/fields/toggle.d.ts +0 -2
- package/dist/form/components/fields/toggle.js +0 -66
- package/dist/form/components/fields/toggle.js.map +0 -1
- package/dist/form/components/fields/use-flip-reorder.d.ts +0 -6
- package/dist/form/components/fields/use-flip-reorder.js +0 -52
- package/dist/form/components/fields/use-flip-reorder.js.map +0 -1
- package/dist/form/components/fields/use-row-collection.d.ts +0 -12
- package/dist/form/components/fields/use-row-collection.js +0 -45
- package/dist/form/components/fields/use-row-collection.js.map +0 -1
- package/dist/form/components/form.d.ts +0 -2
- package/dist/form/components/form.js +0 -182
- package/dist/form/components/form.js.map +0 -1
- package/dist/form/components/index.d.ts +0 -19
- package/dist/form/components/index.js +0 -20
- package/dist/form/components/wizard.d.ts +0 -3
- package/dist/form/components/wizard.js +0 -148
- package/dist/form/components/wizard.js.map +0 -1
- package/dist/form/embed.d.ts +0 -22
- package/dist/form/embed.js +0 -13
- package/dist/form/hooks/context.d.ts +0 -25
- package/dist/form/hooks/context.js +0 -31
- package/dist/form/hooks/context.js.map +0 -1
- package/dist/form/hooks/field-scope.d.ts +0 -22
- package/dist/form/hooks/field-scope.js +0 -54
- package/dist/form/hooks/field-scope.js.map +0 -1
- package/dist/form/hooks/prefill-context.d.ts +0 -5
- package/dist/form/hooks/prefill-context.js +0 -11
- package/dist/form/hooks/prefill-context.js.map +0 -1
- package/dist/form/hooks/resolved-nodes.d.ts +0 -6
- package/dist/form/hooks/resolved-nodes.js +0 -23
- package/dist/form/hooks/resolved-nodes.js.map +0 -1
- package/dist/form/hooks/row-layout-context.d.ts +0 -5
- package/dist/form/hooks/row-layout-context.js +0 -18
- package/dist/form/hooks/row-layout-context.js.map +0 -1
- package/dist/form/hooks/use-controlled-field.d.ts +0 -13
- package/dist/form/hooks/use-controlled-field.js +0 -41
- package/dist/form/hooks/use-controlled-field.js.map +0 -1
- package/dist/form/hooks/use-dependent-field.d.ts +0 -3
- package/dist/form/hooks/use-dependent-field.js +0 -25
- package/dist/form/hooks/use-dependent-field.js.map +0 -1
- package/dist/form/hooks/use-field-commit.d.ts +0 -24
- package/dist/form/hooks/use-field-commit.js +0 -51
- package/dist/form/hooks/use-field-commit.js.map +0 -1
- package/dist/form/hooks/use-form-resolver.d.ts +0 -8
- package/dist/form/hooks/use-form-resolver.js +0 -99
- package/dist/form/hooks/use-form-resolver.js.map +0 -1
- package/dist/form/hooks/use-seed-default.d.ts +0 -5
- package/dist/form/hooks/use-seed-default.js +0 -28
- package/dist/form/hooks/use-seed-default.js.map +0 -1
- package/dist/form/hooks/values.d.ts +0 -17
- package/dist/form/hooks/values.js +0 -154
- package/dist/form/hooks/values.js.map +0 -1
- package/dist/form/index.d.ts +0 -5
- package/dist/form/index.js +0 -23
- package/dist/form/lib/collect-fields.d.ts +0 -7
- package/dist/form/lib/collect-fields.js +0 -19
- package/dist/form/lib/collect-fields.js.map +0 -1
- package/dist/form/lib/conditions.d.ts +0 -17
- package/dist/form/lib/conditions.js +0 -80
- package/dist/form/lib/conditions.js.map +0 -1
- package/dist/form/lib/field-dom-name.d.ts +0 -1
- package/dist/form/lib/field-dom-name.js +0 -10
- package/dist/form/lib/field-dom-name.js.map +0 -1
- package/dist/form/lib/field-errors.d.ts +0 -5
- package/dist/form/lib/field-errors.js +0 -15
- package/dist/form/lib/field-errors.js.map +0 -1
- package/dist/form/lib/field-props.d.ts +0 -19
- package/dist/form/lib/field-props.js +0 -20
- package/dist/form/lib/field-props.js.map +0 -1
- package/dist/form/lib/form-path.d.ts +0 -4
- package/dist/form/lib/form-path.js +0 -40
- package/dist/form/lib/form-path.js.map +0 -1
- package/dist/form/lib/form-transport.d.ts +0 -7
- package/dist/form/lib/form-transport.js +0 -21
- package/dist/form/lib/form-transport.js.map +0 -1
- package/dist/form/lib/override-keys.d.ts +0 -2
- package/dist/form/lib/override-keys.js +0 -12
- package/dist/form/lib/override-keys.js.map +0 -1
- package/dist/form/lib/prefill-targets.d.ts +0 -16
- package/dist/form/lib/prefill-targets.js +0 -68
- package/dist/form/lib/prefill-targets.js.map +0 -1
- package/dist/form/lib/wizard-steps.d.ts +0 -5
- package/dist/form/lib/wizard-steps.js +0 -44
- package/dist/form/lib/wizard-steps.js.map +0 -1
- package/dist/form/plugin.d.ts +0 -1
- package/dist/form/plugin.js +0 -52
- package/dist/form/plugin.js.map +0 -1
- package/dist/form/rich-editor/builtins.d.ts +0 -6
- package/dist/form/rich-editor/builtins.js +0 -400
- package/dist/form/rich-editor/builtins.js.map +0 -1
- package/dist/form/rich-editor/index.d.ts +0 -7
- package/dist/form/rich-editor/index.js +0 -3
- package/dist/form/rich-editor/registry.d.ts +0 -67
- package/dist/form/rich-editor/registry.js +0 -79
- package/dist/form/rich-editor/registry.js.map +0 -1
- package/dist/form/rich-editor/toolbar-button.d.ts +0 -12
- package/dist/form/rich-editor/toolbar-button.js +0 -28
- package/dist/form/rich-editor/toolbar-button.js.map +0 -1
- package/dist/form/toolkit.d.ts +0 -17
- package/dist/form/toolkit.js +0 -14
- package/dist/form/types.d.ts +0 -4
- package/dist/form/types.js +0 -0
- package/dist/format/date-time.d.ts +0 -14
- package/dist/format/date-time.js +0 -34
- package/dist/format/date-time.js.map +0 -1
- package/dist/format/format-context.d.ts +0 -6
- package/dist/format/format-context.js +0 -17
- package/dist/format/format-context.js.map +0 -1
- package/dist/format/number.d.ts +0 -2
- package/dist/format/number.js +0 -23
- package/dist/format/number.js.map +0 -1
- package/dist/format/numeric.d.ts +0 -1
- package/dist/format/numeric.js +0 -9
- package/dist/format/numeric.js.map +0 -1
- package/dist/format/value.d.ts +0 -6
- package/dist/format/value.js +0 -17
- package/dist/format/value.js.map +0 -1
- package/dist/i18n/backend.d.ts +0 -26
- package/dist/i18n/backend.js +0 -54
- package/dist/i18n/backend.js.map +0 -1
- package/dist/i18n/config.d.ts +0 -10
- package/dist/i18n/config.js +0 -36
- package/dist/i18n/config.js.map +0 -1
- package/dist/i18n/date-time-formatter.d.ts +0 -13
- package/dist/i18n/date-time-formatter.js +0 -28
- package/dist/i18n/date-time-formatter.js.map +0 -1
- package/dist/i18n/date-time.d.ts +0 -8
- package/dist/i18n/date-time.js +0 -32
- package/dist/i18n/date-time.js.map +0 -1
- package/dist/i18n/index.d.ts +0 -13
- package/dist/i18n/index.js +0 -10
- package/dist/i18n/instance.d.ts +0 -36
- package/dist/i18n/instance.js +0 -113
- package/dist/i18n/instance.js.map +0 -1
- package/dist/i18n/locale-reload.d.ts +0 -4
- package/dist/i18n/locale-reload.js +0 -18
- package/dist/i18n/locale-reload.js.map +0 -1
- package/dist/i18n/locale-switcher.d.ts +0 -16
- package/dist/i18n/locale-switcher.js +0 -21
- package/dist/i18n/locale-switcher.js.map +0 -1
- package/dist/i18n/locale.d.ts +0 -9
- package/dist/i18n/locale.js +0 -85
- package/dist/i18n/locale.js.map +0 -1
- package/dist/i18n/page-props.d.ts +0 -4
- package/dist/i18n/page-props.js +0 -10
- package/dist/i18n/page-props.js.map +0 -1
- package/dist/i18n/shared-props.d.ts +0 -7
- package/dist/i18n/shared-props.js +0 -23
- package/dist/i18n/shared-props.js.map +0 -1
- package/dist/i18n/timezone.d.ts +0 -7
- package/dist/i18n/timezone.js +0 -45
- package/dist/i18n/timezone.js.map +0 -1
- package/dist/i18n/translatable.d.ts +0 -5
- package/dist/i18n/translatable.js +0 -27
- package/dist/i18n/translatable.js.map +0 -1
- package/dist/icons/icon-renderer.d.ts +0 -13
- package/dist/icons/icon-renderer.js +0 -56
- package/dist/icons/icon-renderer.js.map +0 -1
- package/dist/icons/index.d.ts +0 -4
- package/dist/icons/index.js +0 -3
- package/dist/icons/sprite.d.ts +0 -30
- package/dist/icons/sprite.js +0 -40
- package/dist/icons/sprite.js.map +0 -1
- package/dist/lib/color.d.ts +0 -9
- package/dist/lib/color.js +0 -48
- package/dist/lib/color.js.map +0 -1
- package/dist/lib/is-truthy.d.ts +0 -2
- package/dist/lib/is-truthy.js +0 -9
- package/dist/lib/is-truthy.js.map +0 -1
- package/dist/lib/listeners.d.ts +0 -5
- package/dist/lib/listeners.js +0 -19
- package/dist/lib/listeners.js.map +0 -1
- package/dist/lib/use-debounced-callback.d.ts +0 -10
- package/dist/lib/use-debounced-callback.js +0 -34
- package/dist/lib/use-debounced-callback.js.map +0 -1
- package/dist/lib/use-layout-effect.d.ts +0 -6
- package/dist/lib/use-layout-effect.js +0 -11
- package/dist/lib/use-layout-effect.js.map +0 -1
- package/dist/lib/use-media-query.d.ts +0 -5
- package/dist/lib/use-media-query.js +0 -26
- package/dist/lib/use-media-query.js.map +0 -1
- package/dist/lib/use-persistent-state.d.ts +0 -13
- package/dist/lib/use-persistent-state.js +0 -62
- package/dist/lib/use-persistent-state.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -2
- package/dist/lib/utils.js +0 -20
- package/dist/lib/utils.js.map +0 -1
- package/dist/table/components/bulk-bar.d.ts +0 -11
- package/dist/table/components/bulk-bar.js +0 -110
- package/dist/table/components/bulk-bar.js.map +0 -1
- package/dist/table/components/cells/badge-cell.d.ts +0 -2
- package/dist/table/components/cells/badge-cell.js +0 -16
- package/dist/table/components/cells/badge-cell.js.map +0 -1
- package/dist/table/components/cells/boolean-cell.d.ts +0 -2
- package/dist/table/components/cells/boolean-cell.js +0 -22
- package/dist/table/components/cells/boolean-cell.js.map +0 -1
- package/dist/table/components/cells/copyable-cell.d.ts +0 -9
- package/dist/table/components/cells/copyable-cell.js +0 -17
- package/dist/table/components/cells/copyable-cell.js.map +0 -1
- package/dist/table/components/cells/icon-cell.d.ts +0 -2
- package/dist/table/components/cells/icon-cell.js +0 -24
- package/dist/table/components/cells/icon-cell.js.map +0 -1
- package/dist/table/components/cells/image-cell.d.ts +0 -2
- package/dist/table/components/cells/image-cell.js +0 -22
- package/dist/table/components/cells/image-cell.js.map +0 -1
- package/dist/table/components/cells/money-cell.d.ts +0 -2
- package/dist/table/components/cells/money-cell.js +0 -24
- package/dist/table/components/cells/money-cell.js.map +0 -1
- package/dist/table/components/cells/number-cell.d.ts +0 -2
- package/dist/table/components/cells/number-cell.js +0 -20
- package/dist/table/components/cells/number-cell.js.map +0 -1
- package/dist/table/components/cells/numeric-cell.d.ts +0 -10
- package/dist/table/components/cells/numeric-cell.js +0 -25
- package/dist/table/components/cells/numeric-cell.js.map +0 -1
- package/dist/table/components/cells/stack-cell.d.ts +0 -2
- package/dist/table/components/cells/stack-cell.js +0 -12
- package/dist/table/components/cells/stack-cell.js.map +0 -1
- package/dist/table/components/cells/text-cell.d.ts +0 -2
- package/dist/table/components/cells/text-cell.js +0 -67
- package/dist/table/components/cells/text-cell.js.map +0 -1
- package/dist/table/components/column-filter-control.d.ts +0 -17
- package/dist/table/components/column-filter-control.js +0 -286
- package/dist/table/components/column-filter-control.js.map +0 -1
- package/dist/table/components/column-header.d.ts +0 -9
- package/dist/table/components/column-header.js +0 -53
- package/dist/table/components/column-header.js.map +0 -1
- package/dist/table/components/column-visibility-menu.d.ts +0 -10
- package/dist/table/components/column-visibility-menu.js +0 -49
- package/dist/table/components/column-visibility-menu.js.map +0 -1
- package/dist/table/components/filter-bar.d.ts +0 -18
- package/dist/table/components/filter-bar.js +0 -106
- package/dist/table/components/filter-bar.js.map +0 -1
- package/dist/table/components/filter-controls.d.ts +0 -11
- package/dist/table/components/filter-controls.js +0 -131
- package/dist/table/components/filter-controls.js.map +0 -1
- package/dist/table/components/filter-value-input.d.ts +0 -13
- package/dist/table/components/filter-value-input.js +0 -93
- package/dist/table/components/filter-value-input.js.map +0 -1
- package/dist/table/components/pagination.d.ts +0 -18
- package/dist/table/components/pagination.js +0 -95
- package/dist/table/components/pagination.js.map +0 -1
- package/dist/table/components/sort-bar.d.ts +0 -7
- package/dist/table/components/sort-bar.js +0 -44
- package/dist/table/components/sort-bar.js.map +0 -1
- package/dist/table/components/table-cell.d.ts +0 -5
- package/dist/table/components/table-cell.js +0 -35
- package/dist/table/components/table-cell.js.map +0 -1
- package/dist/table/components/table-search.d.ts +0 -9
- package/dist/table/components/table-search.js +0 -72
- package/dist/table/components/table-search.js.map +0 -1
- package/dist/table/components/table.d.ts +0 -7
- package/dist/table/components/table.js +0 -333
- package/dist/table/components/table.js.map +0 -1
- package/dist/table/hooks/use-column-visibility.d.ts +0 -20
- package/dist/table/hooks/use-column-visibility.js +0 -54
- package/dist/table/hooks/use-column-visibility.js.map +0 -1
- package/dist/table/hooks/use-expanded-rows.d.ts +0 -8
- package/dist/table/hooks/use-expanded-rows.js +0 -24
- package/dist/table/hooks/use-expanded-rows.js.map +0 -1
- package/dist/table/hooks/use-table-selection.d.ts +0 -12
- package/dist/table/hooks/use-table-selection.js +0 -47
- package/dist/table/hooks/use-table-selection.js.map +0 -1
- package/dist/table/hooks/use-table.d.ts +0 -28
- package/dist/table/hooks/use-table.js +0 -220
- package/dist/table/hooks/use-table.js.map +0 -1
- package/dist/table/index.d.ts +0 -6
- package/dist/table/index.js +0 -5
- package/dist/table/lib/align.d.ts +0 -4
- package/dist/table/lib/align.js +0 -23
- package/dist/table/lib/align.js.map +0 -1
- package/dist/table/lib/bulk.d.ts +0 -18
- package/dist/table/lib/bulk.js +0 -26
- package/dist/table/lib/bulk.js.map +0 -1
- package/dist/table/lib/filter-values.d.ts +0 -25
- package/dist/table/lib/filter-values.js +0 -47
- package/dist/table/lib/filter-values.js.map +0 -1
- package/dist/table/lib/format.d.ts +0 -4
- package/dist/table/lib/format.js +0 -23
- package/dist/table/lib/format.js.map +0 -1
- package/dist/table/lib/payload.d.ts +0 -11
- package/dist/table/lib/payload.js +0 -91
- package/dist/table/lib/payload.js.map +0 -1
- package/dist/table/lib/query.d.ts +0 -20
- package/dist/table/lib/query.js +0 -140
- package/dist/table/lib/query.js.map +0 -1
- package/dist/table/plugin.d.ts +0 -1
- package/dist/table/plugin.js +0 -11
- package/dist/table/plugin.js.map +0 -1
- package/dist/table/registry.d.ts +0 -19
- package/dist/table/registry.js +0 -14
- package/dist/table/registry.js.map +0 -1
- package/dist/table/types.d.ts +0 -17
- package/dist/table/types.js +0 -0
- package/dist/ui/action-menu-context.d.ts +0 -6
- package/dist/ui/action-menu-context.js +0 -18
- package/dist/ui/action-menu-context.js.map +0 -1
- package/dist/ui/affix-group.d.ts +0 -18
- package/dist/ui/affix-group.js +0 -51
- package/dist/ui/affix-group.js.map +0 -1
- package/dist/ui/avatar.d.ts +0 -3
- package/dist/ui/avatar.js +0 -52
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.d.ts +0 -9
- package/dist/ui/badge.js +0 -25
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/button.d.ts +0 -18
- package/dist/ui/button.js +0 -243
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/card.d.ts +0 -11
- package/dist/ui/card.js +0 -68
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/chart-view.d.ts +0 -3
- package/dist/ui/chart-view.js +0 -354
- package/dist/ui/chart-view.js.map +0 -1
- package/dist/ui/chart.d.ts +0 -3
- package/dist/ui/chart.js +0 -15
- package/dist/ui/chart.js.map +0 -1
- package/dist/ui/checkbox.d.ts +0 -4
- package/dist/ui/checkbox.js +0 -25
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/click-behavior.d.ts +0 -40
- package/dist/ui/click-behavior.js +0 -46
- package/dist/ui/click-behavior.js.map +0 -1
- package/dist/ui/code-block-view.d.ts +0 -3
- package/dist/ui/code-block-view.js +0 -135
- package/dist/ui/code-block-view.js.map +0 -1
- package/dist/ui/code-block.d.ts +0 -25
- package/dist/ui/code-block.js +0 -54
- package/dist/ui/code-block.js.map +0 -1
- package/dist/ui/collapsible.d.ts +0 -3
- package/dist/ui/collapsible.js +0 -56
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/color-picker.d.ts +0 -8
- package/dist/ui/color-picker.js +0 -59
- package/dist/ui/color-picker.js.map +0 -1
- package/dist/ui/combobox.d.ts +0 -42
- package/dist/ui/combobox.js +0 -145
- package/dist/ui/combobox.js.map +0 -1
- package/dist/ui/confirm-dialog.d.ts +0 -13
- package/dist/ui/confirm-dialog.js +0 -48
- package/dist/ui/confirm-dialog.js.map +0 -1
- package/dist/ui/control.d.ts +0 -10
- package/dist/ui/control.js +0 -26
- package/dist/ui/control.js.map +0 -1
- package/dist/ui/copyable-text.d.ts +0 -19
- package/dist/ui/copyable-text.js +0 -60
- package/dist/ui/copyable-text.js.map +0 -1
- package/dist/ui/dialog.d.ts +0 -23
- package/dist/ui/dialog.js +0 -100
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -14
- package/dist/ui/dropdown-menu.js +0 -42
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/floating-panel.d.ts +0 -3
- package/dist/ui/floating-panel.js +0 -66
- package/dist/ui/floating-panel.js.map +0 -1
- package/dist/ui/fragment.js.map +0 -1
- package/dist/ui/grid.d.ts +0 -3
- package/dist/ui/grid.js +0 -29
- package/dist/ui/grid.js.map +0 -1
- package/dist/ui/heading.d.ts +0 -3
- package/dist/ui/heading.js +0 -58
- package/dist/ui/heading.js.map +0 -1
- package/dist/ui/icon-button.d.ts +0 -22
- package/dist/ui/icon-button.js +0 -51
- package/dist/ui/icon-button.js.map +0 -1
- package/dist/ui/icon.d.ts +0 -3
- package/dist/ui/icon.js +0 -33
- package/dist/ui/icon.js.map +0 -1
- package/dist/ui/image-preview.d.ts +0 -12
- package/dist/ui/image-preview.js +0 -65
- package/dist/ui/image-preview.js.map +0 -1
- package/dist/ui/image.d.ts +0 -3
- package/dist/ui/image.js +0 -21
- package/dist/ui/image.js.map +0 -1
- package/dist/ui/index.d.ts +0 -31
- package/dist/ui/index.js +0 -29
- package/dist/ui/info-tooltip.d.ts +0 -3
- package/dist/ui/info-tooltip.js +0 -26
- package/dist/ui/info-tooltip.js.map +0 -1
- package/dist/ui/input-error.d.ts +0 -4
- package/dist/ui/input-error.js +0 -14
- package/dist/ui/input-error.js.map +0 -1
- package/dist/ui/input-otp.d.ts +0 -7
- package/dist/ui/input-otp.js +0 -29
- package/dist/ui/input-otp.js.map +0 -1
- package/dist/ui/input.d.ts +0 -5
- package/dist/ui/input.js +0 -17
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/label.d.ts +0 -4
- package/dist/ui/label.js +0 -16
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/link.d.ts +0 -7
- package/dist/ui/link.js +0 -103
- package/dist/ui/link.js.map +0 -1
- package/dist/ui/modal.d.ts +0 -3
- package/dist/ui/modal.js +0 -67
- package/dist/ui/modal.js.map +0 -1
- package/dist/ui/native-select.d.ts +0 -10
- package/dist/ui/native-select.js +0 -23
- package/dist/ui/native-select.js.map +0 -1
- package/dist/ui/password-input.d.ts +0 -7
- package/dist/ui/password-input.js +0 -36
- package/dist/ui/password-input.js.map +0 -1
- package/dist/ui/pill.d.ts +0 -2
- package/dist/ui/pill.js +0 -10
- package/dist/ui/pill.js.map +0 -1
- package/dist/ui/plugin.d.ts +0 -1
- package/dist/ui/plugin.js +0 -60
- package/dist/ui/plugin.js.map +0 -1
- package/dist/ui/popover.d.ts +0 -8
- package/dist/ui/popover.js +0 -37
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.d.ts +0 -3
- package/dist/ui/progress.js +0 -114
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/raw-block.d.ts +0 -3
- package/dist/ui/raw-block.js +0 -10
- package/dist/ui/raw-block.js.map +0 -1
- package/dist/ui/section.d.ts +0 -3
- package/dist/ui/section.js +0 -68
- package/dist/ui/section.js.map +0 -1
- package/dist/ui/segmented-control.d.ts +0 -3
- package/dist/ui/segmented-control.js +0 -27
- package/dist/ui/segmented-control.js.map +0 -1
- package/dist/ui/segmented-pills.d.ts +0 -16
- package/dist/ui/segmented-pills.js +0 -42
- package/dist/ui/segmented-pills.js.map +0 -1
- package/dist/ui/separator.d.ts +0 -3
- package/dist/ui/separator.js +0 -15
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/skeleton.d.ts +0 -3
- package/dist/ui/skeleton.js +0 -16
- package/dist/ui/skeleton.js.map +0 -1
- package/dist/ui/spinner.d.ts +0 -2
- package/dist/ui/spinner.js +0 -20
- package/dist/ui/spinner.js.map +0 -1
- package/dist/ui/stack.d.ts +0 -3
- package/dist/ui/stack.js +0 -66
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/tabs.d.ts +0 -4
- package/dist/ui/tabs.js +0 -149
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/text.d.ts +0 -3
- package/dist/ui/text.js +0 -38
- package/dist/ui/text.js.map +0 -1
- package/dist/ui/textarea.d.ts +0 -3
- package/dist/ui/textarea.js +0 -16
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/tooltip.d.ts +0 -3
- package/dist/ui/tooltip.js +0 -25
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/ui/use-collapsible-state.d.ts +0 -7
- package/dist/ui/use-collapsible-state.js +0 -21
- package/dist/ui/use-collapsible-state.js.map +0 -1
- package/dist-standalone/chunks/chart-view-CFV7BU_D.js +0 -59
- package/dist-standalone/chunks/date-picker-field-DepKtR_m.js +0 -1
- package/dist-standalone/chunks/dist-BtOmkEqQ.js +0 -1
- package/dist-standalone/chunks/dist-DqlcM-vw.js +0 -2
- package/dist-standalone/chunks/instance-C4O1XWa6.js +0 -1
- package/dist-standalone/chunks/jsx-runtime-0vZSBttN.js +0 -1
- package/dist-standalone/chunks/locale-GyqtaX1O.js +0 -1
- package/dist-standalone/chunks/number-BvVKQqOG.js +0 -1
- package/dist-standalone/chunks/page-props-BHNNVkgJ.js +0 -1
- package/dist-standalone/chunks/react-SIfiwpqq.js +0 -1
- package/dist-standalone/chunks/react-dom-DJCfT20h.js +0 -1
- package/dist-standalone/chunks/shared-props-B_wT1GcG.js +0 -1
- package/dist-standalone/chunks/subscriptions-4IpkpPX3.js +0 -1
- package/dist-standalone/chunks/time-picker-DUjYyeeP.js +0 -1
- package/dist-standalone/chunks/timezone-CyoBch3a.js +0 -1
- package/dist-standalone/chunks/translatable-DLw4h3x8.js +0 -1
- package/dist-standalone/chunks/use-dependent-field-DvH7mUyx.js +0 -41
- package/dist-standalone/chunks/use-effect-dispatcher-BMWOfaFE.js +0 -97
- package/dist-standalone/chunks/with-selector-zFUY-tQj.js +0 -1
- package/resources/icons/align-center.svg +0 -17
- package/resources/icons/align-justify.svg +0 -17
- package/resources/icons/align-left.svg +0 -17
- package/resources/icons/align-right.svg +0 -17
- package/resources/icons/arrow-down.svg +0 -16
- package/resources/icons/arrow-up.svg +0 -16
- package/resources/icons/bell.svg +0 -16
- package/resources/icons/bold.svg +0 -15
- package/resources/icons/calendar.svg +0 -18
- package/resources/icons/check.svg +0 -15
- package/resources/icons/chevron-down.svg +0 -15
- package/resources/icons/chevron-left.svg +0 -15
- package/resources/icons/chevron-right.svg +0 -15
- package/resources/icons/chevrons-up-down.svg +0 -16
- package/resources/icons/circle-alert.svg +0 -17
- package/resources/icons/circle-check.svg +0 -16
- package/resources/icons/circle-help.svg +0 -17
- package/resources/icons/circle-x.svg +0 -17
- package/resources/icons/clock.svg +0 -16
- package/resources/icons/code-xml.svg +0 -17
- package/resources/icons/code.svg +0 -16
- package/resources/icons/columns-3.svg +0 -17
- package/resources/icons/copy.svg +0 -16
- package/resources/icons/external-link.svg +0 -17
- package/resources/icons/eye-off.svg +0 -18
- package/resources/icons/eye.svg +0 -16
- package/resources/icons/filter.svg +0 -15
- package/resources/icons/heading-1.svg +0 -18
- package/resources/icons/heading-2.svg +0 -18
- package/resources/icons/heading-3.svg +0 -19
- package/resources/icons/heading.svg +0 -17
- package/resources/icons/highlighter.svg +0 -16
- package/resources/icons/info.svg +0 -17
- package/resources/icons/italic.svg +0 -17
- package/resources/icons/layout-dashboard.svg +0 -18
- package/resources/icons/link.svg +0 -16
- package/resources/icons/list-ordered.svg +0 -20
- package/resources/icons/list.svg +0 -20
- package/resources/icons/loader-2.svg +0 -15
- package/resources/icons/minus.svg +0 -15
- package/resources/icons/more-horizontal.svg +0 -17
- package/resources/icons/panel-left.svg +0 -16
- package/resources/icons/pencil-line.svg +0 -17
- package/resources/icons/pencil.svg +0 -16
- package/resources/icons/plus.svg +0 -16
- package/resources/icons/quote.svg +0 -16
- package/resources/icons/rotate-ccw.svg +0 -16
- package/resources/icons/rows-3.svg +0 -17
- package/resources/icons/search.svg +0 -16
- package/resources/icons/send.svg +0 -16
- package/resources/icons/settings.svg +0 -16
- package/resources/icons/smile.svg +0 -18
- package/resources/icons/strikethrough.svg +0 -17
- package/resources/icons/table.svg +0 -18
- package/resources/icons/trash-2.svg +0 -19
- package/resources/icons/underline.svg +0 -16
- package/resources/icons/x.svg +0 -16
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lattice-php/lattice",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "Server-driven React components for Laravel and Inertia.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Manuel Christlieb <manuel@christlieb.eu>",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"workspaces": [
|
|
9
|
-
"docs"
|
|
10
|
-
],
|
|
11
8
|
"homepage": "https://latticephp.com",
|
|
12
9
|
"repository": {
|
|
13
10
|
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/lattice-php/lattice.git"
|
|
11
|
+
"url": "git+https://github.com/lattice-php/lattice.git",
|
|
12
|
+
"directory": "packages/framework"
|
|
15
13
|
},
|
|
16
14
|
"bugs": {
|
|
17
15
|
"url": "https://github.com/lattice-php/lattice/issues"
|
|
@@ -50,82 +48,10 @@
|
|
|
50
48
|
"types": "./dist/chat/index.d.ts",
|
|
51
49
|
"import": "./dist/chat/index.js"
|
|
52
50
|
},
|
|
53
|
-
"./core": {
|
|
54
|
-
"types": "./dist/core/index.d.ts",
|
|
55
|
-
"import": "./dist/core/index.js"
|
|
56
|
-
},
|
|
57
|
-
"./core/api": {
|
|
58
|
-
"types": "./dist/core/api.d.ts",
|
|
59
|
-
"import": "./dist/core/api.js"
|
|
60
|
-
},
|
|
61
|
-
"./core/headers": {
|
|
62
|
-
"types": "./dist/core/headers.d.ts",
|
|
63
|
-
"import": "./dist/core/headers.js"
|
|
64
|
-
},
|
|
65
|
-
"./core/types": {
|
|
66
|
-
"types": "./dist/core/types.d.ts",
|
|
67
|
-
"import": "./dist/core/types.js"
|
|
68
|
-
},
|
|
69
|
-
"./core/upload": {
|
|
70
|
-
"types": "./dist/core/upload.d.ts",
|
|
71
|
-
"import": "./dist/core/upload.js"
|
|
72
|
-
},
|
|
73
51
|
"./dnd": {
|
|
74
52
|
"types": "./dist/dnd/index.d.ts",
|
|
75
53
|
"import": "./dist/dnd/index.js"
|
|
76
54
|
},
|
|
77
|
-
"./effects/use-effect-dispatcher": {
|
|
78
|
-
"types": "./dist/effects/use-effect-dispatcher.d.ts",
|
|
79
|
-
"import": "./dist/effects/use-effect-dispatcher.js"
|
|
80
|
-
},
|
|
81
|
-
"./form": {
|
|
82
|
-
"types": "./dist/form/index.d.ts",
|
|
83
|
-
"import": "./dist/form/index.js"
|
|
84
|
-
},
|
|
85
|
-
"./form/embed": {
|
|
86
|
-
"types": "./dist/form/embed.d.ts",
|
|
87
|
-
"import": "./dist/form/embed.js"
|
|
88
|
-
},
|
|
89
|
-
"./form/toolkit": {
|
|
90
|
-
"types": "./dist/form/toolkit.d.ts",
|
|
91
|
-
"import": "./dist/form/toolkit.js"
|
|
92
|
-
},
|
|
93
|
-
"./form/rich-editor": {
|
|
94
|
-
"types": "./dist/form/rich-editor/index.d.ts",
|
|
95
|
-
"import": "./dist/form/rich-editor/index.js"
|
|
96
|
-
},
|
|
97
|
-
"./form/components/fields/simple-field": {
|
|
98
|
-
"types": "./dist/form/components/fields/simple-field.d.ts",
|
|
99
|
-
"import": "./dist/form/components/fields/simple-field.js"
|
|
100
|
-
},
|
|
101
|
-
"./form/hooks/context": {
|
|
102
|
-
"types": "./dist/form/hooks/context.d.ts",
|
|
103
|
-
"import": "./dist/form/hooks/context.js"
|
|
104
|
-
},
|
|
105
|
-
"./form/hooks/field-scope": {
|
|
106
|
-
"types": "./dist/form/hooks/field-scope.d.ts",
|
|
107
|
-
"import": "./dist/form/hooks/field-scope.js"
|
|
108
|
-
},
|
|
109
|
-
"./form/hooks/values": {
|
|
110
|
-
"types": "./dist/form/hooks/values.d.ts",
|
|
111
|
-
"import": "./dist/form/hooks/values.js"
|
|
112
|
-
},
|
|
113
|
-
"./format/date-time": {
|
|
114
|
-
"types": "./dist/format/date-time.d.ts",
|
|
115
|
-
"import": "./dist/format/date-time.js"
|
|
116
|
-
},
|
|
117
|
-
"./format/format-context": {
|
|
118
|
-
"types": "./dist/format/format-context.d.ts",
|
|
119
|
-
"import": "./dist/format/format-context.js"
|
|
120
|
-
},
|
|
121
|
-
"./i18n": {
|
|
122
|
-
"types": "./dist/i18n/index.d.ts",
|
|
123
|
-
"import": "./dist/i18n/index.js"
|
|
124
|
-
},
|
|
125
|
-
"./icons": {
|
|
126
|
-
"types": "./dist/icons/index.d.ts",
|
|
127
|
-
"import": "./dist/icons/index.js"
|
|
128
|
-
},
|
|
129
55
|
"./inertia": {
|
|
130
56
|
"types": "./dist/inertia.d.ts",
|
|
131
57
|
"import": "./dist/inertia.js"
|
|
@@ -134,18 +60,6 @@
|
|
|
134
60
|
"types": "./dist/layout/index.d.ts",
|
|
135
61
|
"import": "./dist/layout/index.js"
|
|
136
62
|
},
|
|
137
|
-
"./lib/use-debounced-callback": {
|
|
138
|
-
"types": "./dist/lib/use-debounced-callback.d.ts",
|
|
139
|
-
"import": "./dist/lib/use-debounced-callback.js"
|
|
140
|
-
},
|
|
141
|
-
"./lib/use-layout-effect": {
|
|
142
|
-
"types": "./dist/lib/use-layout-effect.d.ts",
|
|
143
|
-
"import": "./dist/lib/use-layout-effect.js"
|
|
144
|
-
},
|
|
145
|
-
"./lib/utils": {
|
|
146
|
-
"types": "./dist/lib/utils.d.ts",
|
|
147
|
-
"import": "./dist/lib/utils.js"
|
|
148
|
-
},
|
|
149
63
|
"./notifications": {
|
|
150
64
|
"types": "./dist/notifications/index.d.ts",
|
|
151
65
|
"import": "./dist/notifications/index.js"
|
|
@@ -162,6 +76,10 @@
|
|
|
162
76
|
"types": "./dist/registry.d.ts",
|
|
163
77
|
"import": "./dist/registry.js"
|
|
164
78
|
},
|
|
79
|
+
"./runtime": {
|
|
80
|
+
"types": "./dist/runtime.d.ts",
|
|
81
|
+
"import": "./dist/runtime.js"
|
|
82
|
+
},
|
|
165
83
|
"./remote": {
|
|
166
84
|
"types": "./dist/remote/index.d.ts",
|
|
167
85
|
"import": "./dist/remote/index.js"
|
|
@@ -170,26 +88,6 @@
|
|
|
170
88
|
"types": "./dist/ssr.d.ts",
|
|
171
89
|
"import": "./dist/ssr.js"
|
|
172
90
|
},
|
|
173
|
-
"./table": {
|
|
174
|
-
"types": "./dist/table/index.d.ts",
|
|
175
|
-
"import": "./dist/table/index.js"
|
|
176
|
-
},
|
|
177
|
-
"./table/hooks/use-table": {
|
|
178
|
-
"types": "./dist/table/hooks/use-table.d.ts",
|
|
179
|
-
"import": "./dist/table/hooks/use-table.js"
|
|
180
|
-
},
|
|
181
|
-
"./table/hooks/use-table-selection": {
|
|
182
|
-
"types": "./dist/table/hooks/use-table-selection.d.ts",
|
|
183
|
-
"import": "./dist/table/hooks/use-table-selection.js"
|
|
184
|
-
},
|
|
185
|
-
"./table/lib/bulk": {
|
|
186
|
-
"types": "./dist/table/lib/bulk.d.ts",
|
|
187
|
-
"import": "./dist/table/lib/bulk.js"
|
|
188
|
-
},
|
|
189
|
-
"./table/types": {
|
|
190
|
-
"types": "./dist/table/types.d.ts",
|
|
191
|
-
"import": "./dist/table/types.js"
|
|
192
|
-
},
|
|
193
91
|
"./toast": {
|
|
194
92
|
"types": "./dist/toast/index.d.ts",
|
|
195
93
|
"import": "./dist/toast/index.js"
|
|
@@ -200,46 +98,6 @@
|
|
|
200
98
|
"./types/generated": {
|
|
201
99
|
"types": "./dist/types/generated.d.ts"
|
|
202
100
|
},
|
|
203
|
-
"./ui": {
|
|
204
|
-
"types": "./dist/ui/index.d.ts",
|
|
205
|
-
"import": "./dist/ui/index.js"
|
|
206
|
-
},
|
|
207
|
-
"./ui/button": {
|
|
208
|
-
"types": "./dist/ui/button.d.ts",
|
|
209
|
-
"import": "./dist/ui/button.js"
|
|
210
|
-
},
|
|
211
|
-
"./ui/checkbox": {
|
|
212
|
-
"types": "./dist/ui/checkbox.d.ts",
|
|
213
|
-
"import": "./dist/ui/checkbox.js"
|
|
214
|
-
},
|
|
215
|
-
"./ui/confirm-dialog": {
|
|
216
|
-
"types": "./dist/ui/confirm-dialog.d.ts",
|
|
217
|
-
"import": "./dist/ui/confirm-dialog.js"
|
|
218
|
-
},
|
|
219
|
-
"./ui/dialog": {
|
|
220
|
-
"types": "./dist/ui/dialog.d.ts",
|
|
221
|
-
"import": "./dist/ui/dialog.js"
|
|
222
|
-
},
|
|
223
|
-
"./ui/icon-button": {
|
|
224
|
-
"types": "./dist/ui/icon-button.d.ts",
|
|
225
|
-
"import": "./dist/ui/icon-button.js"
|
|
226
|
-
},
|
|
227
|
-
"./ui/image-preview": {
|
|
228
|
-
"types": "./dist/ui/image-preview.d.ts",
|
|
229
|
-
"import": "./dist/ui/image-preview.js"
|
|
230
|
-
},
|
|
231
|
-
"./ui/input": {
|
|
232
|
-
"types": "./dist/ui/input.d.ts",
|
|
233
|
-
"import": "./dist/ui/input.js"
|
|
234
|
-
},
|
|
235
|
-
"./ui/label": {
|
|
236
|
-
"types": "./dist/ui/label.d.ts",
|
|
237
|
-
"import": "./dist/ui/label.js"
|
|
238
|
-
},
|
|
239
|
-
"./ui/native-select": {
|
|
240
|
-
"types": "./dist/ui/native-select.d.ts",
|
|
241
|
-
"import": "./dist/ui/native-select.js"
|
|
242
|
-
},
|
|
243
101
|
"./svg-sprite-client": {
|
|
244
102
|
"types": "./dist/svg-sprite-client.d.ts"
|
|
245
103
|
},
|
|
@@ -254,43 +112,23 @@
|
|
|
254
112
|
},
|
|
255
113
|
"files": [
|
|
256
114
|
"dist",
|
|
257
|
-
"dist-standalone"
|
|
258
|
-
"resources/icons"
|
|
115
|
+
"dist-standalone"
|
|
259
116
|
],
|
|
260
117
|
"publishConfig": {
|
|
261
118
|
"access": "public"
|
|
262
119
|
},
|
|
263
120
|
"scripts": {
|
|
264
|
-
"postinstall": "[ -n \"$CI\" ] || test ! -f vendor/bin/testbench || npm run boost:refresh",
|
|
265
|
-
"dev": "vite",
|
|
266
121
|
"build": "vite build",
|
|
267
|
-
"build:lib": "vite build --mode lib",
|
|
268
|
-
"build:lib:watch": "vite build --mode lib --watch",
|
|
269
122
|
"build:standalone": "vite build --mode standalone",
|
|
270
|
-
"
|
|
271
|
-
"prepack": "npm run build:lib",
|
|
272
|
-
"test": "vitest run",
|
|
273
|
-
"test:browser": "vitest run --project browser",
|
|
274
|
-
"test:coverage": "vitest run --coverage",
|
|
275
|
-
"boost:refresh": "php vendor/bin/testbench boost:update --no-interaction",
|
|
123
|
+
"prepack": "npm run build",
|
|
276
124
|
"typecheck": "tsc --noEmit",
|
|
277
|
-
"
|
|
278
|
-
"check": "npm run lint && npm run format:check && npm run typecheck && npm run type-coverage && npm run test && npm run build:lib && npm run check:package",
|
|
279
|
-
"check:package": "publint --strict && attw --pack . --profile esm-only --exclude-entrypoints ./css",
|
|
280
|
-
"fix": "npm run lint:fix && npm run format",
|
|
281
|
-
"docs:typecheck": "npm run build:lib && tsc --noEmit -p docs/tsconfig.json",
|
|
282
|
-
"docs:test": "vitest run --project jsdom docs",
|
|
283
|
-
"lint": "oxlint resources/js workbench/resources/js packages/*/resources/js",
|
|
284
|
-
"lint:fix": "oxlint resources/js workbench/resources/js packages/*/resources/js --fix",
|
|
285
|
-
"lint:github": "oxlint resources/js workbench/resources/js packages/*/resources/js --format=github",
|
|
286
|
-
"format": "oxfmt --write \"resources/js/**/*.{ts,tsx}\" \"workbench/resources/js/**/*.{ts,tsx}\" \"packages/*/resources/js/**/*.{ts,tsx}\" \"docs/**/*.{ts,tsx,md,mdx}\"",
|
|
287
|
-
"format:check": "oxfmt --check \"resources/js/**/*.{ts,tsx}\" \"workbench/resources/js/**/*.{ts,tsx}\" \"packages/*/resources/js/**/*.{ts,tsx}\" \"docs/**/*.{ts,tsx,md,mdx}\"",
|
|
288
|
-
"analyze": "SONDA=1 vite build && mkdir -p docs/public && cp docs/generated/bundle-report.html docs/public/bundle-report.html",
|
|
289
|
-
"docs:dev": "npm run build:lib && npm run dev -w docs",
|
|
290
|
-
"docs:build": "npm run build:lib && npm run analyze && npm run build -w docs",
|
|
291
|
-
"docs:preview": "npm run preview -w docs"
|
|
125
|
+
"test": "vitest run"
|
|
292
126
|
},
|
|
293
127
|
"dependencies": {
|
|
128
|
+
"@lattice-php/core": "0.40.0",
|
|
129
|
+
"@lattice-php/form": "0.40.0",
|
|
130
|
+
"@lattice-php/table": "0.40.0",
|
|
131
|
+
"@lattice-php/ui": "0.40.0",
|
|
294
132
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
|
|
295
133
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
|
296
134
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
|
|
@@ -302,34 +140,9 @@
|
|
|
302
140
|
"@codemirror/legacy-modes": "^6.5.3",
|
|
303
141
|
"@codemirror/state": "^6.7.1",
|
|
304
142
|
"@codemirror/view": "^6.43.7",
|
|
305
|
-
"@internationalized/date": "^3.12.2",
|
|
306
143
|
"@lattice-php/vite-svg-sprite": "^0.3.0",
|
|
307
144
|
"@lezer/highlight": "^1.2.3",
|
|
308
|
-
"@radix-ui/react-
|
|
309
|
-
"@radix-ui/react-dialog": "^1.1.16",
|
|
310
|
-
"@radix-ui/react-label": "^2.1.2",
|
|
311
|
-
"@radix-ui/react-popover": "^1.1.16",
|
|
312
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
313
|
-
"@radix-ui/react-toast": "^1.2.16",
|
|
314
|
-
"@tiptap/core": "^3.26.0",
|
|
315
|
-
"@tiptap/extension-details": "^3.26.0",
|
|
316
|
-
"@tiptap/extension-highlight": "^3.26.0",
|
|
317
|
-
"@tiptap/extension-table": "^3.26.0",
|
|
318
|
-
"@tiptap/extension-text-align": "^3.26.0",
|
|
319
|
-
"@tiptap/extensions": "^3.27.3",
|
|
320
|
-
"@tiptap/pm": "^3.26.0",
|
|
321
|
-
"@tiptap/react": "^3.26.0",
|
|
322
|
-
"@tiptap/starter-kit": "^3.26.0",
|
|
323
|
-
"@zag-js/date-picker": "^1.41.2",
|
|
324
|
-
"@zag-js/react": "^1.41.2",
|
|
325
|
-
"class-variance-authority": "^0.7.1",
|
|
326
|
-
"clsx": "^2.1.1",
|
|
327
|
-
"i18next": "^26.3.1",
|
|
328
|
-
"i18next-http-backend": "^4.0.0",
|
|
329
|
-
"input-otp": "^1.4.2",
|
|
330
|
-
"react-colorful": "^5.8.0",
|
|
331
|
-
"recharts": "^3.8.1",
|
|
332
|
-
"tailwind-merge": "^3.0.1"
|
|
145
|
+
"@radix-ui/react-toast": "^1.2.16"
|
|
333
146
|
},
|
|
334
147
|
"peerDependencies": {
|
|
335
148
|
"@inertiajs/react": "^3.0.0",
|
|
@@ -345,42 +158,5 @@
|
|
|
345
158
|
"pusher-js": {
|
|
346
159
|
"optional": true
|
|
347
160
|
}
|
|
348
|
-
},
|
|
349
|
-
"devDependencies": {
|
|
350
|
-
"@arethetypeswrong/cli": "^0.18.5",
|
|
351
|
-
"@codecov/vite-plugin": "^2.0.1",
|
|
352
|
-
"@inertiajs/react": "^3.6.1",
|
|
353
|
-
"@inertiajs/vite": "^3.6.1",
|
|
354
|
-
"@laravel/echo-react": "^2.3.7",
|
|
355
|
-
"@tailwindcss/vite": "^4.1.11",
|
|
356
|
-
"@testing-library/dom": "^10.4.1",
|
|
357
|
-
"@testing-library/jest-dom": "^7.0.0",
|
|
358
|
-
"@testing-library/react": "^16.3.0",
|
|
359
|
-
"@types/node": "^24.13.3",
|
|
360
|
-
"@types/react": "^19.2.0",
|
|
361
|
-
"@types/react-dom": "^19.2.0",
|
|
362
|
-
"@vitejs/plugin-react": "^6.0.2",
|
|
363
|
-
"@vitest/browser-playwright": "^4.1.8",
|
|
364
|
-
"@vitest/coverage-v8": "^4.1.8",
|
|
365
|
-
"jsdom": "^30.0.1",
|
|
366
|
-
"laravel-echo": "^2.3.7",
|
|
367
|
-
"laravel-vite-plugin": "^3.0.0",
|
|
368
|
-
"lucide-static": "^1.24.0",
|
|
369
|
-
"oxfmt": "^0.61.0",
|
|
370
|
-
"oxlint": "^1.68.0",
|
|
371
|
-
"playwright": "^1.60.0",
|
|
372
|
-
"publint": "^0.3.21",
|
|
373
|
-
"pusher-js": "^8.5.0",
|
|
374
|
-
"react": "^19.2.0",
|
|
375
|
-
"react-dom": "^19.2.0",
|
|
376
|
-
"sonda": "^0.14.0",
|
|
377
|
-
"tailwindcss": "^4.0.0",
|
|
378
|
-
"tw-animate-css": "^1.4.0",
|
|
379
|
-
"type-coverage": "^2.29.7",
|
|
380
|
-
"typescript": "^6.0.3",
|
|
381
|
-
"vite": "^8.0.0",
|
|
382
|
-
"vite-plugin-dts": "^5.0.3",
|
|
383
|
-
"vitest": "^4.1.8",
|
|
384
|
-
"vitest-browser-react": "^2.2.0"
|
|
385
161
|
}
|
|
386
162
|
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Manuel Christlieb <manuel@christlieb.eu>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
package/dist/core/api.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BrowserToken as GeneratedBrowserToken, RemoteAccess as GeneratedRemoteAccess } from '../types/generated.js';
|
|
2
|
-
export declare class ApiError extends Error {
|
|
3
|
-
readonly response: Response;
|
|
4
|
-
constructor(response: Response);
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Exported so the few transports that cannot go through apiFetch — an XHR that
|
|
8
|
-
* reports upload progress, for instance — still send the same CSRF header.
|
|
9
|
-
*/
|
|
10
|
-
export declare function xsrfToken(): string;
|
|
11
|
-
export type ApiInit = Omit<RequestInit, "headers"> & {
|
|
12
|
-
ref?: string;
|
|
13
|
-
headers?: Record<string, string>;
|
|
14
|
-
throwOnError?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type BrowserToken = GeneratedBrowserToken;
|
|
17
|
-
export type RemoteAccess = GeneratedRemoteAccess;
|
|
18
|
-
export type RemoteInit = Omit<RequestInit, "credentials" | "headers"> & {
|
|
19
|
-
headers?: Record<string, string>;
|
|
20
|
-
remote: RemoteAccess;
|
|
21
|
-
throwOnError?: boolean;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Boot paths call this with the server-minted URL so subdirectory installs
|
|
25
|
-
* refresh against the right path; the default covers root installs.
|
|
26
|
-
*/
|
|
27
|
-
export declare function setRefRefreshEndpoint(url: string): void;
|
|
28
|
-
/**
|
|
29
|
-
* Trade an expired-but-authentic ref for a fresh one. Deduped per original ref
|
|
30
|
-
* so a burst of 403s from one component costs a single round-trip. The renewed
|
|
31
|
-
* token lands in the component-ref map, so every later request that resolves
|
|
32
|
-
* its ref through withHeaders picks it up — this is the transport-agnostic
|
|
33
|
-
* primitive both the fetch funnel below and the Inertia form retry build on.
|
|
34
|
-
*/
|
|
35
|
-
export declare function refreshRef(componentRef: string): Promise<string | null>;
|
|
36
|
-
export declare function apiFetch(url: string, init?: ApiInit): Promise<Response>;
|
|
37
|
-
export declare function apiJson<T>(url: string, init?: ApiInit): Promise<T>;
|
|
38
|
-
export declare function clearRemoteTokenCache(): void;
|
|
39
|
-
export declare function invalidateRemoteToken(remote: RemoteAccess): void;
|
|
40
|
-
export declare function remoteToken(remote: RemoteAccess): Promise<BrowserToken>;
|
|
41
|
-
export declare function remoteFetch(url: string, init: RemoteInit): Promise<Response>;
|
|
42
|
-
export declare function remoteJson<T>(url: string, init: RemoteInit): Promise<T>;
|
package/dist/core/api.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { latestRef, storeRefreshedRef } from "./component-ref.js";
|
|
2
|
-
import { localeHeader } from "../i18n/locale.js";
|
|
3
|
-
import { withHeaders } from "./headers.js";
|
|
4
|
-
//#region resources/js/core/api.ts
|
|
5
|
-
/**
|
|
6
|
-
* The single funnel for raw-fetch HTTP, so the cross-cutting header, credential,
|
|
7
|
-
* and error policy has one home and call sites only declare intent. Returns a
|
|
8
|
-
* Response (not parsed data) so one primitive serves JSON, the chat's streaming
|
|
9
|
-
* getReader(), and multipart alike. Not for the Inertia world (router/useHttp),
|
|
10
|
-
* which carries its own headers.
|
|
11
|
-
*/
|
|
12
|
-
var ApiError = class extends Error {
|
|
13
|
-
response;
|
|
14
|
-
constructor(response) {
|
|
15
|
-
super(`HTTP ${response.status}`);
|
|
16
|
-
this.response = response;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Exported so the few transports that cannot go through apiFetch — an XHR that
|
|
21
|
-
* reports upload progress, for instance — still send the same CSRF header.
|
|
22
|
-
*/
|
|
23
|
-
function xsrfToken() {
|
|
24
|
-
const match = document.cookie.match(/XSRF-TOKEN=([^;]+)/);
|
|
25
|
-
return match ? decodeURIComponent(match[1]) : "";
|
|
26
|
-
}
|
|
27
|
-
var tokenRefreshSkewMs = 1e4;
|
|
28
|
-
var remoteTokenCache = /* @__PURE__ */ new Map();
|
|
29
|
-
var pendingRemoteTokens = /* @__PURE__ */ new Map();
|
|
30
|
-
function defaultHeaders(method) {
|
|
31
|
-
if (!(method !== void 0 && method !== "GET" && method !== "HEAD")) return { Accept: "application/json" };
|
|
32
|
-
return {
|
|
33
|
-
Accept: "application/json",
|
|
34
|
-
"Content-Type": "application/json",
|
|
35
|
-
"X-Requested-With": "XMLHttpRequest",
|
|
36
|
-
"X-XSRF-TOKEN": xsrfToken()
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
var refRefreshEndpoint = "/lattice/refs/refresh";
|
|
40
|
-
/**
|
|
41
|
-
* Boot paths call this with the server-minted URL so subdirectory installs
|
|
42
|
-
* refresh against the right path; the default covers root installs.
|
|
43
|
-
*/
|
|
44
|
-
function setRefRefreshEndpoint(url) {
|
|
45
|
-
refRefreshEndpoint = url;
|
|
46
|
-
}
|
|
47
|
-
var pendingRefRefreshes = /* @__PURE__ */ new Map();
|
|
48
|
-
/**
|
|
49
|
-
* Trade an expired-but-authentic ref for a fresh one. Deduped per original ref
|
|
50
|
-
* so a burst of 403s from one component costs a single round-trip. The renewed
|
|
51
|
-
* token lands in the component-ref map, so every later request that resolves
|
|
52
|
-
* its ref through withHeaders picks it up — this is the transport-agnostic
|
|
53
|
-
* primitive both the fetch funnel below and the Inertia form retry build on.
|
|
54
|
-
*/
|
|
55
|
-
async function refreshRef(componentRef) {
|
|
56
|
-
const pending = pendingRefRefreshes.get(componentRef);
|
|
57
|
-
if (pending) return pending;
|
|
58
|
-
const request = apiJson(refRefreshEndpoint, {
|
|
59
|
-
method: "POST",
|
|
60
|
-
body: JSON.stringify({ ref: latestRef(componentRef) })
|
|
61
|
-
}).then((data) => {
|
|
62
|
-
storeRefreshedRef(componentRef, data.ref);
|
|
63
|
-
return data.ref;
|
|
64
|
-
}).catch(() => null).finally(() => {
|
|
65
|
-
pendingRefRefreshes.delete(componentRef);
|
|
66
|
-
});
|
|
67
|
-
pendingRefRefreshes.set(componentRef, request);
|
|
68
|
-
return request;
|
|
69
|
-
}
|
|
70
|
-
async function apiFetch(url, init = {}) {
|
|
71
|
-
const { ref = "", headers, throwOnError = true, method, ...rest } = init;
|
|
72
|
-
const normalizedMethod = method?.toUpperCase();
|
|
73
|
-
const request = () => fetch(url, {
|
|
74
|
-
credentials: "same-origin",
|
|
75
|
-
...rest,
|
|
76
|
-
method: normalizedMethod,
|
|
77
|
-
headers: withHeaders(ref, {
|
|
78
|
-
...defaultHeaders(normalizedMethod),
|
|
79
|
-
...headers
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
let response = await request();
|
|
83
|
-
if (ref !== "" && response.status === 403 && await refreshRef(ref) !== null) response = await request();
|
|
84
|
-
if (throwOnError && !response.ok) throw new ApiError(response);
|
|
85
|
-
return response;
|
|
86
|
-
}
|
|
87
|
-
async function apiJson(url, init) {
|
|
88
|
-
return (await apiFetch(url, init)).json();
|
|
89
|
-
}
|
|
90
|
-
function remoteTokenKey(remote) {
|
|
91
|
-
return [
|
|
92
|
-
remote.source,
|
|
93
|
-
remote.audience,
|
|
94
|
-
[...remote.scopes].sort().join(" ")
|
|
95
|
-
].join("");
|
|
96
|
-
}
|
|
97
|
-
function clearRemoteTokenCache() {
|
|
98
|
-
remoteTokenCache.clear();
|
|
99
|
-
pendingRemoteTokens.clear();
|
|
100
|
-
}
|
|
101
|
-
function invalidateRemoteToken(remote) {
|
|
102
|
-
remoteTokenCache.delete(remoteTokenKey(remote));
|
|
103
|
-
}
|
|
104
|
-
async function remoteToken(remote) {
|
|
105
|
-
const key = remoteTokenKey(remote);
|
|
106
|
-
const cached = remoteTokenCache.get(key);
|
|
107
|
-
if (cached && cached.expiresAt > Date.now() + tokenRefreshSkewMs) return cached.token;
|
|
108
|
-
const pending = pendingRemoteTokens.get(key);
|
|
109
|
-
if (pending) return pending;
|
|
110
|
-
const request = apiJson(remote.tokenEndpoint, {
|
|
111
|
-
method: "POST",
|
|
112
|
-
ref: remote.ref,
|
|
113
|
-
body: JSON.stringify({
|
|
114
|
-
nodeId: remote.nodeId,
|
|
115
|
-
nodeType: remote.nodeType,
|
|
116
|
-
audience: remote.audience,
|
|
117
|
-
scopes: remote.scopes
|
|
118
|
-
})
|
|
119
|
-
}).then((token) => {
|
|
120
|
-
remoteTokenCache.set(key, {
|
|
121
|
-
token,
|
|
122
|
-
expiresAt: Date.now() + Math.max(0, token.expiresIn) * 1e3
|
|
123
|
-
});
|
|
124
|
-
return token;
|
|
125
|
-
}).finally(() => {
|
|
126
|
-
pendingRemoteTokens.delete(key);
|
|
127
|
-
});
|
|
128
|
-
pendingRemoteTokens.set(key, request);
|
|
129
|
-
return request;
|
|
130
|
-
}
|
|
131
|
-
function isUnauthorized(response) {
|
|
132
|
-
return response.status === 401 || response.status === 403;
|
|
133
|
-
}
|
|
134
|
-
async function fetchRemoteWithToken(url, init, token) {
|
|
135
|
-
const { headers, ...rest } = init;
|
|
136
|
-
return fetch(url, {
|
|
137
|
-
...rest,
|
|
138
|
-
credentials: "omit",
|
|
139
|
-
headers: {
|
|
140
|
-
Accept: "application/json",
|
|
141
|
-
...localeHeader(),
|
|
142
|
-
...headers,
|
|
143
|
-
Authorization: `${token.tokenType} ${token.accessToken}`
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
async function remoteFetch(url, init) {
|
|
148
|
-
const { remote, throwOnError = true, ...request } = init;
|
|
149
|
-
let token = await remoteToken(remote);
|
|
150
|
-
let response = await fetchRemoteWithToken(url, request, token);
|
|
151
|
-
if (isUnauthorized(response)) {
|
|
152
|
-
invalidateRemoteToken(remote);
|
|
153
|
-
token = await remoteToken(remote);
|
|
154
|
-
response = await fetchRemoteWithToken(url, request, token);
|
|
155
|
-
}
|
|
156
|
-
if (throwOnError && !response.ok) throw new ApiError(response);
|
|
157
|
-
return response;
|
|
158
|
-
}
|
|
159
|
-
async function remoteJson(url, init) {
|
|
160
|
-
return (await remoteFetch(url, init)).json();
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
163
|
-
export { ApiError, apiFetch, apiJson, clearRemoteTokenCache, invalidateRemoteToken, refreshRef, remoteFetch, remoteJson, remoteToken, setRefRefreshEndpoint, xsrfToken };
|
|
164
|
-
|
|
165
|
-
//# sourceMappingURL=api.js.map
|
package/dist/core/api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","names":[],"sources":["../../resources/js/core/api.ts"],"sourcesContent":["/**\n * The single funnel for raw-fetch HTTP, so the cross-cutting header, credential,\n * and error policy has one home and call sites only declare intent. Returns a\n * Response (not parsed data) so one primitive serves JSON, the chat's streaming\n * getReader(), and multipart alike. Not for the Inertia world (router/useHttp),\n * which carries its own headers.\n */\n\nimport { latestRef, storeRefreshedRef } from \"./component-ref\";\nimport { withHeaders } from \"./headers\";\nimport { localeHeader } from \"@lattice-php/lattice/i18n/locale\";\nimport type {\n BrowserToken as GeneratedBrowserToken,\n RemoteAccess as GeneratedRemoteAccess,\n} from \"@lattice-php/lattice/types/generated\";\n\nexport class ApiError extends Error {\n constructor(readonly response: Response) {\n super(`HTTP ${response.status}`);\n }\n}\n\n/**\n * Exported so the few transports that cannot go through apiFetch — an XHR that\n * reports upload progress, for instance — still send the same CSRF header.\n */\nexport function xsrfToken(): string {\n const match = document.cookie.match(/XSRF-TOKEN=([^;]+)/);\n\n return match ? decodeURIComponent(match[1]) : \"\";\n}\n\nexport type ApiInit = Omit<RequestInit, \"headers\"> & {\n ref?: string;\n headers?: Record<string, string>;\n throwOnError?: boolean;\n};\n\nexport type BrowserToken = GeneratedBrowserToken;\nexport type RemoteAccess = GeneratedRemoteAccess;\n\nexport type RemoteInit = Omit<RequestInit, \"credentials\" | \"headers\"> & {\n headers?: Record<string, string>;\n remote: RemoteAccess;\n throwOnError?: boolean;\n};\n\ntype CachedBrowserToken = {\n expiresAt: number;\n token: BrowserToken;\n};\n\nconst tokenRefreshSkewMs = 10_000;\nconst remoteTokenCache = new Map<string, CachedBrowserToken>();\nconst pendingRemoteTokens = new Map<string, Promise<BrowserToken>>();\n\nfunction defaultHeaders(method: string | undefined): Record<string, string> {\n const isWrite = method !== undefined && method !== \"GET\" && method !== \"HEAD\";\n\n if (!isWrite) {\n return { Accept: \"application/json\" };\n }\n\n return {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"X-XSRF-TOKEN\": xsrfToken(),\n };\n}\n\nlet refRefreshEndpoint = \"/lattice/refs/refresh\";\n\n/**\n * Boot paths call this with the server-minted URL so subdirectory installs\n * refresh against the right path; the default covers root installs.\n */\nexport function setRefRefreshEndpoint(url: string): void {\n refRefreshEndpoint = url;\n}\n\nconst pendingRefRefreshes = new Map<string, Promise<string | null>>();\n\n/**\n * Trade an expired-but-authentic ref for a fresh one. Deduped per original ref\n * so a burst of 403s from one component costs a single round-trip. The renewed\n * token lands in the component-ref map, so every later request that resolves\n * its ref through withHeaders picks it up — this is the transport-agnostic\n * primitive both the fetch funnel below and the Inertia form retry build on.\n */\nexport async function refreshRef(componentRef: string): Promise<string | null> {\n const pending = pendingRefRefreshes.get(componentRef);\n\n if (pending) {\n return pending;\n }\n\n const request = apiJson<{ ref: string }>(refRefreshEndpoint, {\n method: \"POST\",\n body: JSON.stringify({ ref: latestRef(componentRef) }),\n })\n .then((data) => {\n storeRefreshedRef(componentRef, data.ref);\n\n return data.ref;\n })\n .catch(() => null)\n .finally(() => {\n pendingRefRefreshes.delete(componentRef);\n });\n\n pendingRefRefreshes.set(componentRef, request);\n\n return request;\n}\n\nexport async function apiFetch(url: string, init: ApiInit = {}): Promise<Response> {\n const { ref = \"\", headers, throwOnError = true, method, ...rest } = init;\n // Some servers reject a lower-case method line, and fetch only normalizes the\n // standard verbs, so upper-case it here.\n const normalizedMethod = method?.toUpperCase();\n const request = () =>\n fetch(url, {\n credentials: \"same-origin\",\n ...rest,\n method: normalizedMethod,\n // withHeaders resolves the latest refreshed token for the ref, so the\n // retry below picks up the renewal without threading it through.\n headers: withHeaders(ref, { ...defaultHeaders(normalizedMethod), ...headers }),\n });\n\n let response = await request();\n\n if (ref !== \"\" && response.status === 403 && (await refreshRef(ref)) !== null) {\n response = await request();\n }\n\n if (throwOnError && !response.ok) {\n throw new ApiError(response);\n }\n\n return response;\n}\n\nexport async function apiJson<T>(url: string, init?: ApiInit): Promise<T> {\n return (await apiFetch(url, init)).json() as Promise<T>;\n}\n\nfunction remoteTokenKey(remote: RemoteAccess): string {\n return [remote.source, remote.audience, [...remote.scopes].sort().join(\" \")].join(\"\\u001f\");\n}\n\nexport function clearRemoteTokenCache(): void {\n remoteTokenCache.clear();\n pendingRemoteTokens.clear();\n}\n\nexport function invalidateRemoteToken(remote: RemoteAccess): void {\n remoteTokenCache.delete(remoteTokenKey(remote));\n}\n\nexport async function remoteToken(remote: RemoteAccess): Promise<BrowserToken> {\n const key = remoteTokenKey(remote);\n const cached = remoteTokenCache.get(key);\n\n if (cached && cached.expiresAt > Date.now() + tokenRefreshSkewMs) {\n return cached.token;\n }\n\n const pending = pendingRemoteTokens.get(key);\n\n if (pending) {\n return pending;\n }\n\n const request = apiJson<BrowserToken>(remote.tokenEndpoint, {\n method: \"POST\",\n ref: remote.ref,\n body: JSON.stringify({\n nodeId: remote.nodeId,\n nodeType: remote.nodeType,\n audience: remote.audience,\n scopes: remote.scopes,\n }),\n })\n .then((token) => {\n remoteTokenCache.set(key, {\n token,\n expiresAt: Date.now() + Math.max(0, token.expiresIn) * 1000,\n });\n\n return token;\n })\n .finally(() => {\n pendingRemoteTokens.delete(key);\n });\n\n pendingRemoteTokens.set(key, request);\n\n return request;\n}\n\nfunction isUnauthorized(response: Response): boolean {\n return response.status === 401 || response.status === 403;\n}\n\nasync function fetchRemoteWithToken(\n url: string,\n init: Omit<RemoteInit, \"remote\" | \"throwOnError\">,\n token: BrowserToken,\n): Promise<Response> {\n const { headers, ...rest } = init;\n\n return fetch(url, {\n ...rest,\n credentials: \"omit\",\n headers: {\n Accept: \"application/json\",\n ...localeHeader(),\n ...headers,\n Authorization: `${token.tokenType} ${token.accessToken}`,\n },\n });\n}\n\nexport async function remoteFetch(url: string, init: RemoteInit): Promise<Response> {\n const { remote, throwOnError = true, ...request } = init;\n let token = await remoteToken(remote);\n let response = await fetchRemoteWithToken(url, request, token);\n\n if (isUnauthorized(response)) {\n invalidateRemoteToken(remote);\n token = await remoteToken(remote);\n response = await fetchRemoteWithToken(url, request, token);\n }\n\n if (throwOnError && !response.ok) {\n throw new ApiError(response);\n }\n\n return response;\n}\n\nexport async function remoteJson<T>(url: string, init: RemoteInit): Promise<T> {\n return (await remoteFetch(url, init)).json() as Promise<T>;\n}\n"],"mappings":";;;;;;;;;;;AAgBA,IAAa,WAAb,cAA8B,MAAM;CACb;CAArB,YAAY,UAA6B;EACvC,MAAM,QAAQ,SAAS,QAAQ;EADZ,KAAA,WAAA;CAErB;AACF;;;;;AAMA,SAAgB,YAAoB;CAClC,MAAM,QAAQ,SAAS,OAAO,MAAM,oBAAoB;CAExD,OAAO,QAAQ,mBAAmB,MAAM,EAAE,IAAI;AAChD;AAsBA,IAAM,qBAAqB;AAC3B,IAAM,mCAAmB,IAAI,IAAgC;AAC7D,IAAM,sCAAsB,IAAI,IAAmC;AAEnE,SAAS,eAAe,QAAoD;CAG1E,IAAI,EAFY,WAAW,KAAA,KAAa,WAAW,SAAS,WAAW,SAGrE,OAAO,EAAE,QAAQ,mBAAmB;CAGtC,OAAO;EACL,QAAQ;EACR,gBAAgB;EAChB,oBAAoB;EACpB,gBAAgB,UAAU;CAC5B;AACF;AAEA,IAAI,qBAAqB;;;;;AAMzB,SAAgB,sBAAsB,KAAmB;CACvD,qBAAqB;AACvB;AAEA,IAAM,sCAAsB,IAAI,IAAoC;;;;;;;;AASpE,eAAsB,WAAW,cAA8C;CAC7E,MAAM,UAAU,oBAAoB,IAAI,YAAY;CAEpD,IAAI,SACF,OAAO;CAGT,MAAM,UAAU,QAAyB,oBAAoB;EAC3D,QAAQ;EACR,MAAM,KAAK,UAAU,EAAE,KAAK,UAAU,YAAY,EAAE,CAAC;CACvD,CAAC,CAAC,CACC,MAAM,SAAS;EACd,kBAAkB,cAAc,KAAK,GAAG;EAExC,OAAO,KAAK;CACd,CAAC,CAAC,CACD,YAAY,IAAI,CAAC,CACjB,cAAc;EACb,oBAAoB,OAAO,YAAY;CACzC,CAAC;CAEH,oBAAoB,IAAI,cAAc,OAAO;CAE7C,OAAO;AACT;AAEA,eAAsB,SAAS,KAAa,OAAgB,CAAC,GAAsB;CACjF,MAAM,EAAE,MAAM,IAAI,SAAS,eAAe,MAAM,QAAQ,GAAG,SAAS;CAGpE,MAAM,mBAAmB,QAAQ,YAAY;CAC7C,MAAM,gBACJ,MAAM,KAAK;EACT,aAAa;EACb,GAAG;EACH,QAAQ;EAGR,SAAS,YAAY,KAAK;GAAE,GAAG,eAAe,gBAAgB;GAAG,GAAG;EAAQ,CAAC;CAC/E,CAAC;CAEH,IAAI,WAAW,MAAM,QAAQ;CAE7B,IAAI,QAAQ,MAAM,SAAS,WAAW,OAAQ,MAAM,WAAW,GAAG,MAAO,MACvE,WAAW,MAAM,QAAQ;CAG3B,IAAI,gBAAgB,CAAC,SAAS,IAC5B,MAAM,IAAI,SAAS,QAAQ;CAG7B,OAAO;AACT;AAEA,eAAsB,QAAW,KAAa,MAA4B;CACxE,QAAQ,MAAM,SAAS,KAAK,IAAI,EAAA,CAAG,KAAK;AAC1C;AAEA,SAAS,eAAe,QAA8B;CACpD,OAAO;EAAC,OAAO;EAAQ,OAAO;EAAU,CAAC,GAAG,OAAO,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG;CAAC,CAAC,CAAC,KAAK,GAAQ;AAC5F;AAEA,SAAgB,wBAA8B;CAC5C,iBAAiB,MAAM;CACvB,oBAAoB,MAAM;AAC5B;AAEA,SAAgB,sBAAsB,QAA4B;CAChE,iBAAiB,OAAO,eAAe,MAAM,CAAC;AAChD;AAEA,eAAsB,YAAY,QAA6C;CAC7E,MAAM,MAAM,eAAe,MAAM;CACjC,MAAM,SAAS,iBAAiB,IAAI,GAAG;CAEvC,IAAI,UAAU,OAAO,YAAY,KAAK,IAAI,IAAI,oBAC5C,OAAO,OAAO;CAGhB,MAAM,UAAU,oBAAoB,IAAI,GAAG;CAE3C,IAAI,SACF,OAAO;CAGT,MAAM,UAAU,QAAsB,OAAO,eAAe;EAC1D,QAAQ;EACR,KAAK,OAAO;EACZ,MAAM,KAAK,UAAU;GACnB,QAAQ,OAAO;GACf,UAAU,OAAO;GACjB,UAAU,OAAO;GACjB,QAAQ,OAAO;EACjB,CAAC;CACH,CAAC,CAAC,CACC,MAAM,UAAU;EACf,iBAAiB,IAAI,KAAK;GACxB;GACA,WAAW,KAAK,IAAI,IAAI,KAAK,IAAI,GAAG,MAAM,SAAS,IAAI;EACzD,CAAC;EAED,OAAO;CACT,CAAC,CAAC,CACD,cAAc;EACb,oBAAoB,OAAO,GAAG;CAChC,CAAC;CAEH,oBAAoB,IAAI,KAAK,OAAO;CAEpC,OAAO;AACT;AAEA,SAAS,eAAe,UAA6B;CACnD,OAAO,SAAS,WAAW,OAAO,SAAS,WAAW;AACxD;AAEA,eAAe,qBACb,KACA,MACA,OACmB;CACnB,MAAM,EAAE,SAAS,GAAG,SAAS;CAE7B,OAAO,MAAM,KAAK;EAChB,GAAG;EACH,aAAa;EACb,SAAS;GACP,QAAQ;GACR,GAAG,aAAa;GAChB,GAAG;GACH,eAAe,GAAG,MAAM,UAAU,GAAG,MAAM;EAC7C;CACF,CAAC;AACH;AAEA,eAAsB,YAAY,KAAa,MAAqC;CAClF,MAAM,EAAE,QAAQ,eAAe,MAAM,GAAG,YAAY;CACpD,IAAI,QAAQ,MAAM,YAAY,MAAM;CACpC,IAAI,WAAW,MAAM,qBAAqB,KAAK,SAAS,KAAK;CAE7D,IAAI,eAAe,QAAQ,GAAG;EAC5B,sBAAsB,MAAM;EAC5B,QAAQ,MAAM,YAAY,MAAM;EAChC,WAAW,MAAM,qBAAqB,KAAK,SAAS,KAAK;CAC3D;CAEA,IAAI,gBAAgB,CAAC,SAAS,IAC5B,MAAM,IAAI,SAAS,QAAQ;CAG7B,OAAO;AACT;AAEA,eAAsB,WAAc,KAAa,MAA8B;CAC7E,QAAQ,MAAM,YAAY,KAAK,IAAI,EAAA,CAAG,KAAK;AAC7C"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from "react";
|
|
2
|
-
//#region resources/js/core/collapsed-context.ts
|
|
3
|
-
var CollapsedContext = createContext(false);
|
|
4
|
-
function useCollapsed() {
|
|
5
|
-
return useContext(CollapsedContext);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { CollapsedContext, useCollapsed };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=collapsed-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collapsed-context.js","names":[],"sources":["../../resources/js/core/collapsed-context.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\nexport const CollapsedContext = createContext(false);\n\nexport function useCollapsed(): boolean {\n return useContext(CollapsedContext);\n}\n"],"mappings":";;AAEA,IAAa,mBAAmB,cAAc,KAAK;AAEnD,SAAgB,eAAwB;CACtC,OAAO,WAAW,gBAAgB;AACpC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The signed component reference travels to the server as the `X-Lattice-Ref`
|
|
3
|
-
* request header on every interactive request (GET and writes alike). This must
|
|
4
|
-
* match ComponentReferenceSigner::token() on the PHP side, which reads the same
|
|
5
|
-
* header.
|
|
6
|
-
*/
|
|
7
|
-
export declare const LATTICE_REF_HEADER = "X-Lattice-Ref";
|
|
8
|
-
export declare function latestRef(componentRef: string): string;
|
|
9
|
-
export declare function storeRefreshedRef(componentRef: string, refreshed: string): void;
|
|
10
|
-
export declare function clearRefreshedRefs(): void;
|
|
11
|
-
export declare function withRefHeader(componentRef: string): Record<string, string>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region resources/js/core/component-ref.ts
|
|
2
|
-
/**
|
|
3
|
-
* The signed component reference travels to the server as the `X-Lattice-Ref`
|
|
4
|
-
* request header on every interactive request (GET and writes alike). This must
|
|
5
|
-
* match ComponentReferenceSigner::token() on the PHP side, which reads the same
|
|
6
|
-
* header.
|
|
7
|
-
*/
|
|
8
|
-
var LATTICE_REF_HEADER = "X-Lattice-Ref";
|
|
9
|
-
/**
|
|
10
|
-
* Refs are sealed with a lifetime and baked into node props at render time, so
|
|
11
|
-
* a long-lived tab cannot pick up a renewed token through React state. Renewed
|
|
12
|
-
* tokens are instead kept here, keyed by the original prop value, and resolved
|
|
13
|
-
* whenever a ref travels — every consumer keeps passing the ref it was rendered
|
|
14
|
-
* with.
|
|
15
|
-
*/
|
|
16
|
-
var refreshedRefs = /* @__PURE__ */ new Map();
|
|
17
|
-
function latestRef(componentRef) {
|
|
18
|
-
return refreshedRefs.get(componentRef) ?? componentRef;
|
|
19
|
-
}
|
|
20
|
-
function storeRefreshedRef(componentRef, refreshed) {
|
|
21
|
-
refreshedRefs.set(componentRef, refreshed);
|
|
22
|
-
}
|
|
23
|
-
function clearRefreshedRefs() {
|
|
24
|
-
refreshedRefs.clear();
|
|
25
|
-
}
|
|
26
|
-
function withRefHeader(componentRef) {
|
|
27
|
-
const ref = latestRef(componentRef);
|
|
28
|
-
return ref ? { [LATTICE_REF_HEADER]: ref } : {};
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { LATTICE_REF_HEADER, clearRefreshedRefs, latestRef, storeRefreshedRef, withRefHeader };
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=component-ref.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-ref.js","names":[],"sources":["../../resources/js/core/component-ref.ts"],"sourcesContent":["/**\n * The signed component reference travels to the server as the `X-Lattice-Ref`\n * request header on every interactive request (GET and writes alike). This must\n * match ComponentReferenceSigner::token() on the PHP side, which reads the same\n * header.\n */\nexport const LATTICE_REF_HEADER = \"X-Lattice-Ref\";\n\n/**\n * Refs are sealed with a lifetime and baked into node props at render time, so\n * a long-lived tab cannot pick up a renewed token through React state. Renewed\n * tokens are instead kept here, keyed by the original prop value, and resolved\n * whenever a ref travels — every consumer keeps passing the ref it was rendered\n * with.\n */\nconst refreshedRefs = new Map<string, string>();\n\nexport function latestRef(componentRef: string): string {\n return refreshedRefs.get(componentRef) ?? componentRef;\n}\n\nexport function storeRefreshedRef(componentRef: string, refreshed: string): void {\n refreshedRefs.set(componentRef, refreshed);\n}\n\nexport function clearRefreshedRefs(): void {\n refreshedRefs.clear();\n}\n\nexport function withRefHeader(componentRef: string): Record<string, string> {\n const ref = latestRef(componentRef);\n\n return ref ? { [LATTICE_REF_HEADER]: ref } : {};\n}\n"],"mappings":";;;;;;;AAMA,IAAa,qBAAqB;;;;;;;;AASlC,IAAM,gCAAgB,IAAI,IAAoB;AAE9C,SAAgB,UAAU,cAA8B;CACtD,OAAO,cAAc,IAAI,YAAY,KAAK;AAC5C;AAEA,SAAgB,kBAAkB,cAAsB,WAAyB;CAC/E,cAAc,IAAI,cAAc,SAAS;AAC3C;AAEA,SAAgB,qBAA2B;CACzC,cAAc,MAAM;AACtB;AAEA,SAAgB,cAAc,cAA8C;CAC1E,MAAM,MAAM,UAAU,YAAY;CAElC,OAAO,MAAM,GAAG,qBAAqB,IAAI,IAAI,CAAC;AAChD"}
|