@brett_lamy/ui 2.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -5
- package/dist/components/adaptive-pane.d.ts.map +1 -1
- package/dist/components/adaptive-pane.js +30 -0
- package/dist/components/animated-height.d.ts.map +1 -1
- package/dist/components/animated-height.js +82 -0
- package/dist/{templates → components}/artifact-chat-container.d.ts +12 -5
- package/dist/components/artifact-chat-container.d.ts.map +1 -0
- package/dist/components/artifact-chat-container.js +200 -0
- package/dist/components/avatar.js +26 -0
- package/dist/components/badge.js +24 -0
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +46 -0
- package/dist/components/card.js +56 -0
- package/dist/components/celebrate.d.ts.map +1 -1
- package/dist/components/celebrate.js +142 -0
- package/dist/components/chat-column.d.ts.map +1 -0
- package/dist/components/chat-column.js +26 -0
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +55 -0
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.d.ts.map +1 -1
- package/dist/components/combobox.js +65 -0
- package/dist/components/command-menu.d.ts.map +1 -1
- package/dist/components/command-menu.js +906 -0
- package/dist/components/composer/annotator.d.ts.map +1 -0
- package/dist/components/composer/annotator.js +17 -0
- package/dist/components/composer/composer-files.d.ts.map +1 -0
- package/dist/components/composer/composer-files.js +91 -0
- package/dist/components/{workbench/wb-popover.d.ts → composer/composer-popover.d.ts} +1 -1
- package/dist/components/composer/composer-popover.d.ts.map +1 -0
- package/dist/components/composer/composer-popover.js +29 -0
- package/dist/components/{workbench → composer}/composer.d.ts +3 -3
- package/dist/components/composer/composer.d.ts.map +1 -0
- package/dist/components/composer/composer.js +1633 -0
- package/dist/components/{workbench/chat.d.ts → conversation.d.ts} +2 -2
- package/dist/components/conversation.d.ts.map +1 -0
- package/dist/components/conversation.js +357 -0
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.js +294 -0
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +125 -0
- package/dist/components/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure.js +59 -0
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +114 -0
- package/dist/components/edge-drawer.js +73 -0
- package/dist/components/edit-bar.d.ts.map +1 -1
- package/dist/components/edit-bar.js +33 -0
- package/dist/components/{chat/floating-chat.d.ts → floating-chat.d.ts} +8 -4
- package/dist/components/floating-chat.d.ts.map +1 -0
- package/dist/components/floating-chat.js +288 -0
- package/dist/components/{chat/floating-sheet.d.ts → floating-sheet.d.ts} +5 -5
- package/dist/components/floating-sheet.d.ts.map +1 -0
- package/dist/components/floating-sheet.js +252 -0
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/form.js +32 -0
- package/dist/{lib/workbench/icons.d.ts → components/icon-button.d.ts} +5 -5
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button.js +31 -0
- package/dist/components/icon-swap.d.ts.map +1 -1
- package/dist/components/icon-swap.js +80 -0
- package/dist/components/index-bar.d.ts +14 -1
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.js +249 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +30 -0
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +21 -0
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +22 -0
- package/dist/components/list-box.d.ts +1 -3
- package/dist/components/list-box.d.ts.map +1 -1
- package/dist/components/list-box.js +104 -0
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +491 -0
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +322 -0
- package/dist/components/{workbench/markdown.d.ts → markdown-view.d.ts} +1 -1
- package/dist/components/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view.js +129 -0
- package/dist/components/measure-h.d.ts.map +1 -1
- package/dist/components/measure-h.js +20 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +247 -0
- package/dist/components/morph.d.ts.map +1 -1
- package/dist/components/morph.js +89 -0
- package/dist/components/navigation-stack.d.ts +14 -0
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +506 -0
- package/dist/components/now-playing-bars.js +38 -0
- package/dist/components/number-morph.d.ts.map +1 -1
- package/dist/components/number-morph.js +123 -0
- package/dist/components/pencilkit/constants.d.ts.map +1 -0
- package/dist/components/pencilkit/constants.js +63 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-canvas.js +105 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts +2 -2
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.js +186 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.js +44 -0
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/stroke-path.d.ts.map +1 -1
- package/dist/components/pencilkit/stroke-path.js +44 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -1
- package/dist/components/pencilkit/use-pencil-history.js +25 -0
- package/dist/components/plain-button.d.ts +10 -0
- package/dist/components/plain-button.d.ts.map +1 -0
- package/dist/components/plain-button.js +23 -0
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +36 -0
- package/dist/components/progress-ring.d.ts.map +1 -1
- package/dist/components/progress-ring.js +195 -0
- package/dist/components/progress-stepper.d.ts.map +1 -0
- package/dist/components/progress-stepper.js +62 -0
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +54 -0
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.js +74 -0
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +41 -0
- package/dist/components/replay-preview.d.ts +4 -0
- package/dist/components/replay-preview.d.ts.map +1 -0
- package/dist/components/replay-preview.js +3 -0
- package/dist/components/scroll-area.js +23 -0
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.js +44 -0
- package/dist/components/segmented.d.ts +1 -1
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.js +32 -0
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +93 -0
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +40 -0
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +55 -0
- package/dist/components/side-drawer.d.ts +10 -1
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.js +247 -0
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +282 -0
- package/dist/components/skeleton.js +48 -0
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +98 -0
- package/dist/components/snap-sheet.d.ts.map +1 -0
- package/dist/components/snap-sheet.js +100 -0
- package/dist/components/spinner.js +35 -0
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.js +1060 -0
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +27 -0
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.js +293 -0
- package/dist/components/tab-bar.js +28 -0
- package/dist/components/tab-view.d.ts +1 -1
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.js +307 -0
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +86 -0
- package/dist/components/text-field.d.ts.map +1 -1
- package/dist/components/text-field.js +29 -0
- package/dist/components/text-morph.d.ts.map +1 -1
- package/dist/components/text-morph.js +131 -0
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/textarea.js +30 -0
- package/dist/components/toast.d.ts +0 -2
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +302 -0
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group.js +48 -0
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/components/toggle.js +42 -0
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +42 -0
- package/dist/{lib/workbench/theme.d.ts → components/workbench-theme.d.ts} +2 -2
- package/dist/components/workbench-theme.d.ts.map +1 -0
- package/dist/components/workbench-theme.js +34 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +29 -47
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +94 -20350
- package/dist/lib/append-stream.d.ts +43 -0
- package/dist/lib/append-stream.d.ts.map +1 -0
- package/dist/lib/append-stream.js +128 -0
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/container.js +49 -0
- package/dist/lib/durable-streams.d.ts +102 -0
- package/dist/lib/durable-streams.d.ts.map +1 -0
- package/dist/lib/durable-streams.js +280 -0
- package/dist/lib/icon-shapes/chat.js +13 -0
- package/dist/lib/icon-shapes/pencilkit.js +20 -0
- package/dist/lib/icon-shapes/workbench.js +47 -0
- package/dist/lib/icon.d.ts +1 -1
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.js +1774 -0
- package/dist/lib/motion.d.ts +16 -0
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +104 -0
- package/dist/lib/{chat/persistent-host.d.ts → persistent-host.d.ts} +1 -1
- package/dist/lib/persistent-host.d.ts.map +1 -0
- package/dist/lib/persistent-host.js +41 -0
- package/dist/lib/primitives.js +8 -0
- package/dist/lib/qr.js +552 -0
- package/dist/lib/row-label.d.ts.map +1 -1
- package/dist/lib/row-label.js +10 -0
- package/dist/lib/session-recorder.d.ts +87 -0
- package/dist/lib/session-recorder.d.ts.map +1 -0
- package/dist/lib/session-recorder.js +257 -0
- package/dist/lib/sheet-drag.d.ts +1 -1
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/sheet-drag.js +128 -0
- package/dist/lib/syntax.js +204 -0
- package/dist/lib/theme.d.ts +33 -8
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +138 -0
- package/dist/lib/tokens.generated.d.ts +16 -0
- package/dist/lib/tokens.generated.d.ts.map +1 -0
- package/dist/lib/tokens.generated.js +22 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +18 -0
- package/dist/theme.css +0 -60
- package/package.json +5 -7
- package/dist/components/adaptive-pane.stories.d.ts +0 -7
- package/dist/components/adaptive-pane.stories.d.ts.map +0 -1
- package/dist/components/avatar.stories.d.ts +0 -9
- package/dist/components/avatar.stories.d.ts.map +0 -1
- package/dist/components/badge.stories.d.ts +0 -9
- package/dist/components/badge.stories.d.ts.map +0 -1
- package/dist/components/button.stories.d.ts +0 -11
- package/dist/components/button.stories.d.ts.map +0 -1
- package/dist/components/card.stories.d.ts +0 -9
- package/dist/components/card.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-column.d.ts.map +0 -1
- package/dist/components/chat/chat-column.stories.d.ts +0 -9
- package/dist/components/chat/chat-column.stories.d.ts.map +0 -1
- package/dist/components/chat/floating-chat.d.ts.map +0 -1
- package/dist/components/chat/floating-chat.stories.d.ts +0 -17
- package/dist/components/chat/floating-chat.stories.d.ts.map +0 -1
- package/dist/components/chat/floating-sheet.d.ts.map +0 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +0 -22
- package/dist/components/chat/floating-sheet.stories.d.ts.map +0 -1
- package/dist/components/chat/progress-stepper.d.ts.map +0 -1
- package/dist/components/checkbox.stories.d.ts +0 -11
- package/dist/components/checkbox.stories.d.ts.map +0 -1
- package/dist/components/combobox.stories.d.ts +0 -10
- package/dist/components/combobox.stories.d.ts.map +0 -1
- package/dist/components/command-menu.stories.d.ts +0 -17
- package/dist/components/command-menu.stories.d.ts.map +0 -1
- package/dist/components/credenza.stories.d.ts +0 -8
- package/dist/components/credenza.stories.d.ts.map +0 -1
- package/dist/components/dialog.stories.d.ts +0 -12
- package/dist/components/dialog.stories.d.ts.map +0 -1
- package/dist/components/disclosure.stories.d.ts +0 -10
- package/dist/components/disclosure.stories.d.ts.map +0 -1
- package/dist/components/dropdown-menu.stories.d.ts +0 -11
- package/dist/components/dropdown-menu.stories.d.ts.map +0 -1
- package/dist/components/edge-drawer.stories.d.ts +0 -8
- package/dist/components/edge-drawer.stories.d.ts.map +0 -1
- package/dist/components/edit-bar.stories.d.ts +0 -10
- package/dist/components/edit-bar.stories.d.ts.map +0 -1
- package/dist/components/form.stories.d.ts +0 -9
- package/dist/components/form.stories.d.ts.map +0 -1
- package/dist/components/haptic-indicator.d.ts +0 -11
- package/dist/components/haptic-indicator.d.ts.map +0 -1
- package/dist/components/haptic-indicator.stories.d.ts +0 -8
- package/dist/components/haptic-indicator.stories.d.ts.map +0 -1
- package/dist/components/index-bar.stories.d.ts +0 -12
- package/dist/components/index-bar.stories.d.ts.map +0 -1
- package/dist/components/input.stories.d.ts +0 -10
- package/dist/components/input.stories.d.ts.map +0 -1
- package/dist/components/kbd.stories.d.ts +0 -9
- package/dist/components/kbd.stories.d.ts.map +0 -1
- package/dist/components/label.stories.d.ts +0 -8
- package/dist/components/label.stories.d.ts.map +0 -1
- package/dist/components/list-box.stories.d.ts +0 -9
- package/dist/components/list-box.stories.d.ts.map +0 -1
- package/dist/components/list-row.stories.d.ts +0 -24
- package/dist/components/list-row.stories.d.ts.map +0 -1
- package/dist/components/list.stories.d.ts +0 -27
- package/dist/components/list.stories.d.ts.map +0 -1
- package/dist/components/markdown-editor.stories.d.ts +0 -17
- package/dist/components/markdown-editor.stories.d.ts.map +0 -1
- package/dist/components/morph.stories.d.ts +0 -14
- package/dist/components/morph.stories.d.ts.map +0 -1
- package/dist/components/motion.stories.d.ts +0 -15
- package/dist/components/motion.stories.d.ts.map +0 -1
- package/dist/components/navigation-stack.stories.d.ts +0 -31
- package/dist/components/navigation-stack.stories.d.ts.map +0 -1
- package/dist/components/now-playing-bars.stories.d.ts +0 -12
- package/dist/components/now-playing-bars.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +0 -18
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +0 -10
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +0 -1
- package/dist/components/popover.stories.d.ts +0 -9
- package/dist/components/popover.stories.d.ts.map +0 -1
- package/dist/components/progress-ring.stories.d.ts +0 -15
- package/dist/components/progress-ring.stories.d.ts.map +0 -1
- package/dist/components/progress.stories.d.ts +0 -10
- package/dist/components/progress.stories.d.ts.map +0 -1
- package/dist/components/qr-svg.stories.d.ts +0 -16
- package/dist/components/qr-svg.stories.d.ts.map +0 -1
- package/dist/components/radio-group.stories.d.ts +0 -10
- package/dist/components/radio-group.stories.d.ts.map +0 -1
- package/dist/components/scroll-area.stories.d.ts +0 -8
- package/dist/components/scroll-area.stories.d.ts.map +0 -1
- package/dist/components/search-field.stories.d.ts +0 -10
- package/dist/components/search-field.stories.d.ts.map +0 -1
- package/dist/components/segmented.stories.d.ts +0 -8
- package/dist/components/segmented.stories.d.ts.map +0 -1
- package/dist/components/select.stories.d.ts +0 -12
- package/dist/components/select.stories.d.ts.map +0 -1
- package/dist/components/separator.stories.d.ts +0 -9
- package/dist/components/separator.stories.d.ts.map +0 -1
- package/dist/components/sheet.stories.d.ts +0 -12
- package/dist/components/sheet.stories.d.ts.map +0 -1
- package/dist/components/side-drawer.stories.d.ts +0 -8
- package/dist/components/side-drawer.stories.d.ts.map +0 -1
- package/dist/components/sidebar.stories.d.ts +0 -10
- package/dist/components/sidebar.stories.d.ts.map +0 -1
- package/dist/components/skeleton.stories.d.ts +0 -11
- package/dist/components/skeleton.stories.d.ts.map +0 -1
- package/dist/components/slider.stories.d.ts +0 -12
- package/dist/components/slider.stories.d.ts.map +0 -1
- package/dist/components/spinner.stories.d.ts +0 -9
- package/dist/components/spinner.stories.d.ts.map +0 -1
- package/dist/components/split-view.stories.d.ts +0 -58
- package/dist/components/split-view.stories.d.ts.map +0 -1
- package/dist/components/switch.stories.d.ts +0 -9
- package/dist/components/switch.stories.d.ts.map +0 -1
- package/dist/components/syntax-highlighting.stories.d.ts +0 -18
- package/dist/components/syntax-highlighting.stories.d.ts.map +0 -1
- package/dist/components/tab-bar.stories.d.ts +0 -8
- package/dist/components/tab-bar.stories.d.ts.map +0 -1
- package/dist/components/tab-view.stories.d.ts +0 -37
- package/dist/components/tab-view.stories.d.ts.map +0 -1
- package/dist/components/tabs.stories.d.ts +0 -9
- package/dist/components/tabs.stories.d.ts.map +0 -1
- package/dist/components/text-field.stories.d.ts +0 -9
- package/dist/components/text-field.stories.d.ts.map +0 -1
- package/dist/components/toast.stories.d.ts +0 -13
- package/dist/components/toast.stories.d.ts.map +0 -1
- package/dist/components/toggle-group.stories.d.ts +0 -10
- package/dist/components/toggle-group.stories.d.ts.map +0 -1
- package/dist/components/toggle.stories.d.ts +0 -9
- package/dist/components/toggle.stories.d.ts.map +0 -1
- package/dist/components/tooltip.stories.d.ts +0 -11
- package/dist/components/tooltip.stories.d.ts.map +0 -1
- package/dist/components/workbench/annotator.d.ts.map +0 -1
- package/dist/components/workbench/chat.d.ts.map +0 -1
- package/dist/components/workbench/chat.stories.d.ts +0 -13
- package/dist/components/workbench/chat.stories.d.ts.map +0 -1
- package/dist/components/workbench/composer-files.d.ts.map +0 -1
- package/dist/components/workbench/composer.d.ts.map +0 -1
- package/dist/components/workbench/composer.stories.d.ts +0 -35
- package/dist/components/workbench/composer.stories.d.ts.map +0 -1
- package/dist/components/workbench/fixtures.d.ts +0 -38
- package/dist/components/workbench/fixtures.d.ts.map +0 -1
- package/dist/components/workbench/markdown.d.ts.map +0 -1
- package/dist/components/workbench/message-scroller.d.ts.map +0 -1
- package/dist/components/workbench/message-scroller.stories.d.ts +0 -9
- package/dist/components/workbench/message-scroller.stories.d.ts.map +0 -1
- package/dist/components/workbench/model-picker.d.ts +0 -29
- package/dist/components/workbench/model-picker.d.ts.map +0 -1
- package/dist/components/workbench/models.d.ts +0 -32
- package/dist/components/workbench/models.d.ts.map +0 -1
- package/dist/components/workbench/snap-sheet.d.ts.map +0 -1
- package/dist/components/workbench/snap-sheet.stories.d.ts +0 -8
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +0 -1
- package/dist/components/workbench/surfaces.d.ts +0 -67
- package/dist/components/workbench/surfaces.d.ts.map +0 -1
- package/dist/components/workbench/surfaces.stories.d.ts +0 -15
- package/dist/components/workbench/surfaces.stories.d.ts.map +0 -1
- package/dist/components/workbench/terminal.d.ts +0 -51
- package/dist/components/workbench/terminal.d.ts.map +0 -1
- package/dist/components/workbench/terminal.stories.d.ts +0 -8
- package/dist/components/workbench/terminal.stories.d.ts.map +0 -1
- package/dist/components/workbench/wb-popover.d.ts.map +0 -1
- package/dist/components/workbench/workbench-composer.d.ts +0 -26
- package/dist/components/workbench/workbench-composer.d.ts.map +0 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +0 -41
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +0 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +0 -13
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +0 -1
- package/dist/demos/haptics-playground.d.ts +0 -18
- package/dist/demos/haptics-playground.d.ts.map +0 -1
- package/dist/demos/haptics-playground.stories.d.ts +0 -8
- package/dist/demos/haptics-playground.stories.d.ts.map +0 -1
- package/dist/demos/map-chat/geo.d.ts +0 -46
- package/dist/demos/map-chat/geo.d.ts.map +0 -1
- package/dist/demos/map-chat/map-agent.d.ts +0 -48
- package/dist/demos/map-chat/map-agent.d.ts.map +0 -1
- package/dist/demos/map-chat/map-chat-demo.d.ts +0 -19
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +0 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +0 -16
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +0 -1
- package/dist/demos/map-chat/map-icons.d.ts +0 -44
- package/dist/demos/map-chat/map-icons.d.ts.map +0 -1
- package/dist/demos/map-chat/places.d.ts +0 -29
- package/dist/demos/map-chat/places.d.ts.map +0 -1
- package/dist/demos/map-chat/tile-map.d.ts +0 -108
- package/dist/demos/map-chat/tile-map.d.ts.map +0 -1
- package/dist/demos/pencilkit/demo-strokes.d.ts +0 -4
- package/dist/demos/pencilkit/demo-strokes.d.ts.map +0 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +0 -17
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +0 -1
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +0 -11
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +0 -1
- package/dist/demos/sidebar-demo.d.ts +0 -6
- package/dist/demos/sidebar-demo.d.ts.map +0 -1
- package/dist/demos/split-view-demos.d.ts +0 -50
- package/dist/demos/split-view-demos.d.ts.map +0 -1
- package/dist/lib/chat/chat-shell-context.d.ts +0 -20
- package/dist/lib/chat/chat-shell-context.d.ts.map +0 -1
- package/dist/lib/chat/persistent-host.d.ts.map +0 -1
- package/dist/lib/haptics.d.ts +0 -27
- package/dist/lib/haptics.d.ts.map +0 -1
- package/dist/lib/icon.stories.d.ts +0 -15
- package/dist/lib/icon.stories.d.ts.map +0 -1
- package/dist/lib/pencilkit/constants.d.ts.map +0 -1
- package/dist/lib/workbench/haptics.d.ts +0 -3
- package/dist/lib/workbench/haptics.d.ts.map +0 -1
- package/dist/lib/workbench/icons.d.ts.map +0 -1
- package/dist/lib/workbench/motion.d.ts +0 -19
- package/dist/lib/workbench/motion.d.ts.map +0 -1
- package/dist/lib/workbench/press.d.ts +0 -10
- package/dist/lib/workbench/press.d.ts.map +0 -1
- package/dist/lib/workbench/theme.d.ts.map +0 -1
- package/dist/lib/workbench/util.d.ts +0 -8
- package/dist/lib/workbench/util.d.ts.map +0 -1
- package/dist/stories/frame.d.ts +0 -16
- package/dist/stories/frame.d.ts.map +0 -1
- package/dist/stories/primitive-frame.d.ts +0 -20
- package/dist/stories/primitive-frame.d.ts.map +0 -1
- package/dist/templates/artifact-chat-container.d.ts.map +0 -1
- package/dist/templates/artifact-chat-container.stories.d.ts +0 -24
- package/dist/templates/artifact-chat-container.stories.d.ts.map +0 -1
- package/dist/templates/chat-shell.d.ts +0 -87
- package/dist/templates/chat-shell.d.ts.map +0 -1
- package/dist/templates/workbench-shell.d.ts +0 -177
- package/dist/templates/workbench-shell.d.ts.map +0 -1
- package/dist/templates/workbench-shell.stories.d.ts +0 -17
- package/dist/templates/workbench-shell.stories.d.ts.map +0 -1
- /package/dist/components/{chat/chat-column.d.ts → chat-column.d.ts} +0 -0
- /package/dist/components/{workbench → composer}/annotator.d.ts +0 -0
- /package/dist/components/{workbench → composer}/composer-files.d.ts +0 -0
- /package/dist/components/{workbench/message-scroller.d.ts → message-scroller.d.ts} +0 -0
- /package/dist/{lib → components}/pencilkit/constants.d.ts +0 -0
- /package/dist/components/{chat/progress-stepper.d.ts → progress-stepper.d.ts} +0 -0
- /package/dist/components/{workbench/snap-sheet.d.ts → snap-sheet.d.ts} +0 -0
package/dist/lib/qr.js
ADDED
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
//#region src/lib/qr.ts
|
|
2
|
+
var e = {
|
|
3
|
+
L: 0,
|
|
4
|
+
M: 1,
|
|
5
|
+
Q: 2,
|
|
6
|
+
H: 3
|
|
7
|
+
}, t = {
|
|
8
|
+
L: 1,
|
|
9
|
+
M: 0,
|
|
10
|
+
Q: 3,
|
|
11
|
+
H: 2
|
|
12
|
+
}, n = [
|
|
13
|
+
[
|
|
14
|
+
-1,
|
|
15
|
+
7,
|
|
16
|
+
10,
|
|
17
|
+
15,
|
|
18
|
+
20,
|
|
19
|
+
26,
|
|
20
|
+
18,
|
|
21
|
+
20,
|
|
22
|
+
24,
|
|
23
|
+
30,
|
|
24
|
+
18,
|
|
25
|
+
20,
|
|
26
|
+
24,
|
|
27
|
+
26,
|
|
28
|
+
30,
|
|
29
|
+
22,
|
|
30
|
+
24,
|
|
31
|
+
28,
|
|
32
|
+
30,
|
|
33
|
+
28,
|
|
34
|
+
28,
|
|
35
|
+
28,
|
|
36
|
+
28,
|
|
37
|
+
30,
|
|
38
|
+
30,
|
|
39
|
+
26,
|
|
40
|
+
28,
|
|
41
|
+
30,
|
|
42
|
+
30,
|
|
43
|
+
30,
|
|
44
|
+
30,
|
|
45
|
+
30,
|
|
46
|
+
30,
|
|
47
|
+
30,
|
|
48
|
+
30,
|
|
49
|
+
30,
|
|
50
|
+
30,
|
|
51
|
+
30,
|
|
52
|
+
30,
|
|
53
|
+
30,
|
|
54
|
+
30
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
-1,
|
|
58
|
+
10,
|
|
59
|
+
16,
|
|
60
|
+
26,
|
|
61
|
+
18,
|
|
62
|
+
24,
|
|
63
|
+
16,
|
|
64
|
+
18,
|
|
65
|
+
22,
|
|
66
|
+
22,
|
|
67
|
+
26,
|
|
68
|
+
30,
|
|
69
|
+
22,
|
|
70
|
+
22,
|
|
71
|
+
24,
|
|
72
|
+
24,
|
|
73
|
+
28,
|
|
74
|
+
28,
|
|
75
|
+
26,
|
|
76
|
+
26,
|
|
77
|
+
26,
|
|
78
|
+
26,
|
|
79
|
+
28,
|
|
80
|
+
28,
|
|
81
|
+
28,
|
|
82
|
+
28,
|
|
83
|
+
28,
|
|
84
|
+
28,
|
|
85
|
+
28,
|
|
86
|
+
28,
|
|
87
|
+
28,
|
|
88
|
+
28,
|
|
89
|
+
28,
|
|
90
|
+
28,
|
|
91
|
+
28,
|
|
92
|
+
28,
|
|
93
|
+
28,
|
|
94
|
+
28,
|
|
95
|
+
28,
|
|
96
|
+
28,
|
|
97
|
+
28
|
|
98
|
+
],
|
|
99
|
+
[
|
|
100
|
+
-1,
|
|
101
|
+
13,
|
|
102
|
+
22,
|
|
103
|
+
18,
|
|
104
|
+
26,
|
|
105
|
+
18,
|
|
106
|
+
24,
|
|
107
|
+
18,
|
|
108
|
+
22,
|
|
109
|
+
20,
|
|
110
|
+
24,
|
|
111
|
+
28,
|
|
112
|
+
26,
|
|
113
|
+
24,
|
|
114
|
+
20,
|
|
115
|
+
30,
|
|
116
|
+
24,
|
|
117
|
+
28,
|
|
118
|
+
28,
|
|
119
|
+
26,
|
|
120
|
+
30,
|
|
121
|
+
28,
|
|
122
|
+
30,
|
|
123
|
+
30,
|
|
124
|
+
30,
|
|
125
|
+
30,
|
|
126
|
+
28,
|
|
127
|
+
30,
|
|
128
|
+
30,
|
|
129
|
+
30,
|
|
130
|
+
30,
|
|
131
|
+
30,
|
|
132
|
+
30,
|
|
133
|
+
30,
|
|
134
|
+
30,
|
|
135
|
+
30,
|
|
136
|
+
30,
|
|
137
|
+
30,
|
|
138
|
+
30,
|
|
139
|
+
30,
|
|
140
|
+
30
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
-1,
|
|
144
|
+
17,
|
|
145
|
+
28,
|
|
146
|
+
22,
|
|
147
|
+
16,
|
|
148
|
+
22,
|
|
149
|
+
28,
|
|
150
|
+
26,
|
|
151
|
+
26,
|
|
152
|
+
24,
|
|
153
|
+
28,
|
|
154
|
+
24,
|
|
155
|
+
28,
|
|
156
|
+
22,
|
|
157
|
+
24,
|
|
158
|
+
24,
|
|
159
|
+
30,
|
|
160
|
+
28,
|
|
161
|
+
28,
|
|
162
|
+
26,
|
|
163
|
+
28,
|
|
164
|
+
30,
|
|
165
|
+
24,
|
|
166
|
+
30,
|
|
167
|
+
30,
|
|
168
|
+
30,
|
|
169
|
+
30,
|
|
170
|
+
30,
|
|
171
|
+
30,
|
|
172
|
+
30,
|
|
173
|
+
30,
|
|
174
|
+
30,
|
|
175
|
+
30,
|
|
176
|
+
30,
|
|
177
|
+
30,
|
|
178
|
+
30,
|
|
179
|
+
30,
|
|
180
|
+
30,
|
|
181
|
+
30,
|
|
182
|
+
30,
|
|
183
|
+
30
|
|
184
|
+
]
|
|
185
|
+
], r = [
|
|
186
|
+
[
|
|
187
|
+
-1,
|
|
188
|
+
1,
|
|
189
|
+
1,
|
|
190
|
+
1,
|
|
191
|
+
1,
|
|
192
|
+
1,
|
|
193
|
+
2,
|
|
194
|
+
2,
|
|
195
|
+
2,
|
|
196
|
+
2,
|
|
197
|
+
4,
|
|
198
|
+
4,
|
|
199
|
+
4,
|
|
200
|
+
4,
|
|
201
|
+
4,
|
|
202
|
+
6,
|
|
203
|
+
6,
|
|
204
|
+
6,
|
|
205
|
+
6,
|
|
206
|
+
7,
|
|
207
|
+
8,
|
|
208
|
+
8,
|
|
209
|
+
9,
|
|
210
|
+
9,
|
|
211
|
+
10,
|
|
212
|
+
12,
|
|
213
|
+
12,
|
|
214
|
+
12,
|
|
215
|
+
13,
|
|
216
|
+
14,
|
|
217
|
+
15,
|
|
218
|
+
16,
|
|
219
|
+
17,
|
|
220
|
+
18,
|
|
221
|
+
19,
|
|
222
|
+
19,
|
|
223
|
+
20,
|
|
224
|
+
21,
|
|
225
|
+
22,
|
|
226
|
+
24,
|
|
227
|
+
25
|
|
228
|
+
],
|
|
229
|
+
[
|
|
230
|
+
-1,
|
|
231
|
+
1,
|
|
232
|
+
1,
|
|
233
|
+
1,
|
|
234
|
+
2,
|
|
235
|
+
2,
|
|
236
|
+
4,
|
|
237
|
+
4,
|
|
238
|
+
4,
|
|
239
|
+
5,
|
|
240
|
+
5,
|
|
241
|
+
5,
|
|
242
|
+
8,
|
|
243
|
+
9,
|
|
244
|
+
9,
|
|
245
|
+
10,
|
|
246
|
+
10,
|
|
247
|
+
11,
|
|
248
|
+
13,
|
|
249
|
+
14,
|
|
250
|
+
16,
|
|
251
|
+
17,
|
|
252
|
+
17,
|
|
253
|
+
18,
|
|
254
|
+
20,
|
|
255
|
+
21,
|
|
256
|
+
23,
|
|
257
|
+
25,
|
|
258
|
+
26,
|
|
259
|
+
28,
|
|
260
|
+
29,
|
|
261
|
+
31,
|
|
262
|
+
33,
|
|
263
|
+
35,
|
|
264
|
+
37,
|
|
265
|
+
38,
|
|
266
|
+
40,
|
|
267
|
+
43,
|
|
268
|
+
45,
|
|
269
|
+
47,
|
|
270
|
+
49
|
|
271
|
+
],
|
|
272
|
+
[
|
|
273
|
+
-1,
|
|
274
|
+
1,
|
|
275
|
+
1,
|
|
276
|
+
2,
|
|
277
|
+
2,
|
|
278
|
+
4,
|
|
279
|
+
4,
|
|
280
|
+
6,
|
|
281
|
+
6,
|
|
282
|
+
8,
|
|
283
|
+
8,
|
|
284
|
+
8,
|
|
285
|
+
10,
|
|
286
|
+
12,
|
|
287
|
+
16,
|
|
288
|
+
12,
|
|
289
|
+
17,
|
|
290
|
+
16,
|
|
291
|
+
18,
|
|
292
|
+
21,
|
|
293
|
+
20,
|
|
294
|
+
23,
|
|
295
|
+
23,
|
|
296
|
+
25,
|
|
297
|
+
27,
|
|
298
|
+
29,
|
|
299
|
+
34,
|
|
300
|
+
34,
|
|
301
|
+
35,
|
|
302
|
+
38,
|
|
303
|
+
40,
|
|
304
|
+
43,
|
|
305
|
+
45,
|
|
306
|
+
48,
|
|
307
|
+
51,
|
|
308
|
+
53,
|
|
309
|
+
56,
|
|
310
|
+
59,
|
|
311
|
+
62,
|
|
312
|
+
65,
|
|
313
|
+
68
|
|
314
|
+
],
|
|
315
|
+
[
|
|
316
|
+
-1,
|
|
317
|
+
1,
|
|
318
|
+
1,
|
|
319
|
+
2,
|
|
320
|
+
4,
|
|
321
|
+
4,
|
|
322
|
+
4,
|
|
323
|
+
5,
|
|
324
|
+
6,
|
|
325
|
+
8,
|
|
326
|
+
8,
|
|
327
|
+
11,
|
|
328
|
+
11,
|
|
329
|
+
16,
|
|
330
|
+
16,
|
|
331
|
+
18,
|
|
332
|
+
16,
|
|
333
|
+
19,
|
|
334
|
+
21,
|
|
335
|
+
25,
|
|
336
|
+
25,
|
|
337
|
+
25,
|
|
338
|
+
34,
|
|
339
|
+
30,
|
|
340
|
+
32,
|
|
341
|
+
35,
|
|
342
|
+
37,
|
|
343
|
+
40,
|
|
344
|
+
42,
|
|
345
|
+
45,
|
|
346
|
+
48,
|
|
347
|
+
51,
|
|
348
|
+
54,
|
|
349
|
+
57,
|
|
350
|
+
60,
|
|
351
|
+
63,
|
|
352
|
+
66,
|
|
353
|
+
70,
|
|
354
|
+
74,
|
|
355
|
+
77,
|
|
356
|
+
81
|
|
357
|
+
]
|
|
358
|
+
], i = 3, a = 3, o = 40, s = 10, c = (e, t) => !!(e >>> t & 1);
|
|
359
|
+
function l(e) {
|
|
360
|
+
let t = (16 * e + 128) * e + 64;
|
|
361
|
+
if (e >= 2) {
|
|
362
|
+
let n = Math.floor(e / 7) + 2;
|
|
363
|
+
t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
|
|
364
|
+
}
|
|
365
|
+
return t;
|
|
366
|
+
}
|
|
367
|
+
function u(t, i) {
|
|
368
|
+
let a = e[i];
|
|
369
|
+
return Math.floor(l(t) / 8) - n[a][t] * r[a][t];
|
|
370
|
+
}
|
|
371
|
+
function d(e) {
|
|
372
|
+
return Array.from(new TextEncoder().encode(e));
|
|
373
|
+
}
|
|
374
|
+
function f(e, t) {
|
|
375
|
+
let n = 0;
|
|
376
|
+
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
377
|
+
return n;
|
|
378
|
+
}
|
|
379
|
+
function p(e) {
|
|
380
|
+
let t = Array(e).fill(0);
|
|
381
|
+
t[e - 1] = 1;
|
|
382
|
+
let n = 1;
|
|
383
|
+
for (let r = 0; r < e; r++) {
|
|
384
|
+
for (let e = 0; e < t.length; e++) t[e] = f(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
|
|
385
|
+
n = f(n, 2);
|
|
386
|
+
}
|
|
387
|
+
return t;
|
|
388
|
+
}
|
|
389
|
+
function m(e, t) {
|
|
390
|
+
let n = t.map(() => 0);
|
|
391
|
+
for (let r of e) {
|
|
392
|
+
let e = r ^ n.shift();
|
|
393
|
+
n.push(0), t.forEach((t, r) => n[r] ^= f(t, e));
|
|
394
|
+
}
|
|
395
|
+
return n;
|
|
396
|
+
}
|
|
397
|
+
function h(t, i, a) {
|
|
398
|
+
let o = e[a], s = r[o][i], c = n[o][i], u = Math.floor(l(i) / 8), d = s - u % s, f = Math.floor(u / s), h = [], g = p(c);
|
|
399
|
+
for (let e = 0, n = 0; e < s; e++) {
|
|
400
|
+
let r = t.slice(n, n + f - c + (e < d ? 0 : 1));
|
|
401
|
+
n += r.length;
|
|
402
|
+
let i = m(r, g);
|
|
403
|
+
e < d && r.push(0), h.push(r.concat(i));
|
|
404
|
+
}
|
|
405
|
+
let _ = [];
|
|
406
|
+
for (let e = 0; e < h[0].length; e++) h.forEach((t, n) => {
|
|
407
|
+
(e !== f - c || n >= d) && _.push(t[e]);
|
|
408
|
+
});
|
|
409
|
+
return _;
|
|
410
|
+
}
|
|
411
|
+
function g(e, t) {
|
|
412
|
+
if (e === 1) return [];
|
|
413
|
+
let n = Math.floor(e / 7) + 2, r = Math.floor((e * 8 + n * 3 + 5) / (n * 4 - 4)) * 2, i = [6];
|
|
414
|
+
for (let e = t - 7; i.length < n; e -= r) i.splice(1, 0, e);
|
|
415
|
+
return i;
|
|
416
|
+
}
|
|
417
|
+
var _ = class {
|
|
418
|
+
size;
|
|
419
|
+
modules;
|
|
420
|
+
isFunction;
|
|
421
|
+
constructor(e) {
|
|
422
|
+
this.size = e, this.modules = Array.from({ length: e }, () => Array(e).fill(!1)), this.isFunction = Array.from({ length: e }, () => Array(e).fill(!1));
|
|
423
|
+
}
|
|
424
|
+
setFunction(e, t, n) {
|
|
425
|
+
this.modules[t][e] = n, this.isFunction[t][e] = !0;
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
function v(e, n, r) {
|
|
429
|
+
let i = t[n] << 3 | r, a = i;
|
|
430
|
+
for (let e = 0; e < 10; e++) a = a << 1 ^ (a >>> 9) * 1335;
|
|
431
|
+
let o = (i << 10 | a) ^ 21522, s = e.size;
|
|
432
|
+
for (let t = 0; t <= 5; t++) e.setFunction(8, t, c(o, t));
|
|
433
|
+
e.setFunction(8, 7, c(o, 6)), e.setFunction(8, 8, c(o, 7)), e.setFunction(7, 8, c(o, 8));
|
|
434
|
+
for (let t = 9; t < 15; t++) e.setFunction(14 - t, 8, c(o, t));
|
|
435
|
+
for (let t = 0; t < 8; t++) e.setFunction(s - 1 - t, 8, c(o, t));
|
|
436
|
+
for (let t = 8; t < 15; t++) e.setFunction(8, s - 15 + t, c(o, t));
|
|
437
|
+
e.setFunction(8, s - 8, !0);
|
|
438
|
+
}
|
|
439
|
+
function y(e, t) {
|
|
440
|
+
if (t < 7) return;
|
|
441
|
+
let n = t;
|
|
442
|
+
for (let e = 0; e < 12; e++) n = n << 1 ^ (n >>> 11) * 7973;
|
|
443
|
+
let r = t << 12 | n;
|
|
444
|
+
for (let t = 0; t < 18; t++) {
|
|
445
|
+
let n = c(r, t), i = e.size - 11 + t % 3, a = Math.floor(t / 3);
|
|
446
|
+
e.setFunction(i, a, n), e.setFunction(a, i, n);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
function b(e, t, n) {
|
|
450
|
+
let r = e.size;
|
|
451
|
+
for (let t = 0; t < r; t++) e.setFunction(6, t, t % 2 == 0), e.setFunction(t, 6, t % 2 == 0);
|
|
452
|
+
let i = (t, n) => {
|
|
453
|
+
for (let i = -4; i <= 4; i++) for (let a = -4; a <= 4; a++) {
|
|
454
|
+
let o = Math.max(Math.abs(a), Math.abs(i)), s = t + a, c = n + i;
|
|
455
|
+
s >= 0 && s < r && c >= 0 && c < r && e.setFunction(s, c, o !== 2 && o !== 4);
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
i(3, 3), i(r - 4, 3), i(3, r - 4);
|
|
459
|
+
let a = g(t, r), o = a.length;
|
|
460
|
+
for (let t = 0; t < o; t++) for (let n = 0; n < o; n++) if (!(t === 0 && n === 0 || t === 0 && n === o - 1 || t === o - 1 && n === 0)) for (let r = -2; r <= 2; r++) for (let i = -2; i <= 2; i++) e.setFunction(a[t] + i, a[n] + r, Math.max(Math.abs(i), Math.abs(r)) !== 1);
|
|
461
|
+
v(e, n, 0), y(e, t);
|
|
462
|
+
}
|
|
463
|
+
function x(e, t) {
|
|
464
|
+
let n = e.size, r = 0;
|
|
465
|
+
for (let i = n - 1; i >= 1; i -= 2) {
|
|
466
|
+
i === 6 && (i = 5);
|
|
467
|
+
for (let a = 0; a < n; a++) for (let o = 0; o < 2; o++) {
|
|
468
|
+
let s = i - o, l = i + 1 & 2 ? a : n - 1 - a;
|
|
469
|
+
!e.isFunction[l][s] && r < t.length * 8 && (e.modules[l][s] = c(t[r >>> 3], 7 - (r & 7)), r++);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function S(e, t, n) {
|
|
474
|
+
switch (e) {
|
|
475
|
+
case 0: return (t + n) % 2 == 0;
|
|
476
|
+
case 1: return n % 2 == 0;
|
|
477
|
+
case 2: return t % 3 == 0;
|
|
478
|
+
case 3: return (t + n) % 3 == 0;
|
|
479
|
+
case 4: return (Math.floor(t / 3) + Math.floor(n / 2)) % 2 == 0;
|
|
480
|
+
case 5: return t * n % 2 + t * n % 3 == 0;
|
|
481
|
+
case 6: return (t * n % 2 + t * n % 3) % 2 == 0;
|
|
482
|
+
default: return ((t + n) % 2 + t * n % 3) % 2 == 0;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function C(e, t) {
|
|
486
|
+
for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) !e.isFunction[n][r] && S(t, r, n) && (e.modules[n][r] = !e.modules[n][r]);
|
|
487
|
+
}
|
|
488
|
+
function w(e) {
|
|
489
|
+
let t = e.length, n = 0, r = (t, n, r) => r ? e[n][t] : e[t][n];
|
|
490
|
+
for (let e of [!0, !1]) for (let a = 0; a < t; a++) {
|
|
491
|
+
let s = !1, c = 0;
|
|
492
|
+
for (let o = 0; o < t; o++) {
|
|
493
|
+
let t = r(o, a, e);
|
|
494
|
+
o > 0 && t === s ? c++ : (c >= 5 && (n += i + (c - 5)), s = t, c = 1);
|
|
495
|
+
}
|
|
496
|
+
c >= 5 && (n += i + (c - 5));
|
|
497
|
+
let l = (n) => n >= 0 && n < t && r(n, a, e);
|
|
498
|
+
for (let e = -4; e < t; e++) if (l(e) && !l(e + 1) && l(e + 2) && l(e + 3) && l(e + 4) && !l(e + 5) && l(e + 6)) {
|
|
499
|
+
let t = !l(e - 1) && !l(e - 2) && !l(e - 3) && !l(e - 4), r = !l(e + 7) && !l(e + 8) && !l(e + 9) && !l(e + 10);
|
|
500
|
+
(t || r) && (n += o);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
for (let r = 0; r < t - 1; r++) for (let i = 0; i < t - 1; i++) {
|
|
504
|
+
let t = e[r][i];
|
|
505
|
+
t === e[r][i + 1] && t === e[r + 1][i] && t === e[r + 1][i + 1] && (n += a);
|
|
506
|
+
}
|
|
507
|
+
let c = 0;
|
|
508
|
+
for (let t of e) for (let e of t) e && c++;
|
|
509
|
+
let l = t * t, u = Math.ceil(Math.abs(c * 20 - l * 10) / l) - 1;
|
|
510
|
+
return n += Math.max(0, u) * s, n;
|
|
511
|
+
}
|
|
512
|
+
function T(e, t = {}) {
|
|
513
|
+
let n = t.level ?? "M", r = Math.max(1, Math.min(40, Math.floor(t.minVersion ?? 1))), i = Math.max(r, Math.min(40, Math.floor(t.maxVersion ?? 40))), a = d(e), o = -1;
|
|
514
|
+
for (let e = r; e <= i; e++) {
|
|
515
|
+
let t = e <= 9 ? 8 : 16;
|
|
516
|
+
if (!(a.length >= 1 << t) && 4 + t + a.length * 8 <= u(e, n) * 8) {
|
|
517
|
+
o = e;
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
if (o < 0) throw RangeError(`QR: data too long (${a.length} bytes) for level ${n}`);
|
|
522
|
+
let s = [], c = (e, t) => {
|
|
523
|
+
for (let n = t - 1; n >= 0; n--) s.push(e >>> n & 1);
|
|
524
|
+
};
|
|
525
|
+
c(4, 4), c(a.length, o <= 9 ? 8 : 16);
|
|
526
|
+
for (let e of a) c(e, 8);
|
|
527
|
+
let l = u(o, n) * 8;
|
|
528
|
+
c(0, Math.min(4, l - s.length)), c(0, (8 - s.length % 8) % 8);
|
|
529
|
+
for (let e = 236; s.length < l; e ^= 253) c(e, 8);
|
|
530
|
+
let f = Array(s.length / 8).fill(0);
|
|
531
|
+
s.forEach((e, t) => f[t >>> 3] |= e << 7 - (t & 7));
|
|
532
|
+
let p = o * 4 + 17, m = new _(p);
|
|
533
|
+
b(m, o, n), x(m, h(f, o, n));
|
|
534
|
+
let g = t.mask ?? -1;
|
|
535
|
+
if (g < 0 || g > 7) {
|
|
536
|
+
let e = Infinity;
|
|
537
|
+
for (let t = 0; t < 8; t++) {
|
|
538
|
+
C(m, t), v(m, n, t);
|
|
539
|
+
let r = w(m.modules);
|
|
540
|
+
r < e && (e = r, g = t), C(m, t);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
return C(m, g), v(m, n, g), {
|
|
544
|
+
size: p,
|
|
545
|
+
version: o,
|
|
546
|
+
level: n,
|
|
547
|
+
mask: g,
|
|
548
|
+
modules: m.modules
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
//#endregion
|
|
552
|
+
export { T as encodeQR, u as numDataCodewords };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-label.d.ts","sourceRoot":"","sources":["../../src/lib/row-label.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"row-label.d.ts","sourceRoot":"","sources":["../../src/lib/row-label.ts"],"names":[],"mappings":"AAGA;4GAC4G;AAC5G,eAAO,MAAM,eAAe,6CAA+C,CAAC;AAE5E,2FAA2F;AAC3F,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,sBAIvF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as e, use as t } from "react";
|
|
3
|
+
//#region src/lib/row-label.ts
|
|
4
|
+
var n = e(void 0);
|
|
5
|
+
function r(e) {
|
|
6
|
+
let r = t(n);
|
|
7
|
+
return e["aria-label"] || e["aria-labelledby"] ? e["aria-labelledby"] : r;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as RowLabelContext, r as useRowLabel };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { eventWithTime } from 'rrweb';
|
|
2
|
+
import { CloudSync, CloudSettings, CloudStatus } from './durable-streams';
|
|
3
|
+
export type RecordedEvent = eventWithTime;
|
|
4
|
+
/** The records of the `sessions` index stream. */
|
|
5
|
+
export type IndexRecord = {
|
|
6
|
+
t: 'start';
|
|
7
|
+
id: string;
|
|
8
|
+
at: number;
|
|
9
|
+
url: string;
|
|
10
|
+
title: string;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
device: string;
|
|
14
|
+
} | {
|
|
15
|
+
t: 'end';
|
|
16
|
+
id: string;
|
|
17
|
+
at: number;
|
|
18
|
+
events: number;
|
|
19
|
+
truncated?: boolean;
|
|
20
|
+
} | {
|
|
21
|
+
t: 'delete';
|
|
22
|
+
id: string;
|
|
23
|
+
at: number;
|
|
24
|
+
};
|
|
25
|
+
export interface SessionInfo {
|
|
26
|
+
id: string;
|
|
27
|
+
startedAt: number;
|
|
28
|
+
/** When it ended, if it ended cleanly. */
|
|
29
|
+
endedAt?: number;
|
|
30
|
+
/** Events recorded so far (here) or in total (from the `end` record, for a session held only in the cloud). */
|
|
31
|
+
events?: number;
|
|
32
|
+
url: string;
|
|
33
|
+
title: string;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
/** Which browser recorded it. */
|
|
37
|
+
device: string;
|
|
38
|
+
/** Being recorded right now, by this tab. */
|
|
39
|
+
live: boolean;
|
|
40
|
+
/** Its events are in this browser. */
|
|
41
|
+
local: boolean;
|
|
42
|
+
/** Storage ran out and the recording stopped early. */
|
|
43
|
+
truncated?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface SessionRecordingOptions {
|
|
46
|
+
/** Elements with this class are recorded as empty placeholders. Default `rr-block`. */
|
|
47
|
+
blockClass?: string;
|
|
48
|
+
/** Elements with this class don't record input events. Default `rr-ignore`. */
|
|
49
|
+
ignoreClass?: string;
|
|
50
|
+
/** Replace typed text with asterisks. Default true. */
|
|
51
|
+
maskAllInputs?: boolean;
|
|
52
|
+
/** How many sessions' events to keep in this browser; the oldest go first. Default 30. */
|
|
53
|
+
maxSessions?: number;
|
|
54
|
+
/** How often buffered events are written, in ms. Default 1500. */
|
|
55
|
+
flushMs?: number;
|
|
56
|
+
}
|
|
57
|
+
/** Mirrors the session streams to a Durable Streams server (Rivet) when enabled; see `CloudSync`. */
|
|
58
|
+
export declare const sessionCloud: CloudSync;
|
|
59
|
+
/** Every session, newest first, kept current while one records or another device syncs. */
|
|
60
|
+
export declare function useSessions(): SessionInfo[];
|
|
61
|
+
/** The session this tab is recording, if any. */
|
|
62
|
+
export declare function currentSessionId(): string | null;
|
|
63
|
+
/** A session's events, in order. A session still recording reads as far as it has got. */
|
|
64
|
+
export declare function readSession(id: string): Promise<RecordedEvent[]>;
|
|
65
|
+
/** Delete a session: its events leave this browser, and a `delete` record joins the index so every device agrees. */
|
|
66
|
+
export declare function deleteSession(id: string): Promise<void>;
|
|
67
|
+
/** Delete every session but the one recording now. */
|
|
68
|
+
export declare function clearSessions(): Promise<void>;
|
|
69
|
+
/** What this browser's streams occupy, in characters, against a typical 5M-character localStorage quota. */
|
|
70
|
+
export declare function storageUsage(): {
|
|
71
|
+
used: number;
|
|
72
|
+
quota: number;
|
|
73
|
+
};
|
|
74
|
+
/** The cloud's status and settings, live. */
|
|
75
|
+
export declare function useSessionCloud(): {
|
|
76
|
+
status: CloudStatus;
|
|
77
|
+
settings: CloudSettings;
|
|
78
|
+
configure: (s: Partial<CloudSettings>) => void;
|
|
79
|
+
};
|
|
80
|
+
/** Start recording this page as a new session; returns the function that ends it. Calls share one recording. */
|
|
81
|
+
export declare function startSessionRecording(options?: SessionRecordingOptions): () => void;
|
|
82
|
+
/** Record this page for as long as the component is mounted: one new session per mount (not per re-render). The cloud,
|
|
83
|
+
if switched on, syncs meanwhile. */
|
|
84
|
+
export declare function useSessionRecording({ enabled, ...options }?: SessionRecordingOptions & {
|
|
85
|
+
enabled?: boolean;
|
|
86
|
+
}): void;
|
|
87
|
+
//# sourceMappingURL=session-recorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-recorder.d.ts","sourceRoot":"","sources":["../../src/lib/session-recorder.ts"],"names":[],"mappings":"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"}
|