@sixb/app 0.2.1 → 0.2.4
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/agent/activity-label.d.ts.map +1 -1
- package/dist/agent/agent-chat.d.ts +9 -2
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/agent-panel.d.ts +9 -1
- package/dist/agent/agent-panel.d.ts.map +1 -1
- package/dist/agent/agent-surface.d.ts.map +1 -1
- package/dist/agent/artifact-card.d.ts +3 -1
- package/dist/agent/artifact-card.d.ts.map +1 -1
- package/dist/agent/artifact-panel.d.ts +7 -1
- package/dist/agent/artifact-panel.d.ts.map +1 -1
- package/dist/agent/background/background-tool-row.d.ts.map +1 -1
- package/dist/agent/background/interpret.d.ts +1 -1
- package/dist/agent/background/interpret.d.ts.map +1 -1
- package/dist/agent/components/composer-place.d.ts +3 -1
- package/dist/agent/components/composer-place.d.ts.map +1 -1
- package/dist/agent/components/composer.d.ts +20 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/context-chips.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/conversation-panel.d.ts +7 -2
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +3 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -1
- package/dist/agent/components/transcript.d.ts +5 -0
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/composer-insertion.d.ts +24 -0
- package/dist/agent/composer-insertion.d.ts.map +1 -0
- package/dist/agent/delegation/agent-exchange.d.ts +16 -0
- package/dist/agent/delegation/agent-exchange.d.ts.map +1 -0
- package/dist/agent/delegation/child-card.d.ts +3 -3
- package/dist/agent/delegation/child-card.d.ts.map +1 -1
- package/dist/agent/delegation/child-parts.d.ts +1 -10
- package/dist/agent/delegation/child-parts.d.ts.map +1 -1
- package/dist/agent/delegation/child-work.d.ts.map +1 -1
- package/dist/agent/delegation/interpret.d.ts +4 -10
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts +5 -5
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/file-edits/file-edit-tool-view.d.ts +10 -0
- package/dist/agent/file-edits/file-edit-tool-view.d.ts.map +1 -0
- package/dist/agent/file-edits/interpret.d.ts +25 -0
- package/dist/agent/file-edits/interpret.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +16 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-new-thread-place.d.ts +39 -17
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +59 -4
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +96 -8
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/message-agent/interpret.d.ts +2 -2
- package/dist/agent/message-agent/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts +8 -2
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts +9 -0
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts.map +1 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +4 -2
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -1
- package/dist/agent/publish-artifact/use-live-publishes.d.ts +3 -3
- package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -1
- package/dist/agent/questions/interpret.d.ts +31 -0
- package/dist/agent/questions/interpret.d.ts.map +1 -0
- package/dist/agent/questions/question-card.d.ts +16 -0
- package/dist/agent/questions/question-card.d.ts.map +1 -0
- package/dist/agent/questions/question-composer.d.ts +15 -0
- package/dist/agent/questions/question-composer.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +8 -1
- package/dist/agent/read/interpret.d.ts.map +1 -1
- package/dist/agent/read/read-tool-view.d.ts.map +1 -1
- package/dist/agent/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/types.d.ts +3 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/waits.d.ts +14 -0
- package/dist/agent/waits.d.ts.map +1 -0
- package/dist/artifacts/artifact-page.d.ts.map +1 -1
- package/dist/artifacts/artifact-viewer.d.ts +16 -0
- package/dist/artifacts/artifact-viewer.d.ts.map +1 -0
- package/dist/artifacts/card-details.d.ts +1 -1
- package/dist/artifacts/card-details.d.ts.map +1 -1
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/comments-context.d.ts +48 -0
- package/dist/artifacts/comments-context.d.ts.map +1 -0
- package/dist/artifacts/edit-session.d.ts +17 -7
- package/dist/artifacts/edit-session.d.ts.map +1 -1
- package/dist/artifacts/file-source.d.ts.map +1 -1
- package/dist/artifacts/frame.d.ts +10 -2
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/artifacts/guest-badge.d.ts +8 -0
- package/dist/artifacts/guest-badge.d.ts.map +1 -0
- package/dist/artifacts/held-artifact.d.ts +19 -0
- package/dist/artifacts/held-artifact.d.ts.map +1 -0
- package/dist/artifacts/holders.d.ts +10 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/live/boards.d.ts +15 -0
- package/dist/artifacts/live/boards.d.ts.map +1 -0
- package/dist/artifacts/live/canvas.d.ts +79 -0
- package/dist/artifacts/live/canvas.d.ts.map +1 -0
- package/dist/artifacts/live/header.d.ts +29 -0
- package/dist/artifacts/live/header.d.ts.map +1 -0
- package/dist/artifacts/live/hooks.d.ts +21 -0
- package/dist/artifacts/live/hooks.d.ts.map +1 -0
- package/dist/artifacts/live/presence.d.ts +32 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/session.d.ts +130 -0
- package/dist/artifacts/live/session.d.ts.map +1 -0
- package/dist/artifacts/live/view.d.ts +28 -0
- package/dist/artifacts/live/view.d.ts.map +1 -0
- package/dist/artifacts/messages.d.ts +476 -14
- package/dist/artifacts/messages.d.ts.map +1 -1
- package/dist/artifacts/page-queries.d.ts +2 -2
- package/dist/artifacts/page-queries.d.ts.map +1 -1
- package/dist/artifacts/page-state.d.ts.map +1 -1
- package/dist/artifacts/publish-edit.d.ts +24 -14
- package/dist/artifacts/publish-edit.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +490 -9
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/references/references.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/arrows.d.ts +0 -18
- package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board-editor.d.ts +50 -0
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts +37 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts +18 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board.d.ts +77 -20
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +14 -4
- package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts +84 -0
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts +58 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts +27 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts +56 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/controls.d.ts +15 -4
- package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/draft.d.ts +7 -6
- package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts +19 -2
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/focus.d.ts +54 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/gestures.d.ts +46 -0
- package/dist/artifacts/renderers/canvas/gestures.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/items.d.ts +47 -4
- package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/layout.d.ts +5 -8
- package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/page-resize.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-resize.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts +93 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts +64 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/presence.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/presence.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts +54 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/renderer.d.ts +11 -2
- package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/shown-size.d.ts +26 -0
- package/dist/artifacts/renderers/canvas/shown-size.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts +5 -2
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -1
- package/dist/artifacts/version-menu.d.ts +19 -0
- package/dist/artifacts/version-menu.d.ts.map +1 -0
- package/dist/artifacts/view-context.d.ts +43 -0
- package/dist/artifacts/view-context.d.ts.map +1 -0
- package/dist/artifacts/viewer.d.ts.map +1 -1
- package/dist/build.d.ts +5 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/chunk-00wggsst.js +7 -0
- package/dist/chunk-00wggsst.js.map +10 -0
- package/dist/{chunk-q69001w3.js → chunk-694m74s7.js} +7 -1
- package/dist/{chunk-q69001w3.js.map → chunk-694m74s7.js.map} +3 -3
- package/dist/{chunk-7fj9cfkw.js → chunk-970s5nkn.js} +1 -1
- package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
- package/dist/chunk-fg6thecb.js.map +10 -0
- package/dist/{chunk-ytadd0b5.js → chunk-kymx9y5e.js} +8126 -4257
- package/dist/chunk-kymx9y5e.js.map +211 -0
- package/dist/{chunk-j8g956dt.js → chunk-pxd07kvx.js} +1 -1
- package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
- package/dist/chunk-yrcm1pbg.js +5975 -0
- package/dist/chunk-yrcm1pbg.js.map +34 -0
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +932 -309
- package/dist/index.js.map +15 -10
- package/dist/locale-messages.d.ts +12 -0
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +12 -0
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +1 -1
- package/dist/metadata.d.ts +8 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/console/action-run.d.ts.map +1 -1
- package/dist/pages/console/data/connectors.d.ts.map +1 -1
- package/dist/pages/console/data/datasets.d.ts.map +1 -1
- package/dist/pages/console/data/lake-health.d.ts +3 -0
- package/dist/pages/console/data/lake-health.d.ts.map +1 -0
- package/dist/pages/console/data/messages.d.ts +98 -2
- package/dist/pages/console/data/messages.d.ts.map +1 -1
- package/dist/pages/console/data/pipelines.d.ts.map +1 -1
- package/dist/pages/console/data/projections.d.ts.map +1 -1
- package/dist/pages/console/data/syncs.d.ts.map +1 -1
- package/dist/pages/console/ontology/action-runs.d.ts.map +1 -1
- package/dist/pages/console/ontology/actions.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/artifact-picker.d.ts +36 -0
- package/dist/pages/console/ontology/components/artifact-picker.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -1
- package/dist/pages/console/ontology/lib/action-params.d.ts +2 -0
- package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts +2 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-page.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
- package/dist/pages/console/ontology/objects.d.ts.map +1 -1
- package/dist/pages/console/ontology/rules.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
- package/dist/pages/console/skeletons.d.ts +30 -0
- package/dist/pages/console/skeletons.d.ts.map +1 -0
- package/dist/pages/console/workflow-run.d.ts.map +1 -1
- package/dist/pages/section-page.d.ts +11 -1
- package/dist/pages/section-page.d.ts.map +1 -1
- package/dist/pages/section-ui.d.ts +25 -3
- package/dist/pages/section-ui.d.ts.map +1 -1
- package/dist/pages/settings/activity/calendar.d.ts.map +1 -1
- package/dist/pages/settings/activity/connections.d.ts.map +1 -1
- package/dist/pages/settings/activity/page.d.ts.map +1 -1
- package/dist/pages/settings/activity/thread.d.ts.map +1 -1
- package/dist/pages/settings/activity/timeline.d.ts +2 -0
- package/dist/pages/settings/activity/timeline.d.ts.map +1 -1
- package/dist/pages/settings/controls.d.ts +4 -0
- package/dist/pages/settings/controls.d.ts.map +1 -1
- package/dist/pages/settings/members.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts +2 -0
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/memory.d.ts.map +1 -1
- package/dist/pages/settings/service-accounts.d.ts.map +1 -1
- package/dist/pages/settings/sessions.d.ts.map +1 -1
- package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
- package/dist/pages/settings/usage/limits.d.ts.map +1 -1
- package/dist/pages/settings/usage/messages.d.ts +0 -2
- package/dist/pages/settings/usage/messages.d.ts.map +1 -1
- package/dist/pages/settings/usage/runs.d.ts +8 -2
- package/dist/pages/settings/usage/runs.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-model.d.ts +5 -0
- package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
- package/dist/pages/values.d.ts +6 -0
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +4 -0
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +8188 -4841
- package/dist/pages.js.map +56 -47
- package/dist/sections/catalog.d.ts.map +1 -1
- package/dist/sections/sections.d.ts.map +1 -1
- package/dist/server.js +294 -23
- package/dist/server.js.map +8 -7
- package/dist/service-worker.d.ts +39 -0
- package/dist/service-worker.d.ts.map +1 -0
- package/dist/shared-session.d.ts +25 -0
- package/dist/shared-session.d.ts.map +1 -0
- package/dist/shell/app-return.d.ts +35 -0
- package/dist/shell/app-return.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +1 -1
- package/dist/shell/app-shell.d.ts.map +1 -1
- package/dist/shell/nav-items.d.ts +2 -0
- package/dist/shell/nav-items.d.ts.map +1 -1
- package/dist/shell/phone/back.d.ts +6 -0
- package/dist/shell/phone/back.d.ts.map +1 -0
- package/dist/shell/phone/launch.d.ts +7 -0
- package/dist/shell/phone/launch.d.ts.map +1 -0
- package/dist/shell/phone/more-sheet.d.ts +36 -0
- package/dist/shell/phone/more-sheet.d.ts.map +1 -0
- package/dist/shell/phone/phone-foundations.d.ts +9 -0
- package/dist/shell/phone/phone-foundations.d.ts.map +1 -0
- package/dist/shell/phone/pull-to-refresh.d.ts +9 -0
- package/dist/shell/phone/pull-to-refresh.d.ts.map +1 -0
- package/dist/shell/phone/routes.d.ts +12 -0
- package/dist/shell/phone/routes.d.ts.map +1 -0
- package/dist/shell/phone/screen-motion.d.ts +11 -0
- package/dist/shell/phone/screen-motion.d.ts.map +1 -0
- package/dist/shell/phone/scroll-restoration.d.ts +7 -0
- package/dist/shell/phone/scroll-restoration.d.ts.map +1 -0
- package/dist/shell/phone/startup-image.d.ts +17 -0
- package/dist/shell/phone/startup-image.d.ts.map +1 -0
- package/dist/shell/phone/tab-bar.d.ts +14 -0
- package/dist/shell/phone/tab-bar.d.ts.map +1 -0
- package/dist/shell/phone/top-bar.d.ts +24 -0
- package/dist/shell/phone/top-bar.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +3 -1
- package/dist/shell/search-command.d.ts.map +1 -1
- package/dist/shell/user-menu.d.ts +2 -0
- package/dist/shell/user-menu.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/agent/activity-label.ts +6 -1
- package/src/agent/agent-chat.tsx +52 -8
- package/src/agent/agent-panel.tsx +12 -0
- package/src/agent/agent-surface.tsx +4 -0
- package/src/agent/artifact-card.tsx +84 -16
- package/src/agent/artifact-panel.tsx +63 -43
- package/src/agent/background/background-tool-row.tsx +24 -10
- package/src/agent/background/interpret.ts +60 -51
- package/src/agent/components/agent-message-body.tsx +1 -1
- package/src/agent/components/composer-place.tsx +77 -53
- package/src/agent/components/composer.tsx +92 -7
- package/src/agent/components/context-chips.tsx +72 -2
- package/src/agent/components/conversation-panel.tsx +30 -10
- package/src/agent/components/message-parts.tsx +29 -6
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/components/transcript.tsx +45 -27
- package/src/agent/composer-insertion.ts +36 -0
- package/src/agent/delegation/agent-exchange.tsx +53 -0
- package/src/agent/delegation/child-card.tsx +6 -40
- package/src/agent/delegation/child-parts.tsx +1 -84
- package/src/agent/delegation/child-work.tsx +19 -5
- package/src/agent/delegation/interpret.ts +33 -54
- package/src/agent/delegation/model.ts +1 -1
- package/src/agent/file-edits/file-edit-tool-view.tsx +126 -0
- package/src/agent/file-edits/interpret.ts +120 -0
- package/src/agent/hooks/use-agent-conversation.ts +61 -10
- package/src/agent/hooks/use-new-thread-place.ts +149 -25
- package/src/agent/i18n/en.ts +60 -4
- package/src/agent/i18n/fr.ts +51 -4
- package/src/agent/message-agent/interpret.ts +4 -3
- package/src/agent/publish-artifact/interpret.ts +37 -6
- package/src/agent/publish-artifact/open-artifact-tool-view.tsx +49 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +14 -8
- package/src/agent/publish-artifact/use-live-publishes.ts +7 -11
- package/src/agent/questions/interpret.ts +90 -0
- package/src/agent/questions/question-card.tsx +57 -0
- package/src/agent/questions/question-composer.tsx +257 -0
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/read/interpret.ts +34 -1
- package/src/agent/read/read-tool-view.tsx +20 -4
- package/src/agent/tool-views/built-in.tsx +22 -8
- package/src/agent/types.ts +4 -0
- package/src/agent/waits.ts +50 -0
- package/src/artifacts/artifact-page.tsx +42 -17
- package/src/artifacts/artifact-viewer.tsx +56 -0
- package/src/artifacts/artifacts.css +116 -0
- package/src/artifacts/card-details.ts +2 -2
- package/src/artifacts/card-preview.tsx +17 -3
- package/src/artifacts/comments-context.ts +125 -0
- package/src/artifacts/edit-session.tsx +21 -7
- package/src/artifacts/file-source.ts +10 -3
- package/src/artifacts/frame.tsx +53 -14
- package/src/artifacts/gallery.tsx +9 -11
- package/src/artifacts/guest-badge.tsx +21 -0
- package/src/artifacts/held-artifact.tsx +241 -0
- package/src/artifacts/holders.tsx +170 -0
- package/src/artifacts/live/boards.ts +95 -0
- package/src/artifacts/live/canvas.ts +402 -0
- package/src/artifacts/live/header.tsx +137 -0
- package/src/artifacts/live/hooks.ts +94 -0
- package/src/artifacts/live/presence.ts +147 -0
- package/src/artifacts/live/session.ts +520 -0
- package/src/artifacts/live/view.ts +81 -0
- package/src/artifacts/messages.ts +469 -24
- package/src/artifacts/page-queries.ts +2 -3
- package/src/artifacts/page-state.ts +16 -7
- package/src/artifacts/publish-edit.ts +50 -22
- package/src/artifacts/queries.ts +108 -10
- package/src/artifacts/references/references.tsx +6 -9
- package/src/artifacts/renderers/canvas/arrows.tsx +12 -39
- package/src/artifacts/renderers/canvas/board-editor.tsx +839 -0
- package/src/artifacts/renderers/canvas/board-properties.tsx +488 -0
- package/src/artifacts/renderers/canvas/board-source.ts +110 -0
- package/src/artifacts/renderers/canvas/board.tsx +373 -35
- package/src/artifacts/renderers/canvas/canvas.tsx +441 -75
- package/src/artifacts/renderers/canvas/comment-pins.tsx +465 -0
- package/src/artifacts/renderers/canvas/commenting.tsx +319 -0
- package/src/artifacts/renderers/canvas/comments-panel.tsx +574 -0
- package/src/artifacts/renderers/canvas/comments.ts +225 -0
- package/src/artifacts/renderers/canvas/controls.tsx +64 -30
- package/src/artifacts/renderers/canvas/draft.ts +41 -50
- package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
- package/src/artifacts/renderers/canvas/focus.tsx +321 -26
- package/src/artifacts/renderers/canvas/gestures.ts +265 -0
- package/src/artifacts/renderers/canvas/items.tsx +179 -52
- package/src/artifacts/renderers/canvas/layout.ts +99 -47
- package/src/artifacts/renderers/canvas/page-resize.tsx +542 -0
- package/src/artifacts/renderers/canvas/page-size-controls.tsx +193 -0
- package/src/artifacts/renderers/canvas/page-size.ts +218 -0
- package/src/artifacts/renderers/canvas/page-zoom.ts +280 -0
- package/src/artifacts/renderers/canvas/presence.tsx +184 -0
- package/src/artifacts/renderers/canvas/previews.ts +127 -0
- package/src/artifacts/renderers/canvas/renderer.tsx +87 -22
- package/src/artifacts/renderers/canvas/shown-size.ts +105 -0
- package/src/artifacts/renderers/canvas/thumbnail.tsx +56 -15
- package/src/artifacts/renderers/canvas/toolbar.tsx +1 -1
- package/src/artifacts/renderers/slides/slides.tsx +1 -1
- package/src/artifacts/version-menu.tsx +438 -0
- package/src/artifacts/view-context.ts +102 -0
- package/src/artifacts/viewer.tsx +219 -147
- package/src/build.ts +96 -11
- package/src/codegen.ts +83 -5
- package/src/createCustomApp.ts +20 -7
- package/src/index.ts +14 -0
- package/src/locale-messages.ts +24 -0
- package/src/metadata.ts +12 -0
- package/src/pages/console/action-run.tsx +20 -0
- package/src/pages/console/data/connectors.tsx +27 -3
- package/src/pages/console/data/datasets.tsx +30 -1
- package/src/pages/console/data/lake-health.tsx +299 -0
- package/src/pages/console/data/messages.ts +143 -2
- package/src/pages/console/data/pipelines.tsx +91 -3
- package/src/pages/console/data/projections.tsx +23 -4
- package/src/pages/console/data/syncs.tsx +39 -2
- package/src/pages/console/ontology/action-runs.tsx +8 -2
- package/src/pages/console/ontology/actions.tsx +39 -15
- package/src/pages/console/ontology/components/action-button.tsx +10 -0
- package/src/pages/console/ontology/components/artifact-picker.tsx +522 -0
- package/src/pages/console/ontology/components/object-query-bar.tsx +21 -5
- package/src/pages/console/ontology/lib/action-params.ts +10 -0
- package/src/pages/console/ontology/lineage/properties-panel.tsx +32 -24
- package/src/pages/console/ontology/object-page.tsx +2 -0
- package/src/pages/console/ontology/object-type.tsx +73 -14
- package/src/pages/console/ontology/object-types.tsx +56 -7
- package/src/pages/console/ontology/objects.tsx +167 -19
- package/src/pages/console/ontology/rules.tsx +186 -30
- package/src/pages/console/ontology/workflow.tsx +130 -74
- package/src/pages/console/ontology/workflows/run-input-form.tsx +21 -2
- package/src/pages/console/ontology/workflows/schema-shape.tsx +3 -0
- package/src/pages/console/ontology/workflows.tsx +34 -21
- package/src/pages/console/skeletons.tsx +99 -0
- package/src/pages/console/workflow-run.tsx +20 -0
- package/src/pages/section-page.tsx +37 -7
- package/src/pages/section-ui.tsx +96 -13
- package/src/pages/settings/activity/calendar.tsx +13 -6
- package/src/pages/settings/activity/connections.tsx +26 -9
- package/src/pages/settings/activity/page.tsx +31 -4
- package/src/pages/settings/activity/thread.tsx +32 -18
- package/src/pages/settings/activity/timeline.tsx +39 -0
- package/src/pages/settings/controls.tsx +19 -1
- package/src/pages/settings/developers.tsx +2 -2
- package/src/pages/settings/members.tsx +42 -9
- package/src/pages/settings/memory-history.tsx +76 -10
- package/src/pages/settings/memory.tsx +47 -5
- package/src/pages/settings/service-accounts.tsx +7 -2
- package/src/pages/settings/sessions.tsx +6 -2
- package/src/pages/settings/usage/breakdown.tsx +62 -2
- package/src/pages/settings/usage/limits.tsx +45 -3
- package/src/pages/settings/usage/messages.ts +0 -2
- package/src/pages/settings/usage/page.tsx +99 -52
- package/src/pages/settings/usage/runs.tsx +105 -8
- package/src/pages/settings/usage/spend-chart.tsx +79 -45
- package/src/pages/settings/usage/spend-model.ts +16 -0
- package/src/pages/values.tsx +72 -6
- package/src/pages.ts +4 -0
- package/src/sections/catalog.ts +6 -0
- package/src/sections/sections.tsx +2 -0
- package/src/service-worker.ts +176 -0
- package/src/shared-session.ts +73 -0
- package/src/shell/app-return.ts +115 -0
- package/src/shell/app-shell.tsx +125 -27
- package/src/shell/nav-items.tsx +2 -0
- package/src/shell/phone/back.ts +16 -0
- package/src/shell/phone/launch.ts +6 -0
- package/src/shell/phone/more-sheet.tsx +249 -0
- package/src/shell/phone/phone-foundations.tsx +43 -0
- package/src/shell/phone/phone.css +660 -0
- package/src/shell/phone/pull-to-refresh.tsx +201 -0
- package/src/shell/phone/routes.ts +34 -0
- package/src/shell/phone/screen-motion.ts +292 -0
- package/src/shell/phone/scroll-restoration.tsx +70 -0
- package/src/shell/phone/startup-image.ts +119 -0
- package/src/shell/phone/tab-bar.tsx +95 -0
- package/src/shell/phone/top-bar.tsx +195 -0
- package/src/shell/search-command.tsx +30 -14
- package/src/shell/user-menu.tsx +2 -1
- package/dist/chunk-4j3c3p72.js +0 -1487
- package/dist/chunk-4j3c3p72.js.map +0 -18
- package/dist/chunk-4mprsd2n.js.map +0 -10
- package/dist/chunk-ytadd0b5.js.map +0 -188
- /package/dist/{chunk-7fj9cfkw.js.map → chunk-970s5nkn.js.map} +0 -0
- /package/dist/{chunk-j8g956dt.js.map → chunk-pxd07kvx.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
|
@@ -32,13 +32,13 @@ export declare function moveItems(positions: ReadonlyMap<string, {
|
|
|
32
32
|
* changes; a note's height becomes the least it takes.
|
|
33
33
|
*/
|
|
34
34
|
export declare function resizeItem(id: string, box: Box): CanvasChange;
|
|
35
|
-
/** An item added at a point, its top left there
|
|
35
|
+
/** An item added at a point, its top left there, under a new id of its kind. */
|
|
36
36
|
export declare function addItem(kind: NewItem, at: {
|
|
37
37
|
x: number;
|
|
38
38
|
y: number;
|
|
39
39
|
}, text: string): {
|
|
40
40
|
readonly change: CanvasChange;
|
|
41
|
-
readonly id:
|
|
41
|
+
readonly id: string;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Items removed, with the arrows that join them: an arrow needs both its ends. A section is
|
|
@@ -60,7 +60,7 @@ export declare function duplicateItems(ids: ReadonlySet<string>): {
|
|
|
60
60
|
* Words past what publishing takes for the item are cut there.
|
|
61
61
|
*/
|
|
62
62
|
export declare function setItemText(id: string, typed: string): CanvasChange;
|
|
63
|
-
/** An arrow from one item to another,
|
|
63
|
+
/** An arrow from one item to another, under a new id; none when they are one item. */
|
|
64
64
|
export declare function connectItems(from: string, to: string): CanvasChange;
|
|
65
65
|
/** A style set on every item of a selection that takes it; the rest are left as they are. */
|
|
66
66
|
export declare function styleItems(ids: ReadonlySet<string>, style: ItemStyle): CanvasChange;
|
|
@@ -70,8 +70,9 @@ export declare function styleItems(ids: ReadonlySet<string>, style: ItemStyle):
|
|
|
70
70
|
*/
|
|
71
71
|
export declare function canvasFiles(original: Canvas, canvas: Canvas): Map<string, string | null>;
|
|
72
72
|
/**
|
|
73
|
-
* A
|
|
74
|
-
*
|
|
73
|
+
* A new item's id: what it is or what it copies, then a dash and six random letters and digits,
|
|
74
|
+
* as `note-k3m9q2`, so two people adding at once never name two items alike. A copy of a copy
|
|
75
|
+
* drops the suffix its original was given. Ids stay within what `canvas.json` takes: forty at most.
|
|
75
76
|
*/
|
|
76
|
-
export declare function
|
|
77
|
+
export declare function newItemId(base: string): string;
|
|
77
78
|
//# sourceMappingURL=draft.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,MAAM,EAGX,KAAK,WAAW,EAChB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,MAAM,EAGX,KAAK,WAAW,EAChB,KAAK,cAAc,EAEpB,MAAM,sBAAsB,CAAA;AAE7B;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;AAErD,oEAAoE;AACpE,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA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EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,CAAA;CACvD,CAuCA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CA8BnE;AAED,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAiBnE;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,YAAY,CAsBnF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAOxF;AAWD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK9C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Canvas } from "@sixb/core/artifacts";
|
|
2
2
|
import { type Connection, ConnectionMode, type Edge, type EdgeChange, type Node, type NodeChange } from "@xyflow/react";
|
|
3
3
|
import { type KeyboardEvent } from "react";
|
|
4
|
+
import type { LiveCanvas } from "../../live/canvas";
|
|
4
5
|
import { type CanvasChange } from "./draft";
|
|
5
6
|
import type { CanvasItemEditing } from "./editing";
|
|
6
7
|
/** What the board edits through: each change one step for undo. */
|
|
@@ -8,6 +9,20 @@ export interface CanvasEditor {
|
|
|
8
9
|
readonly apply: (change: CanvasChange) => void;
|
|
9
10
|
readonly undo: () => void;
|
|
10
11
|
readonly redo: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Edits everyone sees as they are made: a drag moves its items for the others while it goes,
|
|
14
|
+
* and is one undo step from its start to its end, however long it pauses.
|
|
15
|
+
*/
|
|
16
|
+
readonly live?: {
|
|
17
|
+
readonly startDrag: () => void;
|
|
18
|
+
readonly endDrag: () => void;
|
|
19
|
+
/** Ends the undo step being made: a board's edit is one step of its own. */
|
|
20
|
+
readonly stopCapturing: () => void;
|
|
21
|
+
/** Tells the others what is selected. */
|
|
22
|
+
readonly select: (ids: readonly string[]) => void;
|
|
23
|
+
/** Edits what a board's page shows, as one step of the same undo. */
|
|
24
|
+
readonly editBoard: LiveCanvas["editBoard"];
|
|
25
|
+
};
|
|
11
26
|
}
|
|
12
27
|
/**
|
|
13
28
|
* The board while it is read, or edited: its nodes and arrows, and, editing, what React Flow
|
|
@@ -16,8 +31,8 @@ export interface CanvasEditor {
|
|
|
16
31
|
* the canvas changes under it.
|
|
17
32
|
*/
|
|
18
33
|
export declare function useBoardEditing(canvas: Canvas, edit: CanvasEditor | undefined, onOpenBoard: ((id: string) => void) | undefined): {
|
|
19
|
-
nodes:
|
|
20
|
-
edges:
|
|
34
|
+
nodes: Node[];
|
|
35
|
+
edges: Edge[];
|
|
21
36
|
editing: false;
|
|
22
37
|
root: import("react").RefObject<HTMLDivElement | null>;
|
|
23
38
|
items?: undefined;
|
|
@@ -35,6 +50,8 @@ export declare function useBoardEditing(canvas: Canvas, edit: CanvasEditor | und
|
|
|
35
50
|
flow: {
|
|
36
51
|
onNodesChange: (changes: NodeChange[]) => void;
|
|
37
52
|
onEdgesChange: (changes: EdgeChange[]) => void;
|
|
53
|
+
onNodeDragStart: () => void | undefined;
|
|
54
|
+
onNodeDrag: (_: unknown, __: Node, dragged: Node[]) => void;
|
|
38
55
|
onNodeDragStop: (_: unknown, __: Node, dragged: Node[]) => void;
|
|
39
56
|
onConnect: (connection: Connection) => void;
|
|
40
57
|
onNodeDoubleClick: (_: unknown, node: Node) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-mode.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/edit-mode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAA2B,MAAM,sBAAsB,CAAA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CAAA;QACjD,qEAAqE;QACrE,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;KAC5C,CAAA;CACF;AAeD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;uBAmLrB,aAAa,CAAC,cAAc,CAAC;;iCA8E1B,UAAU,EAAE;iCAIZ,UAAU,EAAE;;wBAKrB,OAAO,MAAM,IAAI,WAAW,IAAI,EAAE;4BAO9B,OAAO,MAAM,IAAI,WAAW,IAAI,EAAE;gCAI9B,UAAU;+BAEX,OAAO,QAAQ,IAAI;;;;;;kBAShB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;EAS/C"}
|
|
@@ -1,15 +1,64 @@
|
|
|
1
|
-
import type { CanvasBoard } from "@sixb/core/artifacts";
|
|
1
|
+
import type { CanvasArrow, CanvasBoard, FrameZoomStep } from "@sixb/core/artifacts";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import type { LiveArtifact } from "../../live/session";
|
|
2
4
|
import type { ArtifactVersion } from "../../queries";
|
|
5
|
+
import { type BoardEditor, type CommentPick, type StageMode } from "./board-editor";
|
|
6
|
+
import type { DraftPlace, PinPlace } from "./comment-pins";
|
|
7
|
+
import type { Box } from "./draft";
|
|
3
8
|
/**
|
|
4
|
-
* A board opened over the canvas: its page at
|
|
5
|
-
*
|
|
6
|
-
* boards in the canvas's order, and Esc
|
|
9
|
+
* A board opened over the canvas: its page at the board's own size, as the canvas and its picture
|
|
10
|
+
* show it, and answering like a page. Its picture shows until the page is ready, and stays, with
|
|
11
|
+
* a word, if the page never is. ← and → step through the boards in the canvas's order, and Esc
|
|
12
|
+
* goes back to the canvas.
|
|
13
|
+
*
|
|
14
|
+
* It opens fitted: whole, or, taller than wide, to its width, scrolling down it as a document's
|
|
15
|
+
* page. The zoom bar, a pinch or ⌘ with the wheel over it, ⌘ +, − and 0, and a double-click beside
|
|
16
|
+
* it zoom it. Its edges resize it for the reader alone, laid out again at that size while it is
|
|
17
|
+
* open, until they go back to the board's size; whoever may change the canvas keeps it as the
|
|
18
|
+
* board's.
|
|
19
|
+
*
|
|
20
|
+
* It is a prototype too: pressing a button or a link within the page that reads as the label of an
|
|
21
|
+
* arrow leaving the board opens the board the arrow points to.
|
|
22
|
+
*
|
|
23
|
+
* Opened from a canvas edited live, its elements are edited in place; placing a comment, a click
|
|
24
|
+
* picks the element it is about. Its comments' pins show over it.
|
|
7
25
|
*/
|
|
8
|
-
export declare function BoardFocus({ version, boards, id, onOpen, onClose, }: {
|
|
26
|
+
export declare function BoardFocus({ version, boards, arrows, id, pictureOf, onOpen, onClose, live, canvas, mode, pins, activePin, draft, tools, onEscape, onPick, onOpenPin, onSubmitDraft, onCancelDraft, onResizeBoard, }: {
|
|
9
27
|
readonly version: ArtifactVersion;
|
|
10
28
|
readonly boards: readonly CanvasBoard[];
|
|
29
|
+
readonly arrows: readonly CanvasArrow[];
|
|
11
30
|
readonly id: string;
|
|
31
|
+
/** A board's picture at its own size, when it has one. */
|
|
32
|
+
readonly pictureOf?: (id: string) => string | undefined;
|
|
12
33
|
readonly onOpen: (id: string) => void;
|
|
13
34
|
readonly onClose: () => void;
|
|
35
|
+
/** The canvas held live: the board shows what its document holds now. */
|
|
36
|
+
readonly live?: LiveArtifact | null;
|
|
37
|
+
/** What edits the board's elements, while the reader edits the canvas. */
|
|
38
|
+
readonly canvas?: BoardEditor | null;
|
|
39
|
+
readonly mode?: StageMode;
|
|
40
|
+
readonly pins?: readonly PinPlace[];
|
|
41
|
+
readonly activePin?: string | null;
|
|
42
|
+
readonly draft?: DraftPlace | null;
|
|
43
|
+
/** The comment tools, in the header. */
|
|
44
|
+
readonly tools?: ReactNode;
|
|
45
|
+
/** Esc, before it closes the board: true when it was taken, as a comment given up. */
|
|
46
|
+
readonly onEscape?: () => boolean;
|
|
47
|
+
readonly onPick?: (board: string, pick: CommentPick) => void;
|
|
48
|
+
readonly onOpenPin?: (id: string) => void;
|
|
49
|
+
readonly onSubmitDraft?: (body: string) => Promise<void>;
|
|
50
|
+
readonly onCancelDraft?: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Resizes a board on the canvas, as its handles do while the canvas is edited: Keep this size.
|
|
53
|
+
* Absent for whoever may not change the canvas.
|
|
54
|
+
*/
|
|
55
|
+
readonly onResizeBoard?: (id: string, box: Box) => void;
|
|
14
56
|
}): import("react").JSX.Element | null;
|
|
57
|
+
/** ⌘ or Ctrl with +, − or 0 as a zoom step. */
|
|
58
|
+
export declare function zoomKey(event: KeyboardEvent): FrameZoomStep | null;
|
|
59
|
+
/**
|
|
60
|
+
* The board an arrow leaving `from` points to, when its label reads as `pressed`, case and spaces
|
|
61
|
+
* aside: the first such arrow the canvas lists, to a board.
|
|
62
|
+
*/
|
|
63
|
+
export declare function followedArrow(arrows: readonly CanvasArrow[], boards: readonly CanvasBoard[], from: string, pressed: string): string | null;
|
|
15
64
|
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/focus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/focus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAa,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAG9F,OAAO,EAAE,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAA;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAA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AAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IAClC,wCAAwC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAA;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IAC5D,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxD,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IACnC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CACxD,sCA+OA;AAED,+CAA+C;AAC/C,wBAAgB,OAAO,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,GAAG,IAAI,CAMlE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,IAAI,CASf"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { FrameEvent } from "@sixb/core/artifacts";
|
|
2
|
+
import { type RefObject } from "react";
|
|
3
|
+
import type { Box } from "./draft";
|
|
4
|
+
/** What the canvas does with what its running boards hand it. */
|
|
5
|
+
export interface BoardGestures {
|
|
6
|
+
/** Whether the canvas is panning by the wheel now. */
|
|
7
|
+
readonly moving: () => boolean;
|
|
8
|
+
/** Tells `listener` each time the canvas starts or stops panning by the wheel. */
|
|
9
|
+
readonly onMoving: (listener: (moving: boolean) => void) => () => void;
|
|
10
|
+
/** What `board`'s frame sent through its port; `page` is where its page is drawn. */
|
|
11
|
+
readonly receive: (board: string, event: FrameEvent, page: Element | null) => void;
|
|
12
|
+
/** Glides the canvas to show `box`, as a press on an arrow's label does. */
|
|
13
|
+
readonly glide: (box: Box) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Where the view goes to show `box` in a `view` this large, from `zoom`: centered, never closer
|
|
17
|
+
* than the reader is, and further only as far as it takes to fit, though never so far the board
|
|
18
|
+
* stops running, unless the reader is further already. A board still too large starts at the
|
|
19
|
+
* view's top left, as a page is read.
|
|
20
|
+
*/
|
|
21
|
+
export declare function glideView(box: Box, view: {
|
|
22
|
+
readonly width: number;
|
|
23
|
+
readonly height: number;
|
|
24
|
+
}, zoom: number, padding: number): {
|
|
25
|
+
readonly x: number;
|
|
26
|
+
readonly y: number;
|
|
27
|
+
readonly zoom: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The canvas's side of its running boards' gestures, and of its own keys while it is read: Space
|
|
31
|
+
* held over it lets a drag pan across the boards' pages, and ⌘ +, − and 0 zoom it, never the
|
|
32
|
+
* browser, while it has the pointer or the focus and no board is opened.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useBoardGestures({ root, pointed, reading, opened, padding, onPress, }: {
|
|
35
|
+
readonly root: RefObject<HTMLElement | null>;
|
|
36
|
+
/** Whether the pointer is over the canvas. */
|
|
37
|
+
readonly pointed: RefObject<boolean>;
|
|
38
|
+
/** Whether the reader reads the canvas: neither editing it nor placing a comment. */
|
|
39
|
+
readonly reading: boolean;
|
|
40
|
+
/** Whether a board is opened over the canvas, which takes the keys itself. */
|
|
41
|
+
readonly opened: boolean;
|
|
42
|
+
readonly padding: number;
|
|
43
|
+
/** The reader pressed `text` in `board`'s page. */
|
|
44
|
+
readonly onPress: (board: string, text: string) => void;
|
|
45
|
+
}): BoardGestures;
|
|
46
|
+
//# sourceMappingURL=gestures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/gestures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAuC,MAAM,sBAAsB,CAAA;AAE3F,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAElE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAgClC,iEAAiE;AACjE,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,OAAO,CAAA;IAC9B,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,KAAK,MAAM,IAAI,CAAA;IACtE,qFAAqF;IACrF,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAClF,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACzD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CASnE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC5C,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IACpC,qFAAqF;IACrF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,mDAAmD;IACnD,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACxD,GAAG,aAAa,CA2KhB"}
|
|
@@ -1,13 +1,56 @@
|
|
|
1
1
|
import { type NodeTypes } from "@xyflow/react";
|
|
2
2
|
/**
|
|
3
3
|
* Every item's look on the board. Boards and embeds are pages and artifacts under their names,
|
|
4
|
-
* live where the board shows them; sections are headings; the rest draw as they are,
|
|
5
|
-
* theme's colors.
|
|
4
|
+
* live where the board shows them large enough; sections are headings; the rest draw as they are,
|
|
5
|
+
* in the theme's colors. Each draws again only when its own node changes: a canvas holds up to a
|
|
6
|
+
* thousand.
|
|
6
7
|
*/
|
|
7
8
|
export declare const CANVAS_NODE_TYPES: NodeTypes;
|
|
9
|
+
/**
|
|
10
|
+
* The CSS variable names scale by, which the board sets on itself as it zooms, so no item draws
|
|
11
|
+
* again for a frame of a zoom.
|
|
12
|
+
*/
|
|
13
|
+
export declare const NAME_SCALE = "--sixb-name-scale";
|
|
14
|
+
/** `scale` as the CSS variable gives it, 1 where nothing sets it. */
|
|
15
|
+
export declare const NAME_SCALE_VALUE = "var(--sixb-name-scale, 1)";
|
|
8
16
|
/**
|
|
9
17
|
* How much names grow against the zoom, as a design tool names its frames: their size on screen
|
|
10
|
-
* from 100% down to half, then shrinking with the canvas
|
|
18
|
+
* from 100% down to half, then shrinking with the canvas.
|
|
19
|
+
*/
|
|
20
|
+
export declare function nameScale(zoom: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* Below this zoom, the board marks itself far (`data-far`): a tile waiting for its picture, a few
|
|
23
|
+
* dozen pixels wide, stops breathing, which would repaint every such tile at each frame.
|
|
24
|
+
*/
|
|
25
|
+
export declare const FAR_BELOW_ZOOM = 0.2;
|
|
26
|
+
/** What the board sets on itself as it zooms, so no item draws again for a frame of a zoom. */
|
|
27
|
+
export declare function zoomMarks(zoom: number): {
|
|
28
|
+
readonly nameScale: string;
|
|
29
|
+
readonly far: boolean;
|
|
30
|
+
};
|
|
31
|
+
/** Where React Flow's view is zoomed, and whether it waits to be fitted. */
|
|
32
|
+
export interface Zoom {
|
|
33
|
+
readonly zoom: number;
|
|
34
|
+
readonly fitViewQueued: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** What of React Flow's store the zoom is read from. */
|
|
37
|
+
interface ZoomSource {
|
|
38
|
+
getState(): {
|
|
39
|
+
readonly transform: readonly [number, number, number];
|
|
40
|
+
readonly fitViewQueued: boolean;
|
|
41
|
+
};
|
|
42
|
+
subscribe(listener: () => void): () => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The zoom of a React Flow store, told to its listeners only as it changes: the store changes for
|
|
46
|
+
* every node someone moves, and an item that asks only how far the view is zoomed is not asked
|
|
47
|
+
* again for each. One subscription to the store, while anyone listens.
|
|
11
48
|
*/
|
|
12
|
-
export declare function
|
|
49
|
+
export declare function zoomOf(source: ZoomSource): {
|
|
50
|
+
readonly get: () => Zoom;
|
|
51
|
+
readonly subscribe: (listener: () => void) => () => void;
|
|
52
|
+
};
|
|
53
|
+
/** Whether names show at all: zoomed out further, they give way to the canvas. */
|
|
54
|
+
export declare function useNamesShown(): boolean;
|
|
55
|
+
export {};
|
|
13
56
|
//# sourceMappingURL=items.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/items.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/items.tsx"],"names":[],"mappings":"AAWA,OAAO,EAA0B,KAAK,SAAS,EAAyB,MAAM,eAAe,CAAA;AAY7F;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAQ/B,CAAA;AAsBD;;;GAGG;AACH,eAAO,MAAM,UAAU,sBAAsB,CAAA;AAE7C,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,8BAA0B,CAAA;AAEvD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,MAAM,CAAA;AAEjC,+FAA+F;AAC/F,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAG7F;AAED,4EAA4E;AAC5E,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;CAChC;AAED,wDAAwD;AACxD,UAAU,UAAU;IAClB,QAAQ,IAAI;QACV,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;QACrD,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;KAChC,CAAA;IACD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;CAC5C;AAOD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,UAAU;kBARvB,MAAM,IAAI;wBAAsB,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI;EA4CrF;AAYD,kFAAkF;AAClF,wBAAgB,aAAa,IAAI,OAAO,CAEvC"}
|
|
@@ -24,6 +24,9 @@ export interface Box {
|
|
|
24
24
|
* size; a note and a text without a width are measured once drawn. Sections draw
|
|
25
25
|
* behind everything, the rest in the order the canvas lists them. An arrow is an edge between two
|
|
26
26
|
* items, drawn over them all, and its end at a bare point is an invisible node there.
|
|
27
|
+
*
|
|
28
|
+
* An item that is the same object as before, at the same place in the order, draws as the same
|
|
29
|
+
* nodes and edge: React Flow draws again only what changed.
|
|
27
30
|
*/
|
|
28
31
|
export declare function canvasGraph(canvas: Canvas): {
|
|
29
32
|
readonly nodes: CanvasFlowNode[];
|
|
@@ -31,16 +34,10 @@ export declare function canvasGraph(canvas: Canvas): {
|
|
|
31
34
|
};
|
|
32
35
|
/**
|
|
33
36
|
* The extent of every item with a size, for a picture of the whole canvas. Notes without a
|
|
34
|
-
* height count as
|
|
37
|
+
* height count as tall as their words, and texts as a line of their size, near enough for a
|
|
38
|
+
* thumbnail.
|
|
35
39
|
*/
|
|
36
40
|
export declare function canvasExtent(canvas: Canvas): Box;
|
|
37
|
-
/** The size a text of each size draws at, in pixels. */
|
|
38
|
-
export declare const TEXT_SIZES: {
|
|
39
|
-
readonly s: 14;
|
|
40
|
-
readonly m: 18;
|
|
41
|
-
readonly l: 28;
|
|
42
|
-
readonly xl: 44;
|
|
43
|
-
};
|
|
44
41
|
/** An item's box as a thumbnail draws it, before anything is measured. */
|
|
45
42
|
export declare function approximateBox(item: CanvasItem): Box | null;
|
|
46
43
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAa,UAAU,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources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AC,IAAI,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAkB3D"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type PageSize, type SizeSuggestions, type SnappedSize } from "./page-size";
|
|
2
|
+
/**
|
|
3
|
+
* An opened board's page resized as the reader likes, for them alone: its right edge, its bottom
|
|
4
|
+
* edge, or the corner, dragged or moved with the arrow keys. A drag snaps to the suggested sizes
|
|
5
|
+
* within a few pixels on screen, drawn as guides with their name, and to the canvas's grid
|
|
6
|
+
* otherwise; Alt lets it go where the pointer is. Double-clicking the bottom edge shows the full
|
|
7
|
+
* page. Esc puts a drag back where it started.
|
|
8
|
+
*/
|
|
9
|
+
export declare function PageResizer({ size, scale, suggestions, stage, onStart, onResize, onEnd, }: {
|
|
10
|
+
readonly size: PageSize;
|
|
11
|
+
readonly scale: number;
|
|
12
|
+
readonly suggestions: SizeSuggestions;
|
|
13
|
+
/** What scrolls over the page: a drag near its edge scrolls it, the edge following. */
|
|
14
|
+
readonly stage: HTMLElement | null;
|
|
15
|
+
/** A resize starts: the page stays where it is on screen, at its zoom. */
|
|
16
|
+
readonly onStart: () => void;
|
|
17
|
+
readonly onResize: (size: PageSize) => void;
|
|
18
|
+
/** A resize ends, at the suggestions it snapped to: none for a free one, or one put back. */
|
|
19
|
+
readonly onEnd: (snapped: SnappedSize | null) => void;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=page-resize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-resize.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/page-resize.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,QAAQ,EAGb,KAAK,eAAe,EAEpB,KAAK,WAAW,EAEjB,MAAM,aAAa,CAAA;AAuCpB;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAA;IACrC,uFAAuF;IACvF,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAAA;IAClC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC3C,6FAA6F;IAC7F,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CACtD,+BAmOA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type PageSize, type SizeName, type SizeSuggestions } from "./page-size";
|
|
2
|
+
/**
|
|
3
|
+
* The page's size in the opened board's header. Its menu offers what the handles snap to, for
|
|
4
|
+
* those who would rather click, and is the way on a phone. Shown at another size than the
|
|
5
|
+
* board's, it says which, and beside it, on a wide header, or in its menu, offers the way back
|
|
6
|
+
* and, to whoever may change the canvas, Keep this size.
|
|
7
|
+
*/
|
|
8
|
+
export declare function SizeControls({ shown, board, suggestions, kept, onPick, onReset, onKeep, }: {
|
|
9
|
+
readonly shown: PageSize;
|
|
10
|
+
readonly board: PageSize;
|
|
11
|
+
readonly suggestions: SizeSuggestions;
|
|
12
|
+
/** A size just kept as the board's, said for a moment. */
|
|
13
|
+
readonly kept: PageSize | null;
|
|
14
|
+
/** A size picked from the menu, by what it is. */
|
|
15
|
+
readonly onPick: (size: PageSize, name: SizeName) => void;
|
|
16
|
+
/** Back to the board's own size. */
|
|
17
|
+
readonly onReset: () => void;
|
|
18
|
+
/** Keeps the size shown as the board's; absent for whoever may not change the canvas. */
|
|
19
|
+
readonly onKeep?: (() => void) | undefined;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=page-size-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-size-controls.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/page-size-controls.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,QAAQ,EAAW,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAY,MAAM,aAAa,CAAA;AAqBnG;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,EACJ,MAAM,EACN,OAAO,EACP,MAAM,GACP,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAA;IACrC,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC9B,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACzD,oCAAoC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B,yFAAyF;IACzF,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;CAC3C,+BAqIA"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/** A page's size as it is laid out, in its own pixels. */
|
|
2
|
+
export interface PageSize {
|
|
3
|
+
readonly w: number;
|
|
4
|
+
readonly h: number;
|
|
5
|
+
}
|
|
6
|
+
/** What a suggested size is: the board's own, the page's full height, or a common screen. */
|
|
7
|
+
export type SizeName = "board" | "full" | "phone" | "tablet" | "laptop" | "desktop";
|
|
8
|
+
/** A size the page snaps to: a width, a height, or both. */
|
|
9
|
+
export interface SizeSuggestion {
|
|
10
|
+
readonly name: SizeName;
|
|
11
|
+
readonly w?: number;
|
|
12
|
+
readonly h?: number;
|
|
13
|
+
}
|
|
14
|
+
/** The sizes a resize snaps to, by the edge it moves. */
|
|
15
|
+
export interface SizeSuggestions {
|
|
16
|
+
readonly widths: readonly SizeSuggestion[];
|
|
17
|
+
readonly heights: readonly SizeSuggestion[];
|
|
18
|
+
/** Both at once, for the corner: the board's size and the common screens'. */
|
|
19
|
+
readonly sizes: readonly SizeSuggestion[];
|
|
20
|
+
/** The least the page is laid out at: {@link PAGE_MIN}, or the board's own size when less. */
|
|
21
|
+
readonly least: PageSize;
|
|
22
|
+
}
|
|
23
|
+
/** The edges a resize moves. */
|
|
24
|
+
export interface ResizedEdges {
|
|
25
|
+
readonly w: boolean;
|
|
26
|
+
readonly h: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** The common screens' widths a page is laid out at, and their sizes as a whole. */
|
|
29
|
+
export declare const SCREENS: readonly [{
|
|
30
|
+
readonly name: "phone";
|
|
31
|
+
readonly w: 390;
|
|
32
|
+
readonly h: 844;
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "tablet";
|
|
35
|
+
readonly w: 768;
|
|
36
|
+
readonly h: 1024;
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "laptop";
|
|
39
|
+
readonly w: 1280;
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "desktop";
|
|
42
|
+
readonly w: 1440;
|
|
43
|
+
readonly h: 900;
|
|
44
|
+
}];
|
|
45
|
+
/** Whether a size is a common screen's: its width carries to the other boards. */
|
|
46
|
+
export declare function isScreen(name: SizeName): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The least a page is laid out at, which still reads as a page, and the most, the largest board a
|
|
49
|
+
* canvas holds.
|
|
50
|
+
*/
|
|
51
|
+
export declare const PAGE_MIN: PageSize;
|
|
52
|
+
export declare const PAGE_MAX: 8000;
|
|
53
|
+
/** How near, in pixels on screen, a suggested size pulls the edge being dragged to it. */
|
|
54
|
+
export declare const SNAP_REACH = 8;
|
|
55
|
+
/** The zoom an opened board ranges over, and how much a step moves it, as the canvas's do. */
|
|
56
|
+
export declare const ZOOM_MIN = 0.1;
|
|
57
|
+
export declare const ZOOM_MAX = 2.5;
|
|
58
|
+
/** A size kept within what a page is laid out at, in whole pixels. */
|
|
59
|
+
export declare function clampSize(size: PageSize, least?: PageSize): PageSize;
|
|
60
|
+
/**
|
|
61
|
+
* What a page snaps to: the board's own size, its full height once the page reports it, and the
|
|
62
|
+
* common screens. A size the board's own already names is not named twice.
|
|
63
|
+
*/
|
|
64
|
+
export declare function sizeSuggestions(board: PageSize, content: number | null): SizeSuggestions;
|
|
65
|
+
/** Where a resize leaves the page, and the suggestions it snapped to. */
|
|
66
|
+
export interface SnappedSize {
|
|
67
|
+
readonly size: PageSize;
|
|
68
|
+
readonly w: SizeSuggestion | null;
|
|
69
|
+
readonly h: SizeSuggestion | null;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Where a resize puts the page: each moved edge on the nearest suggestion within `reach`, in the
|
|
73
|
+
* page's pixels, else on the grid; the corner on a whole suggested size when both edges are
|
|
74
|
+
* near one. `free`, as with Alt held, it goes where the pointer is.
|
|
75
|
+
*/
|
|
76
|
+
export declare function snapSize(raw: PageSize, edges: ResizedEdges, suggestions: SizeSuggestions, reach: number, free?: boolean): SnappedSize;
|
|
77
|
+
/** The room an opened board is fitted into, on screen. */
|
|
78
|
+
export interface Room {
|
|
79
|
+
readonly width: number;
|
|
80
|
+
readonly height: number;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The zoom a page opens at. One taller than wide reads like a document: fitted to the room's
|
|
84
|
+
* width and scrolled, never enlarged past its own size, unless it nearly fits whole, which it
|
|
85
|
+
* then does. Any other opens whole. `whole` always fits it whole.
|
|
86
|
+
*/
|
|
87
|
+
export declare function fitScale(page: PageSize, room: Room, how: "open" | "whole"): number;
|
|
88
|
+
/** One step of ⌘+ or ⌘−, or of the zoom bar's buttons: a fifth more, or less. */
|
|
89
|
+
export declare function zoomStep(scale: number, direction: "in" | "out"): number;
|
|
90
|
+
export declare function clampZoom(scale: number): number;
|
|
91
|
+
/** Whether two sizes are one. */
|
|
92
|
+
export declare function sameSize(left: PageSize, right: PageSize): boolean;
|
|
93
|
+
//# sourceMappingURL=page-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-size.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/page-size.ts"],"names":[],"mappings":"AAKA,0DAA0D;AAC1D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,6FAA6F;AAC7F,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEnF,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,yDAAyD;AACzD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,CAAA;IAC1C,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,CAAA;IAC3C,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;IACzC,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAA;CACzB;AAED,gCAAgC;AAChC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,oFAAoF;AACpF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;EA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AAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,KAAK,GAAG,MAAM,CAEvE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,iCAAiC;AACjC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAEjE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type PageSize, type Room } from "./page-size";
|
|
2
|
+
/** A point on the page, in its own pixels. */
|
|
3
|
+
export interface PagePoint {
|
|
4
|
+
readonly x: number;
|
|
5
|
+
readonly y: number;
|
|
6
|
+
}
|
|
7
|
+
/** Where the page sits in the stage that scrolls over it, and how large that stage's content is. */
|
|
8
|
+
export interface PagePlacement {
|
|
9
|
+
readonly left: number;
|
|
10
|
+
readonly top: number;
|
|
11
|
+
readonly width: number;
|
|
12
|
+
readonly height: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Where the page sits: centered while it fits the view, else from the padding, the content as
|
|
16
|
+
* large as it takes. `held`, its top left stays where a resize found it.
|
|
17
|
+
*/
|
|
18
|
+
export declare function pagePlacement(view: Room, box: Room, pad: StagePadding, held?: {
|
|
19
|
+
readonly left: number;
|
|
20
|
+
readonly top: number;
|
|
21
|
+
} | null): PagePlacement;
|
|
22
|
+
/** The room kept around the page. */
|
|
23
|
+
export interface StagePadding {
|
|
24
|
+
readonly side: number;
|
|
25
|
+
readonly top: number;
|
|
26
|
+
readonly bottom: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The room kept around the page: less on a phone, where its foot stays clear of the zoom bar,
|
|
30
|
+
* which would cover its bottom handle.
|
|
31
|
+
*/
|
|
32
|
+
export declare function stagePadding(view: Room): StagePadding;
|
|
33
|
+
/**
|
|
34
|
+
* An opened board's zoom, and where its page sits in the stage scrolled over it. It opens fitted
|
|
35
|
+
* as {@link fitScale} says, and stays fitted as the room changes, until the reader zooms. A zoom
|
|
36
|
+
* keeps the point it is made around where it was on screen: the pointer's, or the view's middle.
|
|
37
|
+
* Each board opens fitted again.
|
|
38
|
+
*/
|
|
39
|
+
export declare function usePageZoom({ id, page, view, stage, }: {
|
|
40
|
+
/** The board shown: another opens fitted. */
|
|
41
|
+
readonly id: string;
|
|
42
|
+
readonly page: PageSize;
|
|
43
|
+
/** The stage's size on screen, once measured. */
|
|
44
|
+
readonly view: Room | null;
|
|
45
|
+
/** The element that scrolls over the page. */
|
|
46
|
+
readonly stage: HTMLElement | null;
|
|
47
|
+
}): {
|
|
48
|
+
scale: number;
|
|
49
|
+
placement: PagePlacement | null;
|
|
50
|
+
/** Whether a resize holds the page where it is. */
|
|
51
|
+
held: boolean;
|
|
52
|
+
/** Whether the page glides back to where it sits, as a resize ends. */
|
|
53
|
+
settling: boolean;
|
|
54
|
+
zoomTo: (next: number, at?: PagePoint | null) => void;
|
|
55
|
+
zoomBy: (factor: number, at?: PagePoint | null) => void;
|
|
56
|
+
step: (direction: "in" | "out") => void;
|
|
57
|
+
fit: (how?: "open" | "whole") => void;
|
|
58
|
+
toggle: (at: PagePoint) => void;
|
|
59
|
+
pageAt: (clientX: number, clientY: number) => PagePoint | null;
|
|
60
|
+
hold: () => void;
|
|
61
|
+
release: () => void;
|
|
62
|
+
};
|
|
63
|
+
export type PageZoom = ReturnType<typeof usePageZoom>;
|
|
64
|
+
//# sourceMappingURL=page-zoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-zoom.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/page-zoom.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAY,MAAM,aAAa,CAAA;AAUrF,8CAA8C;AAC9C,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CACn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BAOvC,SAAS;sBASJ,MAAM,WAAW,MAAM,KAAG,SAAS,GAAG,IAAI;;;EA6FvD;AAED,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { LiveArtifact } from "../../live/session";
|
|
2
|
+
/**
|
|
3
|
+
* How far down the board view a selection's top must be for its name to show above it: the
|
|
4
|
+
* toolbar, while editing, and a name's height. Higher, the name shows under the selection's top
|
|
5
|
+
* edge, never under the toolbar nor off the view.
|
|
6
|
+
*/
|
|
7
|
+
export declare const NAME_CLEARANCE = 96;
|
|
8
|
+
/** Whether a selection's name goes under its top edge, where the view puts its box now. */
|
|
9
|
+
export declare function nameBelow(box: {
|
|
10
|
+
readonly y: number;
|
|
11
|
+
}, transform: readonly number[]): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Over the canvas, where the others are: each person's selection outlined in their color, their
|
|
14
|
+
* name above it, or just under its top edge near the top of the view, and each board an Agent
|
|
15
|
+
* turn is changing, its outline shimmering and a badge saying so, kept within the board. Drawn
|
|
16
|
+
* in the canvas's own coordinates, it takes no pointer.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PresenceLayer: import("react").NamedExoticComponent<{
|
|
19
|
+
readonly live: LiveArtifact;
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=presence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/canvas/presence.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAYtD;;;;GAIG;AACH,eAAO,MAAM,cAAc,KAAK,CAAA;AAEhC,2FAA2F;AAC3F,wBAAgB,SAAS,CAAC,GAAG,EAAE;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAG5F;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa;mBAGT,YAAY;EA4F3B,CAAA"}
|