@withpotter/components 0.13.0-next.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ServiceWorkerRegistrar.d.ts +6 -0
- package/dist/ServiceWorkerRegistrar.js +31 -0
- package/dist/ServiceWorkerRegistrar.js.map +1 -0
- package/dist/ai-soon/ai-coming-soon.d.ts +11 -0
- package/dist/ai-soon/ai-coming-soon.js +142 -0
- package/dist/ai-soon/ai-coming-soon.js.map +1 -0
- package/dist/ai-soon/catch-game.d.ts +9 -0
- package/dist/ai-soon/catch-game.js +194 -0
- package/dist/ai-soon/catch-game.js.map +1 -0
- package/dist/ai-soon/hero-scene.d.ts +12 -0
- package/dist/ai-soon/hero-scene.js +236 -0
- package/dist/ai-soon/hero-scene.js.map +1 -0
- package/dist/analytics/PostHogProvider.d.ts +28 -0
- package/dist/analytics/PostHogProvider.js +126 -0
- package/dist/analytics/PostHogProvider.js.map +1 -0
- package/dist/analytics/event-analytics-panel.d.ts +27 -0
- package/dist/analytics/event-analytics-panel.js +137 -0
- package/dist/analytics/event-analytics-panel.js.map +1 -0
- package/dist/analytics/index.d.ts +3 -0
- package/dist/analytics/index.js +17 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/product-insights-consent-prompt.d.ts +14 -0
- package/dist/analytics/product-insights-consent-prompt.js +104 -0
- package/dist/analytics/product-insights-consent-prompt.js.map +1 -0
- package/dist/analytics/product-insights-policy.d.ts +16 -0
- package/dist/analytics/product-insights-policy.js +127 -0
- package/dist/analytics/product-insights-policy.js.map +1 -0
- package/dist/analytics/product-performance-panel.d.ts +35 -0
- package/dist/analytics/product-performance-panel.js +162 -0
- package/dist/analytics/product-performance-panel.js.map +1 -0
- package/dist/analytics/share-links-panel.d.ts +19 -0
- package/dist/analytics/share-links-panel.js +192 -0
- package/dist/analytics/share-links-panel.js.map +1 -0
- package/dist/analytics.d.ts +1 -0
- package/dist/analytics.js +1 -0
- package/dist/auth/dark-entry-theme.d.ts +1 -0
- package/dist/auth/dark-entry-theme.js +19 -0
- package/dist/auth/dark-entry-theme.js.map +1 -0
- package/dist/auth/google-signin-button.d.ts +22 -0
- package/dist/auth/google-signin-button.js +103 -0
- package/dist/auth/google-signin-button.js.map +1 -0
- package/dist/batch-run-provider.d.ts +64 -0
- package/dist/batch-run-provider.js +189 -0
- package/dist/batch-run-provider.js.map +1 -0
- package/dist/behaviors/address-suggestions.d.ts +12 -0
- package/dist/behaviors/address-suggestions.js +41 -0
- package/dist/behaviors/address-suggestions.js.map +1 -0
- package/dist/behaviors/behavior-config-section.d.ts +75 -0
- package/dist/behaviors/behavior-config-section.js +197 -0
- package/dist/behaviors/behavior-config-section.js.map +1 -0
- package/dist/behaviors/blocked-dates-field.d.ts +6 -0
- package/dist/behaviors/blocked-dates-field.js +73 -0
- package/dist/behaviors/blocked-dates-field.js.map +1 -0
- package/dist/behaviors/bookable-config-panel.d.ts +50 -0
- package/dist/behaviors/bookable-config-panel.js +634 -0
- package/dist/behaviors/bookable-config-panel.js.map +1 -0
- package/dist/behaviors/booking-actions.d.ts +74 -0
- package/dist/behaviors/booking-actions.js +350 -0
- package/dist/behaviors/booking-actions.js.map +1 -0
- package/dist/behaviors/booking-location-field.d.ts +5 -0
- package/dist/behaviors/booking-location-field.js +183 -0
- package/dist/behaviors/booking-location-field.js.map +1 -0
- package/dist/behaviors/booking-mode-selector.d.ts +5 -0
- package/dist/behaviors/booking-mode-selector.js +62 -0
- package/dist/behaviors/booking-mode-selector.js.map +1 -0
- package/dist/behaviors/downloadable-config-panel.d.ts +9 -0
- package/dist/behaviors/downloadable-config-panel.js +66 -0
- package/dist/behaviors/downloadable-config-panel.js.map +1 -0
- package/dist/behaviors/eligible-resources-picker.d.ts +13 -0
- package/dist/behaviors/eligible-resources-picker.js +87 -0
- package/dist/behaviors/eligible-resources-picker.js.map +1 -0
- package/dist/behaviors/gating-config-section.d.ts +24 -0
- package/dist/behaviors/gating-config-section.js +160 -0
- package/dist/behaviors/gating-config-section.js.map +1 -0
- package/dist/behaviors/index.d.ts +27 -0
- package/dist/behaviors/index.js +42 -0
- package/dist/behaviors/index.js.map +1 -0
- package/dist/behaviors/lead-capture-block.d.ts +33 -0
- package/dist/behaviors/lead-capture-block.js +284 -0
- package/dist/behaviors/lead-capture-block.js.map +1 -0
- package/dist/behaviors/rentable-config-panel.d.ts +12 -0
- package/dist/behaviors/rentable-config-panel.js +189 -0
- package/dist/behaviors/rentable-config-panel.js.map +1 -0
- package/dist/behaviors/resource-requirements-section.d.ts +16 -0
- package/dist/behaviors/resource-requirements-section.js +163 -0
- package/dist/behaviors/resource-requirements-section.js.map +1 -0
- package/dist/behaviors/service-staffing-section.d.ts +17 -0
- package/dist/behaviors/service-staffing-section.js +78 -0
- package/dist/behaviors/service-staffing-section.js.map +1 -0
- package/dist/behaviors/shippable-config-panel.d.ts +9 -0
- package/dist/behaviors/shippable-config-panel.js +111 -0
- package/dist/behaviors/shippable-config-panel.js.map +1 -0
- package/dist/behaviors/solo-availability-section.d.ts +1 -0
- package/dist/behaviors/solo-availability-section.js +90 -0
- package/dist/behaviors/solo-availability-section.js.map +1 -0
- package/dist/behaviors/staff-assignment-section.d.ts +18 -0
- package/dist/behaviors/staff-assignment-section.js +186 -0
- package/dist/behaviors/staff-assignment-section.js.map +1 -0
- package/dist/behaviors/subscribable-config-panel.d.ts +15 -0
- package/dist/behaviors/subscribable-config-panel.js +91 -0
- package/dist/behaviors/subscribable-config-panel.js.map +1 -0
- package/dist/behaviors/ticketed-config-panel.d.ts +18 -0
- package/dist/behaviors/ticketed-config-panel.js +854 -0
- package/dist/behaviors/ticketed-config-panel.js.map +1 -0
- package/dist/behaviors/use-rentable-siblings.d.ts +19 -0
- package/dist/behaviors/use-rentable-siblings.js +37 -0
- package/dist/behaviors/use-rentable-siblings.js.map +1 -0
- package/dist/behaviors.d.ts +1 -0
- package/dist/behaviors.js +1 -0
- package/dist/billing/cancel-subscription-dialog.d.ts +8 -0
- package/dist/billing/cancel-subscription-dialog.js +39 -0
- package/dist/billing/cancel-subscription-dialog.js.map +1 -0
- package/dist/billing/change-plan-dialog.d.ts +13 -0
- package/dist/billing/change-plan-dialog.js +45 -0
- package/dist/billing/change-plan-dialog.js.map +1 -0
- package/dist/billing/credits-tab.d.ts +8 -0
- package/dist/billing/credits-tab.js +53 -0
- package/dist/billing/credits-tab.js.map +1 -0
- package/dist/billing/email-billing-tab.d.ts +7 -0
- package/dist/billing/email-billing-tab.js +100 -0
- package/dist/billing/email-billing-tab.js.map +1 -0
- package/dist/billing/email-credits-modal.d.ts +13 -0
- package/dist/billing/email-credits-modal.js +146 -0
- package/dist/billing/email-credits-modal.js.map +1 -0
- package/dist/billing/helpers.d.ts +304 -0
- package/dist/billing/helpers.js +236 -0
- package/dist/billing/helpers.js.map +1 -0
- package/dist/billing/index.d.ts +15 -0
- package/dist/billing/index.js +40 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/billing/invoices-tab.d.ts +11 -0
- package/dist/billing/invoices-tab.js +68 -0
- package/dist/billing/invoices-tab.js.map +1 -0
- package/dist/billing/messaging-billing-tab.d.ts +6 -0
- package/dist/billing/messaging-billing-tab.js +224 -0
- package/dist/billing/messaging-billing-tab.js.map +1 -0
- package/dist/billing/messaging-credits-modal.d.ts +13 -0
- package/dist/billing/messaging-credits-modal.js +159 -0
- package/dist/billing/messaging-credits-modal.js.map +1 -0
- package/dist/billing/overview-tab.d.ts +21 -0
- package/dist/billing/overview-tab.js +313 -0
- package/dist/billing/overview-tab.js.map +1 -0
- package/dist/billing/payment-methods-tab.d.ts +14 -0
- package/dist/billing/payment-methods-tab.js +129 -0
- package/dist/billing/payment-methods-tab.js.map +1 -0
- package/dist/billing/payments-tab.d.ts +22 -0
- package/dist/billing/payments-tab.js +83 -0
- package/dist/billing/payments-tab.js.map +1 -0
- package/dist/billing/plans-tab.d.ts +10 -0
- package/dist/billing/plans-tab.js +171 -0
- package/dist/billing/plans-tab.js.map +1 -0
- package/dist/billing/rates-tab.d.ts +13 -0
- package/dist/billing/rates-tab.js +359 -0
- package/dist/billing/rates-tab.js.map +1 -0
- package/dist/billing/storage-purchase-modal.d.ts +16 -0
- package/dist/billing/storage-purchase-modal.js +139 -0
- package/dist/billing/storage-purchase-modal.js.map +1 -0
- package/dist/billing.d.ts +1 -0
- package/dist/billing.js +1 -0
- package/dist/blog-editor/BlogTiptapEditor.d.ts +13 -0
- package/dist/blog-editor/BlogTiptapEditor.js +507 -0
- package/dist/blog-editor/BlogTiptapEditor.js.map +1 -0
- package/dist/blog-editor/extensions/editor-shortcuts.d.ts +3 -0
- package/dist/blog-editor/extensions/editor-shortcuts.js +20 -0
- package/dist/blog-editor/extensions/editor-shortcuts.js.map +1 -0
- package/dist/blog-editor/extensions/empty-line-plus-menu.d.ts +9 -0
- package/dist/blog-editor/extensions/empty-line-plus-menu.js +57 -0
- package/dist/blog-editor/extensions/empty-line-plus-menu.js.map +1 -0
- package/dist/blog-editor/extensions/image-upload.d.ts +18 -0
- package/dist/blog-editor/extensions/image-upload.js +240 -0
- package/dist/blog-editor/extensions/image-upload.js.map +1 -0
- package/dist/blog-editor/extensions/markdown-paste.d.ts +2 -0
- package/dist/blog-editor/extensions/markdown-paste.js +38 -0
- package/dist/blog-editor/extensions/markdown-paste.js.map +1 -0
- package/dist/blog-editor/extensions/slash-command.d.ts +19 -0
- package/dist/blog-editor/extensions/slash-command.js +57 -0
- package/dist/blog-editor/extensions/slash-command.js.map +1 -0
- package/dist/blog-editor/hooks/use-blog-draft.d.ts +19 -0
- package/dist/blog-editor/hooks/use-blog-draft.js +118 -0
- package/dist/blog-editor/hooks/use-blog-draft.js.map +1 -0
- package/dist/blog-editor/hooks/use-image-upload.d.ts +8 -0
- package/dist/blog-editor/hooks/use-image-upload.js +35 -0
- package/dist/blog-editor/hooks/use-image-upload.js.map +1 -0
- package/dist/blog-editor/markdown.d.ts +2 -0
- package/dist/blog-editor/markdown.js +108 -0
- package/dist/blog-editor/markdown.js.map +1 -0
- package/dist/blog-editor/menus/EditorCommandMenu.d.ts +15 -0
- package/dist/blog-editor/menus/EditorCommandMenu.js +40 -0
- package/dist/blog-editor/menus/EditorCommandMenu.js.map +1 -0
- package/dist/blog-editor/menus/EditorContextMenu.d.ts +11 -0
- package/dist/blog-editor/menus/EditorContextMenu.js +170 -0
- package/dist/blog-editor/menus/EditorContextMenu.js.map +1 -0
- package/dist/blog-editor/panels/CoverImageField.d.ts +9 -0
- package/dist/blog-editor/panels/CoverImageField.js +305 -0
- package/dist/blog-editor/panels/CoverImageField.js.map +1 -0
- package/dist/blog-editor/panels/ImageAltDialog.d.ts +11 -0
- package/dist/blog-editor/panels/ImageAltDialog.js +107 -0
- package/dist/blog-editor/panels/ImageAltDialog.js.map +1 -0
- package/dist/blog-editor/panels/LinkModal.d.ts +8 -0
- package/dist/blog-editor/panels/LinkModal.js +59 -0
- package/dist/blog-editor/panels/LinkModal.js.map +1 -0
- package/dist/blog-editor/panels/PostSettingsPanel.d.ts +10 -0
- package/dist/blog-editor/panels/PostSettingsPanel.js +181 -0
- package/dist/blog-editor/panels/PostSettingsPanel.js.map +1 -0
- package/dist/blog-editor/panels/ShareModal.d.ts +8 -0
- package/dist/blog-editor/panels/ShareModal.js +94 -0
- package/dist/blog-editor/panels/ShareModal.js.map +1 -0
- package/dist/blog-editor/reader-mode.module.css +174 -0
- package/dist/blog-editor/toolbars/EditorBubbleMenu.d.ts +7 -0
- package/dist/blog-editor/toolbars/EditorBubbleMenu.js +167 -0
- package/dist/blog-editor/toolbars/EditorBubbleMenu.js.map +1 -0
- package/dist/blog-editor/toolbars/EditorStickyToolbar.d.ts +18 -0
- package/dist/blog-editor/toolbars/EditorStickyToolbar.js +296 -0
- package/dist/blog-editor/toolbars/EditorStickyToolbar.js.map +1 -0
- package/dist/blog-editor/types.d.ts +23 -0
- package/dist/blog-editor/types.js +31 -0
- package/dist/blog-editor/types.js.map +1 -0
- package/dist/bookings/resource-time-grid.d.ts +42 -0
- package/dist/bookings/resource-time-grid.js +139 -0
- package/dist/bookings/resource-time-grid.js.map +1 -0
- package/dist/business-setup/archetype-art.d.ts +40 -0
- package/dist/business-setup/archetype-art.js +45 -0
- package/dist/business-setup/archetype-art.js.map +1 -0
- package/dist/business-setup/business-mark-field.d.ts +30 -0
- package/dist/business-setup/business-mark-field.js +58 -0
- package/dist/business-setup/business-mark-field.js.map +1 -0
- package/dist/business-setup/index.d.ts +7 -0
- package/dist/business-setup/index.js +17 -0
- package/dist/business-setup/index.js.map +1 -0
- package/dist/business-setup/provisionable-template.d.ts +21 -0
- package/dist/business-setup/provisionable-template.js +13 -0
- package/dist/business-setup/provisionable-template.js.map +1 -0
- package/dist/business-setup/setup-panel-art.d.ts +20 -0
- package/dist/business-setup/setup-panel-art.js +38 -0
- package/dist/business-setup/setup-panel-art.js.map +1 -0
- package/dist/business-setup/step-copy.d.ts +13 -0
- package/dist/business-setup/step-copy.js +23 -0
- package/dist/business-setup/step-copy.js.map +1 -0
- package/dist/business-setup/step-gate.d.ts +34 -0
- package/dist/business-setup/step-gate.js +21 -0
- package/dist/business-setup/step-gate.js.map +1 -0
- package/dist/business-setup/step-name.d.ts +56 -0
- package/dist/business-setup/step-name.js +235 -0
- package/dist/business-setup/step-name.js.map +1 -0
- package/dist/business-setup/step-plan.d.ts +28 -0
- package/dist/business-setup/step-plan.js +83 -0
- package/dist/business-setup/step-plan.js.map +1 -0
- package/dist/business-setup/step-shape.d.ts +21 -0
- package/dist/business-setup/step-shape.js +123 -0
- package/dist/business-setup/step-shape.js.map +1 -0
- package/dist/business-setup/step-template.d.ts +77 -0
- package/dist/business-setup/step-template.js +132 -0
- package/dist/business-setup/step-template.js.map +1 -0
- package/dist/business-setup/types.d.ts +55 -0
- package/dist/business-setup/types.js +17 -0
- package/dist/business-setup/types.js.map +1 -0
- package/dist/business-setup/use-business-setup.d.ts +102 -0
- package/dist/business-setup/use-business-setup.js +222 -0
- package/dist/business-setup/use-business-setup.js.map +1 -0
- package/dist/business-setup.d.ts +1 -0
- package/dist/business-setup.js +1 -0
- package/dist/charts/area-chart.d.ts +33 -0
- package/dist/charts/area-chart.js +180 -0
- package/dist/charts/area-chart.js.map +1 -0
- package/dist/charts/area-metric-card.d.ts +25 -0
- package/dist/charts/area-metric-card.js +88 -0
- package/dist/charts/area-metric-card.js.map +1 -0
- package/dist/charts/bar-chart.d.ts +17 -0
- package/dist/charts/bar-chart.js +160 -0
- package/dist/charts/bar-chart.js.map +1 -0
- package/dist/charts/cash-flow-chart.d.ts +31 -0
- package/dist/charts/cash-flow-chart.js +156 -0
- package/dist/charts/cash-flow-chart.js.map +1 -0
- package/dist/charts/chart-empty-state.d.ts +53 -0
- package/dist/charts/chart-empty-state.js +10 -0
- package/dist/charts/chart-empty-state.js.map +1 -0
- package/dist/charts/chart-theme.d.ts +40 -0
- package/dist/charts/chart-theme.js +72 -0
- package/dist/charts/chart-theme.js.map +1 -0
- package/dist/charts/charts.css +27 -0
- package/dist/charts/compare-tooltip.d.ts +32 -0
- package/dist/charts/compare-tooltip.js +53 -0
- package/dist/charts/compare-tooltip.js.map +1 -0
- package/dist/charts/donut-chart.d.ts +18 -0
- package/dist/charts/donut-chart.js +90 -0
- package/dist/charts/donut-chart.js.map +1 -0
- package/dist/charts/index.d.ts +31 -0
- package/dist/charts/index.js +29 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/charts/labelled-bars.d.ts +20 -0
- package/dist/charts/labelled-bars.js +40 -0
- package/dist/charts/labelled-bars.js.map +1 -0
- package/dist/charts/rate-line.d.ts +22 -0
- package/dist/charts/rate-line.js +166 -0
- package/dist/charts/rate-line.js.map +1 -0
- package/dist/charts/revenue-spine-chart.d.ts +24 -0
- package/dist/charts/revenue-spine-chart.js +218 -0
- package/dist/charts/revenue-spine-chart.js.map +1 -0
- package/dist/charts/series-breakdown.d.ts +50 -0
- package/dist/charts/series-breakdown.js +293 -0
- package/dist/charts/series-breakdown.js.map +1 -0
- package/dist/charts/time-series-chart.d.ts +25 -0
- package/dist/charts/time-series-chart.js +267 -0
- package/dist/charts/time-series-chart.js.map +1 -0
- package/dist/charts/usage-bars.d.ts +38 -0
- package/dist/charts/usage-bars.js +146 -0
- package/dist/charts/usage-bars.js.map +1 -0
- package/dist/charts/usage-line.d.ts +18 -0
- package/dist/charts/usage-line.js +98 -0
- package/dist/charts/usage-line.js.map +1 -0
- package/dist/charts.d.ts +1 -0
- package/dist/charts.js +1 -0
- package/dist/collection-editor/collection-editor-content.d.ts +10 -0
- package/dist/collection-editor/collection-editor-content.js +282 -0
- package/dist/collection-editor/collection-editor-content.js.map +1 -0
- package/dist/collection-editor/collection-editor-page.d.ts +5 -0
- package/dist/collection-editor/collection-editor-page.js +231 -0
- package/dist/collection-editor/collection-editor-page.js.map +1 -0
- package/dist/collection-editor/collection-editor.d.ts +30 -0
- package/dist/collection-editor/collection-editor.js +115 -0
- package/dist/collection-editor/collection-editor.js.map +1 -0
- package/dist/collection-editor/collection-overview.d.ts +29 -0
- package/dist/collection-editor/collection-overview.js +334 -0
- package/dist/collection-editor/collection-overview.js.map +1 -0
- package/dist/collection-editor/collection-product-list.d.ts +9 -0
- package/dist/collection-editor/collection-product-list.js +130 -0
- package/dist/collection-editor/collection-product-list.js.map +1 -0
- package/dist/collection-editor/index.d.ts +2 -0
- package/dist/collection-editor/index.js +7 -0
- package/dist/collection-editor/index.js.map +1 -0
- package/dist/collection-editor/mobile-collection-editor.d.ts +21 -0
- package/dist/collection-editor/mobile-collection-editor.js +283 -0
- package/dist/collection-editor/mobile-collection-editor.js.map +1 -0
- package/dist/collection-editor/product-picker-modal.d.ts +6 -0
- package/dist/collection-editor/product-picker-modal.js +148 -0
- package/dist/collection-editor/product-picker-modal.js.map +1 -0
- package/dist/collection-editor.d.ts +1 -0
- package/dist/collection-editor.js +1 -0
- package/dist/command-palette/use-command-search.d.ts +88 -0
- package/dist/command-palette/use-command-search.js +218 -0
- package/dist/command-palette/use-command-search.js.map +1 -0
- package/dist/companion/companion-context.d.ts +29 -0
- package/dist/companion/companion-context.js +120 -0
- package/dist/companion/companion-context.js.map +1 -0
- package/dist/companion/companion-dock.d.ts +12 -0
- package/dist/companion/companion-dock.js +399 -0
- package/dist/companion/companion-dock.js.map +1 -0
- package/dist/connect/command-detail.d.ts +5 -0
- package/dist/connect/command-detail.js +93 -0
- package/dist/connect/command-detail.js.map +1 -0
- package/dist/connect/command-log.d.ts +5 -0
- package/dist/connect/command-log.js +106 -0
- package/dist/connect/command-log.js.map +1 -0
- package/dist/connect/connection-headline.d.ts +23 -0
- package/dist/connect/connection-headline.js +64 -0
- package/dist/connect/connection-headline.js.map +1 -0
- package/dist/connect/connection-history.d.ts +4 -0
- package/dist/connect/connection-history.js +64 -0
- package/dist/connect/connection-history.js.map +1 -0
- package/dist/connect/connection-resources.d.ts +4 -0
- package/dist/connect/connection-resources.js +92 -0
- package/dist/connect/connection-resources.js.map +1 -0
- package/dist/connect/connection-users.d.ts +5 -0
- package/dist/connect/connection-users.js +88 -0
- package/dist/connect/connection-users.js.map +1 -0
- package/dist/connect/consent-panel.d.ts +22 -0
- package/dist/connect/consent-panel.js +118 -0
- package/dist/connect/consent-panel.js.map +1 -0
- package/dist/connect/constraint-list.d.ts +19 -0
- package/dist/connect/constraint-list.js +64 -0
- package/dist/connect/constraint-list.js.map +1 -0
- package/dist/connect/customer-message-trace.d.ts +5 -0
- package/dist/connect/customer-message-trace.js +167 -0
- package/dist/connect/customer-message-trace.js.map +1 -0
- package/dist/connect/delivery-health.d.ts +1 -0
- package/dist/connect/delivery-health.js +69 -0
- package/dist/connect/delivery-health.js.map +1 -0
- package/dist/connect/identity-card.d.ts +4 -0
- package/dist/connect/identity-card.js +161 -0
- package/dist/connect/identity-card.js.map +1 -0
- package/dist/connect/needs-you.d.ts +23 -0
- package/dist/connect/needs-you.js +79 -0
- package/dist/connect/needs-you.js.map +1 -0
- package/dist/connect/record-source.d.ts +42 -0
- package/dist/connect/record-source.js +53 -0
- package/dist/connect/record-source.js.map +1 -0
- package/dist/connect/record-trace.d.ts +24 -0
- package/dist/connect/record-trace.js +144 -0
- package/dist/connect/record-trace.js.map +1 -0
- package/dist/connect/resend-order-confirmation-button.d.ts +4 -0
- package/dist/connect/resend-order-confirmation-button.js +50 -0
- package/dist/connect/resend-order-confirmation-button.js.map +1 -0
- package/dist/connect/route-health.d.ts +22 -0
- package/dist/connect/route-health.js +43 -0
- package/dist/connect/route-health.js.map +1 -0
- package/dist/connect/sync-panel.d.ts +4 -0
- package/dist/connect/sync-panel.js +153 -0
- package/dist/connect/sync-panel.js.map +1 -0
- package/dist/connect/usage-panel.d.ts +10 -0
- package/dist/connect/usage-panel.js +25 -0
- package/dist/connect/usage-panel.js.map +1 -0
- package/dist/contact-customer.d.ts +31 -0
- package/dist/contact-customer.js +78 -0
- package/dist/contact-customer.js.map +1 -0
- package/dist/content-type-page/configured-content-list.d.ts +25 -0
- package/dist/content-type-page/configured-content-list.js +114 -0
- package/dist/content-type-page/configured-content-list.js.map +1 -0
- package/dist/content-type-page/content-editor-overlays.d.ts +22 -0
- package/dist/content-type-page/content-editor-overlays.js +46 -0
- package/dist/content-type-page/content-editor-overlays.js.map +1 -0
- package/dist/content-type-page/content-type-page-state.d.ts +10 -0
- package/dist/content-type-page/content-type-page-state.js +52 -0
- package/dist/content-type-page/content-type-page-state.js.map +1 -0
- package/dist/content-type-page/fallback-content-list.d.ts +38 -0
- package/dist/content-type-page/fallback-content-list.js +309 -0
- package/dist/content-type-page/fallback-content-list.js.map +1 -0
- package/dist/content-type-page/use-content-list-model.d.ts +42 -0
- package/dist/content-type-page/use-content-list-model.js +206 -0
- package/dist/content-type-page/use-content-list-model.js.map +1 -0
- package/dist/content-type-page.d.ts +8 -0
- package/dist/content-type-page.js +798 -0
- package/dist/content-type-page.js.map +1 -0
- package/dist/content-type-stepper/behavior-steps.d.ts +3 -0
- package/dist/content-type-stepper/behavior-steps.js +203 -0
- package/dist/content-type-stepper/behavior-steps.js.map +1 -0
- package/dist/content-type-stepper/product-steps.d.ts +20 -0
- package/dist/content-type-stepper/product-steps.js +219 -0
- package/dist/content-type-stepper/product-steps.js.map +1 -0
- package/dist/content-type-stepper/types.d.ts +86 -0
- package/dist/content-type-stepper/types.js +28 -0
- package/dist/content-type-stepper/types.js.map +1 -0
- package/dist/content-type-stepper-panel.d.ts +3 -0
- package/dist/content-type-stepper-panel.js +322 -0
- package/dist/content-type-stepper-panel.js.map +1 -0
- package/dist/create-business-modal.d.ts +36 -0
- package/dist/create-business-modal.js +208 -0
- package/dist/create-business-modal.js.map +1 -0
- package/dist/custom-fields-step.d.ts +23 -0
- package/dist/custom-fields-step.js +379 -0
- package/dist/custom-fields-step.js.map +1 -0
- package/dist/customer-editor/customer-editor-content.d.ts +7 -0
- package/dist/customer-editor/customer-editor-content.js +160 -0
- package/dist/customer-editor/customer-editor-content.js.map +1 -0
- package/dist/customer-editor/customer-editor-page.d.ts +5 -0
- package/dist/customer-editor/customer-editor-page.js +224 -0
- package/dist/customer-editor/customer-editor-page.js.map +1 -0
- package/dist/customer-editor/customer-editor.d.ts +20 -0
- package/dist/customer-editor/customer-editor.js +96 -0
- package/dist/customer-editor/customer-editor.js.map +1 -0
- package/dist/customer-editor/index.d.ts +2 -0
- package/dist/customer-editor/index.js +7 -0
- package/dist/customer-editor/index.js.map +1 -0
- package/dist/customer-editor/member-plan-picker.d.ts +7 -0
- package/dist/customer-editor/member-plan-picker.js +118 -0
- package/dist/customer-editor/member-plan-picker.js.map +1 -0
- package/dist/customer-editor/mobile-customer-editor.d.ts +7 -0
- package/dist/customer-editor/mobile-customer-editor.js +138 -0
- package/dist/customer-editor/mobile-customer-editor.js.map +1 -0
- package/dist/customer-editor/phone-input.d.ts +15 -0
- package/dist/customer-editor/phone-input.js +254 -0
- package/dist/customer-editor/phone-input.js.map +1 -0
- package/dist/customer-editor.d.ts +1 -0
- package/dist/customer-editor.js +1 -0
- package/dist/customers/send-message-modal.d.ts +28 -0
- package/dist/customers/send-message-modal.js +103 -0
- package/dist/customers/send-message-modal.js.map +1 -0
- package/dist/dashboard/activity-feed.d.ts +23 -0
- package/dist/dashboard/activity-feed.js +147 -0
- package/dist/dashboard/activity-feed.js.map +1 -0
- package/dist/dashboard/activity-paid.d.ts +10 -0
- package/dist/dashboard/activity-paid.js +7 -0
- package/dist/dashboard/activity-paid.js.map +1 -0
- package/dist/dashboard/destination-alias-sync.d.ts +9 -0
- package/dist/dashboard/destination-alias-sync.js +88 -0
- package/dist/dashboard/destination-alias-sync.js.map +1 -0
- package/dist/dashboard/first-run-welcome.d.ts +6 -0
- package/dist/dashboard/first-run-welcome.js +113 -0
- package/dist/dashboard/first-run-welcome.js.map +1 -0
- package/dist/dashboard/getting-started-cta.d.ts +11 -0
- package/dist/dashboard/getting-started-cta.js +37 -0
- package/dist/dashboard/getting-started-cta.js.map +1 -0
- package/dist/dashboard/go-live-art.d.ts +24 -0
- package/dist/dashboard/go-live-art.js +93 -0
- package/dist/dashboard/go-live-art.js.map +1 -0
- package/dist/dashboard/go-live-checks-dialog.d.ts +24 -0
- package/dist/dashboard/go-live-checks-dialog.js +22 -0
- package/dist/dashboard/go-live-checks-dialog.js.map +1 -0
- package/dist/dashboard/go-live-now-dialog.d.ts +35 -0
- package/dist/dashboard/go-live-now-dialog.js +139 -0
- package/dist/dashboard/go-live-now-dialog.js.map +1 -0
- package/dist/dashboard/go-live-quick-setup-basics.d.ts +41 -0
- package/dist/dashboard/go-live-quick-setup-basics.js +147 -0
- package/dist/dashboard/go-live-quick-setup-basics.js.map +1 -0
- package/dist/dashboard/go-live-quick-setup.d.ts +71 -0
- package/dist/dashboard/go-live-quick-setup.js +340 -0
- package/dist/dashboard/go-live-quick-setup.js.map +1 -0
- package/dist/dashboard/go-live-setup-parts.d.ts +81 -0
- package/dist/dashboard/go-live-setup-parts.js +97 -0
- package/dist/dashboard/go-live-setup-parts.js.map +1 -0
- package/dist/dashboard/go-live-step-art.d.ts +22 -0
- package/dist/dashboard/go-live-step-art.js +86 -0
- package/dist/dashboard/go-live-step-art.js.map +1 -0
- package/dist/dashboard/go-live-step-dialog.d.ts +40 -0
- package/dist/dashboard/go-live-step-dialog.js +52 -0
- package/dist/dashboard/go-live-step-dialog.js.map +1 -0
- package/dist/dashboard/go-live-steps.d.ts +35 -0
- package/dist/dashboard/go-live-steps.js +93 -0
- package/dist/dashboard/go-live-steps.js.map +1 -0
- package/dist/dashboard/home/ask-assembling.d.ts +18 -0
- package/dist/dashboard/home/ask-assembling.js +77 -0
- package/dist/dashboard/home/ask-assembling.js.map +1 -0
- package/dist/dashboard/home/ask-attachments.d.ts +12 -0
- package/dist/dashboard/home/ask-attachments.js +52 -0
- package/dist/dashboard/home/ask-attachments.js.map +1 -0
- package/dist/dashboard/home/ask-capabilities.d.ts +48 -0
- package/dist/dashboard/home/ask-capabilities.js +61 -0
- package/dist/dashboard/home/ask-capabilities.js.map +1 -0
- package/dist/dashboard/home/ask-controls.d.ts +33 -0
- package/dist/dashboard/home/ask-controls.js +65 -0
- package/dist/dashboard/home/ask-controls.js.map +1 -0
- package/dist/dashboard/home/ask-dictation-flow.d.ts +24 -0
- package/dist/dashboard/home/ask-dictation-flow.js +210 -0
- package/dist/dashboard/home/ask-dictation-flow.js.map +1 -0
- package/dist/dashboard/home/ask-glow.d.ts +23 -0
- package/dist/dashboard/home/ask-glow.js +51 -0
- package/dist/dashboard/home/ask-glow.js.map +1 -0
- package/dist/dashboard/home/ask-intent.d.ts +37 -0
- package/dist/dashboard/home/ask-intent.js +77 -0
- package/dist/dashboard/home/ask-intent.js.map +1 -0
- package/dist/dashboard/home/ask-mode-chip.d.ts +20 -0
- package/dist/dashboard/home/ask-mode-chip.js +70 -0
- package/dist/dashboard/home/ask-mode-chip.js.map +1 -0
- package/dist/dashboard/home/ask-model-chip.d.ts +1 -0
- package/dist/dashboard/home/ask-model-chip.js +62 -0
- package/dist/dashboard/home/ask-model-chip.js.map +1 -0
- package/dist/dashboard/home/ask-placeholders.d.ts +44 -0
- package/dist/dashboard/home/ask-placeholders.js +40 -0
- package/dist/dashboard/home/ask-placeholders.js.map +1 -0
- package/dist/dashboard/home/ask-quick-actions.d.ts +1 -0
- package/dist/dashboard/home/ask-quick-actions.js +37 -0
- package/dist/dashboard/home/ask-quick-actions.js.map +1 -0
- package/dist/dashboard/home/ask-results.d.ts +37 -0
- package/dist/dashboard/home/ask-results.js +243 -0
- package/dist/dashboard/home/ask-results.js.map +1 -0
- package/dist/dashboard/home/ask-send-button.d.ts +36 -0
- package/dist/dashboard/home/ask-send-button.js +69 -0
- package/dist/dashboard/home/ask-send-button.js.map +1 -0
- package/dist/dashboard/home/ask-support-attachments.d.ts +16 -0
- package/dist/dashboard/home/ask-support-attachments.js +74 -0
- package/dist/dashboard/home/ask-support-attachments.js.map +1 -0
- package/dist/dashboard/home/ask-voice.d.ts +12 -0
- package/dist/dashboard/home/ask-voice.js +76 -0
- package/dist/dashboard/home/ask-voice.js.map +1 -0
- package/dist/dashboard/home/card-scroller.d.ts +18 -0
- package/dist/dashboard/home/card-scroller.js +67 -0
- package/dist/dashboard/home/card-scroller.js.map +1 -0
- package/dist/dashboard/home/demo-data.d.ts +31 -0
- package/dist/dashboard/home/demo-data.js +217 -0
- package/dist/dashboard/home/demo-data.js.map +1 -0
- package/dist/dashboard/home/greeting.d.ts +48 -0
- package/dist/dashboard/home/greeting.js +154 -0
- package/dist/dashboard/home/greeting.js.map +1 -0
- package/dist/dashboard/home/home-add-item-links.d.ts +22 -0
- package/dist/dashboard/home/home-add-item-links.js +26 -0
- package/dist/dashboard/home/home-add-item-links.js.map +1 -0
- package/dist/dashboard/home/home-ask.d.ts +35 -0
- package/dist/dashboard/home/home-ask.js +295 -0
- package/dist/dashboard/home/home-ask.js.map +1 -0
- package/dist/dashboard/home/home-board-fold.d.ts +26 -0
- package/dist/dashboard/home/home-board-fold.js +34 -0
- package/dist/dashboard/home/home-board-fold.js.map +1 -0
- package/dist/dashboard/home/home-card.d.ts +62 -0
- package/dist/dashboard/home/home-card.js +27 -0
- package/dist/dashboard/home/home-card.js.map +1 -0
- package/dist/dashboard/home/home-hero.d.ts +50 -0
- package/dist/dashboard/home/home-hero.js +30 -0
- package/dist/dashboard/home/home-hero.js.map +1 -0
- package/dist/dashboard/home/home-people.d.ts +1 -0
- package/dist/dashboard/home/home-people.js +91 -0
- package/dist/dashboard/home/home-people.js.map +1 -0
- package/dist/dashboard/home/home-quick-actions.d.ts +17 -0
- package/dist/dashboard/home/home-quick-actions.js +104 -0
- package/dist/dashboard/home/home-quick-actions.js.map +1 -0
- package/dist/dashboard/home/home-today.d.ts +27 -0
- package/dist/dashboard/home/home-today.js +51 -0
- package/dist/dashboard/home/home-today.js.map +1 -0
- package/dist/dashboard/home/host-quick-actions.d.ts +19 -0
- package/dist/dashboard/home/host-quick-actions.js +12 -0
- package/dist/dashboard/home/host-quick-actions.js.map +1 -0
- package/dist/dashboard/home/live-presence.d.ts +30 -0
- package/dist/dashboard/home/live-presence.js +64 -0
- package/dist/dashboard/home/live-presence.js.map +1 -0
- package/dist/dashboard/home/money-hero.d.ts +15 -0
- package/dist/dashboard/home/money-hero.js +200 -0
- package/dist/dashboard/home/money-hero.js.map +1 -0
- package/dist/dashboard/home/money-language.d.ts +32 -0
- package/dist/dashboard/home/money-language.js +27 -0
- package/dist/dashboard/home/money-language.js.map +1 -0
- package/dist/dashboard/home/money-snapshot.d.ts +48 -0
- package/dist/dashboard/home/money-snapshot.js +81 -0
- package/dist/dashboard/home/money-snapshot.js.map +1 -0
- package/dist/dashboard/home/next-up-sources.d.ts +172 -0
- package/dist/dashboard/home/next-up-sources.js +220 -0
- package/dist/dashboard/home/next-up-sources.js.map +1 -0
- package/dist/dashboard/home/panel.d.ts +98 -0
- package/dist/dashboard/home/panel.js +79 -0
- package/dist/dashboard/home/panel.js.map +1 -0
- package/dist/dashboard/home/person-activity.d.ts +27 -0
- package/dist/dashboard/home/person-activity.js +80 -0
- package/dist/dashboard/home/person-activity.js.map +1 -0
- package/dist/dashboard/home/search-tips.d.ts +1 -0
- package/dist/dashboard/home/search-tips.js +174 -0
- package/dist/dashboard/home/search-tips.js.map +1 -0
- package/dist/dashboard/home/use-ask-support.d.ts +60 -0
- package/dist/dashboard/home/use-ask-support.js +105 -0
- package/dist/dashboard/home/use-ask-support.js.map +1 -0
- package/dist/dashboard/home/use-business-arrival.d.ts +35 -0
- package/dist/dashboard/home/use-business-arrival.js +32 -0
- package/dist/dashboard/home/use-business-arrival.js.map +1 -0
- package/dist/dashboard/home/use-days-since-last-seen.d.ts +16 -0
- package/dist/dashboard/home/use-days-since-last-seen.js +46 -0
- package/dist/dashboard/home/use-days-since-last-seen.js.map +1 -0
- package/dist/dashboard/home/use-home-shape.d.ts +61 -0
- package/dist/dashboard/home/use-home-shape.js +41 -0
- package/dist/dashboard/home/use-home-shape.js.map +1 -0
- package/dist/dashboard/home/use-live-presence.d.ts +21 -0
- package/dist/dashboard/home/use-live-presence.js +84 -0
- package/dist/dashboard/home/use-live-presence.js.map +1 -0
- package/dist/dashboard/home/use-publish-site.d.ts +21 -0
- package/dist/dashboard/home/use-publish-site.js +35 -0
- package/dist/dashboard/home/use-publish-site.js.map +1 -0
- package/dist/dashboard/home/use-recent-screens.d.ts +12 -0
- package/dist/dashboard/home/use-recent-screens.js +70 -0
- package/dist/dashboard/home/use-recent-screens.js.map +1 -0
- package/dist/dashboard/home/widgets/activity-card.d.ts +20 -0
- package/dist/dashboard/home/widgets/activity-card.js +41 -0
- package/dist/dashboard/home/widgets/activity-card.js.map +1 -0
- package/dist/dashboard/home/widgets/activity-widget.d.ts +15 -0
- package/dist/dashboard/home/widgets/activity-widget.js +172 -0
- package/dist/dashboard/home/widgets/activity-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/bill-widget.d.ts +25 -0
- package/dist/dashboard/home/widgets/bill-widget.js +96 -0
- package/dist/dashboard/home/widgets/bill-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/credits-widget.d.ts +22 -0
- package/dist/dashboard/home/widgets/credits-widget.js +59 -0
- package/dist/dashboard/home/widgets/credits-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/hardware-widget.d.ts +30 -0
- package/dist/dashboard/home/widgets/hardware-widget.js +115 -0
- package/dist/dashboard/home/widgets/hardware-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/home-widgets.d.ts +14 -0
- package/dist/dashboard/home/widgets/home-widgets.js +237 -0
- package/dist/dashboard/home/widgets/home-widgets.js.map +1 -0
- package/dist/dashboard/home/widgets/host-widgets.d.ts +6 -0
- package/dist/dashboard/home/widgets/host-widgets.js +16 -0
- package/dist/dashboard/home/widgets/host-widgets.js.map +1 -0
- package/dist/dashboard/home/widgets/member-label.d.ts +11 -0
- package/dist/dashboard/home/widgets/member-label.js +10 -0
- package/dist/dashboard/home/widgets/member-label.js.map +1 -0
- package/dist/dashboard/home/widgets/middle-ellipsis.d.ts +5 -0
- package/dist/dashboard/home/widgets/middle-ellipsis.js +11 -0
- package/dist/dashboard/home/widgets/middle-ellipsis.js.map +1 -0
- package/dist/dashboard/home/widgets/money-context.d.ts +51 -0
- package/dist/dashboard/home/widgets/money-context.js +114 -0
- package/dist/dashboard/home/widgets/money-context.js.map +1 -0
- package/dist/dashboard/home/widgets/money-widgets.d.ts +10 -0
- package/dist/dashboard/home/widgets/money-widgets.js +169 -0
- package/dist/dashboard/home/widgets/money-widgets.js.map +1 -0
- package/dist/dashboard/home/widgets/owed-widget.d.ts +25 -0
- package/dist/dashboard/home/widgets/owed-widget.js +78 -0
- package/dist/dashboard/home/widgets/owed-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/referral-modal.d.ts +30 -0
- package/dist/dashboard/home/widgets/referral-modal.js +91 -0
- package/dist/dashboard/home/widgets/referral-modal.js.map +1 -0
- package/dist/dashboard/home/widgets/referral-widget.d.ts +25 -0
- package/dist/dashboard/home/widgets/referral-widget.js +44 -0
- package/dist/dashboard/home/widgets/referral-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/registry.d.ts +39 -0
- package/dist/dashboard/home/widgets/registry.js +392 -0
- package/dist/dashboard/home/widgets/registry.js.map +1 -0
- package/dist/dashboard/home/widgets/regular-reach.d.ts +10 -0
- package/dist/dashboard/home/widgets/regular-reach.js +60 -0
- package/dist/dashboard/home/widgets/regular-reach.js.map +1 -0
- package/dist/dashboard/home/widgets/regulars-widget.d.ts +13 -0
- package/dist/dashboard/home/widgets/regulars-widget.js +126 -0
- package/dist/dashboard/home/widgets/regulars-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/revenue-series.d.ts +12 -0
- package/dist/dashboard/home/widgets/revenue-series.js +26 -0
- package/dist/dashboard/home/widgets/revenue-series.js.map +1 -0
- package/dist/dashboard/home/widgets/setup-steps.d.ts +86 -0
- package/dist/dashboard/home/widgets/setup-steps.js +175 -0
- package/dist/dashboard/home/widgets/setup-steps.js.map +1 -0
- package/dist/dashboard/home/widgets/setup-widget.d.ts +23 -0
- package/dist/dashboard/home/widgets/setup-widget.js +40 -0
- package/dist/dashboard/home/widgets/setup-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/step-href.d.ts +4 -0
- package/dist/dashboard/home/widgets/step-href.js +58 -0
- package/dist/dashboard/home/widgets/step-href.js.map +1 -0
- package/dist/dashboard/home/widgets/step-labels.d.ts +6 -0
- package/dist/dashboard/home/widgets/step-labels.js +8 -0
- package/dist/dashboard/home/widgets/step-labels.js.map +1 -0
- package/dist/dashboard/home/widgets/team-widget.d.ts +1 -0
- package/dist/dashboard/home/widgets/team-widget.js +117 -0
- package/dist/dashboard/home/widgets/team-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/types.d.ts +192 -0
- package/dist/dashboard/home/widgets/types.js +10 -0
- package/dist/dashboard/home/widgets/types.js.map +1 -0
- package/dist/dashboard/home/widgets/use-home-layout.d.ts +45 -0
- package/dist/dashboard/home/widgets/use-home-layout.js +220 -0
- package/dist/dashboard/home/widgets/use-home-layout.js.map +1 -0
- package/dist/dashboard/home/widgets/website-widget.d.ts +7 -0
- package/dist/dashboard/home/widgets/website-widget.js +229 -0
- package/dist/dashboard/home/widgets/website-widget.js.map +1 -0
- package/dist/dashboard/home/widgets/widget-art.d.ts +35 -0
- package/dist/dashboard/home/widgets/widget-art.js +40 -0
- package/dist/dashboard/home/widgets/widget-art.js.map +1 -0
- package/dist/dashboard/home/widgets/widget-empty.d.ts +38 -0
- package/dist/dashboard/home/widgets/widget-empty.js +46 -0
- package/dist/dashboard/home/widgets/widget-empty.js.map +1 -0
- package/dist/dashboard/home/widgets/widget-figure.d.ts +19 -0
- package/dist/dashboard/home/widgets/widget-figure.js +30 -0
- package/dist/dashboard/home/widgets/widget-figure.js.map +1 -0
- package/dist/dashboard/home/widgets/widget-frame.d.ts +50 -0
- package/dist/dashboard/home/widgets/widget-frame.js +38 -0
- package/dist/dashboard/home/widgets/widget-frame.js.map +1 -0
- package/dist/dashboard/home/widgets/widget-gallery.d.ts +45 -0
- package/dist/dashboard/home/widgets/widget-gallery.js +108 -0
- package/dist/dashboard/home/widgets/widget-gallery.js.map +1 -0
- package/dist/dashboard/home/widgets/widget-recents.d.ts +14 -0
- package/dist/dashboard/home/widgets/widget-recents.js +23 -0
- package/dist/dashboard/home/widgets/widget-recents.js.map +1 -0
- package/dist/dashboard/index.d.ts +5 -0
- package/dist/dashboard/index.js +11 -0
- package/dist/dashboard/index.js.map +1 -0
- package/dist/dashboard/page-intro-dialog.d.ts +25 -0
- package/dist/dashboard/page-intro-dialog.js +61 -0
- package/dist/dashboard/page-intro-dialog.js.map +1 -0
- package/dist/dashboard/page-transition-key.d.ts +7 -0
- package/dist/dashboard/page-transition-key.js +11 -0
- package/dist/dashboard/page-transition-key.js.map +1 -0
- package/dist/dashboard/page-transition.d.ts +40 -0
- package/dist/dashboard/page-transition.js +32 -0
- package/dist/dashboard/page-transition.js.map +1 -0
- package/dist/dashboard/site-setup-notice.d.ts +15 -0
- package/dist/dashboard/site-setup-notice.js +28 -0
- package/dist/dashboard/site-setup-notice.js.map +1 -0
- package/dist/dashboard/store-cannot-sell-gate.d.ts +39 -0
- package/dist/dashboard/store-cannot-sell-gate.js +59 -0
- package/dist/dashboard/store-cannot-sell-gate.js.map +1 -0
- package/dist/dashboard/take-payment-context.d.ts +3 -0
- package/dist/dashboard/take-payment-context.js +13 -0
- package/dist/dashboard/take-payment-context.js.map +1 -0
- package/dist/dashboard/template-category-picker.d.ts +19 -0
- package/dist/dashboard/template-category-picker.js +99 -0
- package/dist/dashboard/template-category-picker.js.map +1 -0
- package/dist/dashboard/template-status-card.d.ts +20 -0
- package/dist/dashboard/template-status-card.js +171 -0
- package/dist/dashboard/template-status-card.js.map +1 -0
- package/dist/dashboard-blockers.d.ts +39 -0
- package/dist/dashboard-blockers.js +74 -0
- package/dist/dashboard-blockers.js.map +1 -0
- package/dist/dashboard-empty-state.d.ts +1 -0
- package/dist/dashboard-empty-state.js +273 -0
- package/dist/dashboard-empty-state.js.map +1 -0
- package/dist/dashboard.d.ts +1 -0
- package/dist/dashboard.js +1 -0
- package/dist/digital-files-block.d.ts +11 -0
- package/dist/digital-files-block.js +201 -0
- package/dist/digital-files-block.js.map +1 -0
- package/dist/discount-editor/discount-editor-content.d.ts +8 -0
- package/dist/discount-editor/discount-editor-content.js +399 -0
- package/dist/discount-editor/discount-editor-content.js.map +1 -0
- package/dist/discount-editor/discount-editor-page.d.ts +5 -0
- package/dist/discount-editor/discount-editor-page.js +340 -0
- package/dist/discount-editor/discount-editor-page.js.map +1 -0
- package/dist/discount-editor/discount-editor.d.ts +15 -0
- package/dist/discount-editor/discount-editor.js +120 -0
- package/dist/discount-editor/discount-editor.js.map +1 -0
- package/dist/discount-editor/discount-performance.d.ts +20 -0
- package/dist/discount-editor/discount-performance.js +101 -0
- package/dist/discount-editor/discount-performance.js.map +1 -0
- package/dist/discount-editor/index.d.ts +2 -0
- package/dist/discount-editor/index.js +7 -0
- package/dist/discount-editor/index.js.map +1 -0
- package/dist/discount-editor/mobile-discount-editor.d.ts +8 -0
- package/dist/discount-editor/mobile-discount-editor.js +390 -0
- package/dist/discount-editor/mobile-discount-editor.js.map +1 -0
- package/dist/discount-editor/product-scope-picker.d.ts +7 -0
- package/dist/discount-editor/product-scope-picker.js +246 -0
- package/dist/discount-editor/product-scope-picker.js.map +1 -0
- package/dist/discount-editor/tier-gate-picker.d.ts +20 -0
- package/dist/discount-editor/tier-gate-picker.js +68 -0
- package/dist/discount-editor/tier-gate-picker.js.map +1 -0
- package/dist/discount-editor.d.ts +1 -0
- package/dist/discount-editor.js +1 -0
- package/dist/duplicate-workspace-modal.d.ts +7 -0
- package/dist/duplicate-workspace-modal.js +122 -0
- package/dist/duplicate-workspace-modal.js.map +1 -0
- package/dist/dynamic-form/fields-basic.d.ts +33 -0
- package/dist/dynamic-form/fields-basic.js +357 -0
- package/dist/dynamic-form/fields-basic.js.map +1 -0
- package/dist/dynamic-form/fields-content-select.d.ts +17 -0
- package/dist/dynamic-form/fields-content-select.js +399 -0
- package/dist/dynamic-form/fields-content-select.js.map +1 -0
- package/dist/dynamic-form/fields-media.d.ts +20 -0
- package/dist/dynamic-form/fields-media.js +337 -0
- package/dist/dynamic-form/fields-media.js.map +1 -0
- package/dist/dynamic-form/fields-reference.d.ts +10 -0
- package/dist/dynamic-form/fields-reference.js +271 -0
- package/dist/dynamic-form/fields-reference.js.map +1 -0
- package/dist/dynamic-form/fields-select.d.ts +13 -0
- package/dist/dynamic-form/fields-select.js +343 -0
- package/dist/dynamic-form/fields-select.js.map +1 -0
- package/dist/dynamic-form/index.d.ts +27 -0
- package/dist/dynamic-form/index.js +288 -0
- package/dist/dynamic-form/index.js.map +1 -0
- package/dist/dynamic-form/shared.d.ts +47 -0
- package/dist/dynamic-form/shared.js +111 -0
- package/dist/dynamic-form/shared.js.map +1 -0
- package/dist/dynamic-form.d.ts +1 -0
- package/dist/dynamic-form.js +1 -0
- package/dist/editor-agent/ask-ai-popover.d.ts +19 -0
- package/dist/editor-agent/ask-ai-popover.js +221 -0
- package/dist/editor-agent/ask-ai-popover.js.map +1 -0
- package/dist/editor-shared/floating-save-bar.d.ts +15 -0
- package/dist/editor-shared/floating-save-bar.js +47 -0
- package/dist/editor-shared/floating-save-bar.js.map +1 -0
- package/dist/editor-shared/index.d.ts +3 -0
- package/dist/editor-shared/index.js +9 -0
- package/dist/editor-shared/index.js.map +1 -0
- package/dist/editor-shared/mobile-editor-section.d.ts +13 -0
- package/dist/editor-shared/mobile-editor-section.js +73 -0
- package/dist/editor-shared/mobile-editor-section.js.map +1 -0
- package/dist/editor-shared/use-editor-dirty-tracking.d.ts +12 -0
- package/dist/editor-shared/use-editor-dirty-tracking.js +26 -0
- package/dist/editor-shared/use-editor-dirty-tracking.js.map +1 -0
- package/dist/editor-shared.d.ts +1 -0
- package/dist/editor-shared.js +1 -0
- package/dist/feature-toggles-step.d.ts +12 -0
- package/dist/feature-toggles-step.js +104 -0
- package/dist/feature-toggles-step.js.map +1 -0
- package/dist/features/booking-editor.d.ts +6 -0
- package/dist/features/booking-editor.js +352 -0
- package/dist/features/booking-editor.js.map +1 -0
- package/dist/features/booking-summary.d.ts +35 -0
- package/dist/features/booking-summary.js +106 -0
- package/dist/features/booking-summary.js.map +1 -0
- package/dist/features/calendar-sync-pane.d.ts +14 -0
- package/dist/features/calendar-sync-pane.js +370 -0
- package/dist/features/calendar-sync-pane.js.map +1 -0
- package/dist/features/calendar-sync.d.ts +1 -0
- package/dist/features/calendar-sync.js +138 -0
- package/dist/features/calendar-sync.js.map +1 -0
- package/dist/features/collection-card.d.ts +28 -0
- package/dist/features/collection-card.js +84 -0
- package/dist/features/collection-card.js.map +1 -0
- package/dist/features/collections-grid.d.ts +30 -0
- package/dist/features/collections-grid.js +218 -0
- package/dist/features/collections-grid.js.map +1 -0
- package/dist/features/collections-helpers.d.ts +89 -0
- package/dist/features/collections-helpers.js +84 -0
- package/dist/features/collections-helpers.js.map +1 -0
- package/dist/features/collections.d.ts +2 -0
- package/dist/features/collections.js +261 -0
- package/dist/features/collections.js.map +1 -0
- package/dist/features/customer-form.d.ts +6 -0
- package/dist/features/customer-form.js +153 -0
- package/dist/features/customer-form.js.map +1 -0
- package/dist/features/discounts/discount-form-basics-step.d.ts +10 -0
- package/dist/features/discounts/discount-form-basics-step.js +174 -0
- package/dist/features/discounts/discount-form-basics-step.js.map +1 -0
- package/dist/features/discounts/discount-form-modal.d.ts +9 -0
- package/dist/features/discounts/discount-form-modal.js +143 -0
- package/dist/features/discounts/discount-form-modal.js.map +1 -0
- package/dist/features/discounts/discount-form-rules-step.d.ts +9 -0
- package/dist/features/discounts/discount-form-rules-step.js +154 -0
- package/dist/features/discounts/discount-form-rules-step.js.map +1 -0
- package/dist/features/discounts/discount-form-settings-step.d.ts +8 -0
- package/dist/features/discounts/discount-form-settings-step.js +48 -0
- package/dist/features/discounts/discount-form-settings-step.js.map +1 -0
- package/dist/features/discounts/discount-helpers.d.ts +6 -0
- package/dist/features/discounts/discount-helpers.js +66 -0
- package/dist/features/discounts/discount-helpers.js.map +1 -0
- package/dist/features/discounts/discount-mark.d.ts +4 -0
- package/dist/features/discounts/discount-mark.js +54 -0
- package/dist/features/discounts/discount-mark.js.map +1 -0
- package/dist/features/discounts/discounts-panel.d.ts +16 -0
- package/dist/features/discounts/discounts-panel.js +301 -0
- package/dist/features/discounts/discounts-panel.js.map +1 -0
- package/dist/features/discounts/discounts-table.d.ts +33 -0
- package/dist/features/discounts/discounts-table.js +133 -0
- package/dist/features/discounts/discounts-table.js.map +1 -0
- package/dist/features/discounts.d.ts +2 -0
- package/dist/features/discounts.js +7 -0
- package/dist/features/discounts.js.map +1 -0
- package/dist/features/gallery.d.ts +1 -0
- package/dist/features/gallery.js +147 -0
- package/dist/features/gallery.js.map +1 -0
- package/dist/features/gift-card-artwork.d.ts +18 -0
- package/dist/features/gift-card-artwork.js +216 -0
- package/dist/features/gift-card-artwork.js.map +1 -0
- package/dist/features/gift-cards/gift-card-logic.d.ts +41 -0
- package/dist/features/gift-cards/gift-card-logic.js +65 -0
- package/dist/features/gift-cards/gift-card-logic.js.map +1 -0
- package/dist/features/gift-cards/gift-cards-feature.d.ts +1 -0
- package/dist/features/gift-cards/gift-cards-feature.js +1038 -0
- package/dist/features/gift-cards/gift-cards-feature.js.map +1 -0
- package/dist/features/gift-cards/gift-cards-panel.d.ts +14 -0
- package/dist/features/gift-cards/gift-cards-panel.js +224 -0
- package/dist/features/gift-cards/gift-cards-panel.js.map +1 -0
- package/dist/features/gift-cards/hint.d.ts +9 -0
- package/dist/features/gift-cards/hint.js +25 -0
- package/dist/features/gift-cards/hint.js.map +1 -0
- package/dist/features/gift-cards/index.d.ts +2 -0
- package/dist/features/gift-cards/index.js +7 -0
- package/dist/features/gift-cards/index.js.map +1 -0
- package/dist/features/gift-cards.d.ts +1 -0
- package/dist/features/gift-cards.js +1 -0
- package/dist/features/index.d.ts +8 -0
- package/dist/features/index.js +29 -0
- package/dist/features/index.js.map +1 -0
- package/dist/features/loyalty.d.ts +1 -0
- package/dist/features/loyalty.js +128 -0
- package/dist/features/loyalty.js.map +1 -0
- package/dist/features/offer-countdown.d.ts +14 -0
- package/dist/features/offer-countdown.js +35 -0
- package/dist/features/offer-countdown.js.map +1 -0
- package/dist/features/payments.d.ts +1 -0
- package/dist/features/payments.js +279 -0
- package/dist/features/payments.js.map +1 -0
- package/dist/features/product-form/basics-step.d.ts +44 -0
- package/dist/features/product-form/basics-step.js +381 -0
- package/dist/features/product-form/basics-step.js.map +1 -0
- package/dist/features/product-form/behaviors-step.d.ts +42 -0
- package/dist/features/product-form/behaviors-step.js +174 -0
- package/dist/features/product-form/behaviors-step.js.map +1 -0
- package/dist/features/product-form/currency-field.d.ts +13 -0
- package/dist/features/product-form/currency-field.js +51 -0
- package/dist/features/product-form/currency-field.js.map +1 -0
- package/dist/features/product-form/details-step.d.ts +35 -0
- package/dist/features/product-form/details-step.js +137 -0
- package/dist/features/product-form/details-step.js.map +1 -0
- package/dist/features/product-form/organize-step.d.ts +23 -0
- package/dist/features/product-form/organize-step.js +186 -0
- package/dist/features/product-form/organize-step.js.map +1 -0
- package/dist/features/product-form.d.ts +11 -0
- package/dist/features/product-form.js +802 -0
- package/dist/features/product-form.js.map +1 -0
- package/dist/features/product-picker.d.ts +26 -0
- package/dist/features/product-picker.js +115 -0
- package/dist/features/product-picker.js.map +1 -0
- package/dist/features/record-payment-modal.d.ts +49 -0
- package/dist/features/record-payment-modal.js +145 -0
- package/dist/features/record-payment-modal.js.map +1 -0
- package/dist/features/slot-picker.d.ts +42 -0
- package/dist/features/slot-picker.js +194 -0
- package/dist/features/slot-picker.js.map +1 -0
- package/dist/features/use-booking-form.d.ts +161 -0
- package/dist/features/use-booking-form.js +324 -0
- package/dist/features/use-booking-form.js.map +1 -0
- package/dist/features/use-booking-options.d.ts +14 -0
- package/dist/features/use-booking-options.js +57 -0
- package/dist/features/use-booking-options.js.map +1 -0
- package/dist/features/use-collections-data.d.ts +34 -0
- package/dist/features/use-collections-data.js +62 -0
- package/dist/features/use-collections-data.js.map +1 -0
- package/dist/features/use-collections-view.d.ts +13 -0
- package/dist/features/use-collections-view.js +13 -0
- package/dist/features/use-collections-view.js.map +1 -0
- package/dist/features/weekly-hours-editor.d.ts +26 -0
- package/dist/features/weekly-hours-editor.js +141 -0
- package/dist/features/weekly-hours-editor.js.map +1 -0
- package/dist/features.d.ts +1 -0
- package/dist/features.js +1 -0
- package/dist/feedback/admin-feedback-prompt.d.ts +1 -0
- package/dist/feedback/admin-feedback-prompt.js +47 -0
- package/dist/feedback/admin-feedback-prompt.js.map +1 -0
- package/dist/feedback/app-nps-dock.d.ts +40 -0
- package/dist/feedback/app-nps-dock.js +37 -0
- package/dist/feedback/app-nps-dock.js.map +1 -0
- package/dist/feedback/feature-adoption.d.ts +66 -0
- package/dist/feedback/feature-adoption.js +53 -0
- package/dist/feedback/feature-adoption.js.map +1 -0
- package/dist/feedback/feedback-docks.d.ts +24 -0
- package/dist/feedback/feedback-docks.js +27 -0
- package/dist/feedback/feedback-docks.js.map +1 -0
- package/dist/feedback/feedback-prompt-context.d.ts +97 -0
- package/dist/feedback/feedback-prompt-context.js +247 -0
- package/dist/feedback/feedback-prompt-context.js.map +1 -0
- package/dist/feedback/feedback-prompt.d.ts +64 -0
- package/dist/feedback/feedback-prompt.js +231 -0
- package/dist/feedback/feedback-prompt.js.map +1 -0
- package/dist/feedback/feedback-vote.d.ts +64 -0
- package/dist/feedback/feedback-vote.js +158 -0
- package/dist/feedback/feedback-vote.js.map +1 -0
- package/dist/feedback/flow-ces-dock.d.ts +20 -0
- package/dist/feedback/flow-ces-dock.js +41 -0
- package/dist/feedback/flow-ces-dock.js.map +1 -0
- package/dist/feedback/flow-ces.d.ts +43 -0
- package/dist/feedback/flow-ces.js +38 -0
- package/dist/feedback/flow-ces.js.map +1 -0
- package/dist/feedback/flow-completion.d.ts +30 -0
- package/dist/feedback/flow-completion.js +35 -0
- package/dist/feedback/flow-completion.js.map +1 -0
- package/dist/feedback/index.d.ts +13 -0
- package/dist/feedback/index.js +49 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/feedback/merchant-feedback-prompt.d.ts +6 -0
- package/dist/feedback/merchant-feedback-prompt.js +289 -0
- package/dist/feedback/merchant-feedback-prompt.js.map +1 -0
- package/dist/feedback/report-adoption.d.ts +55 -0
- package/dist/feedback/report-adoption.js +56 -0
- package/dist/feedback/report-adoption.js.map +1 -0
- package/dist/feedback/say-why.d.ts +26 -0
- package/dist/feedback/say-why.js +97 -0
- package/dist/feedback/say-why.js.map +1 -0
- package/dist/feedback/setup-csat-dock.d.ts +25 -0
- package/dist/feedback/setup-csat-dock.js +35 -0
- package/dist/feedback/setup-csat-dock.js.map +1 -0
- package/dist/feedback/voice-response-recorder.d.ts +11 -0
- package/dist/feedback/voice-response-recorder.js +176 -0
- package/dist/feedback/voice-response-recorder.js.map +1 -0
- package/dist/feedback-widget.d.ts +29 -0
- package/dist/feedback-widget.js +215 -0
- package/dist/feedback-widget.js.map +1 -0
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +1 -0
- package/dist/help/area-art.d.ts +33 -0
- package/dist/help/area-art.js +32 -0
- package/dist/help/area-art.js.map +1 -0
- package/dist/help/area-objects.d.ts +31 -0
- package/dist/help/area-objects.js +357 -0
- package/dist/help/area-objects.js.map +1 -0
- package/dist/help/area-palette.d.ts +48 -0
- package/dist/help/area-palette.js +26 -0
- package/dist/help/area-palette.js.map +1 -0
- package/dist/help/assistant-chat.d.ts +12 -0
- package/dist/help/assistant-chat.js +185 -0
- package/dist/help/assistant-chat.js.map +1 -0
- package/dist/help/assistant-reply.d.ts +21 -0
- package/dist/help/assistant-reply.js +19 -0
- package/dist/help/assistant-reply.js.map +1 -0
- package/dist/help/case-chat-panel.d.ts +34 -0
- package/dist/help/case-chat-panel.js +233 -0
- package/dist/help/case-chat-panel.js.map +1 -0
- package/dist/help/case-message.d.ts +12 -0
- package/dist/help/case-message.js +62 -0
- package/dist/help/case-message.js.map +1 -0
- package/dist/help/dispute-case.d.ts +15 -0
- package/dist/help/dispute-case.js +30 -0
- package/dist/help/dispute-case.js.map +1 -0
- package/dist/help/help-area-tile.d.ts +36 -0
- package/dist/help/help-area-tile.js +86 -0
- package/dist/help/help-area-tile.js.map +1 -0
- package/dist/help/help-topic-row.d.ts +27 -0
- package/dist/help/help-topic-row.js +111 -0
- package/dist/help/help-topic-row.js.map +1 -0
- package/dist/help/help-topics-view.d.ts +21 -0
- package/dist/help/help-topics-view.js +151 -0
- package/dist/help/help-topics-view.js.map +1 -0
- package/dist/help/support-cases-view.d.ts +16 -0
- package/dist/help/support-cases-view.js +181 -0
- package/dist/help/support-cases-view.js.map +1 -0
- package/dist/image-upload-modal.d.ts +48 -0
- package/dist/image-upload-modal.js +519 -0
- package/dist/image-upload-modal.js.map +1 -0
- package/dist/image-upload.d.ts +53 -0
- package/dist/image-upload.js +180 -0
- package/dist/image-upload.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/intent/index.d.ts +3 -0
- package/dist/intent/index.js +9 -0
- package/dist/intent/index.js.map +1 -0
- package/dist/intent/intent-filter-panel.d.ts +18 -0
- package/dist/intent/intent-filter-panel.js +67 -0
- package/dist/intent/intent-filter-panel.js.map +1 -0
- package/dist/intent/intent-order-detail.d.ts +32 -0
- package/dist/intent/intent-order-detail.js +33 -0
- package/dist/intent/intent-order-detail.js.map +1 -0
- package/dist/intent/intent-order-list.d.ts +24 -0
- package/dist/intent/intent-order-list.js +235 -0
- package/dist/intent/intent-order-list.js.map +1 -0
- package/dist/intent/sections/download-links-section.d.ts +14 -0
- package/dist/intent/sections/download-links-section.js +65 -0
- package/dist/intent/sections/download-links-section.js.map +1 -0
- package/dist/intent/sections/event-tickets/attendee-list-section.d.ts +8 -0
- package/dist/intent/sections/event-tickets/attendee-list-section.js +54 -0
- package/dist/intent/sections/event-tickets/attendee-list-section.js.map +1 -0
- package/dist/intent/sections/event-tickets/check-in-status-section.d.ts +8 -0
- package/dist/intent/sections/event-tickets/check-in-status-section.js +64 -0
- package/dist/intent/sections/event-tickets/check-in-status-section.js.map +1 -0
- package/dist/intent/sections/event-tickets/event-details-section.d.ts +8 -0
- package/dist/intent/sections/event-tickets/event-details-section.js +64 -0
- package/dist/intent/sections/event-tickets/event-details-section.js.map +1 -0
- package/dist/intent/sections/event-tickets/index.d.ts +4 -0
- package/dist/intent/sections/event-tickets/index.js +11 -0
- package/dist/intent/sections/event-tickets/index.js.map +1 -0
- package/dist/intent/sections/event-tickets/ticket-info-section.d.ts +7 -0
- package/dist/intent/sections/event-tickets/ticket-info-section.js +43 -0
- package/dist/intent/sections/event-tickets/ticket-info-section.js.map +1 -0
- package/dist/intent/sections/event-tickets.d.ts +1 -0
- package/dist/intent/sections/event-tickets.js +1 -0
- package/dist/intent/sections/order-items-section.d.ts +15 -0
- package/dist/intent/sections/order-items-section.js +47 -0
- package/dist/intent/sections/order-items-section.js.map +1 -0
- package/dist/intent/sections/register-sections.d.ts +8 -0
- package/dist/intent/sections/register-sections.js +24 -0
- package/dist/intent/sections/register-sections.js.map +1 -0
- package/dist/intent/sections/shared/activity-timeline-section.d.ts +9 -0
- package/dist/intent/sections/shared/activity-timeline-section.js +80 -0
- package/dist/intent/sections/shared/activity-timeline-section.js.map +1 -0
- package/dist/intent/sections/shared/index.d.ts +3 -0
- package/dist/intent/sections/shared/index.js +9 -0
- package/dist/intent/sections/shared/index.js.map +1 -0
- package/dist/intent/sections/shared/order-header-section.d.ts +7 -0
- package/dist/intent/sections/shared/order-header-section.js +27 -0
- package/dist/intent/sections/shared/order-header-section.js.map +1 -0
- package/dist/intent/sections/shared/payment-summary-section.d.ts +12 -0
- package/dist/intent/sections/shared/payment-summary-section.js +126 -0
- package/dist/intent/sections/shared/payment-summary-section.js.map +1 -0
- package/dist/intent/sections/shared.d.ts +1 -0
- package/dist/intent/sections/shared.js +1 -0
- package/dist/intent/sections/shipping-info-section.d.ts +12 -0
- package/dist/intent/sections/shipping-info-section.js +64 -0
- package/dist/intent/sections/shipping-info-section.js.map +1 -0
- package/dist/intent/sections/subscription-details-section.d.ts +2 -0
- package/dist/intent/sections/subscription-details-section.js +77 -0
- package/dist/intent/sections/subscription-details-section.js.map +1 -0
- package/dist/intent/use-intent-filter.d.ts +43 -0
- package/dist/intent/use-intent-filter.js +43 -0
- package/dist/intent/use-intent-filter.js.map +1 -0
- package/dist/intent.d.ts +1 -0
- package/dist/intent.js +1 -0
- package/dist/intents/capture-leads.d.ts +3 -0
- package/dist/intents/capture-leads.js +61 -0
- package/dist/intents/capture-leads.js.map +1 -0
- package/dist/intents/composed-screen.d.ts +9 -0
- package/dist/intents/composed-screen.js +26 -0
- package/dist/intents/composed-screen.js.map +1 -0
- package/dist/intents/define.d.ts +88 -0
- package/dist/intents/define.js +11 -0
- package/dist/intents/define.js.map +1 -0
- package/dist/intents/detail-rewrites.d.ts +11 -0
- package/dist/intents/detail-rewrites.js +30 -0
- package/dist/intents/detail-rewrites.js.map +1 -0
- package/dist/intents/detail-rewrites.json +90 -0
- package/dist/intents/digital-products.d.ts +3 -0
- package/dist/intents/digital-products.js +62 -0
- package/dist/intents/digital-products.js.map +1 -0
- package/dist/intents/dine-in.d.ts +10 -0
- package/dist/intents/dine-in.js +94 -0
- package/dist/intents/dine-in.js.map +1 -0
- package/dist/intents/event-tickets.d.ts +9 -0
- package/dist/intents/event-tickets.js +71 -0
- package/dist/intents/event-tickets.js.map +1 -0
- package/dist/intents/fixed-scope.d.ts +10 -0
- package/dist/intents/fixed-scope.js +24 -0
- package/dist/intents/fixed-scope.js.map +1 -0
- package/dist/intents/food-orders.d.ts +9 -0
- package/dist/intents/food-orders.js +62 -0
- package/dist/intents/food-orders.js.map +1 -0
- package/dist/intents/index.d.ts +13 -0
- package/dist/intents/index.js +34 -0
- package/dist/intents/index.js.map +1 -0
- package/dist/intents/item-owner.d.ts +27 -0
- package/dist/intents/item-owner.js +43 -0
- package/dist/intents/item-owner.js.map +1 -0
- package/dist/intents/mount.d.ts +21 -0
- package/dist/intents/mount.js +10 -0
- package/dist/intents/mount.js.map +1 -0
- package/dist/intents/mountable.d.ts +28 -0
- package/dist/intents/mountable.js +53 -0
- package/dist/intents/mountable.js.map +1 -0
- package/dist/intents/rent-property.d.ts +3 -0
- package/dist/intents/rent-property.js +67 -0
- package/dist/intents/rent-property.js.map +1 -0
- package/dist/intents/resolve.d.ts +15 -0
- package/dist/intents/resolve.js +14 -0
- package/dist/intents/resolve.js.map +1 -0
- package/dist/intents/scope-labels.d.ts +15 -0
- package/dist/intents/scope-labels.js +30 -0
- package/dist/intents/scope-labels.js.map +1 -0
- package/dist/intents/screens/booking-list.d.ts +16 -0
- package/dist/intents/screens/booking-list.js +22 -0
- package/dist/intents/screens/booking-list.js.map +1 -0
- package/dist/intents/screens/item-create.d.ts +13 -0
- package/dist/intents/screens/item-create.js +11 -0
- package/dist/intents/screens/item-create.js.map +1 -0
- package/dist/intents/screens/item-list.d.ts +15 -0
- package/dist/intents/screens/item-list.js +10 -0
- package/dist/intents/screens/item-list.js.map +1 -0
- package/dist/intents/screens/order-list.d.ts +20 -0
- package/dist/intents/screens/order-list.js +10 -0
- package/dist/intents/screens/order-list.js.map +1 -0
- package/dist/intents/screens/session-create.d.ts +8 -0
- package/dist/intents/screens/session-create.js +11 -0
- package/dist/intents/screens/session-create.js.map +1 -0
- package/dist/intents/sell-products.d.ts +3 -0
- package/dist/intents/sell-products.js +62 -0
- package/dist/intents/sell-products.js.map +1 -0
- package/dist/intents/send-invoices.d.ts +3 -0
- package/dist/intents/send-invoices.js +56 -0
- package/dist/intents/send-invoices.js.map +1 -0
- package/dist/intents/subscriptions.d.ts +3 -0
- package/dist/intents/subscriptions.js +45 -0
- package/dist/intents/subscriptions.js.map +1 -0
- package/dist/intents/take-bookings.d.ts +3 -0
- package/dist/intents/take-bookings.js +78 -0
- package/dist/intents/take-bookings.js.map +1 -0
- package/dist/intents/validate.d.ts +9 -0
- package/dist/intents/validate.js +35 -0
- package/dist/intents/validate.js.map +1 -0
- package/dist/intents.d.ts +1 -0
- package/dist/intents.js +1 -0
- package/dist/invoice-editor/index.d.ts +2 -0
- package/dist/invoice-editor/index.js +7 -0
- package/dist/invoice-editor/index.js.map +1 -0
- package/dist/invoice-editor/invoice-branding-dialog.d.ts +28 -0
- package/dist/invoice-editor/invoice-branding-dialog.js +147 -0
- package/dist/invoice-editor/invoice-branding-dialog.js.map +1 -0
- package/dist/invoice-editor/invoice-editor-content.d.ts +29 -0
- package/dist/invoice-editor/invoice-editor-content.js +71 -0
- package/dist/invoice-editor/invoice-editor-content.js.map +1 -0
- package/dist/invoice-editor/invoice-editor-page.d.ts +28 -0
- package/dist/invoice-editor/invoice-editor-page.js +207 -0
- package/dist/invoice-editor/invoice-editor-page.js.map +1 -0
- package/dist/invoice-editor/invoice-editor.d.ts +23 -0
- package/dist/invoice-editor/invoice-editor.js +75 -0
- package/dist/invoice-editor/invoice-editor.js.map +1 -0
- package/dist/invoice-editor/invoice-preview.d.ts +35 -0
- package/dist/invoice-editor/invoice-preview.js +67 -0
- package/dist/invoice-editor/invoice-preview.js.map +1 -0
- package/dist/invoice-editor/invoice-repeat-card.d.ts +18 -0
- package/dist/invoice-editor/invoice-repeat-card.js +93 -0
- package/dist/invoice-editor/invoice-repeat-card.js.map +1 -0
- package/dist/invoice-editor/line-items-editor.d.ts +8 -0
- package/dist/invoice-editor/line-items-editor.js +265 -0
- package/dist/invoice-editor/line-items-editor.js.map +1 -0
- package/dist/invoice-editor/mobile-invoice-editor.d.ts +7 -0
- package/dist/invoice-editor/mobile-invoice-editor.js +159 -0
- package/dist/invoice-editor/mobile-invoice-editor.js.map +1 -0
- package/dist/invoice-editor/paper-fields.d.ts +53 -0
- package/dist/invoice-editor/paper-fields.js +107 -0
- package/dist/invoice-editor/paper-fields.js.map +1 -0
- package/dist/invoice-editor/paper-lines.d.ts +25 -0
- package/dist/invoice-editor/paper-lines.js +114 -0
- package/dist/invoice-editor/paper-lines.js.map +1 -0
- package/dist/invoice-editor.d.ts +1 -0
- package/dist/invoice-editor.js +1 -0
- package/dist/legal-modal.d.ts +10 -0
- package/dist/legal-modal.js +83 -0
- package/dist/legal-modal.js.map +1 -0
- package/dist/live-commerce-bridge.d.ts +11 -0
- package/dist/live-commerce-bridge.js +82 -0
- package/dist/live-commerce-bridge.js.map +1 -0
- package/dist/loyalty/redeem-points-modal.d.ts +30 -0
- package/dist/loyalty/redeem-points-modal.js +113 -0
- package/dist/loyalty/redeem-points-modal.js.map +1 -0
- package/dist/media/media-library-picker.d.ts +29 -0
- package/dist/media/media-library-picker.js +162 -0
- package/dist/media/media-library-picker.js.map +1 -0
- package/dist/media/media-picker-copy.d.ts +14 -0
- package/dist/media/media-picker-copy.js +35 -0
- package/dist/media/media-picker-copy.js.map +1 -0
- package/dist/media/media-picker-footer.d.ts +14 -0
- package/dist/media/media-picker-footer.js +29 -0
- package/dist/media/media-picker-footer.js.map +1 -0
- package/dist/media/media-picker-grid.d.ts +22 -0
- package/dist/media/media-picker-grid.js +86 -0
- package/dist/media/media-picker-grid.js.map +1 -0
- package/dist/media/media-picker-remember.d.ts +11 -0
- package/dist/media/media-picker-remember.js +34 -0
- package/dist/media/media-picker-remember.js.map +1 -0
- package/dist/media/use-picker-upload.d.ts +23 -0
- package/dist/media/use-picker-upload.js +51 -0
- package/dist/media/use-picker-upload.js.map +1 -0
- package/dist/mobile/close-early.d.ts +16 -0
- package/dist/mobile/close-early.js +74 -0
- package/dist/mobile/close-early.js.map +1 -0
- package/dist/mobile/floating-parcels.d.ts +8 -0
- package/dist/mobile/floating-parcels.js +245 -0
- package/dist/mobile/floating-parcels.js.map +1 -0
- package/dist/mobile/hand-over-phone.d.ts +22 -0
- package/dist/mobile/hand-over-phone.js +41 -0
- package/dist/mobile/hand-over-phone.js.map +1 -0
- package/dist/mobile/hub-page.d.ts +20 -0
- package/dist/mobile/hub-page.js +84 -0
- package/dist/mobile/hub-page.js.map +1 -0
- package/dist/mobile/ios-grouped-list.d.ts +23 -0
- package/dist/mobile/ios-grouped-list.js +65 -0
- package/dist/mobile/ios-grouped-list.js.map +1 -0
- package/dist/mobile/ios-link.d.ts +10 -0
- package/dist/mobile/ios-link.js +29 -0
- package/dist/mobile/ios-link.js.map +1 -0
- package/dist/mobile/ios-screen-transition.d.ts +19 -0
- package/dist/mobile/ios-screen-transition.js +55 -0
- package/dist/mobile/ios-screen-transition.js.map +1 -0
- package/dist/mobile/ios-sheet.d.ts +22 -0
- package/dist/mobile/ios-sheet.js +58 -0
- package/dist/mobile/ios-sheet.js.map +1 -0
- package/dist/mobile/mobile-activity-feed.d.ts +7 -0
- package/dist/mobile/mobile-activity-feed.js +115 -0
- package/dist/mobile/mobile-activity-feed.js.map +1 -0
- package/dist/mobile/mobile-detail-header.d.ts +20 -0
- package/dist/mobile/mobile-detail-header.js +13 -0
- package/dist/mobile/mobile-detail-header.js.map +1 -0
- package/dist/mobile/mobile-editor-menu-context.d.ts +14 -0
- package/dist/mobile/mobile-editor-menu-context.js +38 -0
- package/dist/mobile/mobile-editor-menu-context.js.map +1 -0
- package/dist/mobile/mobile-global-ui-context.d.ts +12 -0
- package/dist/mobile/mobile-global-ui-context.js +55 -0
- package/dist/mobile/mobile-global-ui-context.js.map +1 -0
- package/dist/mobile/mobile-header-context.d.ts +54 -0
- package/dist/mobile/mobile-header-context.js +59 -0
- package/dist/mobile/mobile-header-context.js.map +1 -0
- package/dist/mobile/mobile-header.d.ts +14 -0
- package/dist/mobile/mobile-header.js +98 -0
- package/dist/mobile/mobile-header.js.map +1 -0
- package/dist/mobile/mobile-media-picker-sheet.d.ts +13 -0
- package/dist/mobile/mobile-media-picker-sheet.js +471 -0
- package/dist/mobile/mobile-media-picker-sheet.js.map +1 -0
- package/dist/mobile/mobile-nav-bar.d.ts +16 -0
- package/dist/mobile/mobile-nav-bar.js +50 -0
- package/dist/mobile/mobile-nav-bar.js.map +1 -0
- package/dist/mobile/mobile-page-header.d.ts +20 -0
- package/dist/mobile/mobile-page-header.js +30 -0
- package/dist/mobile/mobile-page-header.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron-2.d.ts +15 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron-2.js +446 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron-3.d.ts +18 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron-3.js +434 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron-3.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron.js +348 -0
- package/dist/mobile/mobile-redesign-mockups/appearance-run-the-storefron.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/apple-white-theme-preview-sc.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/apple-white-theme-preview-sc.js +446 -0
- package/dist/mobile/mobile-redesign-mockups/apple-white-theme-preview-sc.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/billing-hub-2.d.ts +36 -0
- package/dist/mobile/mobile-redesign-mockups/billing-hub-2.js +309 -0
- package/dist/mobile/mobile-redesign-mockups/billing-hub-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/billing-hub.d.ts +45 -0
- package/dist/mobile/mobile-redesign-mockups/billing-hub.js +486 -0
- package/dist/mobile/mobile-redesign-mockups/billing-hub.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/blog-list.d.ts +17 -0
- package/dist/mobile/mobile-redesign-mockups/blog-list.js +380 -0
- package/dist/mobile/mobile-redesign-mockups/blog-list.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/cancel-booking-sheet.d.ts +11 -0
- package/dist/mobile/mobile-redesign-mockups/cancel-booking-sheet.js +475 -0
- package/dist/mobile/mobile-redesign-mockups/cancel-booking-sheet.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/catalog-browse-and-detail.d.ts +2 -0
- package/dist/mobile/mobile-redesign-mockups/catalog-browse-and-detail.js +115 -0
- package/dist/mobile/mobile-redesign-mockups/catalog-browse-and-detail.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/catalog-single-intent.d.ts +29 -0
- package/dist/mobile/mobile-redesign-mockups/catalog-single-intent.js +321 -0
- package/dist/mobile/mobile-redesign-mockups/catalog-single-intent.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/compose-sheet-universal-acti.d.ts +22 -0
- package/dist/mobile/mobile-redesign-mockups/compose-sheet-universal-acti.js +273 -0
- package/dist/mobile/mobile-redesign-mockups/compose-sheet-universal-acti.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/configure-domain-wizard-2.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/configure-domain-wizard-2.js +365 -0
- package/dist/mobile/mobile-redesign-mockups/configure-domain-wizard-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/configure-domain-wizard.d.ts +9 -0
- package/dist/mobile/mobile-redesign-mockups/configure-domain-wizard.js +272 -0
- package/dist/mobile/mobile-redesign-mockups/configure-domain-wizard.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/configure-tax-rates.d.ts +9 -0
- package/dist/mobile/mobile-redesign-mockups/configure-tax-rates.js +188 -0
- package/dist/mobile/mobile-redesign-mockups/configure-tax-rates.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/crm-customer-profile-full.d.ts +15 -0
- package/dist/mobile/mobile-redesign-mockups/crm-customer-profile-full.js +383 -0
- package/dist/mobile/mobile-redesign-mockups/crm-customer-profile-full.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/crm-customer-timeline-tab.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/crm-customer-timeline-tab.js +331 -0
- package/dist/mobile/mobile-redesign-mockups/crm-customer-timeline-tab.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/crm-send-message-sheet.d.ts +17 -0
- package/dist/mobile/mobile-redesign-mockups/crm-send-message-sheet.js +456 -0
- package/dist/mobile/mobile-redesign-mockups/crm-send-message-sheet.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/detail-order.d.ts +15 -0
- package/dist/mobile/mobile-redesign-mockups/detail-order.js +447 -0
- package/dist/mobile/mobile-redesign-mockups/detail-order.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/discounts-list.d.ts +17 -0
- package/dist/mobile/mobile-redesign-mockups/discounts-list.js +316 -0
- package/dist/mobile/mobile-redesign-mockups/discounts-list.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/drill-chrome-sub-app-header-.d.ts +31 -0
- package/dist/mobile/mobile-redesign-mockups/drill-chrome-sub-app-header-.js +273 -0
- package/dist/mobile/mobile-redesign-mockups/drill-chrome-sub-app-header-.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/editor-blog-long-form.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/editor-blog-long-form.js +260 -0
- package/dist/mobile/mobile-redesign-mockups/editor-blog-long-form.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec-2.d.ts +16 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec-2.js +410 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec-3.d.ts +16 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec-3.js +297 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec-3.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec.d.ts +27 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec.js +313 -0
- package/dist/mobile/mobile-redesign-mockups/events-detail-attendees-chec.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/global-search.d.ts +18 -0
- package/dist/mobile/mobile-redesign-mockups/global-search.js +300 -0
- package/dist/mobile/mobile-redesign-mockups/global-search.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/index.d.ts +13 -0
- package/dist/mobile/mobile-redesign-mockups/index.js +26 -0
- package/dist/mobile/mobile-redesign-mockups/index.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/insights-sales-drill.d.ts +17 -0
- package/dist/mobile/mobile-redesign-mockups/insights-sales-drill.js +286 -0
- package/dist/mobile/mobile-redesign-mockups/insights-sales-drill.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-earn-rule-editor.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-earn-rule-editor.js +339 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-earn-rule-editor.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-first-class-on-the-pho.d.ts +2 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-first-class-on-the-pho.js +433 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-first-class-on-the-pho.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-member-detail.d.ts +9 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-member-detail.js +238 -0
- package/dist/mobile/mobile-redesign-mockups/loyalty-member-detail.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/manage-multi-intent-sell-boo.d.ts +24 -0
- package/dist/mobile/mobile-redesign-mockups/manage-multi-intent-sell-boo.js +357 -0
- package/dist/mobile/mobile-redesign-mockups/manage-multi-intent-sell-boo.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/marketing-hub.d.ts +15 -0
- package/dist/mobile/mobile-redesign-mockups/marketing-hub.js +268 -0
- package/dist/mobile/mobile-redesign-mockups/marketing-hub.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/matte-charcoal-apple-white.d.ts +2 -0
- package/dist/mobile/mobile-redesign-mockups/matte-charcoal-apple-white.js +452 -0
- package/dist/mobile/mobile-redesign-mockups/matte-charcoal-apple-white.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/media-library.d.ts +14 -0
- package/dist/mobile/mobile-redesign-mockups/media-library.js +86 -0
- package/dist/mobile/mobile-redesign-mockups/media-library.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/money-payout-detail.d.ts +22 -0
- package/dist/mobile/mobile-redesign-mockups/money-payout-detail.js +367 -0
- package/dist/mobile/mobile-redesign-mockups/money-payout-detail.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/pill-presets-tailwind-utilit.d.ts +46 -0
- package/dist/mobile/mobile-redesign-mockups/pill-presets-tailwind-utilit.js +226 -0
- package/dist/mobile/mobile-redesign-mockups/pill-presets-tailwind-utilit.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-2.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-2.js +418 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-3.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-3.js +438 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-3.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-4.d.ts +9 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-4.js +315 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-4.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-5.d.ts +10 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-5.js +429 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou-5.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou.d.ts +9 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou.js +266 -0
- package/dist/mobile/mobile-redesign-mockups/plan-calendar-schedule-resou.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/products-list-detail-2.d.ts +17 -0
- package/dist/mobile/mobile-redesign-mockups/products-list-detail-2.js +390 -0
- package/dist/mobile/mobile-redesign-mockups/products-list-detail-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/products-list-detail.d.ts +22 -0
- package/dist/mobile/mobile-redesign-mockups/products-list-detail.js +254 -0
- package/dist/mobile/mobile-redesign-mockups/products-list-detail.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/recover-sheets-shared-chrome.d.ts +34 -0
- package/dist/mobile/mobile-redesign-mockups/recover-sheets-shared-chrome.js +264 -0
- package/dist/mobile/mobile-redesign-mockups/recover-sheets-shared-chrome.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/staff-member-profile.d.ts +9 -0
- package/dist/mobile/mobile-redesign-mockups/staff-member-profile.js +291 -0
- package/dist/mobile/mobile-redesign-mockups/staff-member-profile.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/today-first-run-empty-state.d.ts +16 -0
- package/dist/mobile/mobile-redesign-mockups/today-first-run-empty-state.js +335 -0
- package/dist/mobile/mobile-redesign-mockups/today-first-run-empty-state.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/today-multi-intent.d.ts +21 -0
- package/dist/mobile/mobile-redesign-mockups/today-multi-intent.js +382 -0
- package/dist/mobile/mobile-redesign-mockups/today-multi-intent.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/today-per-intent-variants.d.ts +21 -0
- package/dist/mobile/mobile-redesign-mockups/today-per-intent-variants.js +429 -0
- package/dist/mobile/mobile-redesign-mockups/today-per-intent-variants.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/today-single-intent.d.ts +27 -0
- package/dist/mobile/mobile-redesign-mockups/today-single-intent.js +236 -0
- package/dist/mobile/mobile-redesign-mockups/today-single-intent.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-1-me-empty-events-pe.d.ts +15 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-1-me-empty-events-pe.js +424 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-1-me-empty-events-pe.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-2-inbox-search-produ-2.d.ts +23 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-2-inbox-search-produ-2.js +318 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-2-inbox-search-produ-2.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-2-inbox-search-produ.d.ts +31 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-2-inbox-search-produ.js +457 -0
- package/dist/mobile/mobile-redesign-mockups/tranche-2-inbox-search-produ.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups/wizard-payments.d.ts +29 -0
- package/dist/mobile/mobile-redesign-mockups/wizard-payments.js +287 -0
- package/dist/mobile/mobile-redesign-mockups/wizard-payments.js.map +1 -0
- package/dist/mobile/mobile-redesign-mockups.d.ts +1 -0
- package/dist/mobile/mobile-redesign-mockups.js +1 -0
- package/dist/mobile/mobile-redesign-theme.d.ts +1 -0
- package/dist/mobile/mobile-redesign-theme.js +2 -0
- package/dist/mobile/mobile-redesign-theme.js.map +1 -0
- package/dist/mobile/mobile-screen-frame.d.ts +11 -0
- package/dist/mobile/mobile-screen-frame.js +165 -0
- package/dist/mobile/mobile-screen-frame.js.map +1 -0
- package/dist/mobile/mobile-screen-header.d.ts +9 -0
- package/dist/mobile/mobile-screen-header.js +9 -0
- package/dist/mobile/mobile-screen-header.js.map +1 -0
- package/dist/mobile/mobile-shell.d.ts +12 -0
- package/dist/mobile/mobile-shell.js +11 -0
- package/dist/mobile/mobile-shell.js.map +1 -0
- package/dist/mobile/mobile-theme-provider.d.ts +32 -0
- package/dist/mobile/mobile-theme-provider.js +123 -0
- package/dist/mobile/mobile-theme-provider.js.map +1 -0
- package/dist/mobile/nav-group.d.ts +23 -0
- package/dist/mobile/nav-group.js +41 -0
- package/dist/mobile/nav-group.js.map +1 -0
- package/dist/mobile/primitives/bottom-sheet.d.ts +34 -0
- package/dist/mobile/primitives/bottom-sheet.js +126 -0
- package/dist/mobile/primitives/bottom-sheet.js.map +1 -0
- package/dist/mobile/primitives/bottom-tab-bar.d.ts +15 -0
- package/dist/mobile/primitives/bottom-tab-bar.js +461 -0
- package/dist/mobile/primitives/bottom-tab-bar.js.map +1 -0
- package/dist/mobile/primitives/chrome.d.ts +24 -0
- package/dist/mobile/primitives/chrome.js +115 -0
- package/dist/mobile/primitives/chrome.js.map +1 -0
- package/dist/mobile/primitives/domain.d.ts +83 -0
- package/dist/mobile/primitives/domain.js +571 -0
- package/dist/mobile/primitives/domain.js.map +1 -0
- package/dist/mobile/primitives/index.d.ts +28 -0
- package/dist/mobile/primitives/index.js +120 -0
- package/dist/mobile/primitives/index.js.map +1 -0
- package/dist/mobile/primitives/inline.d.ts +91 -0
- package/dist/mobile/primitives/inline.js +348 -0
- package/dist/mobile/primitives/inline.js.map +1 -0
- package/dist/mobile/primitives/inputs.d.ts +82 -0
- package/dist/mobile/primitives/inputs.js +292 -0
- package/dist/mobile/primitives/inputs.js.map +1 -0
- package/dist/mobile/primitives/intent-switcher.d.ts +27 -0
- package/dist/mobile/primitives/intent-switcher.js +74 -0
- package/dist/mobile/primitives/intent-switcher.js.map +1 -0
- package/dist/mobile/primitives/layout.d.ts +33 -0
- package/dist/mobile/primitives/layout.js +157 -0
- package/dist/mobile/primitives/layout.js.map +1 -0
- package/dist/mobile/primitives/progressive-list.d.ts +26 -0
- package/dist/mobile/primitives/progressive-list.js +50 -0
- package/dist/mobile/primitives/progressive-list.js.map +1 -0
- package/dist/mobile/primitives/screen-frame.d.ts +50 -0
- package/dist/mobile/primitives/screen-frame.js +164 -0
- package/dist/mobile/primitives/screen-frame.js.map +1 -0
- package/dist/mobile/primitives/status-chip.d.ts +42 -0
- package/dist/mobile/primitives/status-chip.js +78 -0
- package/dist/mobile/primitives/status-chip.js.map +1 -0
- package/dist/mobile/primitives/sticky-cta-bar.d.ts +44 -0
- package/dist/mobile/primitives/sticky-cta-bar.js +40 -0
- package/dist/mobile/primitives/sticky-cta-bar.js.map +1 -0
- package/dist/mobile/primitives/swipe-row.d.ts +29 -0
- package/dist/mobile/primitives/swipe-row.js +66 -0
- package/dist/mobile/primitives/swipe-row.js.map +1 -0
- package/dist/mobile/primitives/use-mobile-back.d.ts +21 -0
- package/dist/mobile/primitives/use-mobile-back.js +17 -0
- package/dist/mobile/primitives/use-mobile-back.js.map +1 -0
- package/dist/mobile/primitives.d.ts +1 -0
- package/dist/mobile/primitives.js +1 -0
- package/dist/mobile/pull-to-refresh-context.d.ts +15 -0
- package/dist/mobile/pull-to-refresh-context.js +134 -0
- package/dist/mobile/pull-to-refresh-context.js.map +1 -0
- package/dist/mobile/pull-to-refresh-indicator.d.ts +12 -0
- package/dist/mobile/pull-to-refresh-indicator.js +35 -0
- package/dist/mobile/pull-to-refresh-indicator.js.map +1 -0
- package/dist/mobile/quick-actions-sheet.d.ts +12 -0
- package/dist/mobile/quick-actions-sheet.js +92 -0
- package/dist/mobile/quick-actions-sheet.js.map +1 -0
- package/dist/mobile/quick-add-item.d.ts +23 -0
- package/dist/mobile/quick-add-item.js +110 -0
- package/dist/mobile/quick-add-item.js.map +1 -0
- package/dist/mobile/screen-frame-host.d.ts +67 -0
- package/dist/mobile/screen-frame-host.js +431 -0
- package/dist/mobile/screen-frame-host.js.map +1 -0
- package/dist/mobile/screens/analytics-drill.d.ts +48 -0
- package/dist/mobile/screens/analytics-drill.js +319 -0
- package/dist/mobile/screens/analytics-drill.js.map +1 -0
- package/dist/mobile/screens/attendees-list.d.ts +27 -0
- package/dist/mobile/screens/attendees-list.js +243 -0
- package/dist/mobile/screens/attendees-list.js.map +1 -0
- package/dist/mobile/screens/billing-flows.d.ts +91 -0
- package/dist/mobile/screens/billing-flows.js +1934 -0
- package/dist/mobile/screens/billing-flows.js.map +1 -0
- package/dist/mobile/screens/billing.d.ts +32 -0
- package/dist/mobile/screens/billing.js +355 -0
- package/dist/mobile/screens/billing.js.map +1 -0
- package/dist/mobile/screens/blog-editor.d.ts +30 -0
- package/dist/mobile/screens/blog-editor.js +462 -0
- package/dist/mobile/screens/blog-editor.js.map +1 -0
- package/dist/mobile/screens/booking-detail.d.ts +49 -0
- package/dist/mobile/screens/booking-detail.js +446 -0
- package/dist/mobile/screens/booking-detail.js.map +1 -0
- package/dist/mobile/screens/calendar.d.ts +23 -0
- package/dist/mobile/screens/calendar.js +696 -0
- package/dist/mobile/screens/calendar.js.map +1 -0
- package/dist/mobile/screens/campaigns.d.ts +13 -0
- package/dist/mobile/screens/campaigns.js +335 -0
- package/dist/mobile/screens/campaigns.js.map +1 -0
- package/dist/mobile/screens/catalog-rows.d.ts +37 -0
- package/dist/mobile/screens/catalog-rows.js +366 -0
- package/dist/mobile/screens/catalog-rows.js.map +1 -0
- package/dist/mobile/screens/catalog.d.ts +67 -0
- package/dist/mobile/screens/catalog.js +597 -0
- package/dist/mobile/screens/catalog.js.map +1 -0
- package/dist/mobile/screens/check-in.d.ts +43 -0
- package/dist/mobile/screens/check-in.js +438 -0
- package/dist/mobile/screens/check-in.js.map +1 -0
- package/dist/mobile/screens/customer-detail.d.ts +38 -0
- package/dist/mobile/screens/customer-detail.js +1046 -0
- package/dist/mobile/screens/customer-detail.js.map +1 -0
- package/dist/mobile/screens/customers.d.ts +28 -0
- package/dist/mobile/screens/customers.js +284 -0
- package/dist/mobile/screens/customers.js.map +1 -0
- package/dist/mobile/screens/domains.d.ts +23 -0
- package/dist/mobile/screens/domains.js +146 -0
- package/dist/mobile/screens/domains.js.map +1 -0
- package/dist/mobile/screens/event-detail.d.ts +38 -0
- package/dist/mobile/screens/event-detail.js +652 -0
- package/dist/mobile/screens/event-detail.js.map +1 -0
- package/dist/mobile/screens/global-search.d.ts +27 -0
- package/dist/mobile/screens/global-search.js +276 -0
- package/dist/mobile/screens/global-search.js.map +1 -0
- package/dist/mobile/screens/insights.d.ts +24 -0
- package/dist/mobile/screens/insights.js +419 -0
- package/dist/mobile/screens/insights.js.map +1 -0
- package/dist/mobile/screens/manage-rows.d.ts +29 -0
- package/dist/mobile/screens/manage-rows.js +229 -0
- package/dist/mobile/screens/manage-rows.js.map +1 -0
- package/dist/mobile/screens/manage.d.ts +141 -0
- package/dist/mobile/screens/manage.js +524 -0
- package/dist/mobile/screens/manage.js.map +1 -0
- package/dist/mobile/screens/me.d.ts +20 -0
- package/dist/mobile/screens/me.js +363 -0
- package/dist/mobile/screens/me.js.map +1 -0
- package/dist/mobile/screens/money.d.ts +29 -0
- package/dist/mobile/screens/money.js +298 -0
- package/dist/mobile/screens/money.js.map +1 -0
- package/dist/mobile/screens/order-detail-parts.d.ts +43 -0
- package/dist/mobile/screens/order-detail-parts.js +379 -0
- package/dist/mobile/screens/order-detail-parts.js.map +1 -0
- package/dist/mobile/screens/order-detail.d.ts +52 -0
- package/dist/mobile/screens/order-detail.js +421 -0
- package/dist/mobile/screens/order-detail.js.map +1 -0
- package/dist/mobile/screens/payments.d.ts +61 -0
- package/dist/mobile/screens/payments.js +719 -0
- package/dist/mobile/screens/payments.js.map +1 -0
- package/dist/mobile/screens/product-detail-options.d.ts +11 -0
- package/dist/mobile/screens/product-detail-options.js +177 -0
- package/dist/mobile/screens/product-detail-options.js.map +1 -0
- package/dist/mobile/screens/product-detail-panels.d.ts +10 -0
- package/dist/mobile/screens/product-detail-panels.js +567 -0
- package/dist/mobile/screens/product-detail-panels.js.map +1 -0
- package/dist/mobile/screens/product-detail-types.d.ts +23 -0
- package/dist/mobile/screens/product-detail-types.js +1 -0
- package/dist/mobile/screens/product-detail-types.js.map +1 -0
- package/dist/mobile/screens/product-detail.d.ts +20 -0
- package/dist/mobile/screens/product-detail.js +171 -0
- package/dist/mobile/screens/product-detail.js.map +1 -0
- package/dist/mobile/screens/segments.d.ts +26 -0
- package/dist/mobile/screens/segments.js +240 -0
- package/dist/mobile/screens/segments.js.map +1 -0
- package/dist/mobile/screens/store.d.ts +34 -0
- package/dist/mobile/screens/store.js +326 -0
- package/dist/mobile/screens/store.js.map +1 -0
- package/dist/mobile/screens/subscriptions.d.ts +31 -0
- package/dist/mobile/screens/subscriptions.js +242 -0
- package/dist/mobile/screens/subscriptions.js.map +1 -0
- package/dist/mobile/screens/today-digital.d.ts +37 -0
- package/dist/mobile/screens/today-digital.js +320 -0
- package/dist/mobile/screens/today-digital.js.map +1 -0
- package/dist/mobile/screens/today-property.d.ts +36 -0
- package/dist/mobile/screens/today-property.js +338 -0
- package/dist/mobile/screens/today-property.js.map +1 -0
- package/dist/mobile/screens/today-subscriptions.d.ts +39 -0
- package/dist/mobile/screens/today-subscriptions.js +326 -0
- package/dist/mobile/screens/today-subscriptions.js.map +1 -0
- package/dist/mobile/screens/today.d.ts +42 -0
- package/dist/mobile/screens/today.js +743 -0
- package/dist/mobile/screens/today.js.map +1 -0
- package/dist/mobile/setup-progress-card.d.ts +7 -0
- package/dist/mobile/setup-progress-card.js +95 -0
- package/dist/mobile/setup-progress-card.js.map +1 -0
- package/dist/mobile/shell-chrome.d.ts +4 -0
- package/dist/mobile/shell-chrome.js +145 -0
- package/dist/mobile/shell-chrome.js.map +1 -0
- package/dist/mobile/site-action-dialog.d.ts +8 -0
- package/dist/mobile/site-action-dialog.js +74 -0
- package/dist/mobile/site-action-dialog.js.map +1 -0
- package/dist/mobile/workspace-switcher-sheet.d.ts +15 -0
- package/dist/mobile/workspace-switcher-sheet.js +249 -0
- package/dist/mobile/workspace-switcher-sheet.js.map +1 -0
- package/dist/motion/index.d.ts +1 -0
- package/dist/motion/index.js +9 -0
- package/dist/motion/index.js.map +1 -0
- package/dist/motion/primitives.d.ts +32 -0
- package/dist/motion/primitives.js +102 -0
- package/dist/motion/primitives.js.map +1 -0
- package/dist/motion.d.ts +1 -0
- package/dist/motion.js +1 -0
- package/dist/my-access-card.d.ts +17 -0
- package/dist/my-access-card.js +38 -0
- package/dist/my-access-card.js.map +1 -0
- package/dist/notification-drawer.d.ts +16 -0
- package/dist/notification-drawer.js +301 -0
- package/dist/notification-drawer.js.map +1 -0
- package/dist/notifications-dropdown.d.ts +6 -0
- package/dist/notifications-dropdown.js +169 -0
- package/dist/notifications-dropdown.js.map +1 -0
- package/dist/order-editor/order-editor.d.ts +16 -0
- package/dist/order-editor/order-editor.js +378 -0
- package/dist/order-editor/order-editor.js.map +1 -0
- package/dist/page-builder/constants.d.ts +4 -0
- package/dist/page-builder/constants.js +93 -0
- package/dist/page-builder/constants.js.map +1 -0
- package/dist/page-builder/cta-target-picker.d.ts +34 -0
- package/dist/page-builder/cta-target-picker.js +142 -0
- package/dist/page-builder/cta-target-picker.js.map +1 -0
- package/dist/page-builder/field-renderer.d.ts +27 -0
- package/dist/page-builder/field-renderer.js +404 -0
- package/dist/page-builder/field-renderer.js.map +1 -0
- package/dist/permission-change-notice.d.ts +14 -0
- package/dist/permission-change-notice.js +36 -0
- package/dist/permission-change-notice.js.map +1 -0
- package/dist/plan-editor/helpers.d.ts +52 -0
- package/dist/plan-editor/helpers.js +73 -0
- package/dist/plan-editor/helpers.js.map +1 -0
- package/dist/plan-editor/index.d.ts +1 -0
- package/dist/plan-editor/index.js +5 -0
- package/dist/plan-editor/index.js.map +1 -0
- package/dist/plan-editor/plan-editor-page.d.ts +5 -0
- package/dist/plan-editor/plan-editor-page.js +142 -0
- package/dist/plan-editor/plan-editor-page.js.map +1 -0
- package/dist/plan-editor/sections/badges-section.d.ts +7 -0
- package/dist/plan-editor/sections/badges-section.js +57 -0
- package/dist/plan-editor/sections/badges-section.js.map +1 -0
- package/dist/plan-editor/sections/basics-section.d.ts +2 -0
- package/dist/plan-editor/sections/basics-section.js +30 -0
- package/dist/plan-editor/sections/basics-section.js.map +1 -0
- package/dist/plan-editor/sections/eligible-items-section.d.ts +6 -0
- package/dist/plan-editor/sections/eligible-items-section.js +164 -0
- package/dist/plan-editor/sections/eligible-items-section.js.map +1 -0
- package/dist/plan-editor/sections/index.d.ts +9 -0
- package/dist/plan-editor/sections/index.js +21 -0
- package/dist/plan-editor/sections/index.js.map +1 -0
- package/dist/plan-editor/sections/member-benefits-section.d.ts +2 -0
- package/dist/plan-editor/sections/member-benefits-section.js +156 -0
- package/dist/plan-editor/sections/member-benefits-section.js.map +1 -0
- package/dist/plan-editor/sections/plan-preview.d.ts +26 -0
- package/dist/plan-editor/sections/plan-preview.js +61 -0
- package/dist/plan-editor/sections/plan-preview.js.map +1 -0
- package/dist/plan-editor/sections/pricing-model-section.d.ts +16 -0
- package/dist/plan-editor/sections/pricing-model-section.js +44 -0
- package/dist/plan-editor/sections/pricing-model-section.js.map +1 -0
- package/dist/plan-editor/sections/pricing-section.d.ts +2 -0
- package/dist/plan-editor/sections/pricing-section.js +110 -0
- package/dist/plan-editor/sections/pricing-section.js.map +1 -0
- package/dist/plan-editor/sections/sibling-group-section.d.ts +14 -0
- package/dist/plan-editor/sections/sibling-group-section.js +107 -0
- package/dist/plan-editor/sections/sibling-group-section.js.map +1 -0
- package/dist/plan-editor/sections/trial-features-section.d.ts +2 -0
- package/dist/plan-editor/sections/trial-features-section.js +95 -0
- package/dist/plan-editor/sections/trial-features-section.js.map +1 -0
- package/dist/plan-editor/sections.d.ts +1 -0
- package/dist/plan-editor/sections.js +1 -0
- package/dist/plan-editor/types.d.ts +7 -0
- package/dist/plan-editor/types.js +1 -0
- package/dist/plan-editor/types.js.map +1 -0
- package/dist/plan-editor/use-plan-form.d.ts +20 -0
- package/dist/plan-editor/use-plan-form.js +184 -0
- package/dist/plan-editor/use-plan-form.js.map +1 -0
- package/dist/plan-editor/use-plan-groups.d.ts +19 -0
- package/dist/plan-editor/use-plan-groups.js +40 -0
- package/dist/plan-editor/use-plan-groups.js.map +1 -0
- package/dist/plan-editor/use-plan-products.d.ts +17 -0
- package/dist/plan-editor/use-plan-products.js +49 -0
- package/dist/plan-editor/use-plan-products.js.map +1 -0
- package/dist/plan-editor.d.ts +1 -0
- package/dist/plan-editor.js +1 -0
- package/dist/potter/index.d.ts +11 -0
- package/dist/potter/index.js +7 -0
- package/dist/potter/index.js.map +1 -0
- package/dist/potter/potter-answer.d.ts +96 -0
- package/dist/potter/potter-answer.js +64 -0
- package/dist/potter/potter-answer.js.map +1 -0
- package/dist/potter/potter-attach.d.ts +107 -0
- package/dist/potter/potter-attach.js +99 -0
- package/dist/potter/potter-attach.js.map +1 -0
- package/dist/potter/potter-attachment-chip.d.ts +35 -0
- package/dist/potter/potter-attachment-chip.js +134 -0
- package/dist/potter/potter-attachment-chip.js.map +1 -0
- package/dist/potter/potter-block-breakdown.d.ts +34 -0
- package/dist/potter/potter-block-breakdown.js +65 -0
- package/dist/potter/potter-block-breakdown.js.map +1 -0
- package/dist/potter/potter-block-door.d.ts +52 -0
- package/dist/potter/potter-block-door.js +56 -0
- package/dist/potter/potter-block-door.js.map +1 -0
- package/dist/potter/potter-block-draft.d.ts +61 -0
- package/dist/potter/potter-block-draft.js +219 -0
- package/dist/potter/potter-block-draft.js.map +1 -0
- package/dist/potter/potter-blocks.d.ts +139 -0
- package/dist/potter/potter-blocks.js +73 -0
- package/dist/potter/potter-blocks.js.map +1 -0
- package/dist/potter/potter-boot.d.ts +31 -0
- package/dist/potter/potter-boot.js +71 -0
- package/dist/potter/potter-boot.js.map +1 -0
- package/dist/potter/potter-chrome.d.ts +63 -0
- package/dist/potter/potter-chrome.js +36 -0
- package/dist/potter/potter-chrome.js.map +1 -0
- package/dist/potter/potter-composer.d.ts +117 -0
- package/dist/potter/potter-composer.js +252 -0
- package/dist/potter/potter-composer.js.map +1 -0
- package/dist/potter/potter-context.d.ts +162 -0
- package/dist/potter/potter-context.js +239 -0
- package/dist/potter/potter-context.js.map +1 -0
- package/dist/potter/potter-conversation.d.ts +81 -0
- package/dist/potter/potter-conversation.js +237 -0
- package/dist/potter/potter-conversation.js.map +1 -0
- package/dist/potter/potter-data.d.ts +62 -0
- package/dist/potter/potter-data.js +63 -0
- package/dist/potter/potter-data.js.map +1 -0
- package/dist/potter/potter-history.d.ts +51 -0
- package/dist/potter/potter-history.js +98 -0
- package/dist/potter/potter-history.js.map +1 -0
- package/dist/potter/potter-image-grid.d.ts +41 -0
- package/dist/potter/potter-image-grid.js +54 -0
- package/dist/potter/potter-image-grid.js.map +1 -0
- package/dist/potter/potter-intro.d.ts +51 -0
- package/dist/potter/potter-intro.js +68 -0
- package/dist/potter/potter-intro.js.map +1 -0
- package/dist/potter/potter-launcher.d.ts +20 -0
- package/dist/potter/potter-launcher.js +147 -0
- package/dist/potter/potter-launcher.js.map +1 -0
- package/dist/potter/potter-photo-keep.d.ts +19 -0
- package/dist/potter/potter-photo-keep.js +49 -0
- package/dist/potter/potter-photo-keep.js.map +1 -0
- package/dist/potter/potter-queue.d.ts +41 -0
- package/dist/potter/potter-queue.js +98 -0
- package/dist/potter/potter-queue.js.map +1 -0
- package/dist/potter/potter-screen.d.ts +1 -0
- package/dist/potter/potter-screen.js +194 -0
- package/dist/potter/potter-screen.js.map +1 -0
- package/dist/potter/potter-sheet-chip.d.ts +30 -0
- package/dist/potter/potter-sheet-chip.js +63 -0
- package/dist/potter/potter-sheet-chip.js.map +1 -0
- package/dist/potter/potter-steps.d.ts +3 -0
- package/dist/potter/potter-steps.js +98 -0
- package/dist/potter/potter-steps.js.map +1 -0
- package/dist/potter/potter-surface.d.ts +77 -0
- package/dist/potter/potter-surface.js +110 -0
- package/dist/potter/potter-surface.js.map +1 -0
- package/dist/potter/potter-thread.d.ts +27 -0
- package/dist/potter/potter-thread.js +247 -0
- package/dist/potter/potter-thread.js.map +1 -0
- package/dist/potter/potter-tools.d.ts +71 -0
- package/dist/potter/potter-tools.js +184 -0
- package/dist/potter/potter-tools.js.map +1 -0
- package/dist/potter/potter-turn-actions.d.ts +4 -0
- package/dist/potter/potter-turn-actions.js +137 -0
- package/dist/potter/potter-turn-actions.js.map +1 -0
- package/dist/potter/use-potter-ask.d.ts +59 -0
- package/dist/potter/use-potter-ask.js +231 -0
- package/dist/potter/use-potter-ask.js.map +1 -0
- package/dist/potter/use-potter-turn.d.ts +17 -0
- package/dist/potter/use-potter-turn.js +165 -0
- package/dist/potter/use-potter-turn.js.map +1 -0
- package/dist/potter.d.ts +1 -0
- package/dist/potter.js +1 -0
- package/dist/preview-layout/index.d.ts +2 -0
- package/dist/preview-layout/index.js +5 -0
- package/dist/preview-layout/index.js.map +1 -0
- package/dist/preview-layout/preview-layout.d.ts +27 -0
- package/dist/preview-layout/preview-layout.js +180 -0
- package/dist/preview-layout/preview-layout.js.map +1 -0
- package/dist/preview-layout.d.ts +1 -0
- package/dist/preview-layout.js +1 -0
- package/dist/product-editor/camera/apply-product-scan.d.ts +17 -0
- package/dist/product-editor/camera/apply-product-scan.js +17 -0
- package/dist/product-editor/camera/apply-product-scan.js.map +1 -0
- package/dist/product-editor/camera/camera-capture.d.ts +23 -0
- package/dist/product-editor/camera/camera-capture.js +160 -0
- package/dist/product-editor/camera/camera-capture.js.map +1 -0
- package/dist/product-editor/camera/camera-start.d.ts +13 -0
- package/dist/product-editor/camera/camera-start.js +74 -0
- package/dist/product-editor/camera/camera-start.js.map +1 -0
- package/dist/product-editor/camera/choose-photos.d.ts +13 -0
- package/dist/product-editor/camera/choose-photos.js +44 -0
- package/dist/product-editor/camera/choose-photos.js.map +1 -0
- package/dist/product-editor/camera/product-camera.d.ts +14 -0
- package/dist/product-editor/camera/product-camera.js +21 -0
- package/dist/product-editor/camera/product-camera.js.map +1 -0
- package/dist/product-editor/camera/product-qr.d.ts +60 -0
- package/dist/product-editor/camera/product-qr.js +111 -0
- package/dist/product-editor/camera/product-qr.js.map +1 -0
- package/dist/product-editor/camera/qr-decoder.d.ts +10 -0
- package/dist/product-editor/camera/qr-decoder.js +46 -0
- package/dist/product-editor/camera/qr-decoder.js.map +1 -0
- package/dist/product-editor/camera/use-camera.d.ts +10 -0
- package/dist/product-editor/camera/use-camera.js +66 -0
- package/dist/product-editor/camera/use-camera.js.map +1 -0
- package/dist/product-editor/camera/use-product-scan.d.ts +8 -0
- package/dist/product-editor/camera/use-product-scan.js +30 -0
- package/dist/product-editor/camera/use-product-scan.js.map +1 -0
- package/dist/product-editor/camera/use-qr-scan.d.ts +5 -0
- package/dist/product-editor/camera/use-qr-scan.js +42 -0
- package/dist/product-editor/camera/use-qr-scan.js.map +1 -0
- package/dist/product-editor/floating-save-bar.d.ts +1 -0
- package/dist/product-editor/floating-save-bar.js +5 -0
- package/dist/product-editor/floating-save-bar.js.map +1 -0
- package/dist/product-editor/index.d.ts +2 -0
- package/dist/product-editor/index.js +7 -0
- package/dist/product-editor/index.js.map +1 -0
- package/dist/product-editor/mobile-category-picker.d.ts +20 -0
- package/dist/product-editor/mobile-category-picker.js +136 -0
- package/dist/product-editor/mobile-category-picker.js.map +1 -0
- package/dist/product-editor/mobile-editor-section.d.ts +1 -0
- package/dist/product-editor/mobile-editor-section.js +5 -0
- package/dist/product-editor/mobile-editor-section.js.map +1 -0
- package/dist/product-editor/mobile-hero-editor.d.ts +8 -0
- package/dist/product-editor/mobile-hero-editor.js +84 -0
- package/dist/product-editor/mobile-hero-editor.js.map +1 -0
- package/dist/product-editor/mobile-product-editor-behavior-sections.d.ts +7 -0
- package/dist/product-editor/mobile-product-editor-behavior-sections.js +109 -0
- package/dist/product-editor/mobile-product-editor-behavior-sections.js.map +1 -0
- package/dist/product-editor/mobile-product-editor-content.d.ts +28 -0
- package/dist/product-editor/mobile-product-editor-content.js +219 -0
- package/dist/product-editor/mobile-product-editor-content.js.map +1 -0
- package/dist/product-editor/mobile-product-editor-sections.d.ts +28 -0
- package/dist/product-editor/mobile-product-editor-sections.js +382 -0
- package/dist/product-editor/mobile-product-editor-sections.js.map +1 -0
- package/dist/product-editor/mobile-status-toggle.d.ts +6 -0
- package/dist/product-editor/mobile-status-toggle.js +39 -0
- package/dist/product-editor/mobile-status-toggle.js.map +1 -0
- package/dist/product-editor/product-editor-content.d.ts +56 -0
- package/dist/product-editor/product-editor-content.js +368 -0
- package/dist/product-editor/product-editor-content.js.map +1 -0
- package/dist/product-editor/product-editor-page-utils.d.ts +6 -0
- package/dist/product-editor/product-editor-page-utils.js +30 -0
- package/dist/product-editor/product-editor-page-utils.js.map +1 -0
- package/dist/product-editor/product-editor-page.d.ts +5 -0
- package/dist/product-editor/product-editor-page.js +374 -0
- package/dist/product-editor/product-editor-page.js.map +1 -0
- package/dist/product-editor/product-editor.d.ts +33 -0
- package/dist/product-editor/product-editor.js +160 -0
- package/dist/product-editor/product-editor.js.map +1 -0
- package/dist/product-editor/public-link-row.d.ts +7 -0
- package/dist/product-editor/public-link-row.js +141 -0
- package/dist/product-editor/public-link-row.js.map +1 -0
- package/dist/product-editor/save-button.d.ts +22 -0
- package/dist/product-editor/save-button.js +154 -0
- package/dist/product-editor/save-button.js.map +1 -0
- package/dist/product-editor/section-summaries.d.ts +11 -0
- package/dist/product-editor/section-summaries.js +39 -0
- package/dist/product-editor/section-summaries.js.map +1 -0
- package/dist/product-editor/sections/add-ons-section.d.ts +29 -0
- package/dist/product-editor/sections/add-ons-section.js +164 -0
- package/dist/product-editor/sections/add-ons-section.js.map +1 -0
- package/dist/product-editor/sections/assignment-section.d.ts +20 -0
- package/dist/product-editor/sections/assignment-section.js +104 -0
- package/dist/product-editor/sections/assignment-section.js.map +1 -0
- package/dist/product-editor/sections/behavior-section.d.ts +48 -0
- package/dist/product-editor/sections/behavior-section.js +287 -0
- package/dist/product-editor/sections/behavior-section.js.map +1 -0
- package/dist/product-editor/sections/category-section.d.ts +26 -0
- package/dist/product-editor/sections/category-section.js +141 -0
- package/dist/product-editor/sections/category-section.js.map +1 -0
- package/dist/product-editor/sections/custom-fields-section.d.ts +11 -0
- package/dist/product-editor/sections/custom-fields-section.js +35 -0
- package/dist/product-editor/sections/custom-fields-section.js.map +1 -0
- package/dist/product-editor/sections/features-section.d.ts +14 -0
- package/dist/product-editor/sections/features-section.js +146 -0
- package/dist/product-editor/sections/features-section.js.map +1 -0
- package/dist/product-editor/sections/folded-section.d.ts +27 -0
- package/dist/product-editor/sections/folded-section.js +37 -0
- package/dist/product-editor/sections/folded-section.js.map +1 -0
- package/dist/product-editor/sections/gallery-to-media.d.ts +8 -0
- package/dist/product-editor/sections/gallery-to-media.js +18 -0
- package/dist/product-editor/sections/gallery-to-media.js.map +1 -0
- package/dist/product-editor/sections/general-section.d.ts +18 -0
- package/dist/product-editor/sections/general-section.js +129 -0
- package/dist/product-editor/sections/general-section.js.map +1 -0
- package/dist/product-editor/sections/item-preview.d.ts +35 -0
- package/dist/product-editor/sections/item-preview.js +55 -0
- package/dist/product-editor/sections/item-preview.js.map +1 -0
- package/dist/product-editor/sections/media-section.d.ts +30 -0
- package/dist/product-editor/sections/media-section.js +165 -0
- package/dist/product-editor/sections/media-section.js.map +1 -0
- package/dist/product-editor/sections/organize-section.d.ts +20 -0
- package/dist/product-editor/sections/organize-section.js +93 -0
- package/dist/product-editor/sections/organize-section.js.map +1 -0
- package/dist/product-editor/sections/pricing-inventory-section.d.ts +18 -0
- package/dist/product-editor/sections/pricing-inventory-section.js +111 -0
- package/dist/product-editor/sections/pricing-inventory-section.js.map +1 -0
- package/dist/product-editor/sections/section-header.d.ts +22 -0
- package/dist/product-editor/sections/section-header.js +18 -0
- package/dist/product-editor/sections/section-header.js.map +1 -0
- package/dist/product-editor/sections/template-fields-section.d.ts +25 -0
- package/dist/product-editor/sections/template-fields-section.js +117 -0
- package/dist/product-editor/sections/template-fields-section.js.map +1 -0
- package/dist/product-editor/sections/use-media-ingest.d.ts +11 -0
- package/dist/product-editor/sections/use-media-ingest.js +83 -0
- package/dist/product-editor/sections/use-media-ingest.js.map +1 -0
- package/dist/product-editor/sections/variants-section.d.ts +17 -0
- package/dist/product-editor/sections/variants-section.js +319 -0
- package/dist/product-editor/sections/variants-section.js.map +1 -0
- package/dist/product-editor/sections/variants-table.d.ts +9 -0
- package/dist/product-editor/sections/variants-table.js +109 -0
- package/dist/product-editor/sections/variants-table.js.map +1 -0
- package/dist/product-editor/use-product-editor-categories.d.ts +20 -0
- package/dist/product-editor/use-product-editor-categories.js +103 -0
- package/dist/product-editor/use-product-editor-categories.js.map +1 -0
- package/dist/product-editor.d.ts +1 -0
- package/dist/product-editor.js +1 -0
- package/dist/product-research/privacy-settings-screen.d.ts +5 -0
- package/dist/product-research/privacy-settings-screen.js +156 -0
- package/dist/product-research/privacy-settings-screen.js.map +1 -0
- package/dist/resource-scheduling/schedule-editor.d.ts +8 -0
- package/dist/resource-scheduling/schedule-editor.js +149 -0
- package/dist/resource-scheduling/schedule-editor.js.map +1 -0
- package/dist/route-access-guard.d.ts +18 -0
- package/dist/route-access-guard.js +50 -0
- package/dist/route-access-guard.js.map +1 -0
- package/dist/safe-html.d.ts +15 -0
- package/dist/safe-html.js +16 -0
- package/dist/safe-html.js.map +1 -0
- package/dist/settings-field-renderer.d.ts +8 -0
- package/dist/settings-field-renderer.js +103 -0
- package/dist/settings-field-renderer.js.map +1 -0
- package/dist/shared/answers-list.d.ts +22 -0
- package/dist/shared/answers-list.js +28 -0
- package/dist/shared/answers-list.js.map +1 -0
- package/dist/shared/coming-soon-page.d.ts +17 -0
- package/dist/shared/coming-soon-page.js +25 -0
- package/dist/shared/coming-soon-page.js.map +1 -0
- package/dist/shared/coming-soon.d.ts +15 -0
- package/dist/shared/coming-soon.js +22 -0
- package/dist/shared/coming-soon.js.map +1 -0
- package/dist/shared/customer-picker.d.ts +43 -0
- package/dist/shared/customer-picker.js +131 -0
- package/dist/shared/customer-picker.js.map +1 -0
- package/dist/shared/stat-card.d.ts +50 -0
- package/dist/shared/stat-card.js +91 -0
- package/dist/shared/stat-card.js.map +1 -0
- package/dist/shared/status-badge.d.ts +96 -0
- package/dist/shared/status-badge.js +71 -0
- package/dist/shared/status-badge.js.map +1 -0
- package/dist/shared/status-colors.d.ts +39 -0
- package/dist/shared/status-colors.js +457 -0
- package/dist/shared/status-colors.js.map +1 -0
- package/dist/shared/storage-meter.d.ts +43 -0
- package/dist/shared/storage-meter.js +129 -0
- package/dist/shared/storage-meter.js.map +1 -0
- package/dist/shell/account-menu-rows.d.ts +33 -0
- package/dist/shell/account-menu-rows.js +22 -0
- package/dist/shell/account-menu-rows.js.map +1 -0
- package/dist/shell/bell-mark.d.ts +14 -0
- package/dist/shell/bell-mark.js +22 -0
- package/dist/shell/bell-mark.js.map +1 -0
- package/dist/shell/foot-resources-menu.d.ts +18 -0
- package/dist/shell/foot-resources-menu.js +215 -0
- package/dist/shell/foot-resources-menu.js.map +1 -0
- package/dist/shell/foot-theme-menu.d.ts +10 -0
- package/dist/shell/foot-theme-menu.js +90 -0
- package/dist/shell/foot-theme-menu.js.map +1 -0
- package/dist/shell/icons.d.ts +50 -0
- package/dist/shell/icons.js +276 -0
- package/dist/shell/icons.js.map +1 -0
- package/dist/shell/keyboard-shortcuts-dialog.d.ts +4 -0
- package/dist/shell/keyboard-shortcuts-dialog.js +46 -0
- package/dist/shell/keyboard-shortcuts-dialog.js.map +1 -0
- package/dist/shell/moved-settings.d.ts +2 -0
- package/dist/shell/moved-settings.js +29 -0
- package/dist/shell/moved-settings.js.map +1 -0
- package/dist/shell/notification-kinds.d.ts +12 -0
- package/dist/shell/notification-kinds.js +48 -0
- package/dist/shell/notification-kinds.js.map +1 -0
- package/dist/shell/notification-row.d.ts +14 -0
- package/dist/shell/notification-row.js +50 -0
- package/dist/shell/notification-row.js.map +1 -0
- package/dist/shell/plan-upgrade-link.d.ts +8 -0
- package/dist/shell/plan-upgrade-link.js +29 -0
- package/dist/shell/plan-upgrade-link.js.map +1 -0
- package/dist/shell/product-switcher.d.ts +21 -0
- package/dist/shell/product-switcher.js +299 -0
- package/dist/shell/product-switcher.js.map +1 -0
- package/dist/shell/record-payment-picker.d.ts +4 -0
- package/dist/shell/record-payment-picker.js +76 -0
- package/dist/shell/record-payment-picker.js.map +1 -0
- package/dist/shell/search-create-commands.d.ts +16 -0
- package/dist/shell/search-create-commands.js +133 -0
- package/dist/shell/search-create-commands.js.map +1 -0
- package/dist/shell/search-head.d.ts +22 -0
- package/dist/shell/search-head.js +101 -0
- package/dist/shell/search-head.js.map +1 -0
- package/dist/shell/search-panel.d.ts +23 -0
- package/dist/shell/search-panel.js +189 -0
- package/dist/shell/search-panel.js.map +1 -0
- package/dist/shell/search-scopes.d.ts +27 -0
- package/dist/shell/search-scopes.js +14 -0
- package/dist/shell/search-scopes.js.map +1 -0
- package/dist/shell/search-whats-new.d.ts +48 -0
- package/dist/shell/search-whats-new.js +105 -0
- package/dist/shell/search-whats-new.js.map +1 -0
- package/dist/shell/secondary-shell.d.ts +26 -0
- package/dist/shell/secondary-shell.js +116 -0
- package/dist/shell/secondary-shell.js.map +1 -0
- package/dist/shell/settings-modal-context.d.ts +35 -0
- package/dist/shell/settings-modal-context.js +137 -0
- package/dist/shell/settings-modal-context.js.map +1 -0
- package/dist/shell/settings-panels.d.ts +4 -0
- package/dist/shell/settings-panels.js +86 -0
- package/dist/shell/settings-panels.js.map +1 -0
- package/dist/shell/settings-rows.d.ts +41 -0
- package/dist/shell/settings-rows.js +193 -0
- package/dist/shell/settings-rows.js.map +1 -0
- package/dist/shell/shell.css +2907 -0
- package/dist/shell/sidebar-ask.d.ts +6 -0
- package/dist/shell/sidebar-ask.js +120 -0
- package/dist/shell/sidebar-ask.js.map +1 -0
- package/dist/shell/sidebar-cards.d.ts +32 -0
- package/dist/shell/sidebar-cards.js +37 -0
- package/dist/shell/sidebar-cards.js.map +1 -0
- package/dist/shell/sidebar-footer.d.ts +58 -0
- package/dist/shell/sidebar-footer.js +49 -0
- package/dist/shell/sidebar-footer.js.map +1 -0
- package/dist/shell/sidebar-seam-toggle.d.ts +18 -0
- package/dist/shell/sidebar-seam-toggle.js +25 -0
- package/dist/shell/sidebar-seam-toggle.js.map +1 -0
- package/dist/shell/switcher-location-group.d.ts +28 -0
- package/dist/shell/switcher-location-group.js +152 -0
- package/dist/shell/switcher-location-group.js.map +1 -0
- package/dist/shell/switcher-scrim.d.ts +2 -0
- package/dist/shell/switcher-scrim.js +21 -0
- package/dist/shell/switcher-scrim.js.map +1 -0
- package/dist/shell/switcher-workspace-list.d.ts +50 -0
- package/dist/shell/switcher-workspace-list.js +115 -0
- package/dist/shell/switcher-workspace-list.js.map +1 -0
- package/dist/shell/take-payment-button.d.ts +32 -0
- package/dist/shell/take-payment-button.js +83 -0
- package/dist/shell/take-payment-button.js.map +1 -0
- package/dist/shell/unified-settings-modal.d.ts +18 -0
- package/dist/shell/unified-settings-modal.js +195 -0
- package/dist/shell/unified-settings-modal.js.map +1 -0
- package/dist/shell/use-support-unread.d.ts +14 -0
- package/dist/shell/use-support-unread.js +23 -0
- package/dist/shell/use-support-unread.js.map +1 -0
- package/dist/shell/workspace-mark.d.ts +22 -0
- package/dist/shell/workspace-mark.js +20 -0
- package/dist/shell/workspace-mark.js.map +1 -0
- package/dist/sidebar/active-href.d.ts +28 -0
- package/dist/sidebar/active-href.js +44 -0
- package/dist/sidebar/active-href.js.map +1 -0
- package/dist/sidebar/archetype-collections.d.ts +44 -0
- package/dist/sidebar/archetype-collections.js +50 -0
- package/dist/sidebar/archetype-collections.js.map +1 -0
- package/dist/sidebar/build-intent-groups.d.ts +12 -0
- package/dist/sidebar/build-intent-groups.js +227 -0
- package/dist/sidebar/build-intent-groups.js.map +1 -0
- package/dist/sidebar/build-nav-groups.d.ts +37 -0
- package/dist/sidebar/build-nav-groups.js +204 -0
- package/dist/sidebar/build-nav-groups.js.map +1 -0
- package/dist/sidebar/commerce-build-navigation.d.ts +2 -0
- package/dist/sidebar/commerce-build-navigation.js +16 -0
- package/dist/sidebar/commerce-build-navigation.js.map +1 -0
- package/dist/sidebar/composed-groups.d.ts +20 -0
- package/dist/sidebar/composed-groups.js +54 -0
- package/dist/sidebar/composed-groups.js.map +1 -0
- package/dist/sidebar/config.d.ts +180 -0
- package/dist/sidebar/config.js +186 -0
- package/dist/sidebar/config.js.map +1 -0
- package/dist/sidebar/customize-row.d.ts +27 -0
- package/dist/sidebar/customize-row.js +29 -0
- package/dist/sidebar/customize-row.js.map +1 -0
- package/dist/sidebar/declared-screens.d.ts +33 -0
- package/dist/sidebar/declared-screens.js +68 -0
- package/dist/sidebar/declared-screens.js.map +1 -0
- package/dist/sidebar/flatten-work-groups.d.ts +48 -0
- package/dist/sidebar/flatten-work-groups.js +58 -0
- package/dist/sidebar/flatten-work-groups.js.map +1 -0
- package/dist/sidebar/home-row.d.ts +10 -0
- package/dist/sidebar/home-row.js +28 -0
- package/dist/sidebar/home-row.js.map +1 -0
- package/dist/sidebar/inbox-row.d.ts +44 -0
- package/dist/sidebar/inbox-row.js +54 -0
- package/dist/sidebar/inbox-row.js.map +1 -0
- package/dist/sidebar/intent-navigation-utils.d.ts +21 -0
- package/dist/sidebar/intent-navigation-utils.js +20 -0
- package/dist/sidebar/intent-navigation-utils.js.map +1 -0
- package/dist/sidebar/inventory-hub.d.ts +16 -0
- package/dist/sidebar/inventory-hub.js +50 -0
- package/dist/sidebar/inventory-hub.js.map +1 -0
- package/dist/sidebar/more-group.d.ts +22 -0
- package/dist/sidebar/more-group.js +40 -0
- package/dist/sidebar/more-group.js.map +1 -0
- package/dist/sidebar/nav-gates.d.ts +30 -0
- package/dist/sidebar/nav-gates.js +18 -0
- package/dist/sidebar/nav-gates.js.map +1 -0
- package/dist/sidebar/nav-highlights.d.ts +49 -0
- package/dist/sidebar/nav-highlights.js +77 -0
- package/dist/sidebar/nav-highlights.js.map +1 -0
- package/dist/sidebar/nav-pending-row.d.ts +12 -0
- package/dist/sidebar/nav-pending-row.js +205 -0
- package/dist/sidebar/nav-pending-row.js.map +1 -0
- package/dist/sidebar/nav-permissions.d.ts +28 -0
- package/dist/sidebar/nav-permissions.js +64 -0
- package/dist/sidebar/nav-permissions.js.map +1 -0
- package/dist/sidebar/nav-renderer-deps.d.ts +41 -0
- package/dist/sidebar/nav-renderer-deps.js +1 -0
- package/dist/sidebar/nav-renderer-deps.js.map +1 -0
- package/dist/sidebar/nav-renderers.d.ts +55 -0
- package/dist/sidebar/nav-renderers.js +207 -0
- package/dist/sidebar/nav-renderers.js.map +1 -0
- package/dist/sidebar/nav-section.d.ts +62 -0
- package/dist/sidebar/nav-section.js +126 -0
- package/dist/sidebar/nav-section.js.map +1 -0
- package/dist/sidebar/nav-test-support.d.ts +15 -0
- package/dist/sidebar/nav-test-support.js +105 -0
- package/dist/sidebar/nav-test-support.js.map +1 -0
- package/dist/sidebar/navigation-types.d.ts +32 -0
- package/dist/sidebar/navigation-types.js +1 -0
- package/dist/sidebar/navigation-types.js.map +1 -0
- package/dist/sidebar/orders-payments-hub.d.ts +58 -0
- package/dist/sidebar/orders-payments-hub.js +59 -0
- package/dist/sidebar/orders-payments-hub.js.map +1 -0
- package/dist/sidebar/rail-body.d.ts +54 -0
- package/dist/sidebar/rail-body.js +202 -0
- package/dist/sidebar/rail-body.js.map +1 -0
- package/dist/sidebar/rail-editable.d.ts +48 -0
- package/dist/sidebar/rail-editable.js +109 -0
- package/dist/sidebar/rail-editable.js.map +1 -0
- package/dist/sidebar/rail-editor.d.ts +19 -0
- package/dist/sidebar/rail-editor.js +70 -0
- package/dist/sidebar/rail-editor.js.map +1 -0
- package/dist/sidebar/rail-edits.d.ts +88 -0
- package/dist/sidebar/rail-edits.js +129 -0
- package/dist/sidebar/rail-edits.js.map +1 -0
- package/dist/sidebar/rail-label.d.ts +14 -0
- package/dist/sidebar/rail-label.js +15 -0
- package/dist/sidebar/rail-label.js.map +1 -0
- package/dist/sidebar/rail-rows.d.ts +52 -0
- package/dist/sidebar/rail-rows.js +47 -0
- package/dist/sidebar/rail-rows.js.map +1 -0
- package/dist/sidebar/route-context.d.ts +20 -0
- package/dist/sidebar/route-context.js +16 -0
- package/dist/sidebar/route-context.js.map +1 -0
- package/dist/sidebar/row-entrance.d.ts +42 -0
- package/dist/sidebar/row-entrance.js +41 -0
- package/dist/sidebar/row-entrance.js.map +1 -0
- package/dist/sidebar/settings-nav.d.ts +22 -0
- package/dist/sidebar/settings-nav.js +87 -0
- package/dist/sidebar/settings-nav.js.map +1 -0
- package/dist/sidebar/setup-contact-dialog.d.ts +13 -0
- package/dist/sidebar/setup-contact-dialog.js +90 -0
- package/dist/sidebar/setup-contact-dialog.js.map +1 -0
- package/dist/sidebar/setup-extra-steps.d.ts +20 -0
- package/dist/sidebar/setup-extra-steps.js +45 -0
- package/dist/sidebar/setup-extra-steps.js.map +1 -0
- package/dist/sidebar/setup-progress.d.ts +28 -0
- package/dist/sidebar/setup-progress.js +349 -0
- package/dist/sidebar/setup-progress.js.map +1 -0
- package/dist/sidebar/setup-step-sections.d.ts +20 -0
- package/dist/sidebar/setup-step-sections.js +96 -0
- package/dist/sidebar/setup-step-sections.js.map +1 -0
- package/dist/sidebar/spine-customers.d.ts +7 -0
- package/dist/sidebar/spine-customers.js +81 -0
- package/dist/sidebar/spine-customers.js.map +1 -0
- package/dist/sidebar/spine-groups.d.ts +23 -0
- package/dist/sidebar/spine-groups.js +290 -0
- package/dist/sidebar/spine-groups.js.map +1 -0
- package/dist/sidebar/spine-hardware.d.ts +2 -0
- package/dist/sidebar/spine-hardware.js +52 -0
- package/dist/sidebar/spine-hardware.js.map +1 -0
- package/dist/sidebar/spine-marketing.d.ts +7 -0
- package/dist/sidebar/spine-marketing.js +131 -0
- package/dist/sidebar/spine-marketing.js.map +1 -0
- package/dist/sidebar/spine-money.d.ts +18 -0
- package/dist/sidebar/spine-money.js +168 -0
- package/dist/sidebar/spine-money.js.map +1 -0
- package/dist/sidebar/spine-operations.d.ts +10 -0
- package/dist/sidebar/spine-operations.js +90 -0
- package/dist/sidebar/spine-operations.js.map +1 -0
- package/dist/sidebar/spine-website.d.ts +6 -0
- package/dist/sidebar/spine-website.js +90 -0
- package/dist/sidebar/spine-website.js.map +1 -0
- package/dist/sidebar/takes-money.d.ts +15 -0
- package/dist/sidebar/takes-money.js +12 -0
- package/dist/sidebar/takes-money.js.map +1 -0
- package/dist/sidebar/use-nav-badges.d.ts +22 -0
- package/dist/sidebar/use-nav-badges.js +60 -0
- package/dist/sidebar/use-nav-badges.js.map +1 -0
- package/dist/sidebar/use-nav-notifications.d.ts +1 -0
- package/dist/sidebar/use-nav-notifications.js +110 -0
- package/dist/sidebar/use-nav-notifications.js.map +1 -0
- package/dist/sidebar/use-new-nav-rows.d.ts +13 -0
- package/dist/sidebar/use-new-nav-rows.js +53 -0
- package/dist/sidebar/use-new-nav-rows.js.map +1 -0
- package/dist/sidebar/use-open-hub.d.ts +12 -0
- package/dist/sidebar/use-open-hub.js +18 -0
- package/dist/sidebar/use-open-hub.js.map +1 -0
- package/dist/sidebar/use-resource-rows.d.ts +36 -0
- package/dist/sidebar/use-resource-rows.js +62 -0
- package/dist/sidebar/use-resource-rows.js.map +1 -0
- package/dist/sidebar/work-rows.d.ts +17 -0
- package/dist/sidebar/work-rows.js +17 -0
- package/dist/sidebar/work-rows.js.map +1 -0
- package/dist/sidebar.d.ts +6 -0
- package/dist/sidebar.js +337 -0
- package/dist/sidebar.js.map +1 -0
- package/dist/staff-welcome.d.ts +28 -0
- package/dist/staff-welcome.js +86 -0
- package/dist/staff-welcome.js.map +1 -0
- package/dist/storefront-preview/preview-refresh.d.ts +7 -0
- package/dist/storefront-preview/preview-refresh.js +30 -0
- package/dist/storefront-preview/preview-refresh.js.map +1 -0
- package/dist/storefront-preview/storefront-preview.d.ts +57 -0
- package/dist/storefront-preview/storefront-preview.js +380 -0
- package/dist/storefront-preview/storefront-preview.js.map +1 -0
- package/dist/storefront-preview/storefront-thumbnail.d.ts +16 -0
- package/dist/storefront-preview/storefront-thumbnail.js +57 -0
- package/dist/storefront-preview/storefront-thumbnail.js.map +1 -0
- package/dist/styles/mobile/theme.d.ts +31 -0
- package/dist/styles/mobile/theme.js +112 -0
- package/dist/styles/mobile/theme.js.map +1 -0
- package/dist/styles/reader-mode.module.css +174 -0
- package/dist/support/case-composer.d.ts +80 -0
- package/dist/support/case-composer.js +255 -0
- package/dist/support/case-composer.js.map +1 -0
- package/dist/support/support-case-ui.d.ts +18 -0
- package/dist/support/support-case-ui.js +51 -0
- package/dist/support/support-case-ui.js.map +1 -0
- package/dist/take-payment.d.ts +21 -0
- package/dist/take-payment.js +72 -0
- package/dist/take-payment.js.map +1 -0
- package/dist/template-editor/canvas-banner.d.ts +34 -0
- package/dist/template-editor/canvas-banner.js +112 -0
- package/dist/template-editor/canvas-banner.js.map +1 -0
- package/dist/template-editor/copy-preview-link-button.d.ts +17 -0
- package/dist/template-editor/copy-preview-link-button.js +57 -0
- package/dist/template-editor/copy-preview-link-button.js.map +1 -0
- package/dist/template-editor/publish-dialog.d.ts +20 -0
- package/dist/template-editor/publish-dialog.js +223 -0
- package/dist/template-editor/publish-dialog.js.map +1 -0
- package/dist/template-editor/status-pill.d.ts +12 -0
- package/dist/template-editor/status-pill.js +65 -0
- package/dist/template-editor/status-pill.js.map +1 -0
- package/dist/template-editor/template-preview-inspector.d.ts +10 -0
- package/dist/template-editor/template-preview-inspector.js +166 -0
- package/dist/template-editor/template-preview-inspector.js.map +1 -0
- package/dist/templates/category-label.d.ts +18 -0
- package/dist/templates/category-label.js +20 -0
- package/dist/templates/category-label.js.map +1 -0
- package/dist/templates/create-own.d.ts +5 -0
- package/dist/templates/create-own.js +82 -0
- package/dist/templates/create-own.js.map +1 -0
- package/dist/templates/template-brief.d.ts +43 -0
- package/dist/templates/template-brief.js +109 -0
- package/dist/templates/template-brief.js.map +1 -0
- package/dist/templates/template-gallery.d.ts +112 -0
- package/dist/templates/template-gallery.js +274 -0
- package/dist/templates/template-gallery.js.map +1 -0
- package/dist/templates/template-live-thumb.d.ts +44 -0
- package/dist/templates/template-live-thumb.js +186 -0
- package/dist/templates/template-live-thumb.js.map +1 -0
- package/dist/templates/template-preview-dialog.d.ts +25 -0
- package/dist/templates/template-preview-dialog.js +70 -0
- package/dist/templates/template-preview-dialog.js.map +1 -0
- package/dist/templates/template-preview-panel.d.ts +75 -0
- package/dist/templates/template-preview-panel.js +151 -0
- package/dist/templates/template-preview-panel.js.map +1 -0
- package/dist/templates/template-preview-split.d.ts +27 -0
- package/dist/templates/template-preview-split.js +121 -0
- package/dist/templates/template-preview-split.js.map +1 -0
- package/dist/templates/template-still.d.ts +18 -0
- package/dist/templates/template-still.js +36 -0
- package/dist/templates/template-still.js.map +1 -0
- package/dist/templates/template-tile-source.d.ts +24 -0
- package/dist/templates/template-tile-source.js +18 -0
- package/dist/templates/template-tile-source.js.map +1 -0
- package/dist/templates/template-tile.d.ts +71 -0
- package/dist/templates/template-tile.js +91 -0
- package/dist/templates/template-tile.js.map +1 -0
- package/dist/templates/template-toolbar.d.ts +28 -0
- package/dist/templates/template-toolbar.js +60 -0
- package/dist/templates/template-toolbar.js.map +1 -0
- package/dist/templates/use-growing-shelf.d.ts +13 -0
- package/dist/templates/use-growing-shelf.js +29 -0
- package/dist/templates/use-growing-shelf.js.map +1 -0
- package/dist/templates/use-mobile-template-preview.d.ts +18 -0
- package/dist/templates/use-mobile-template-preview.js +24 -0
- package/dist/templates/use-mobile-template-preview.js.map +1 -0
- package/dist/templates/use-recent-templates.d.ts +9 -0
- package/dist/templates/use-recent-templates.js +28 -0
- package/dist/templates/use-recent-templates.js.map +1 -0
- package/dist/templates/workflow-canvas.css +168 -0
- package/dist/templates/workflow-canvas.d.ts +14 -0
- package/dist/templates/workflow-canvas.js +168 -0
- package/dist/templates/workflow-canvas.js.map +1 -0
- package/dist/viewer-banner.d.ts +6 -0
- package/dist/viewer-banner.js +19 -0
- package/dist/viewer-banner.js.map +1 -0
- package/dist/voice/voice-composer.d.ts +47 -0
- package/dist/voice/voice-composer.js +202 -0
- package/dist/voice/voice-composer.js.map +1 -0
- package/dist/voice/waveform.d.ts +34 -0
- package/dist/voice/waveform.js +107 -0
- package/dist/voice/waveform.js.map +1 -0
- package/dist/workspace-setup/step-intent.d.ts +16 -0
- package/dist/workspace-setup/step-intent.js +176 -0
- package/dist/workspace-setup/step-intent.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/potter/use-potter-ask.ts"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\nimport { useAuth } from '@withpotter/lib/auth-context';\nimport { useCurrentTemplate } from '@withpotter/lib/template-context';\nimport { resolveEnabledBehaviors } from '@withpotter/lib/resolve-enabled-behaviors';\nimport { resolveHelpTopics } from '@withpotter/lib/help-topics';\nimport { useMoneyVisibility } from '@withpotter/lib/use-money-visibility';\nimport { useEntityLabel } from '@withpotter/lib/intents/use-entity-label';\nimport { formatCurrency } from '@withpotter/lib/utils';\nimport {\n replyLead,\n replySpoken,\n routeQuestion,\n type PotterReply,\n} from './potter-answer';\nimport { usePotter } from './potter-context';\nimport { matchDataIntent, intentAllowed, type DataIntent } from './potter-data';\nimport { potterApi, askPotterStream } from '@withpotter/lib/api/potter';\nimport {\n bookingsToday,\n lowStock,\n moneyOwed,\n salesCompare,\n type ToolAnswer,\n} from './potter-tools';\n\n/**\n * Asking, from either door.\n *\n * TWO BRANCHES NOW, AND THE ORDER MATTERS. A question is first offered to\n * `matchDataIntent`, which claims only the handful of sentences the product\n * itself offers and can answer out of the merchant's own rows. Everything it\n * does not claim falls through to `routeQuestion` — the help corpus, the record\n * search, the setup proposal — exactly as before.\n *\n * The data branch goes first because the alternative is what shipped: \"which\n * products are running low\" matched `find` on the noun and came back with a\n * name search for the whole sentence, and \"how many appointments today\" did the\n * same on \"appointments\". A router that owns the widest net cannot be allowed\n * to see a question a narrower one can actually answer.\n *\n * IT IS ASYNC NOW. Routing the corpus never touched the network; reading\n * invoices does. The docblock this replaces predicted the change and said the\n * shape would not have to: it returns a promise, voice mode awaits it, and the\n * `thinking` state that loop already carried is now a state something happens\n * during.\n *\n * The corpus is gated to what this business actually does, and the data tools\n * are gated twice — by the same behaviours, and by `useMoneyVisibility` for the\n * two that name a figure. A Front desk hire who cannot see the month's takings\n * on the home must not be able to ask Box for them either.\n */\n\n/** What a caller gets back. `spoken` is the sentence a voice should read. */\nexport interface PotterAnswer {\n spoken: string;\n /** Present only when the answer came from the corpus rather than the rows. */\n reply?: PotterReply;\n}\n\nexport function usePotterAsk() {\n const { tenant } = useAuth();\n const { template } = useCurrentTemplate(tenant?.templateId);\n const { say, resolve, openPotter, messages } = usePotter();\n\n /**\n * The thread, readable without becoming a dependency.\n *\n * `ask` must keep a STABLE identity: `PotterSurface` consumes a handed-over\n * question in an effect keyed on it, and a callback that changes every time\n * somebody speaks re-fires that effect and asks the seed twice. Synced in an\n * effect rather than during render, which also means it holds the turns as of\n * the last commit — so the question just `say`n is not in it, which is\n * exactly the history the route wants.\n */\n const messagesRef = useRef(messages);\n useEffect(() => {\n messagesRef.current = messages;\n }, [messages]);\n const money = useMoneyVisibility();\n const bookingLabel = useEntityLabel('booking');\n const itemLabel = useEntityLabel('item');\n\n const behaviors = useMemo(\n () =>\n resolveEnabledBehaviors(\n tenant?.settings as Record<string, unknown> | undefined,\n template,\n ),\n [tenant?.settings, template],\n );\n\n const topics = useMemo(() => resolveHelpTopics(behaviors), [behaviors]);\n const behaviorSet = useMemo(() => new Set<string>(behaviors), [behaviors]);\n\n const slug = tenant?.slug;\n /* No currency argument: `formatCurrency` reads the workspace's own, set once\n by `AuthProvider`. Passing one here would be a second answer to a question\n the app already settled — a Lagos workspace read in dollars for exactly\n that reason. */\n const asMoney = useCallback((n: number) => formatCurrency(n), []);\n\n /** One tool, chosen. */\n const runOne = useCallback(\n (intent: DataIntent, slugArg: string): Promise<ToolAnswer> => {\n switch (intent.tool) {\n case 'bookings_today':\n return bookingsToday(slugArg, bookingLabel);\n case 'low_stock':\n return lowStock(slugArg, itemLabel);\n case 'money_owed':\n return moneyOwed(slugArg, asMoney);\n case 'sales_compare':\n return salesCompare(slugArg, asMoney, intent.windowDays);\n }\n },\n [bookingLabel, itemLabel, asMoney],\n );\n\n const gate = useMemo(\n () => ({\n behaviors: behaviorSet,\n canSeeAmounts: money.canSeeAmounts,\n canSeeEarnings: money.canSeeEarnings,\n }),\n [behaviorSet, money.canSeeAmounts, money.canSeeEarnings],\n );\n\n /**\n * \"What needs my attention today?\" is three questions.\n *\n * It fans out to every tool this tenant is allowed and joins the sentences.\n * Answering it with one of them would read as a complete reply over a third\n * of the facts, which is worse than not answering — see `potter-data`.\n *\n * A tool that throws is dropped rather than failing the lot: three of four\n * facts with one missing beats no answer, and the merchant can ask the\n * missing one directly.\n */\n const runAttention = useCallback(\n async (slugArg: string): Promise<ToolAnswer> => {\n const wanted: DataIntent[] = (\n [\n { tool: 'bookings_today' },\n { tool: 'money_owed' },\n { tool: 'low_stock' },\n ] as DataIntent[]\n ).filter((i) => intentAllowed(i, gate));\n\n if (wanted.length === 0) {\n return {\n reply: 'Nothing I can check for you on this business yet.',\n blocks: [],\n };\n }\n\n /* Paired with the intent that produced it, so the trail can name the\n lookups that actually returned rather than the ones we hoped for. */\n const results = await Promise.all(\n wanted.map(async (i) => {\n try {\n return { intent: i, answer: await runOne(i, slugArg) };\n } catch {\n return null;\n }\n }),\n );\n const got = results.filter(\n (r): r is { intent: DataIntent; answer: ToolAnswer } => r !== null,\n );\n /* Every one of them failed. `[].join(' ')` is the empty string, so this\n returned a turn with no text — Box answering by saying nothing,\n which reads as the app hanging. */\n if (got.length === 0) {\n return {\n reply: 'I could not reach any of that just now. Try again shortly.',\n blocks: [],\n };\n }\n return {\n reply: got.map((r) => r.answer.reply).join(' '),\n blocks: got.flatMap((r) => r.answer.blocks),\n tools: got.map((r) => r.intent.tool),\n };\n },\n [gate, runOne],\n );\n\n return useCallback(\n async (\n question: string,\n /** `signal` aborts the streamed turn — see the Stop control. */\n opts?: { signal?: AbortSignal },\n ): Promise<PotterAnswer | null> => {\n const q = question.trim();\n if (!q) return null;\n // Idempotent, and it covers the home where the surface is already up — a\n // suggestion pressed from the intro must not have to know its door.\n openPotter();\n say({ role: 'you', text: q });\n\n const intent = matchDataIntent(q);\n const allowed =\n intent !== null &&\n (intent === 'attention' || intentAllowed(intent, gate));\n\n if (intent !== null && allowed && slug) {\n const pendingId = say({ role: 'potter', text: '', pending: true });\n try {\n const answer =\n intent === 'attention'\n ? await runAttention(slug)\n : await runOne(intent, slug);\n resolve(pendingId, {\n text: answer.reply,\n blocks: answer.blocks,\n // The fan-out reports its own; a single tool is the one we chose.\n toolsUsed:\n answer.tools ?? (intent === 'attention' ? [] : [intent.tool]),\n });\n return { spoken: answer.reply };\n } catch {\n /**\n * A read that failed is not an answer that does not exist.\n *\n * It says so and stops. Falling through to the help corpus here\n * would hand back a topic about invoices when the invoices call\n * broke, which reads as an answer and is not one.\n */\n const failed =\n 'I could not reach that just now. Try again in a moment.';\n resolve(pendingId, { text: failed, blocks: [] });\n return { spoken: failed };\n }\n }\n\n /**\n * THE MODEL, WHERE THERE IS ONE.\n *\n * `POST /potter/ask` decides which question a sentence IS, in whatever\n * words it arrived in, and answers from the merchant's own rows through\n * the same usecases the analytics screens read. It is tried BEFORE the\n * corpus and AFTER the matched data intents above, deliberately: a\n * sentence the local matcher already claims has a tested answer and a\n * rendered block, and paying for a model to reach the same number would\n * be slower and no better.\n *\n * `null` means the route is not configured here — every checkout and\n * staging until the key is deployed — and the corpus below answers\n * exactly as it did before this existed. A THROWN error is different and\n * is not caught: a configured route that fails is a real failure, and\n * the pending turn says so rather than quietly degrading to keywords.\n */\n const pendingId = say({ role: 'potter', text: '', pending: true });\n\n /** The corpus, the record search, the setup proposal — where no model is. */\n const corpusAnswer = () => {\n const reply = routeQuestion(q, topics);\n resolve(pendingId, { text: replyLead(reply), reply });\n return { spoken: replySpoken(reply), reply };\n };\n\n const history = messagesRef.current\n .filter((m) => !m.pending && m.text)\n .slice(-10)\n .map((m) => ({ role: m.role, text: m.text }));\n\n /**\n * STREAMED FIRST, whole-turn second.\n *\n * The words appear as they are written and the trail fills in as each\n * lookup starts, which is the difference between waiting and watching.\n * `false` means the route is not configured here, exactly as `ask`'s\n * `null` does, and both fall through to the corpus below.\n */\n let streamed = '';\n const toolsSeen: string[] = [];\n try {\n const available = await askPotterStream(\n q,\n history,\n (event) => {\n if (event.type === 'text') {\n streamed += event.text;\n /* `pending` stays true: the turn is still being written, and a\n thinking indicator that blinks off on the first fragment and\n back on for the next reads as a stutter. */\n resolve(pendingId, {\n text: streamed,\n toolsUsed: toolsSeen,\n pending: true,\n });\n } else if (event.type === 'tool') {\n toolsSeen.push(event.name);\n resolve(pendingId, { toolsUsed: [...toolsSeen], pending: true });\n } else if (event.type === 'done') {\n resolve(pendingId, {\n text: streamed,\n toolsUsed: event.toolsUsed,\n });\n } else {\n resolve(pendingId, { text: event.message, blocks: [] });\n }\n },\n opts?.signal,\n // Names the workspace. Without it the route has no tenant to check a\n // permission against and answers 401, which is not a 503 and so does\n // not fall back — it errors.\n slug,\n );\n if (available) return { spoken: streamed };\n /**\n * NOT CONFIGURED HERE — and the whole-turn route below is the same\n * route, so it will say the same thing. Skipping straight to the\n * corpus saves a second doomed request on every unmatched question,\n * which on an environment without a key is every one of them.\n */\n return corpusAnswer();\n } catch (err) {\n /**\n * STOPPED IS NOT FAILED, and it is the merchant's own doing — so the\n * turn keeps whatever had arrived rather than replacing it with an\n * error. An empty one says so, because a turn with no text on screen\n * reads as a hang.\n */\n if ((err as Error)?.name === 'AbortError') {\n resolve(pendingId, {\n text: streamed || 'Stopped.',\n toolsUsed: toolsSeen,\n });\n return { spoken: streamed };\n }\n\n /**\n * A STREAM CAN FAIL WHERE THE PLAIN ROUTE WORKS, which is the only\n * reason the whole-turn call is still here. A proxy that buffers, a\n * network that drops a long-lived connection, a client that cannot\n * read a body stream — none of those say the answering route is down,\n * and falling straight to keyword matching would throw away a working\n * answer to protect against a transport problem.\n */\n try {\n const answer = await potterApi.ask(q, history, slug);\n if (answer && typeof answer.text === 'string' && answer.text.trim()) {\n resolve(pendingId, {\n text: answer.text,\n blocks: [],\n toolsUsed: answer.toolsUsed,\n });\n return { spoken: answer.text };\n }\n } catch {\n const failed =\n 'I could not reach that just now. Try again in a moment.';\n resolve(pendingId, { text: failed, blocks: [] });\n return { spoken: failed };\n }\n }\n\n return corpusAnswer();\n },\n [openPotter, say, resolve, topics, gate, slug, runOne, runAttention],\n );\n}\n\n/**\n * Whether THIS workspace can even be asked a given question.\n *\n * WHAT THIS FIXES, found by John on a Health & Wellness workspace that sells\n * nothing: the bar offered *\"Which items are running low?\"*, he pressed it, and\n * Box replied *\"Nothing matched\"*. Every part of that worked as written —\n * `matchDataIntent` claimed the sentence, `intentAllowed` correctly refused it\n * because `low_stock` needs the `purchasable` behaviour and a massage studio\n * has no stock, and the refusal fell through to a record search that found no\n * customer by that name. The bug was one step earlier: we OFFERED it.\n *\n * `ask-placeholders` says a placeholder is a promise, and its own guard admits\n * the hole — *\"it still does not know which topics a given tenant has enabled —\n * it runs the full corpus, the most permissive case\"*. That is fine for a build\n * check and useless at runtime, where the tenant is sitting right there. This\n * closes it: the same gate the answer uses now decides what gets suggested, so\n * a question on screen is a question this business can have answered.\n *\n * Anything the data matcher does NOT claim stays askable — the help corpus and\n * the record search are open to everyone, and this must never become a second\n * router deciding what may be typed.\n */\nexport function useCanAsk(): (question: string) => boolean {\n const money = useMoneyVisibility();\n const { tenant } = useAuth();\n const { template } = useCurrentTemplate(tenant?.templateId);\n const behaviors = useMemo(\n () =>\n resolveEnabledBehaviors(\n tenant?.settings as Record<string, unknown> | undefined,\n template,\n ),\n [tenant?.settings, template],\n );\n\n return useCallback(\n (question: string) => {\n const intent = matchDataIntent(question);\n // Not a data question, or the fan-out — which filters itself.\n if (!intent || intent === 'attention') return true;\n return intentAllowed(intent, {\n behaviors: new Set<string>(behaviors),\n canSeeAmounts: money.canSeeAmounts,\n canSeeEarnings: money.canSeeEarnings,\n });\n },\n [behaviors, money.canSeeAmounts, money.canSeeEarnings],\n );\n}\n"],"mappings":"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","names":["pendingId"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type PotterAttachment } from './potter-attach';
|
|
2
|
+
import type { QueuedMessage } from './potter-queue';
|
|
3
|
+
export declare function usePotterTurn(): {
|
|
4
|
+
draft: string;
|
|
5
|
+
setDraft: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
6
|
+
attachments: PotterAttachment[];
|
|
7
|
+
attach: (file: File) => Promise<void>;
|
|
8
|
+
removeAttachment: (file: File) => void;
|
|
9
|
+
queue: QueuedMessage[];
|
|
10
|
+
setQueue: import("react").Dispatch<import("react").SetStateAction<QueuedMessage[]>>;
|
|
11
|
+
queueOpen: boolean;
|
|
12
|
+
setQueueOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
13
|
+
editQueued: (item: QueuedMessage) => void;
|
|
14
|
+
submit: (text: string) => void;
|
|
15
|
+
stop: () => void | undefined;
|
|
16
|
+
busy: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
import { usePotter } from "./potter-context";
|
|
4
|
+
import { usePotterAsk } from "./use-potter-ask";
|
|
5
|
+
import {
|
|
6
|
+
describeImages,
|
|
7
|
+
describeSheet,
|
|
8
|
+
MAX_ATTACHMENTS,
|
|
9
|
+
readAttachment
|
|
10
|
+
} from "./potter-attach";
|
|
11
|
+
import { useEntityLabel } from "@withpotter/lib/intents/use-entity-label";
|
|
12
|
+
function summarise(files) {
|
|
13
|
+
const sheets = files.filter((a) => a.kind === "sheet");
|
|
14
|
+
if (sheets.length === 1 && files.length === 1) return sheets[0].file.name;
|
|
15
|
+
const images = files.length - sheets.length;
|
|
16
|
+
if (!images) return `${sheets.length} files`;
|
|
17
|
+
return images === 1 ? "A picture" : `${images} pictures`;
|
|
18
|
+
}
|
|
19
|
+
function usePotterTurn() {
|
|
20
|
+
const {
|
|
21
|
+
messages,
|
|
22
|
+
say,
|
|
23
|
+
resolve,
|
|
24
|
+
handSheet,
|
|
25
|
+
handPhotos,
|
|
26
|
+
seed,
|
|
27
|
+
seedFiles,
|
|
28
|
+
clearSeed
|
|
29
|
+
} = usePotter();
|
|
30
|
+
const ask = usePotterAsk();
|
|
31
|
+
const itemLabel = useEntityLabel("item");
|
|
32
|
+
const [draft, setDraft] = useState("");
|
|
33
|
+
const [attachments, setAttachments] = useState([]);
|
|
34
|
+
const [queue, setQueue] = useState([]);
|
|
35
|
+
const [queueOpen, setQueueOpen] = useState(false);
|
|
36
|
+
const queueRef = useRef(queue);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
queueRef.current = queue;
|
|
39
|
+
}, [queue]);
|
|
40
|
+
const runRef = useRef(null);
|
|
41
|
+
const busy = messages.some((m) => m.pending);
|
|
42
|
+
const inFlight = useRef(null);
|
|
43
|
+
const stop = () => inFlight.current?.abort();
|
|
44
|
+
const attach = async (file) => {
|
|
45
|
+
const read = await readAttachment(file);
|
|
46
|
+
if (!read) return;
|
|
47
|
+
setAttachments((old) => {
|
|
48
|
+
if (old.length >= MAX_ATTACHMENTS) {
|
|
49
|
+
if (read.kind === "image") URL.revokeObjectURL(read.url);
|
|
50
|
+
return old;
|
|
51
|
+
}
|
|
52
|
+
return [...old, read];
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const removeAttachment = (file) => {
|
|
56
|
+
setAttachments(
|
|
57
|
+
(old) => old.filter((a) => {
|
|
58
|
+
if (a.file !== file) return true;
|
|
59
|
+
if (a.kind === "image") URL.revokeObjectURL(a.url);
|
|
60
|
+
return false;
|
|
61
|
+
})
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
const clearAttachments = () => setAttachments([]);
|
|
65
|
+
const run = useCallback(
|
|
66
|
+
async (text, files) => {
|
|
67
|
+
if (files.length) {
|
|
68
|
+
const images = files.filter((a) => a.kind === "image");
|
|
69
|
+
const sheets = files.filter((a) => a.kind === "sheet");
|
|
70
|
+
say({
|
|
71
|
+
role: "you",
|
|
72
|
+
text: text || summarise(files),
|
|
73
|
+
attachments: images.map((i) => i.url)
|
|
74
|
+
});
|
|
75
|
+
for (const s of sheets) {
|
|
76
|
+
const id = say({ role: "potter", text: "", pending: true });
|
|
77
|
+
const usable = !s.sheet.problem && s.sheet.recognised.includes("title");
|
|
78
|
+
handSheet(usable ? s.file : null);
|
|
79
|
+
resolve(id, {
|
|
80
|
+
text: describeSheet(s.sheet, itemLabel.plural.toLowerCase()),
|
|
81
|
+
reply: { kind: "sheet", rows: s.sheet.rows, usable }
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (images.length) {
|
|
85
|
+
handPhotos(images.map((i) => i.file));
|
|
86
|
+
const id = say({ role: "potter", text: "", pending: true });
|
|
87
|
+
resolve(id, {
|
|
88
|
+
text: describeImages(images.length),
|
|
89
|
+
reply: { kind: "photo", count: images.length }
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
const controller = new AbortController();
|
|
94
|
+
inFlight.current = controller;
|
|
95
|
+
try {
|
|
96
|
+
await ask(text, { signal: controller.signal });
|
|
97
|
+
} finally {
|
|
98
|
+
if (inFlight.current === controller) inFlight.current = null;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
const [head, ...rest] = queueRef.current;
|
|
102
|
+
if (head) {
|
|
103
|
+
setQueue(rest);
|
|
104
|
+
void runRef.current?.(head.text, head.attachments ?? []);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
[ask, say, resolve, handSheet, handPhotos, itemLabel]
|
|
108
|
+
);
|
|
109
|
+
useEffect(() => {
|
|
110
|
+
runRef.current = run;
|
|
111
|
+
}, [run]);
|
|
112
|
+
const nextId = useRef(0);
|
|
113
|
+
const submit = (text) => {
|
|
114
|
+
const going = attachments;
|
|
115
|
+
clearAttachments();
|
|
116
|
+
if (busy) {
|
|
117
|
+
setQueue((q) => [
|
|
118
|
+
...q,
|
|
119
|
+
{ id: `q${nextId.current++}`, text, attachments: going }
|
|
120
|
+
]);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
void run(text, going);
|
|
124
|
+
};
|
|
125
|
+
const seeded = useRef(false);
|
|
126
|
+
useEffect(() => {
|
|
127
|
+
if (!seed && !seedFiles.length) {
|
|
128
|
+
seeded.current = false;
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (seeded.current) return;
|
|
132
|
+
seeded.current = true;
|
|
133
|
+
const text = seed ?? "";
|
|
134
|
+
const files = seedFiles;
|
|
135
|
+
clearSeed();
|
|
136
|
+
void (async () => {
|
|
137
|
+
const read = files.length ? (await Promise.all(files.map(readAttachment))).filter((a) => a !== null).slice(0, MAX_ATTACHMENTS) : [];
|
|
138
|
+
void runRef.current?.(text, read);
|
|
139
|
+
})();
|
|
140
|
+
}, [seed, seedFiles, clearSeed]);
|
|
141
|
+
const editQueued = (item) => {
|
|
142
|
+
setQueue((q) => q.filter((x) => x.id !== item.id));
|
|
143
|
+
if (item.attachments?.length) setAttachments(item.attachments);
|
|
144
|
+
setDraft(item.text);
|
|
145
|
+
};
|
|
146
|
+
return {
|
|
147
|
+
draft,
|
|
148
|
+
setDraft,
|
|
149
|
+
attachments,
|
|
150
|
+
attach,
|
|
151
|
+
removeAttachment,
|
|
152
|
+
queue,
|
|
153
|
+
setQueue,
|
|
154
|
+
queueOpen,
|
|
155
|
+
setQueueOpen,
|
|
156
|
+
editQueued,
|
|
157
|
+
submit,
|
|
158
|
+
stop,
|
|
159
|
+
busy
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
export {
|
|
163
|
+
usePotterTurn
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=use-potter-turn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/potter/use-potter-turn.ts"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { usePotter } from './potter-context';\nimport { usePotterAsk } from './use-potter-ask';\nimport {\n describeImages,\n describeSheet,\n MAX_ATTACHMENTS,\n readAttachment,\n type PotterAttachment,\n} from './potter-attach';\nimport type { QueuedMessage } from './potter-queue';\nimport { useEntityLabel } from '@withpotter/lib/intents/use-entity-label';\n\n/**\n * Everything that happens between pressing send and an answer arriving.\n *\n * SPLIT OUT OF `PotterScreen` when that file crossed 500 lines, and the cut\n * follows the house rule rather than the line count: a screen is a frame plus\n * sections, and a hook is one question. The question here is \"what is the state\n * of the turn\" — the draft, the attachment, the queue behind it, the controller\n * that can end it — and none of it is layout. What is left in the screen is the\n * header, the two arrangements of the column, and the composer it hands this.\n *\n * It reads and writes the Box context directly rather than taking callbacks,\n * because every one of these operations is about the SAME conversation the\n * screen is drawing. Threading `say`/`resolve` back through props would have\n * made that look like a coincidence.\n */\n/**\n * What a wordless message says, when all it carries is files.\n *\n * NOT THE FILENAMES. That is the whole of John's complaint — a turn reading\n * `_designerbabe_1718527507_3391577010625190628_15287514660.jpg` is a string\n * from Instagram's CDN taking up two lines of a conversation. A spreadsheet\n * keeps its name because a merchant chose and recognises it; pictures are shown\n * rather than named, and the turn renders their thumbnails above this line.\n */\nfunction summarise(files: PotterAttachment[]): string {\n const sheets = files.filter((a) => a.kind === 'sheet');\n if (sheets.length === 1 && files.length === 1) return sheets[0].file.name;\n const images = files.length - sheets.length;\n if (!images) return `${sheets.length} files`;\n return images === 1 ? 'A picture' : `${images} pictures`;\n}\n\nexport function usePotterTurn() {\n const {\n messages,\n say,\n resolve,\n handSheet,\n handPhotos,\n seed,\n seedFiles,\n clearSeed,\n } = usePotter();\n const ask = usePotterAsk();\n const itemLabel = useEntityLabel('item');\n\n /**\n * A spreadsheet becomes a turn, the way a question does.\n *\n * Pushed as a pending Box turn first and filled when the file has been\n * read, so the thread never shows a question with nothing under it — the same\n * shape `usePotterAsk` uses for a tool that has to make a round trip. Reading\n * a CSV is fast, but \"fast\" is not \"synchronous\" and a box that flickers\n * between two states is worse than one that says it is working.\n *\n * The file goes onto the context BEFORE the turn resolves so the importer\n * has it the moment the merchant presses the control. Unusable files are not\n * handed over: `describeSheet` has already said why, and stashing a file\n * nothing can use would leave it there for the next import to pick up.\n */\n /**\n * THE COMPOSER'S PAYLOAD, held here rather than inside it.\n *\n * A queued message carries its attachment, so the sheet has to outlive the\n * composer's own state — and the screen is the thing that knows whether a\n * send dispatches or waits.\n */\n const [draft, setDraft] = useState('');\n /**\n * A LIST, capped at five. John: *\"i should be able to add more images maybe\n * max is 5\"*.\n *\n * The `File` lives on the attachment rather than in a ref beside it, which is\n * what the single-attachment version did — one file, one ref, and the two\n * could drift the moment there were two of anything. Whether a file is usable\n * is decided where it is used, not stashed at pick time.\n */\n const [attachments, setAttachments] = useState<PotterAttachment[]>([]);\n const [queue, setQueue] = useState<QueuedMessage[]>([]);\n const [queueOpen, setQueueOpen] = useState(false);\n\n /**\n * The queue, readable from inside an async turn without being a dependency.\n *\n * The drain runs after `ask` resolves, and things can be queued DURING that\n * await — so reading the state captured when the turn started would silently\n * drop whatever was typed while Box was answering, which is the one job\n * this feature has.\n */\n const queueRef = useRef(queue);\n useEffect(() => {\n queueRef.current = queue;\n }, [queue]);\n\n /** The drain calls itself; see the note where it does. */\n const runRef = useRef<\n ((text: string, attachments: PotterAttachment[]) => Promise<void>) | null\n >(null);\n\n const busy = messages.some((m) => m.pending);\n\n /**\n * The turn in flight, so it can be ended.\n *\n * One controller per turn rather than one for the screen: a controller that\n * has been aborted stays aborted, so reusing it would make every turn after\n * the first Stop abort before it began.\n */\n const inFlight = useRef<AbortController | null>(null);\n\n /**\n * STOP ENDS THIS TURN AND LETS THE QUEUE CONTINUE.\n *\n * The other reading — stop everything, drop what is waiting — treats a queue\n * as a batch, and it is not one. Those are separate questions the merchant\n * still wants asked; not wanting THIS answer says nothing about the next.\n * Anything they have changed their mind about is one × away on the pile.\n */\n const stop = () => inFlight.current?.abort();\n\n /** Read the file now, so the composer can show it before sending. */\n const attach = async (file: File) => {\n const read = await readAttachment(file);\n if (!read) return;\n setAttachments((old) => {\n /* Silently at the cap rather than erroring: the picker is already capped\n and a merchant who drags a sixth in has not done anything wrong. */\n if (old.length >= MAX_ATTACHMENTS) {\n if (read.kind === 'image') URL.revokeObjectURL(read.url);\n return old;\n }\n return [...old, read];\n });\n };\n\n /**\n * One goes. Revoked on the way out, because an object URL is a live handle on\n * a blob and dropping the reference without revoking leaks the file for the\n * life of the tab.\n *\n * Keyed on the `File` rather than an index: the list can change between the\n * render that drew the button and the click that presses it, and an index\n * would then remove whatever had moved into that slot.\n */\n const removeAttachment = (file: File) => {\n setAttachments((old) =>\n old.filter((a) => {\n if (a.file !== file) return true;\n if (a.kind === 'image') URL.revokeObjectURL(a.url);\n return false;\n }),\n );\n };\n\n /** All of them, without revoking — a sent turn still renders its pictures. */\n const clearAttachments = () => setAttachments([]);\n\n /**\n * One turn, then whatever was waiting.\n *\n * DRAINED HERE RATHER THAN IN AN EFFECT ON THE BUSY EDGE. An effect watching\n * `busy` go true→false would be a setState in an effect body — the pattern\n * the lint rule bans and is right to — and it would fire on every unrelated\n * re-render that happened to land on the same edge. Awaiting the turn is the\n * edge, exactly, with no watching.\n */\n const run = useCallback(\n async (text: string, files: PotterAttachment[]) => {\n if (files.length) {\n /* ONE user turn carrying all of them, not one per file. They were\n chosen together and sent together, and five separate turns saying the\n same sentence back is the shape this cap exists to avoid. */\n const images = files.filter((a) => a.kind === 'image');\n const sheets = files.filter((a) => a.kind === 'sheet');\n say({\n role: 'you',\n text: text || summarise(files),\n attachments: images.map((i) => i.url),\n });\n\n /* The spreadsheet answers first where there is one: it is the file with\n somewhere to go and something to decide, and the pictures are an\n aside beside it. */\n for (const s of sheets) {\n const id = say({ role: 'potter', text: '', pending: true });\n const usable =\n !s.sheet.problem && s.sheet.recognised.includes('title');\n handSheet(usable ? s.file : null);\n resolve(id, {\n text: describeSheet(s.sheet, itemLabel.plural.toLowerCase()),\n reply: { kind: 'sheet', rows: s.sheet.rows, usable },\n });\n }\n\n if (images.length) {\n /* No vision behind this, so the turn says so and then offers the one\n true thing it can do with a picture — see `describeImages`. */\n handPhotos(images.map((i) => i.file));\n const id = say({ role: 'potter', text: '', pending: true });\n resolve(id, {\n text: describeImages(images.length),\n reply: { kind: 'photo', count: images.length },\n });\n }\n } else {\n const controller = new AbortController();\n inFlight.current = controller;\n try {\n await ask(text, { signal: controller.signal });\n } finally {\n /* Only if it is still ours: a Stop that started the next turn has\n already replaced this, and clearing it then would orphan the\n controller the new turn is relying on. */\n if (inFlight.current === controller) inFlight.current = null;\n }\n }\n\n const [head, ...rest] = queueRef.current;\n if (head) {\n setQueue(rest);\n /* Through the ref, because a `useCallback` cannot name itself — the\n binding does not exist while its own body is being defined. The ref\n also means the drain always calls the CURRENT run rather than the one\n captured when this turn started. */\n void runRef.current?.(head.text, head.attachments ?? []);\n }\n },\n [ask, say, resolve, handSheet, handPhotos, itemLabel],\n );\n useEffect(() => {\n runRef.current = run;\n }, [run]);\n\n /**\n * Send, or wait your turn.\n *\n * Queuing rather than disabling the composer: a merchant with a second\n * question types it whether or not the box is live, and a dead field loses\n * it. Ids come off a counter rather than the clock — two messages queued in\n * the same millisecond are perfectly ordinary and would collide on a key.\n */\n const nextId = useRef(0);\n const submit = (text: string) => {\n const going = attachments;\n clearAttachments();\n\n if (busy) {\n setQueue((q) => [\n ...q,\n { id: `q${nextId.current++}`, text, attachments: going },\n ]);\n return;\n }\n void run(text, going);\n };\n\n /**\n * THE QUESTION THE HOME BAR HANDED OVER, asked once, here.\n *\n * The home types and presses send; `handOff` puts the sentence and any files\n * on the context and navigates. This is the other end of that: read whatever\n * came with it, then run one turn carrying both.\n *\n * IT RUNS HERE RATHER THAN IN `PotterSurface`, which is where a seed used to\n * be consumed and still is for the launcher's panel. Files changed that: only\n * this hook knows how to turn a `File` into an attachment and put it in a\n * turn, and two consumers would ask the same question twice. The screen\n * passes `consumeSeed={false}` for exactly this reason.\n *\n * THE REF GUARD IS LOAD-BEARING and `clearSeed()` alone is not enough — the\n * ask screen proved that once already. `clearSeed` is a setState, so it takes\n * effect on a later render, and every run of this effect before that render\n * still sees the old seed. Two ways in: StrictMode mounts, runs effects,\n * tears down and runs again (guaranteed double in development), and `run` is\n * a `useCallback` over the tenant and the entity labels, which resolve a beat\n * after mount on a cold navigation — that one bites in production too.\n */\n const seeded = useRef(false);\n useEffect(() => {\n if (!seed && !seedFiles.length) {\n seeded.current = false;\n return;\n }\n if (seeded.current) return;\n seeded.current = true;\n\n const text = seed ?? '';\n const files = seedFiles;\n clearSeed();\n\n void (async () => {\n const read = files.length\n ? (await Promise.all(files.map(readAttachment)))\n .filter((a): a is PotterAttachment => a !== null)\n .slice(0, MAX_ATTACHMENTS)\n : [];\n /* Through the ref for the same reason the queue drains through it: this\n effect must not list `run` as a dependency, or a re-created `run` would\n re-fire the whole handoff. */\n void runRef.current?.(text, read);\n })();\n }, [seed, seedFiles, clearSeed]);\n\n /** Back into the composer, and out of the pile. */\n const editQueued = (item: QueuedMessage) => {\n setQueue((q) => q.filter((x) => x.id !== item.id));\n if (item.attachments?.length) setAttachments(item.attachments);\n setDraft(item.text);\n };\n return {\n draft,\n setDraft,\n attachments,\n attach,\n removeAttachment,\n queue,\n setQueue,\n queueOpen,\n setQueueOpen,\n editQueued,\n submit,\n stop,\n busy,\n };\n}\n"],"mappings":"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","names":[]}
|
package/dist/potter.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './potter/index';
|
package/dist/potter.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './potter/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/preview-layout/index.ts"],"sourcesContent":["export { PreviewLayout } from './preview-layout';\nexport type { PreviewLayoutConfig, PreviewLayoutProps } from './preview-layout';\n"],"mappings":"AAAA,SAAS,qBAAqB;","names":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface PreviewLayoutConfig {
|
|
3
|
+
storageKey: string;
|
|
4
|
+
editorWidthMin: number;
|
|
5
|
+
editorWidthMax: number;
|
|
6
|
+
previewWidthMin: number;
|
|
7
|
+
previewWidthMax: number;
|
|
8
|
+
previewWidthDefault: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PreviewLayoutProps {
|
|
11
|
+
config: PreviewLayoutConfig;
|
|
12
|
+
/** When true, resize handle and width math are active */
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
/** Re-measure layout when this value changes */
|
|
15
|
+
layoutKey?: unknown;
|
|
16
|
+
/** Class applied to the outer flex container */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Class applied to the editor width wrapper */
|
|
19
|
+
editorClassName?: string;
|
|
20
|
+
/** Class applied to the preview width wrapper */
|
|
21
|
+
previewClassName?: string;
|
|
22
|
+
/** Editor pane content */
|
|
23
|
+
editor: ReactNode;
|
|
24
|
+
/** Preview pane content (omit to hide preview) */
|
|
25
|
+
preview?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare function PreviewLayout({ config, enabled, layoutKey, className, editorClassName, previewClassName, editor, preview, }: PreviewLayoutProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import {
|
|
4
|
+
useEffect,
|
|
5
|
+
useRef,
|
|
6
|
+
useState,
|
|
7
|
+
useCallback
|
|
8
|
+
} from "react";
|
|
9
|
+
import { cn } from "@withpotter/lib/utils";
|
|
10
|
+
const LAYOUT_GAP_PX = 12;
|
|
11
|
+
const RESIZE_HANDLE_PX = 12;
|
|
12
|
+
function clamp(value, min, max) {
|
|
13
|
+
return Math.max(min, Math.min(max, value));
|
|
14
|
+
}
|
|
15
|
+
function PreviewLayout({
|
|
16
|
+
config,
|
|
17
|
+
enabled,
|
|
18
|
+
layoutKey,
|
|
19
|
+
className,
|
|
20
|
+
editorClassName,
|
|
21
|
+
previewClassName,
|
|
22
|
+
editor,
|
|
23
|
+
preview
|
|
24
|
+
}) {
|
|
25
|
+
const [previewWidth, setPreviewWidth] = useState(() => {
|
|
26
|
+
if (typeof window === "undefined") return config.previewWidthDefault;
|
|
27
|
+
const raw = window.localStorage.getItem(config.storageKey);
|
|
28
|
+
if (!raw) return config.previewWidthDefault;
|
|
29
|
+
const parsed = Number(raw);
|
|
30
|
+
return Number.isFinite(parsed) ? clamp(parsed, config.previewWidthMin, config.previewWidthMax) : config.previewWidthDefault;
|
|
31
|
+
});
|
|
32
|
+
const [layoutMetrics, setLayoutMetrics] = useState({
|
|
33
|
+
containerWidth: 0,
|
|
34
|
+
maxPreviewWidth: config.previewWidthDefault,
|
|
35
|
+
isDesktop: false
|
|
36
|
+
});
|
|
37
|
+
const containerRef = useRef(null);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
window.localStorage.setItem(config.storageKey, String(previewWidth));
|
|
40
|
+
}, [previewWidth, config.storageKey]);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!enabled) return;
|
|
43
|
+
const container = containerRef.current;
|
|
44
|
+
if (!container) return;
|
|
45
|
+
const updateWidth = () => {
|
|
46
|
+
const containerWidth = container.clientWidth;
|
|
47
|
+
const isDesktopViewport = window.innerWidth >= 1024;
|
|
48
|
+
const desktopMinTotal = config.editorWidthMin + config.previewWidthMin + LAYOUT_GAP_PX + RESIZE_HANDLE_PX;
|
|
49
|
+
const canUseDesktopLayout = isDesktopViewport && containerWidth >= desktopMinTotal;
|
|
50
|
+
if (!canUseDesktopLayout) {
|
|
51
|
+
setLayoutMetrics({
|
|
52
|
+
containerWidth,
|
|
53
|
+
maxPreviewWidth: Math.min(config.previewWidthMax, containerWidth),
|
|
54
|
+
isDesktop: false
|
|
55
|
+
});
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const maxPreviewWidth = Math.min(
|
|
59
|
+
config.previewWidthMax,
|
|
60
|
+
containerWidth - config.editorWidthMin - LAYOUT_GAP_PX - RESIZE_HANDLE_PX
|
|
61
|
+
);
|
|
62
|
+
setLayoutMetrics({
|
|
63
|
+
containerWidth,
|
|
64
|
+
maxPreviewWidth,
|
|
65
|
+
isDesktop: true
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
updateWidth();
|
|
69
|
+
const observer = new ResizeObserver(updateWidth);
|
|
70
|
+
observer.observe(container);
|
|
71
|
+
window.addEventListener("resize", updateWidth);
|
|
72
|
+
return () => {
|
|
73
|
+
observer.disconnect();
|
|
74
|
+
window.removeEventListener("resize", updateWidth);
|
|
75
|
+
};
|
|
76
|
+
}, [
|
|
77
|
+
enabled,
|
|
78
|
+
layoutKey,
|
|
79
|
+
config.editorWidthMin,
|
|
80
|
+
config.previewWidthMin,
|
|
81
|
+
config.previewWidthMax
|
|
82
|
+
]);
|
|
83
|
+
const effectivePreviewWidth = layoutMetrics.isDesktop ? clamp(previewWidth, config.previewWidthMin, layoutMetrics.maxPreviewWidth) : Math.min(config.previewWidthMax, layoutMetrics.maxPreviewWidth);
|
|
84
|
+
const effectiveEditorWidth = layoutMetrics.isDesktop ? clamp(
|
|
85
|
+
layoutMetrics.containerWidth - effectivePreviewWidth - LAYOUT_GAP_PX - RESIZE_HANDLE_PX,
|
|
86
|
+
config.editorWidthMin,
|
|
87
|
+
config.editorWidthMax
|
|
88
|
+
) : void 0;
|
|
89
|
+
const handleResizeStart = useCallback(
|
|
90
|
+
(event) => {
|
|
91
|
+
if (!layoutMetrics.isDesktop) return;
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
const startX = event.clientX;
|
|
94
|
+
const startWidth = previewWidth;
|
|
95
|
+
const onMouseMove = (moveEvent) => {
|
|
96
|
+
const deltaX = moveEvent.clientX - startX;
|
|
97
|
+
setPreviewWidth(
|
|
98
|
+
clamp(
|
|
99
|
+
startWidth - deltaX,
|
|
100
|
+
config.previewWidthMin,
|
|
101
|
+
config.previewWidthMax
|
|
102
|
+
)
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
const onMouseUp = () => {
|
|
106
|
+
document.body.style.cursor = "";
|
|
107
|
+
document.body.style.userSelect = "";
|
|
108
|
+
window.removeEventListener("mousemove", onMouseMove);
|
|
109
|
+
window.removeEventListener("mouseup", onMouseUp);
|
|
110
|
+
};
|
|
111
|
+
document.body.style.cursor = "col-resize";
|
|
112
|
+
document.body.style.userSelect = "none";
|
|
113
|
+
window.addEventListener("mousemove", onMouseMove);
|
|
114
|
+
window.addEventListener("mouseup", onMouseUp);
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
layoutMetrics.isDesktop,
|
|
118
|
+
previewWidth,
|
|
119
|
+
config.previewWidthMin,
|
|
120
|
+
config.previewWidthMax
|
|
121
|
+
]
|
|
122
|
+
);
|
|
123
|
+
const showPreview = preview !== void 0;
|
|
124
|
+
return /* @__PURE__ */ jsxs(
|
|
125
|
+
"div",
|
|
126
|
+
{
|
|
127
|
+
ref: containerRef,
|
|
128
|
+
className: cn(
|
|
129
|
+
"flex flex-col lg:flex-row lg:items-start lg:justify-center",
|
|
130
|
+
className
|
|
131
|
+
),
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
className: cn("min-h-0 w-full lg:shrink-0", editorClassName),
|
|
137
|
+
style: enabled && layoutMetrics.isDesktop && effectiveEditorWidth ? {
|
|
138
|
+
width: `${effectiveEditorWidth}px`,
|
|
139
|
+
maxWidth: `${effectiveEditorWidth}px`
|
|
140
|
+
} : void 0,
|
|
141
|
+
children: editor
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
enabled && showPreview && /* @__PURE__ */ jsx(
|
|
145
|
+
"div",
|
|
146
|
+
{
|
|
147
|
+
className: "hidden lg:flex h-full w-3 shrink-0 items-center justify-center",
|
|
148
|
+
onMouseDown: handleResizeStart,
|
|
149
|
+
role: "separator",
|
|
150
|
+
"aria-orientation": "vertical",
|
|
151
|
+
"aria-label": "Resize preview panel",
|
|
152
|
+
children: /* @__PURE__ */ jsx("div", { className: "h-24 w-[3px] rounded-full bg-[var(--border-default)] hover:bg-brand-500 cursor-col-resize" })
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
showPreview && /* @__PURE__ */ jsx(
|
|
156
|
+
"div",
|
|
157
|
+
{
|
|
158
|
+
className: cn(
|
|
159
|
+
"min-h-0 min-w-0 w-full self-stretch overflow-hidden",
|
|
160
|
+
previewClassName
|
|
161
|
+
),
|
|
162
|
+
style: enabled && layoutMetrics.isDesktop ? {
|
|
163
|
+
// Grow to fill leftover width (no dead right-hand gutter that
|
|
164
|
+
// swallows clicks), but keep the dragged width as the basis so
|
|
165
|
+
// the resize handle still controls the split. Capped at max.
|
|
166
|
+
flex: `1 1 ${effectivePreviewWidth}px`,
|
|
167
|
+
minWidth: 0,
|
|
168
|
+
maxWidth: `${config.previewWidthMax}px`
|
|
169
|
+
} : void 0,
|
|
170
|
+
children: preview
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
export {
|
|
178
|
+
PreviewLayout
|
|
179
|
+
};
|
|
180
|
+
//# sourceMappingURL=preview-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/preview-layout/preview-layout.tsx"],"sourcesContent":["'use client';\n\nimport {\n useEffect,\n useRef,\n useState,\n useCallback,\n type ReactNode,\n} from 'react';\nimport { cn } from '@withpotter/lib/utils';\n\nconst LAYOUT_GAP_PX = 12;\nconst RESIZE_HANDLE_PX = 12;\n\nexport interface PreviewLayoutConfig {\n storageKey: string;\n editorWidthMin: number;\n editorWidthMax: number;\n previewWidthMin: number;\n previewWidthMax: number;\n previewWidthDefault: number;\n}\n\ninterface LayoutMetrics {\n containerWidth: number;\n maxPreviewWidth: number;\n isDesktop: boolean;\n}\n\nexport interface PreviewLayoutProps {\n config: PreviewLayoutConfig;\n /** When true, resize handle and width math are active */\n enabled: boolean;\n /** Re-measure layout when this value changes */\n layoutKey?: unknown;\n /** Class applied to the outer flex container */\n className?: string;\n /** Class applied to the editor width wrapper */\n editorClassName?: string;\n /** Class applied to the preview width wrapper */\n previewClassName?: string;\n /** Editor pane content */\n editor: ReactNode;\n /** Preview pane content (omit to hide preview) */\n preview?: ReactNode;\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.max(min, Math.min(max, value));\n}\n\nexport function PreviewLayout({\n config,\n enabled,\n layoutKey,\n className,\n editorClassName,\n previewClassName,\n editor,\n preview,\n}: PreviewLayoutProps) {\n const [previewWidth, setPreviewWidth] = useState(() => {\n if (typeof window === 'undefined') return config.previewWidthDefault;\n const raw = window.localStorage.getItem(config.storageKey);\n if (!raw) return config.previewWidthDefault;\n const parsed = Number(raw);\n return Number.isFinite(parsed)\n ? clamp(parsed, config.previewWidthMin, config.previewWidthMax)\n : config.previewWidthDefault;\n });\n const [layoutMetrics, setLayoutMetrics] = useState<LayoutMetrics>({\n containerWidth: 0,\n maxPreviewWidth: config.previewWidthDefault,\n isDesktop: false,\n });\n const containerRef = useRef<HTMLDivElement>(null);\n\n // Persist width\n useEffect(() => {\n window.localStorage.setItem(config.storageKey, String(previewWidth));\n }, [previewWidth, config.storageKey]);\n\n // Measure container and compute layout metrics\n useEffect(() => {\n if (!enabled) return;\n const container = containerRef.current;\n if (!container) return;\n\n const updateWidth = () => {\n const containerWidth = container.clientWidth;\n const isDesktopViewport = window.innerWidth >= 1024; // lg breakpoint\n\n const desktopMinTotal =\n config.editorWidthMin +\n config.previewWidthMin +\n LAYOUT_GAP_PX +\n RESIZE_HANDLE_PX;\n\n const canUseDesktopLayout =\n isDesktopViewport && containerWidth >= desktopMinTotal;\n\n if (!canUseDesktopLayout) {\n setLayoutMetrics({\n containerWidth,\n maxPreviewWidth: Math.min(config.previewWidthMax, containerWidth),\n isDesktop: false,\n });\n return;\n }\n\n const maxPreviewWidth = Math.min(\n config.previewWidthMax,\n containerWidth -\n config.editorWidthMin -\n LAYOUT_GAP_PX -\n RESIZE_HANDLE_PX,\n );\n\n setLayoutMetrics({\n containerWidth,\n maxPreviewWidth,\n isDesktop: true,\n });\n };\n\n updateWidth();\n\n const observer = new ResizeObserver(updateWidth);\n observer.observe(container);\n window.addEventListener('resize', updateWidth);\n\n return () => {\n observer.disconnect();\n window.removeEventListener('resize', updateWidth);\n };\n }, [\n enabled,\n layoutKey,\n config.editorWidthMin,\n config.previewWidthMin,\n config.previewWidthMax,\n ]);\n\n const effectivePreviewWidth = layoutMetrics.isDesktop\n ? clamp(previewWidth, config.previewWidthMin, layoutMetrics.maxPreviewWidth)\n : Math.min(config.previewWidthMax, layoutMetrics.maxPreviewWidth);\n\n const effectiveEditorWidth = layoutMetrics.isDesktop\n ? clamp(\n layoutMetrics.containerWidth -\n effectivePreviewWidth -\n LAYOUT_GAP_PX -\n RESIZE_HANDLE_PX,\n config.editorWidthMin,\n config.editorWidthMax,\n )\n : undefined;\n\n const handleResizeStart = useCallback(\n (event: React.MouseEvent<HTMLDivElement>) => {\n if (!layoutMetrics.isDesktop) return;\n event.preventDefault();\n const startX = event.clientX;\n const startWidth = previewWidth;\n\n const onMouseMove = (moveEvent: MouseEvent) => {\n const deltaX = moveEvent.clientX - startX;\n setPreviewWidth(\n clamp(\n startWidth - deltaX,\n config.previewWidthMin,\n config.previewWidthMax,\n ),\n );\n };\n\n const onMouseUp = () => {\n document.body.style.cursor = '';\n document.body.style.userSelect = '';\n window.removeEventListener('mousemove', onMouseMove);\n window.removeEventListener('mouseup', onMouseUp);\n };\n\n document.body.style.cursor = 'col-resize';\n document.body.style.userSelect = 'none';\n window.addEventListener('mousemove', onMouseMove);\n window.addEventListener('mouseup', onMouseUp);\n },\n [\n layoutMetrics.isDesktop,\n previewWidth,\n config.previewWidthMin,\n config.previewWidthMax,\n ],\n );\n\n const showPreview = preview !== undefined;\n\n return (\n <div\n ref={containerRef}\n className={cn(\n 'flex flex-col lg:flex-row lg:items-start lg:justify-center',\n className,\n )}\n >\n {/* Editor pane */}\n <div\n className={cn('min-h-0 w-full lg:shrink-0', editorClassName)}\n style={\n enabled && layoutMetrics.isDesktop && effectiveEditorWidth\n ? {\n width: `${effectiveEditorWidth}px`,\n maxWidth: `${effectiveEditorWidth}px`,\n }\n : undefined\n }\n >\n {editor}\n </div>\n\n {/* Resize handle */}\n {enabled && showPreview && (\n <div\n className=\"hidden lg:flex h-full w-3 shrink-0 items-center justify-center\"\n onMouseDown={handleResizeStart}\n role=\"separator\"\n aria-orientation=\"vertical\"\n aria-label=\"Resize preview panel\"\n >\n <div className=\"h-24 w-[3px] rounded-full bg-[var(--border-default)] hover:bg-brand-500 cursor-col-resize\" />\n </div>\n )}\n\n {/* Preview pane */}\n {showPreview && (\n <div\n className={cn(\n 'min-h-0 min-w-0 w-full self-stretch overflow-hidden',\n previewClassName,\n )}\n style={\n enabled && layoutMetrics.isDesktop\n ? {\n // Grow to fill leftover width (no dead right-hand gutter that\n // swallows clicks), but keep the dragged width as the basis so\n // the resize handle still controls the split. Capped at max.\n flex: `1 1 ${effectivePreviewWidth}px`,\n minWidth: 0,\n maxWidth: `${config.previewWidthMax}px`,\n }\n : undefined\n }\n >\n {preview}\n </div>\n )}\n </div>\n );\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview-layout/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './preview-layout/index.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ProductScanPatch } from './product-qr';
|
|
2
|
+
/** The parts of the editor state a scan writes to. */
|
|
3
|
+
export interface ScanTarget {
|
|
4
|
+
setTitle: (v: string) => void;
|
|
5
|
+
setDescription: (v: string) => void;
|
|
6
|
+
setPrice: (v: number | undefined) => void;
|
|
7
|
+
setCompareAtPrice: (v: number | undefined) => void;
|
|
8
|
+
formValues: Record<string, unknown>;
|
|
9
|
+
setFormValues: (v: Record<string, unknown>) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Writes a scan's details into the editor. Fields the code did not carry
|
|
13
|
+
* keep what the merchant typed; pictures are handled by the Media card.
|
|
14
|
+
* Title and description go into the form values too, the same way typing
|
|
15
|
+
* them does, so the save sees them.
|
|
16
|
+
*/
|
|
17
|
+
export declare function applyProductScan(patch: ProductScanPatch, t: ScanTarget): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function applyProductScan(patch, t) {
|
|
2
|
+
if (patch.title !== void 0) t.setTitle(patch.title);
|
|
3
|
+
if (patch.description !== void 0) t.setDescription(patch.description);
|
|
4
|
+
if (patch.price !== void 0) t.setPrice(patch.price);
|
|
5
|
+
if (patch.compareAtPrice !== void 0)
|
|
6
|
+
t.setCompareAtPrice(patch.compareAtPrice);
|
|
7
|
+
const next = { ...t.formValues };
|
|
8
|
+
if (patch.title !== void 0) next.title = patch.title;
|
|
9
|
+
if (patch.description !== void 0) next.description = patch.description;
|
|
10
|
+
if (patch.sku !== void 0) next.sku = patch.sku;
|
|
11
|
+
if (patch.title !== void 0 || patch.description !== void 0 || patch.sku !== void 0)
|
|
12
|
+
t.setFormValues(next);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
applyProductScan
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=apply-product-scan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/product-editor/camera/apply-product-scan.ts"],"sourcesContent":["import type { ProductScanPatch } from './product-qr';\n\n/** The parts of the editor state a scan writes to. */\nexport interface ScanTarget {\n setTitle: (v: string) => void;\n setDescription: (v: string) => void;\n setPrice: (v: number | undefined) => void;\n setCompareAtPrice: (v: number | undefined) => void;\n formValues: Record<string, unknown>;\n setFormValues: (v: Record<string, unknown>) => void;\n}\n\n/**\n * Writes a scan's details into the editor. Fields the code did not carry\n * keep what the merchant typed; pictures are handled by the Media card.\n * Title and description go into the form values too, the same way typing\n * them does, so the save sees them.\n */\nexport function applyProductScan(patch: ProductScanPatch, t: ScanTarget) {\n if (patch.title !== undefined) t.setTitle(patch.title);\n if (patch.description !== undefined) t.setDescription(patch.description);\n if (patch.price !== undefined) t.setPrice(patch.price);\n if (patch.compareAtPrice !== undefined)\n t.setCompareAtPrice(patch.compareAtPrice);\n\n const next = { ...t.formValues };\n if (patch.title !== undefined) next.title = patch.title;\n if (patch.description !== undefined) next.description = patch.description;\n if (patch.sku !== undefined) next.sku = patch.sku;\n if (\n patch.title !== undefined ||\n patch.description !== undefined ||\n patch.sku !== undefined\n )\n t.setFormValues(next);\n}\n"],"mappings":"AAkBO,SAAS,iBAAiB,OAAyB,GAAe;AACvE,MAAI,MAAM,UAAU,OAAW,GAAE,SAAS,MAAM,KAAK;AACrD,MAAI,MAAM,gBAAgB,OAAW,GAAE,eAAe,MAAM,WAAW;AACvE,MAAI,MAAM,UAAU,OAAW,GAAE,SAAS,MAAM,KAAK;AACrD,MAAI,MAAM,mBAAmB;AAC3B,MAAE,kBAAkB,MAAM,cAAc;AAE1C,QAAM,OAAO,EAAE,GAAG,EAAE,WAAW;AAC/B,MAAI,MAAM,UAAU,OAAW,MAAK,QAAQ,MAAM;AAClD,MAAI,MAAM,gBAAgB,OAAW,MAAK,cAAc,MAAM;AAC9D,MAAI,MAAM,QAAQ,OAAW,MAAK,MAAM,MAAM;AAC9C,MACE,MAAM,UAAU,UAChB,MAAM,gBAAgB,UACtB,MAAM,QAAQ;AAEd,MAAE,cAAc,IAAI;AACxB;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ScanOutcome {
|
|
2
|
+
ok: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
}
|
|
5
|
+
interface CameraCaptureProps {
|
|
6
|
+
open: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
/** A photo from the shutter, or files chosen instead. */
|
|
9
|
+
onPhotos: (files: File[]) => void;
|
|
10
|
+
/** A QR code was read. Resolves with what to tell the merchant. */
|
|
11
|
+
onScan: (text: string) => Promise<ScanOutcome>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* ONE VIEW, TWO WAYS IN.
|
|
15
|
+
*
|
|
16
|
+
* Like the phone's own camera: hold it over a product QR code and the code
|
|
17
|
+
* is read on its own; press the shutter and it is a photo. There is no mode
|
|
18
|
+
* switch to find first. A code that is read fills the item and the view
|
|
19
|
+
* closes on its own so the merchant sees what changed; a photo stays and
|
|
20
|
+
* the view stays open for the next one.
|
|
21
|
+
*/
|
|
22
|
+
export declare function CameraCapture({ open, onClose, onPhotos, onScan, }: CameraCaptureProps): import("react").ReactPortal | null;
|
|
23
|
+
export {};
|