@agent-native/core-corpus 0.213.1 → 0.216.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/corpus/README.md +1 -1
- package/corpus/templates/analytics/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/analytics/CHANGELOG.md +1 -0
- package/corpus/templates/analytics/changelog/2026-10-21-session-replay-quotas-count-the-compressed-size-analytics-st.md +6 -0
- package/corpus/templates/analytics/server/lib/session-replay.ts +40 -9
- package/corpus/templates/assets/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/brain/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/calendar/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/chat/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/clips/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/community/qr/package.json +1 -1
- package/corpus/templates/content/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/content/.agents/skills/content-product-development/references/verification.md +36 -0
- package/corpus/templates/content/.agents/skills/document-editing/SKILL.md +10 -0
- package/corpus/templates/content/.agents/skills/document-editing/references/databases.md +26 -1
- package/corpus/templates/content/.agents/skills/notion-integration/SKILL.md +4 -2
- package/corpus/templates/content/CHANGELOG.md +51 -0
- package/corpus/templates/content/acceptance/_writers.ts +604 -0
- package/corpus/templates/content/acceptance/generate-action-registry.ts +10 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/create-document.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/duplicate-page.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/edit-document-find-and-replace-without-a-revision.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/edit-document-find-and-replace.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/edit-document-initializecontent.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/import-content.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/local-files-import-content-source-existing-page.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/local-files-import-content-source-new-page.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/local-files-sync-local-folder-source-changed-file.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/local-files-sync-local-folder-source-new-file.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/restore-document-version.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/set-document-property-primary-blocks-field.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/set-image-alt-text.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/undo-content-import.json +75 -0
- package/corpus/templates/content/acceptance/golden/gate-off-stored-bytes/update-document-browser-full-rewrite.json +75 -0
- package/corpus/templates/content/acceptance/known-loss.ts +69 -0
- package/corpus/templates/content/acceptance/round-trip-corpus.ts +1397 -0
- package/corpus/templates/content/actions/_blocks-field-identity.ts +35 -1
- package/corpus/templates/content/actions/_content-database-lifecycle.ts +11 -11
- package/corpus/templates/content/actions/_content-database-personal-view.ts +2 -0
- package/corpus/templates/content/actions/_content-favorites.ts +37 -0
- package/corpus/templates/content/actions/_database-membership-lock.ts +39 -8
- package/corpus/templates/content/actions/_database-navigation.ts +19 -21
- package/corpus/templates/content/actions/_database-row-batch.ts +41 -18
- package/corpus/templates/content/actions/_database-row-mutation.ts +17 -28
- package/corpus/templates/content/actions/_database-source-utils.ts +18 -1
- package/corpus/templates/content/actions/_database-utils.ts +3 -0
- package/corpus/templates/content/actions/_database-view-setup.ts +321 -11
- package/corpus/templates/content/actions/_document-edit-mutation.ts +33 -32
- package/corpus/templates/content/actions/_document-flush.ts +593 -171
- package/corpus/templates/content/actions/_document-save-locks.ts +54 -0
- package/corpus/templates/content/actions/_document-save-row.ts +133 -0
- package/corpus/templates/content/actions/_github-source.ts +18 -8
- package/corpus/templates/content/actions/_move-page-to-space.ts +189 -25
- package/corpus/templates/content/actions/_nfm-syntax.ts +2 -0
- package/corpus/templates/content/actions/_property-utils.ts +3 -0
- package/corpus/templates/content/actions/_row-lock-order.ts +115 -0
- package/corpus/templates/content/actions/create-content-database.ts +11 -0
- package/corpus/templates/content/actions/create-document.ts +13 -1
- package/corpus/templates/content/actions/delete-content-database.ts +17 -14
- package/corpus/templates/content/actions/delete-document-property.ts +5 -0
- package/corpus/templates/content/actions/delete-document.ts +270 -97
- package/corpus/templates/content/actions/edit-document.ts +18 -5
- package/corpus/templates/content/actions/export-document.ts +3 -0
- package/corpus/templates/content/actions/get-blocks-field-word-count.ts +22 -5
- package/corpus/templates/content/actions/import-content-source.ts +170 -54
- package/corpus/templates/content/actions/move-document.ts +191 -73
- package/corpus/templates/content/actions/pull-document.ts +8 -2
- package/corpus/templates/content/actions/remove-database-items.ts +23 -4
- package/corpus/templates/content/actions/restore-content-database.ts +76 -55
- package/corpus/templates/content/actions/restore-document-version.ts +19 -35
- package/corpus/templates/content/actions/restore-document.ts +65 -53
- package/corpus/templates/content/actions/rollback-created-slash-document.ts +11 -16
- package/corpus/templates/content/actions/set-document-property.ts +15 -1
- package/corpus/templates/content/actions/share-local-file-document.ts +18 -14
- package/corpus/templates/content/actions/suggest-document-edit.ts +2 -3
- package/corpus/templates/content/actions/sync-local-folder-source.ts +35 -1
- package/corpus/templates/content/actions/undo-content-import.ts +16 -12
- package/corpus/templates/content/actions/update-content-database-view.ts +20 -2
- package/corpus/templates/content/actions/update-document.ts +19 -14
- package/corpus/templates/content/actions/view-screen.ts +12 -0
- package/corpus/templates/content/app/components/editor/BubbleToolbar.tsx +1 -6
- package/corpus/templates/content/app/components/editor/CommentsSidebar.tsx +49 -3
- package/corpus/templates/content/app/components/editor/ContentImportDialog.tsx +2 -0
- package/corpus/templates/content/app/components/editor/DocumentBlockFields.tsx +53 -11
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +608 -353
- package/corpus/templates/content/app/components/editor/StaticDocumentBody.tsx +765 -0
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +233 -80
- package/corpus/templates/content/app/components/editor/blockFieldSaveController.ts +32 -3
- package/corpus/templates/content/app/components/editor/blockFieldSaveRegistry.ts +88 -23
- package/corpus/templates/content/app/components/editor/comment-anchors.ts +19 -0
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +296 -87
- package/corpus/templates/content/app/components/editor/database/ListItemLayout.tsx +410 -0
- package/corpus/templates/content/app/components/editor/database/ListItemRow.tsx +426 -0
- package/corpus/templates/content/app/components/editor/database/ListView.tsx +136 -18
- package/corpus/templates/content/app/components/editor/database/navigation-state.ts +3 -0
- package/corpus/templates/content/app/components/editor/database/settings.tsx +3 -3
- package/corpus/templates/content/app/components/editor/database/view-config.ts +4 -0
- package/corpus/templates/content/app/components/editor/document-flush-participant.ts +253 -0
- package/corpus/templates/content/app/components/editor/editor-transaction-meta.ts +28 -0
- package/corpus/templates/content/app/components/editor/extensions/AudioBlock.tsx +2 -1
- package/corpus/templates/content/app/components/editor/extensions/ImageBlock.tsx +27 -6
- package/corpus/templates/content/app/components/editor/extensions/LocalMdxComponentNode.tsx +0 -1
- package/corpus/templates/content/app/components/editor/extensions/NotionExtensions.tsx +4 -4
- package/corpus/templates/content/app/components/editor/extensions/SuggestionHighlight.ts +24 -2
- package/corpus/templates/content/app/components/editor/extensions/VideoBlock.tsx +25 -6
- package/corpus/templates/content/app/components/editor/pending-document-persistence.ts +59 -1
- package/corpus/templates/content/app/components/editor/stored-body-images.ts +27 -0
- package/corpus/templates/content/app/components/editor/suggestions/presentation-rebase.ts +17 -0
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +11 -4
- package/corpus/templates/content/app/components/trash/TrashBrowser.tsx +4 -1
- package/corpus/templates/content/app/global.css +34 -0
- package/corpus/templates/content/app/hooks/use-content-trash.ts +8 -0
- package/corpus/templates/content/app/i18n-data.ts +32 -0
- package/corpus/templates/content/app/import-messages.ts +25 -0
- package/corpus/templates/content/app/trash-messages.ts +16 -0
- package/corpus/templates/content/changelog/2026-10-16-a-page-open-in-a-tab-that-shows-it-s-in-the-trash-reopens-wi.md +6 -0
- package/corpus/templates/content/changelog/2026-10-16-a-page-restored-from-trash-returns-to-its-place-in-its-colle.md +6 -0
- package/corpus/templates/content/changelog/2026-10-16-agent-written-markdown-keeps-nested-lists-indented-with-spac.md +6 -0
- package/corpus/templates/content/changelog/2026-10-16-opening-a-page-you-can-edit-no-longer-rebuilds-its-editor-on.md +6 -0
- package/corpus/templates/content/changelog/2026-10-16-pages-moved-or-imported-at-the-same-time-can-no-longer-end-u.md +6 -0
- package/corpus/templates/content/changelog/2026-10-16-re-importing-a-markdown-export-of-a-page-no-longer-reports-t.md +6 -0
- package/corpus/templates/content/changelog/2026-10-16-saving-a-page-or-restoring-one-of-its-versions-no-longer-fai.md +6 -0
- package/corpus/templates/content/changelog/2026-10-17-agents-reading-a-page-you-have-open-no-longer-wait-or-fail-w.md +6 -0
- package/corpus/templates/content/changelog/2026-10-19-fresh-document-reads-require-confirmation-from-every-open-ed.md +6 -0
- package/corpus/templates/content/changelog/2026-10-19-list-rows-can-be-customized.md +6 -0
- package/corpus/templates/content/changelog/2026-10-19-list-views-fit-phone-screens.md +6 -0
- package/corpus/templates/content/changelog/2026-10-20-html-table-cells-preserve-a-trailing-backslash-when-opening-.md +6 -0
- package/corpus/templates/content/changelog/2026-10-20-preserve-empty-paragraph-colors-and-refuse-unsupported-inlin.md +6 -0
- package/corpus/templates/content/changelog/2026-10-20-the-advanced-filter-and-each-filter-group-inside-it-have-the.md +6 -0
- package/corpus/templates/content/changelog/2026-10-21-blocks-fields-keep-unconfirmed-saves-visible-and-agent-reads.md +6 -0
- package/corpus/templates/content/changelog/2026-10-21-preserve-compact-table-row-groups-and-report-invalid-block-colors.md +6 -0
- package/corpus/templates/content/changelog/2026-10-21-suggested-edits-show-an-agent-s-whole-reason-open-a-group-to.md +6 -0
- package/corpus/templates/content/changelog/2026-10-21-suggestions-keep-refusing-unmatched-emphasis-in-stored-markd.md +6 -0
- package/corpus/templates/content/changelog/2026-10-22-accept-remaining-and-reject-remaining-show-the-result-for-ev.md +6 -0
- package/corpus/templates/content/changelog/2026-10-22-accepting-a-group-of-suggested-edits-saves-faster-and-adds-o.md +6 -0
- package/corpus/templates/content/changelog/2026-10-22-agents-read-saved-page-text-after-failed-icon-change.md +6 -0
- package/corpus/templates/content/changelog/2026-10-22-changes-made-from-a-menu-or-popover-such-as-an-image-s-alt-t.md +6 -0
- package/corpus/templates/content/changelog/2026-10-22-text-an-agent-writes-inside-a-callout-column-or-synced-block.md +6 -0
- package/corpus/templates/content/e2e/auth-files.ts +28 -0
- package/corpus/templates/content/e2e/convergence-summary.ts +84 -29
- package/corpus/templates/content/e2e/gate-arm.ts +15 -0
- package/corpus/templates/content/e2e/global-setup.ts +43 -75
- package/corpus/templates/content/e2e/global-teardown.ts +34 -0
- package/corpus/templates/content/e2e/helpers.ts +598 -92
- package/corpus/templates/content/e2e/live-body-gate.ts +188 -0
- package/corpus/templates/content/e2e/playwright.config.ts +12 -3
- package/corpus/templates/content/e2e/server-identity.ts +47 -0
- package/corpus/templates/content/e2e/stored-form/collab-blocks.ts +123 -0
- package/corpus/templates/content/package.json +1 -1
- package/corpus/templates/content/scripts/_stored-form-census-kinds.ts +30 -2
- package/corpus/templates/content/scripts/historical-icon-apply.ts +9 -1
- package/corpus/templates/content/scripts/trace-startup.mjs +460 -133
- package/corpus/templates/content/server/db/exec.ts +58 -0
- package/corpus/templates/content/server/db/schema.ts +1 -0
- package/corpus/templates/content/server/lib/content-trash-purge.ts +208 -144
- package/corpus/templates/content/server/lib/document-metadata-updated-at.ts +43 -1
- package/corpus/templates/content/server/lib/document-revision.ts +23 -0
- package/corpus/templates/content/server/lib/live-body-writer.ts +199 -0
- package/corpus/templates/content/server/lib/notion-sync.ts +63 -29
- package/corpus/templates/content/server/lib/notion.ts +5 -5
- package/corpus/templates/content/server/lib/suggested-edits.ts +357 -230
- package/corpus/templates/content/server/plugins/db.ts +5 -0
- package/corpus/templates/content/server/routes/api/documents/[id]/move.patch.ts +50 -168
- package/corpus/templates/content/shared/api.ts +20 -0
- package/corpus/templates/content/shared/blocks-fields-manifest.ts +106 -0
- package/corpus/templates/content/shared/database-item-layout.ts +591 -0
- package/corpus/templates/content/shared/database-query.ts +192 -30
- package/corpus/templates/content/shared/document-export.ts +12 -14
- package/corpus/templates/content/shared/document-flush-protocol.ts +88 -0
- package/corpus/templates/content/shared/editor-save-state.ts +97 -0
- package/corpus/templates/content/shared/feature-flags.ts +10 -0
- package/corpus/templates/content/shared/import/markdown.ts +91 -7
- package/corpus/templates/content/shared/import/types.ts +2 -0
- package/corpus/templates/content/shared/inline-math.ts +6 -4
- package/corpus/templates/content/shared/nfm-fidelity.ts +247 -0
- package/corpus/templates/content/shared/nfm.ts +1933 -340
- package/corpus/templates/content/shared/suggestion-diff.ts +13 -0
- package/corpus/templates/content/shared/suggestion-formatting.ts +143 -20
- package/corpus/templates/content/shared/suggestion-text.ts +39 -0
- package/corpus/templates/content/vitest.config.ts +10 -0
- package/corpus/templates/crm/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/design/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/design/.agents/skills/native-effects/SKILL.md +9 -2
- package/corpus/templates/design/.generated/bridge/shader-fill-preview.generated.ts +3 -249
- package/corpus/templates/design/.generated/bridge/shader-runtime.generated.ts +5 -88
- package/corpus/templates/design/AGENTS.md +1 -3
- package/corpus/templates/design/CHANGELOG.md +32 -0
- package/corpus/templates/design/CODE_NATIVE_DESIGN_STUDIO_IMPLEMENTATION_PLAN.md +1 -6
- package/corpus/templates/design/DESIGN-STUDIO-PLAN.md +5 -7
- package/corpus/templates/design/actions/_native-local-export-server.ts +44 -31
- package/corpus/templates/design/actions/_native-render-contexts.ts +76 -21
- package/corpus/templates/design/actions/claim-native-local-export.ts +5 -0
- package/corpus/templates/design/actions/finish-native-local-export.ts +13 -2
- package/corpus/templates/design/actions/get-native-shader-approvals.ts +35 -0
- package/corpus/templates/design/actions/get-shader.ts +134 -219
- package/corpus/templates/design/actions/list-design-extensions.ts +3 -58
- package/corpus/templates/design/actions/request-native-local-export.ts +32 -6
- package/corpus/templates/design/actions/run-design-extension-action.ts +0 -29
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +131 -108
- package/corpus/templates/design/app/components/design/DesignExtensionsPanel.tsx +0 -218
- package/corpus/templates/design/app/components/design/DesignThumbnail.tsx +59 -3
- package/corpus/templates/design/app/components/design/EditPanel.tsx +35 -47
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +242 -62
- package/corpus/templates/design/app/components/design/NativePreviewErrorBoundary.tsx +53 -0
- package/corpus/templates/design/app/components/design/bridge/codegen.ts +18 -3
- package/corpus/templates/design/app/components/design/bridge/native-composition-clock.ts +5 -4
- package/corpus/templates/design/app/components/design/bridge/native-dom.ts +37 -0
- package/corpus/templates/design/app/components/design/bridge/native-intrinsic-image.ts +2 -1
- package/corpus/templates/design/app/components/design/bridge/native-mesh-grid.ts +90 -0
- package/corpus/templates/design/app/components/design/bridge/native-opaque-public-asset.ts +363 -0
- package/corpus/templates/design/app/components/design/bridge/native-opaque-worker-lease.ts +179 -0
- package/corpus/templates/design/app/components/design/bridge/native-preview-geometry.ts +132 -7
- package/corpus/templates/design/app/components/design/bridge/native-preview-policy.ts +4 -0
- package/corpus/templates/design/app/components/design/bridge/native-preview-viewport-transport.ts +378 -0
- package/corpus/templates/design/app/components/design/bridge/native-scene-body-transform.ts +62 -0
- package/corpus/templates/design/app/components/design/bridge/native-scene-presentation-element.ts +10 -0
- package/corpus/templates/design/app/components/design/bridge/native-shader-runtime.bridge.ts +646 -167
- package/corpus/templates/design/app/components/design/bridge/native-source-provider.ts +246 -192
- package/corpus/templates/design/app/components/design/bridge/native-stateful-resource.ts +2 -2
- package/corpus/templates/design/app/components/design/bridge/native-stateless-compute.ts +5 -2
- package/corpus/templates/design/app/components/design/bridge/native-svg-source.ts +11 -1
- package/corpus/templates/design/app/components/design/bridge/native-worker-broker.ts +6 -0
- package/corpus/templates/design/app/components/design/bridge/native-worker-entry.ts +761 -303
- package/corpus/templates/design/app/components/design/bridge/native-worker-fill.ts +16 -6
- package/corpus/templates/design/app/components/design/bridge/native-worker-gpu.ts +854 -91
- package/corpus/templates/design/app/components/design/bridge/native-worker-host.ts +15 -1
- package/corpus/templates/design/app/components/design/bridge/native-worker-input-assets.ts +200 -0
- package/corpus/templates/design/app/components/design/bridge/native-worker-protocol.ts +40 -1
- package/corpus/templates/design/app/components/design/bridge/native-worker-scene-host.ts +425 -126
- package/corpus/templates/design/app/components/design/bridge/native-worker-source-snapshot.ts +21 -0
- package/corpus/templates/design/app/components/design/bridge/shader-fill-preview.bridge.ts +5 -371
- package/corpus/templates/design/app/components/design/bridge/shader-runtime.bridge.ts +4 -146
- package/corpus/templates/design/app/components/design/design-canvas/interact-document.ts +5 -9
- package/corpus/templates/design/app/components/design/design-canvas/native-preview-surface.ts +150 -0
- package/corpus/templates/design/app/components/design/design-canvas/native-public-asset-preview.ts +409 -0
- package/corpus/templates/design/app/components/design/design-canvas/native-public-worker-preview.ts +1086 -0
- package/corpus/templates/design/app/components/design/design-canvas/private-replay-screenshot-preview.ts +2 -2
- package/corpus/templates/design/app/components/design/edit-panel/effects-properties.tsx +15 -26
- package/corpus/templates/design/app/components/design/edit-panel/fill-properties.tsx +74 -67
- package/corpus/templates/design/app/components/design/edit-panel/panel-primitives.tsx +7 -19
- package/corpus/templates/design/app/components/design/inspector/DesignColorPicker.tsx +39 -30
- package/corpus/templates/design/app/components/design/inspector/GradientEditor.tsx +4 -0
- package/corpus/templates/design/app/components/design/inspector/NativeShaderColorControls.tsx +3 -7
- package/corpus/templates/design/app/components/design/inspector/NativeShaderPaintControls.tsx +12 -5
- package/corpus/templates/design/app/components/design/inspector/NativeShaderPanel.tsx +705 -190
- package/corpus/templates/design/app/components/design/inspector/fill-field-reading.ts +1 -2
- package/corpus/templates/design/app/components/design/inspector/index.ts +0 -6
- package/corpus/templates/design/app/components/design/inspector/native-catalog-display.ts +26 -5
- package/corpus/templates/design/app/components/design/inspector/native-shader-catalog-fixture.ts +42 -0
- package/corpus/templates/design/app/components/design/inspector/native-shader-catalog-preview.ts +51 -33
- package/corpus/templates/design/app/components/design/inspector/native-shader-paint.ts +1 -0
- package/corpus/templates/design/app/components/design/inspector/native-shader-property-draft.ts +89 -23
- package/corpus/templates/design/app/components/design/inspector/saved-glsl-shader.tsx +243 -0
- package/corpus/templates/design/app/components/design/multi-screen/board-surface-html.ts +54 -5
- package/corpus/templates/design/app/components/design/shader-source-coordination.ts +66 -0
- package/corpus/templates/design/app/components/design/use-native-shader-approvals.ts +36 -8
- package/corpus/templates/design/app/components/templates/TemplatePreview.tsx +60 -3
- package/corpus/templates/design/app/i18n/en-US.ts +78 -2
- package/corpus/templates/design/app/pages/Present.tsx +36 -1
- package/corpus/templates/design/app/pages/design-editor/commands/apply-file-content-update.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/apply-local-content-update.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/commit-visual-styles.ts +2 -3
- package/corpus/templates/design/app/pages/design-editor/commands/cross-screen-element-drop.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/layer-move-to-screen.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/paste-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/paste-svg-layer.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/prepare-content-history-replay.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/redo.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/render-png-blob.ts +84 -41
- package/corpus/templates/design/app/pages/design-editor/commands/shader-source-edit.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/undo.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/design-editor-view.tsx +0 -2
- package/corpus/templates/design/app/pages/design-editor/domains/use-editor-content-and-components.ts +4 -33
- package/corpus/templates/design/app/pages/design-editor/domains/use-editor-export-and-handoff.ts +2 -2
- package/corpus/templates/design/app/pages/design-editor/domains/use-editor-history.ts +0 -11
- package/corpus/templates/design/app/pages/design-editor/domains/use-editor-layer-models.ts +2 -55
- package/corpus/templates/design/app/pages/design-editor/domains/use-editor-screen-rendering.tsx +0 -3
- package/corpus/templates/design/app/pages/design-editor/domains/use-editor-selection-and-styles.ts +0 -24
- package/corpus/templates/design/app/pages/design-editor/text-edit-utils.ts +0 -16
- package/corpus/templates/design/app/pages/design-editor/use-native-local-export-requests.ts +70 -11
- package/corpus/templates/design/app/pages/design-editor/view/single-screen-canvas.tsx +0 -2
- package/corpus/templates/design/changelog/2026-10-20-folded-mesh-adds-an-animated-sculpted-fill-with-editable-col.md +6 -0
- package/corpus/templates/design/changelog/2026-10-20-read-only-design-views-render-native-shader-previews-in-nest.md +6 -0
- package/corpus/templates/design/changelog/2026-10-20-selected-screens-with-shader-effects-can-be-exported-togethe.md +6 -0
- package/corpus/templates/design/changelog/2026-10-20-shader-previews-reuse-validated-scene-data-while-panning-inc.md +6 -0
- package/corpus/templates/design/changelog/2026-10-20-shader-previews-stay-aligned-while-you-zoom.md +6 -0
- package/corpus/templates/design/changelog/2026-10-20-signed-out-sessions-no-longer-watch-for-private-png-export-r.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-effect-thumbnails-show-richer-previews.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-native-effects-render-across-previews.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-native-shader-previews-use-less-gpu-memory-when-many-mesh-ef.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-opening-design-no-longer-shows-png-export-errors-when-no-exp.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-pulsing-border-controls-grouped.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-pulsing-border-follows-element-outlines.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-remove-obsolete-shader-fills.md +6 -0
- package/corpus/templates/design/changelog/2026-10-21-shader-previews-recover-from-temporary-gpu-and-image-failure.md +6 -0
- package/corpus/templates/design/changelog/2026-10-22-shader-fills-and-effects-render-correctly-on-canvas-elements.md +6 -0
- package/corpus/templates/design/package.json +0 -1
- package/corpus/templates/design/playwright.config.ts +1 -1
- package/corpus/templates/design/scripts/runtime-budget-zoom.ts +9 -21
- package/corpus/templates/design/scripts/runtime-budget.ts +10 -24
- package/corpus/templates/design/server/plugins/agent-chat.ts +0 -2
- package/corpus/templates/design/shared/effect-graph.ts +46 -1
- package/corpus/templates/design/shared/generation-output-receipt.ts +0 -1
- package/corpus/templates/design/shared/native-effect-animation-capability.ts +6 -0
- package/corpus/templates/design/shared/native-effect-folded-mesh-v1.ts +268 -0
- package/corpus/templates/design/shared/native-effect-folded-mesh-v2.ts +310 -0
- package/corpus/templates/design/shared/native-effect-folded-mesh.ts +489 -0
- package/corpus/templates/design/shared/native-effect-gallery-additions.ts +2 -2
- package/corpus/templates/design/shared/native-effect-paint.ts +8 -0
- package/corpus/templates/design/shared/native-effect-parameter-constraints.ts +8 -1
- package/corpus/templates/design/shared/native-effect-presets.ts +18 -1
- package/corpus/templates/design/shared/native-effect-property-presentation.ts +81 -0
- package/corpus/templates/design/shared/native-effect-pulsing-border-v3.ts +281 -0
- package/corpus/templates/design/shared/native-effect-pulsing-border-v4.ts +284 -0
- package/corpus/templates/design/shared/native-effect-pulsing-border.ts +300 -0
- package/corpus/templates/design/shared/native-effect-trust.ts +6 -0
- package/corpus/templates/design/shared/native-effect-wgsl.ts +12 -0
- package/corpus/templates/design/shared/native-effects.ts +528 -15
- package/corpus/templates/design/shared/native-input-resources.ts +36 -0
- package/corpus/templates/design/shared/native-local-export.ts +14 -0
- package/corpus/templates/design/shared/native-parameter-animation.ts +1 -0
- package/corpus/templates/design/shared/native-pointer-input.ts +9 -11
- package/corpus/templates/design/shared/shader-fills.ts +0 -513
- package/corpus/templates/design/vitest.setup.ts +7 -1
- package/corpus/templates/dispatch/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/dispatch/.agents/skills/turn-into-app/SKILL.md +20 -18
- package/corpus/templates/factory/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/factory/.agents/skills/review-latest-feedback/SKILL.md +36 -80
- package/corpus/templates/factory/.agents/skills/review-latest-feedback/references/channel-inventory.md +54 -16
- package/corpus/templates/factory/.agents/skills/review-latest-feedback/references/slack-reaction-replies.md +50 -73
- package/corpus/templates/factory/.agents/skills/turn-into-app/SKILL.md +20 -18
- package/corpus/templates/forms/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/mail/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/plan/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/slides/.agents/skills/actions/references/action-fields.md +1 -1
- package/corpus/templates/slides-2/.agents/skills/actions/SKILL.md +199 -0
- package/corpus/templates/slides-2/.agents/skills/actions/references/action-fields.md +145 -0
- package/corpus/templates/slides-2/.agents/skills/actions/references/examples.md +96 -0
- package/corpus/templates/slides-2/.agents/skills/actions/references/provider-apis.md +95 -0
- package/corpus/templates/slides-2/.agents/skills/adding-a-feature/SKILL.md +235 -0
- package/corpus/templates/slides-2/.agents/skills/agent-native-docs/SKILL.md +161 -0
- package/corpus/templates/slides-2/.agents/skills/agent-native-toolkit/SKILL.md +314 -0
- package/corpus/templates/slides-2/.agents/skills/analytics-data-for-decks/SKILL.md +44 -0
- package/corpus/templates/slides-2/.agents/skills/apply-slide-comments/SKILL.md +63 -0
- package/corpus/templates/slides-2/.agents/skills/client-side-routing/SKILL.md +87 -0
- package/corpus/templates/slides-2/.agents/skills/context-awareness/SKILL.md +282 -0
- package/corpus/templates/slides-2/.agents/skills/create-deck/SKILL.md +263 -0
- package/corpus/templates/slides-2/.agents/skills/create-deck/references/reference-inputs.md +72 -0
- package/corpus/templates/slides-2/.agents/skills/create-deck/references/slide-templates.md +93 -0
- package/corpus/templates/slides-2/.agents/skills/create-deck/references/source-material.md +16 -0
- package/corpus/templates/slides-2/.agents/skills/creative-context/SKILL.md +134 -0
- package/corpus/templates/slides-2/.agents/skills/customizing-agent-native/SKILL.md +219 -0
- package/corpus/templates/slides-2/.agents/skills/deck-management/SKILL.md +182 -0
- package/corpus/templates/slides-2/.agents/skills/delegate-to-agent/SKILL.md +62 -0
- package/corpus/templates/slides-2/.agents/skills/design-systems/SKILL.md +233 -0
- package/corpus/templates/slides-2/.agents/skills/external-agents/SKILL.md +549 -0
- package/corpus/templates/slides-2/.agents/skills/external-agents/references/mcp-apps-embedding.md +169 -0
- package/corpus/templates/slides-2/.agents/skills/frontend-design/SKILL.md +102 -0
- package/corpus/templates/slides-2/.agents/skills/frontend-design/references/visual-direction.md +102 -0
- package/corpus/templates/slides-2/.agents/skills/image-generation-via-a2a/SKILL.md +134 -0
- package/corpus/templates/slides-2/.agents/skills/performance/SKILL.md +79 -0
- package/corpus/templates/slides-2/.agents/skills/portability/SKILL.md +108 -0
- package/corpus/templates/slides-2/.agents/skills/real-time-sync/SKILL.md +146 -0
- package/corpus/templates/slides-2/.agents/skills/reliable-mutations/SKILL.md +72 -0
- package/corpus/templates/slides-2/.agents/skills/secrets/SKILL.md +82 -0
- package/corpus/templates/slides-2/.agents/skills/security/SKILL.md +80 -0
- package/corpus/templates/slides-2/.agents/skills/self-modifying-code/SKILL.md +123 -0
- package/corpus/templates/slides-2/.agents/skills/shadcn-ui/SKILL.md +71 -0
- package/corpus/templates/slides-2/.agents/skills/sharing/SKILL.md +286 -0
- package/corpus/templates/slides-2/.agents/skills/slide-design/SKILL.md +144 -0
- package/corpus/templates/slides-2/.agents/skills/slide-editing/SKILL.md +284 -0
- package/corpus/templates/slides-2/.agents/skills/slide-editing/references/animations.md +33 -0
- package/corpus/templates/slides-2/.agents/skills/slide-editing/references/freeform-objects.md +22 -0
- package/corpus/templates/slides-2/.agents/skills/slide-editing/references/restyling.md +69 -0
- package/corpus/templates/slides-2/.agents/skills/slide-editing/references/transitions.md +26 -0
- package/corpus/templates/slides-2/.agents/skills/slide-editing/references/video.md +45 -0
- package/corpus/templates/slides-2/.agents/skills/slide-images/SKILL.md +136 -0
- package/corpus/templates/slides-2/.agents/skills/storing-data/SKILL.md +234 -0
- package/corpus/templates/slides-2/.agents/skills/turn-into-skill/SKILL.md +112 -0
- package/corpus/templates/slides-2/.agents/skills/turn-into-skill/agents/openai.yaml +4 -0
- package/corpus/templates/slides-2/.agents/skills/workspace-conventions/SKILL.md +103 -0
- package/corpus/templates/slides-2/.builder/rules/deploy-app.mdc +22 -0
- package/corpus/templates/slides-2/.builder/rules/organize-ui.mdc +9 -0
- package/corpus/templates/slides-2/.dockerignore +61 -0
- package/corpus/templates/slides-2/.env.example +23 -0
- package/corpus/templates/slides-2/.ignore +3 -0
- package/corpus/templates/slides-2/.mcp.json +8 -0
- package/corpus/templates/slides-2/.oxfmtrc.json +8 -0
- package/corpus/templates/slides-2/AGENTS.md +66 -0
- package/corpus/templates/slides-2/CHANGELOG.md +76 -0
- package/corpus/templates/slides-2/DEVELOPING.md +157 -0
- package/corpus/templates/slides-2/README.md +58 -0
- package/corpus/templates/slides-2/THIRD_PARTY_NOTICES.md +33 -0
- package/corpus/templates/slides-2/_gitignore +38 -0
- package/corpus/templates/slides-2/actions/_agent-presence.ts +29 -0
- package/corpus/templates/slides-2/actions/_app-url.ts +37 -0
- package/corpus/templates/slides-2/actions/_deck-app-scope.ts +30 -0
- package/corpus/templates/slides-2/actions/_deck-tracking.ts +260 -0
- package/corpus/templates/slides-2/actions/_deck-write.ts +206 -0
- package/corpus/templates/slides-2/actions/_imported-slide-source.ts +162 -0
- package/corpus/templates/slides-2/actions/_inline-image-storage.ts +1013 -0
- package/corpus/templates/slides-2/actions/_linked-design-system.ts +83 -0
- package/corpus/templates/slides-2/actions/_presenter-notes.ts +83 -0
- package/corpus/templates/slides-2/actions/_render-artifacts.ts +111 -0
- package/corpus/templates/slides-2/actions/_slide-source.ts +344 -0
- package/corpus/templates/slides-2/actions/_tab-state.ts +51 -0
- package/corpus/templates/slides-2/actions/_test-brandfetch.ts +31 -0
- package/corpus/templates/slides-2/actions/_uploaded-files.ts +114 -0
- package/corpus/templates/slides-2/actions/add-deck.ts +123 -0
- package/corpus/templates/slides-2/actions/add-slide-comment.ts +267 -0
- package/corpus/templates/slides-2/actions/add-slide.ts +888 -0
- package/corpus/templates/slides-2/actions/analyze-brand-assets.ts +66 -0
- package/corpus/templates/slides-2/actions/apply-design-system.ts +111 -0
- package/corpus/templates/slides-2/actions/approve-deck-access-request.ts +287 -0
- package/corpus/templates/slides-2/actions/audit-contrast.ts +143 -0
- package/corpus/templates/slides-2/actions/check-image-gen.ts +17 -0
- package/corpus/templates/slides-2/actions/clone-context-slide.ts +340 -0
- package/corpus/templates/slides-2/actions/clone-creative-context-deck.ts +143 -0
- package/corpus/templates/slides-2/actions/control-deck-history.ts +186 -0
- package/corpus/templates/slides-2/actions/control-presenter.ts +117 -0
- package/corpus/templates/slides-2/actions/control-slide-editor.ts +267 -0
- package/corpus/templates/slides-2/actions/create-deck-from-template.ts +274 -0
- package/corpus/templates/slides-2/actions/create-deck.ts +1243 -0
- package/corpus/templates/slides-2/actions/create-design-system.ts +131 -0
- package/corpus/templates/slides-2/actions/create-share-link.ts +127 -0
- package/corpus/templates/slides-2/actions/db-health.ts +22 -0
- package/corpus/templates/slides-2/actions/delete-asset.ts +154 -0
- package/corpus/templates/slides-2/actions/delete-deck.ts +427 -0
- package/corpus/templates/slides-2/actions/delete-design-system.ts +167 -0
- package/corpus/templates/slides-2/actions/delete-slide-comment.ts +143 -0
- package/corpus/templates/slides-2/actions/delete-staged-dataset.ts +30 -0
- package/corpus/templates/slides-2/actions/duplicate-deck.ts +299 -0
- package/corpus/templates/slides-2/actions/export-google-slides.ts +41 -0
- package/corpus/templates/slides-2/actions/export-html.ts +770 -0
- package/corpus/templates/slides-2/actions/export-pptx.ts +2203 -0
- package/corpus/templates/slides-2/actions/extract-pdf.ts +49 -0
- package/corpus/templates/slides-2/actions/generate-image-api.ts +671 -0
- package/corpus/templates/slides-2/actions/generate-image.ts +492 -0
- package/corpus/templates/slides-2/actions/get-agent-access-deck.ts +52 -0
- package/corpus/templates/slides-2/actions/get-deck-access-status.ts +130 -0
- package/corpus/templates/slides-2/actions/get-deck-design-tokens.ts +62 -0
- package/corpus/templates/slides-2/actions/get-deck-reference-context.ts +232 -0
- package/corpus/templates/slides-2/actions/get-deck-template.ts +38 -0
- package/corpus/templates/slides-2/actions/get-deck-version.ts +85 -0
- package/corpus/templates/slides-2/actions/get-deck.ts +562 -0
- package/corpus/templates/slides-2/actions/get-design-system-decode-job-status.ts +57 -0
- package/corpus/templates/slides-2/actions/get-design-system-tier-limit.ts +12 -0
- package/corpus/templates/slides-2/actions/get-design-system.ts +453 -0
- package/corpus/templates/slides-2/actions/get-google-docs-status.ts +106 -0
- package/corpus/templates/slides-2/actions/get-google-picker-token.ts +84 -0
- package/corpus/templates/slides-2/actions/get-home-suggestions.ts +52 -0
- package/corpus/templates/slides-2/actions/get-layout-overflows.ts +192 -0
- package/corpus/templates/slides-2/actions/get-slide-render.ts +125 -0
- package/corpus/templates/slides-2/actions/get-slide-source.ts +115 -0
- package/corpus/templates/slides-2/actions/get-slide-theme-preview.ts +64 -0
- package/corpus/templates/slides-2/actions/get-slide-theme.ts +44 -0
- package/corpus/templates/slides-2/actions/get-slides-2-upload-storage-status.ts +17 -0
- package/corpus/templates/slides-2/actions/get-slides-notification-prefs.ts +37 -0
- package/corpus/templates/slides-2/actions/get-workspace-defaults.ts +51 -0
- package/corpus/templates/slides-2/actions/image-gen-status.ts +35 -0
- package/corpus/templates/slides-2/actions/import-code.ts +26 -0
- package/corpus/templates/slides-2/actions/import-design-project.ts +49 -0
- package/corpus/templates/slides-2/actions/import-document.ts +125 -0
- package/corpus/templates/slides-2/actions/import-docx.ts +57 -0
- package/corpus/templates/slides-2/actions/import-file.ts +1273 -0
- package/corpus/templates/slides-2/actions/import-from-url.ts +25 -0
- package/corpus/templates/slides-2/actions/import-google-doc.ts +208 -0
- package/corpus/templates/slides-2/actions/import-google-font.ts +110 -0
- package/corpus/templates/slides-2/actions/import-google-slides-reference.ts +667 -0
- package/corpus/templates/slides-2/actions/import-pptx.ts +564 -0
- package/corpus/templates/slides-2/actions/import-svgl-logo.ts +115 -0
- package/corpus/templates/slides-2/actions/index-design-system-with-builder.ts +181 -0
- package/corpus/templates/slides-2/actions/index-uploaded-design-system-files.ts +77 -0
- package/corpus/templates/slides-2/actions/list-assets.ts +286 -0
- package/corpus/templates/slides-2/actions/list-deck-templates.ts +83 -0
- package/corpus/templates/slides-2/actions/list-deck-versions.ts +185 -0
- package/corpus/templates/slides-2/actions/list-decks.ts +591 -0
- package/corpus/templates/slides-2/actions/list-design-systems.ts +180 -0
- package/corpus/templates/slides-2/actions/list-slide-comments.ts +128 -0
- package/corpus/templates/slides-2/actions/list-slide-themes.ts +17 -0
- package/corpus/templates/slides-2/actions/list-staged-datasets.ts +14 -0
- package/corpus/templates/slides-2/actions/logo-config.ts +13 -0
- package/corpus/templates/slides-2/actions/navigate.ts +158 -0
- package/corpus/templates/slides-2/actions/patch-deck.ts +2378 -0
- package/corpus/templates/slides-2/actions/provider-api-catalog.ts +25 -0
- package/corpus/templates/slides-2/actions/provider-api-docs.ts +83 -0
- package/corpus/templates/slides-2/actions/provider-api-request.ts +222 -0
- package/corpus/templates/slides-2/actions/query-staged-dataset.ts +83 -0
- package/corpus/templates/slides-2/actions/read-composer-source.ts +108 -0
- package/corpus/templates/slides-2/actions/request-deck-access.ts +803 -0
- package/corpus/templates/slides-2/actions/restore-deck-version.ts +203 -0
- package/corpus/templates/slides-2/actions/run.ts +2 -0
- package/corpus/templates/slides-2/actions/save-deck.ts +313 -0
- package/corpus/templates/slides-2/actions/search-google-fonts.ts +61 -0
- package/corpus/templates/slides-2/actions/search-images.ts +30 -0
- package/corpus/templates/slides-2/actions/search-logos.ts +23 -0
- package/corpus/templates/slides-2/actions/search-svgl-logos.ts +42 -0
- package/corpus/templates/slides-2/actions/set-default-design-system.ts +88 -0
- package/corpus/templates/slides-2/actions/set-workspace-defaults.ts +61 -0
- package/corpus/templates/slides-2/actions/start-design-system-upload.ts +80 -0
- package/corpus/templates/slides-2/actions/sync-design-system-with-builder.ts +84 -0
- package/corpus/templates/slides-2/actions/toggle-slide-comment-reaction.ts +150 -0
- package/corpus/templates/slides-2/actions/transform-slide-objects.ts +1528 -0
- package/corpus/templates/slides-2/actions/update-asset.ts +499 -0
- package/corpus/templates/slides-2/actions/update-deck-aspect-ratio.ts +95 -0
- package/corpus/templates/slides-2/actions/update-deck-design-tokens.ts +175 -0
- package/corpus/templates/slides-2/actions/update-design-system.ts +95 -0
- package/corpus/templates/slides-2/actions/update-slide-comment.ts +213 -0
- package/corpus/templates/slides-2/actions/update-slide-source.ts +353 -0
- package/corpus/templates/slides-2/actions/update-slide.ts +850 -0
- package/corpus/templates/slides-2/actions/update-slides-notification-prefs.ts +55 -0
- package/corpus/templates/slides-2/actions/view-screen.ts +1098 -0
- package/corpus/templates/slides-2/agent-native.app-skill.json +165 -0
- package/corpus/templates/slides-2/agent-native.config.ts +20 -0
- package/corpus/templates/slides-2/agent-native.json +18 -0
- package/corpus/templates/slides-2/app/components/ThemeToggle.tsx +47 -0
- package/corpus/templates/slides-2/app/components/comments/SlideCommentPins.tsx +781 -0
- package/corpus/templates/slides-2/app/components/comments/SlideCommentsPanel.tsx +1075 -0
- package/corpus/templates/slides-2/app/components/deck/DeckCard.tsx +304 -0
- package/corpus/templates/slides-2/app/components/deck/DeckFilterMenu.tsx +83 -0
- package/corpus/templates/slides-2/app/components/deck/ExcalidrawSlide.tsx +183 -0
- package/corpus/templates/slides-2/app/components/deck/MermaidRenderer.tsx +126 -0
- package/corpus/templates/slides-2/app/components/deck/SlideRenderer.tsx +1553 -0
- package/corpus/templates/slides-2/app/components/design-system/DesignSystemCard.tsx +235 -0
- package/corpus/templates/slides-2/app/components/design-system/DesignSystemSetup.tsx +2021 -0
- package/corpus/templates/slides-2/app/components/design-system/builder-design-system-upload.ts +200 -0
- package/corpus/templates/slides-2/app/components/design-system/builder-index-response.ts +104 -0
- package/corpus/templates/slides-2/app/components/editor/AddSlidePopover.tsx +461 -0
- package/corpus/templates/slides-2/app/components/editor/AiEditingMarker.tsx +24 -0
- package/corpus/templates/slides-2/app/components/editor/AlignmentGuides.tsx +82 -0
- package/corpus/templates/slides-2/app/components/editor/AnimationsPanel.tsx +698 -0
- package/corpus/templates/slides-2/app/components/editor/AppMenu.tsx +356 -0
- package/corpus/templates/slides-2/app/components/editor/AssetLibraryPanel.tsx +508 -0
- package/corpus/templates/slides-2/app/components/editor/BlockBubbleMenu.tsx +548 -0
- package/corpus/templates/slides-2/app/components/editor/DeckAccessDeniedPage.tsx +173 -0
- package/corpus/templates/slides-2/app/components/editor/DeckEditorSkeleton.tsx +35 -0
- package/corpus/templates/slides-2/app/components/editor/DeferredPopoverFallback.tsx +148 -0
- package/corpus/templates/slides-2/app/components/editor/EditorActionCluster.tsx +217 -0
- package/corpus/templates/slides-2/app/components/editor/EditorSidebar.tsx +1047 -0
- package/corpus/templates/slides-2/app/components/editor/EditorToolbar.tsx +1285 -0
- package/corpus/templates/slides-2/app/components/editor/ExportMenu.tsx +579 -0
- package/corpus/templates/slides-2/app/components/editor/GeneratingOverlay.tsx +21 -0
- package/corpus/templates/slides-2/app/components/editor/GeneratingSlidePreview.tsx +73 -0
- package/corpus/templates/slides-2/app/components/editor/GoogleDocImportHint.tsx +378 -0
- package/corpus/templates/slides-2/app/components/editor/GoogleDriveConnectionCta.tsx +154 -0
- package/corpus/templates/slides-2/app/components/editor/GoogleSlidesReferenceImport.tsx +299 -0
- package/corpus/templates/slides-2/app/components/editor/HistoryPanel.tsx +354 -0
- package/corpus/templates/slides-2/app/components/editor/HomeQuickStartDialog.tsx +202 -0
- package/corpus/templates/slides-2/app/components/editor/ImageCropOverlay.tsx +820 -0
- package/corpus/templates/slides-2/app/components/editor/ImageDropPromptPopover.tsx +280 -0
- package/corpus/templates/slides-2/app/components/editor/ImageGenPanel.tsx +244 -0
- package/corpus/templates/slides-2/app/components/editor/ImageOverlay.tsx +280 -0
- package/corpus/templates/slides-2/app/components/editor/ImageSearchPanel.tsx +183 -0
- package/corpus/templates/slides-2/app/components/editor/ImportDeckButton.tsx +247 -0
- package/corpus/templates/slides-2/app/components/editor/LogoSearchPanel.tsx +366 -0
- package/corpus/templates/slides-2/app/components/editor/MermaidToExcalidrawPanel.tsx +99 -0
- package/corpus/templates/slides-2/app/components/editor/MissingDeckAccessPane.tsx +219 -0
- package/corpus/templates/slides-2/app/components/editor/NewDeckReferenceStep.tsx +812 -0
- package/corpus/templates/slides-2/app/components/editor/PromptDialog.tsx +963 -0
- package/corpus/templates/slides-2/app/components/editor/QuestionFlow.tsx +119 -0
- package/corpus/templates/slides-2/app/components/editor/RequestDeckAccessDialog.tsx +101 -0
- package/corpus/templates/slides-2/app/components/editor/ShareDialog.tsx +126 -0
- package/corpus/templates/slides-2/app/components/editor/SlideContextToolbar.tsx +1471 -0
- package/corpus/templates/slides-2/app/components/editor/SlideEditor.tsx +11183 -0
- package/corpus/templates/slides-2/app/components/editor/SlideOverflowWarning.tsx +82 -0
- package/corpus/templates/slides-2/app/components/editor/SlideScrollStack.tsx +307 -0
- package/corpus/templates/slides-2/app/components/editor/SlideSlashCommandMenu.tsx +692 -0
- package/corpus/templates/slides-2/app/components/editor/SlideThumbnailContextMenu.tsx +52 -0
- package/corpus/templates/slides-2/app/components/editor/SlideTransitionControl.tsx +184 -0
- package/corpus/templates/slides-2/app/components/editor/SlidesComposerContext.tsx +789 -0
- package/corpus/templates/slides-2/app/components/editor/SlidesComposerContextProvider.tsx +74 -0
- package/corpus/templates/slides-2/app/components/editor/SlidesLayersPanel.tsx +377 -0
- package/corpus/templates/slides-2/app/components/editor/SpeakerNotesPanel.tsx +119 -0
- package/corpus/templates/slides-2/app/components/editor/TweaksPanel.tsx +77 -0
- package/corpus/templates/slides-2/app/components/editor/UploadStorageGate.tsx +37 -0
- package/corpus/templates/slides-2/app/components/editor/bullet-editing.ts +880 -0
- package/corpus/templates/slides-2/app/components/editor/canvas-interactions/index.ts +12 -0
- package/corpus/templates/slides-2/app/components/editor/canvas-interactions/slides-canvas-adapter.ts +119 -0
- package/corpus/templates/slides-2/app/components/editor/commit-active-edit.ts +14 -0
- package/corpus/templates/slides-2/app/components/editor/editor-command-model.ts +35 -0
- package/corpus/templates/slides-2/app/components/editor/fit-text-object.ts +31 -0
- package/corpus/templates/slides-2/app/components/editor/in-place-text-session.browser-cases.json +983 -0
- package/corpus/templates/slides-2/app/components/editor/in-place-text-session.browser-host.ts +747 -0
- package/corpus/templates/slides-2/app/components/editor/in-place-text-session.ts +6891 -0
- package/corpus/templates/slides-2/app/components/editor/inline-edit-session.ts +26 -0
- package/corpus/templates/slides-2/app/components/editor/list-editing.ts +501 -0
- package/corpus/templates/slides-2/app/components/editor/rich-text-selection.ts +975 -0
- package/corpus/templates/slides-2/app/components/editor/rte-test-utils.ts +265 -0
- package/corpus/templates/slides-2/app/components/editor/selection-overlay-measurement.ts +191 -0
- package/corpus/templates/slides-2/app/components/editor/slide-escape-arbiter.ts +34 -0
- package/corpus/templates/slides-2/app/components/editor/slide-object-interactions.ts +6362 -0
- package/corpus/templates/slides-2/app/components/editor/slide-object-transform.browser-host.ts +19 -0
- package/corpus/templates/slides-2/app/components/editor/slide-pointer-target.ts +432 -0
- package/corpus/templates/slides-2/app/components/editor/slide-presence.ts +13 -0
- package/corpus/templates/slides-2/app/components/editor/slide-style.ts +243 -0
- package/corpus/templates/slides-2/app/components/editor/slide-text-targets.ts +540 -0
- package/corpus/templates/slides-2/app/components/editor/style-clipboard.ts +102 -0
- package/corpus/templates/slides-2/app/components/editor/use-prompt-import.ts +159 -0
- package/corpus/templates/slides-2/app/components/home/SlidesHomeLibrary.tsx +79 -0
- package/corpus/templates/slides-2/app/components/layout/AgentWorkIndicator.tsx +193 -0
- package/corpus/templates/slides-2/app/components/layout/Header.tsx +110 -0
- package/corpus/templates/slides-2/app/components/layout/Layout.tsx +492 -0
- package/corpus/templates/slides-2/app/components/layout/Sidebar.tsx +109 -0
- package/corpus/templates/slides-2/app/components/layout/layout-route-policy.ts +28 -0
- package/corpus/templates/slides-2/app/components/presentation/PresentationView.tsx +1116 -0
- package/corpus/templates/slides-2/app/components/presentation/PresenterView.tsx +526 -0
- package/corpus/templates/slides-2/app/components/presentation/SlideTransitionStage.tsx +297 -0
- package/corpus/templates/slides-2/app/components/presentation/present-channel.ts +31 -0
- package/corpus/templates/slides-2/app/components/presentation/slide-build-steps.ts +231 -0
- package/corpus/templates/slides-2/app/components/presentation/slide-navigation.ts +273 -0
- package/corpus/templates/slides-2/app/components/presentation/slide-transition-motion.ts +258 -0
- package/corpus/templates/slides-2/app/components/presentation/voice-navigation.ts +61 -0
- package/corpus/templates/slides-2/app/components/settings/notification-settings.tsx +93 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2AssetBrowser.tsx +726 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2CommandMenu.tsx +453 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2Comments.tsx +571 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2DesignTokens.tsx +345 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2Editor.tsx +4804 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2ExportMenu.tsx +671 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2FontBrowser.tsx +342 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2ImageCropControls.tsx +487 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2Inspector.tsx +950 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/Slides2SvglLogoSearchDialog.tsx +332 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/cross-slide-edit-history.ts +151 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/design-token-presets.ts +140 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/editor-action-errors.ts +47 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/editor-export-errors.ts +60 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/geometry.ts +275 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/image-crop-style.ts +82 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/inline-text-editor.tsx +631 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/keyboard-shortcuts.ts +104 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/object-insertion.ts +13 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/preview-patches.ts +54 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/sandbox-render-errors.ts +23 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/source-structure.ts +634 -0
- package/corpus/templates/slides-2/app/components/slides-2-editor/types.ts +85 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2BlackoutOverlay.tsx +13 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2ControlBar.tsx +285 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2HelpDialog.tsx +72 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2JumpInput.tsx +38 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2LaserPointer.tsx +67 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2Overview.tsx +161 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2Player.tsx +839 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/Slides2ProgressBar.tsx +23 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/keyboard.ts +36 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/presenter-channel.ts +131 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/use-presenter-action-bridge.ts +296 -0
- package/corpus/templates/slides-2/app/components/slides-2-presenter/useSlides2TouchSwipe.ts +80 -0
- package/corpus/templates/slides-2/app/components/slides-2-runtime/SandboxedSlide.tsx +724 -0
- package/corpus/templates/slides-2/app/components/slides-2-runtime/SlideContentRenderer.tsx +137 -0
- package/corpus/templates/slides-2/app/components/slides-2-runtime/Slides2Canvas.tsx +99 -0
- package/corpus/templates/slides-2/app/components/slides-2-runtime/constants.ts +4 -0
- package/corpus/templates/slides-2/app/components/slides-2-runtime/protocol.ts +1400 -0
- package/corpus/templates/slides-2/app/components/slides-2-runtime/transition-frame.ts +439 -0
- package/corpus/templates/slides-2/app/components/templates/DeckTemplateLibrary.tsx +314 -0
- package/corpus/templates/slides-2/app/components/templates/DeckTemplatePreview.tsx +60 -0
- package/corpus/templates/slides-2/app/components/templates/DeckTemplateStage.tsx +45 -0
- package/corpus/templates/slides-2/app/components/ui/alert-dialog.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/avatar.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/button-group.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/button.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/card.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/command.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/context-menu.tsx +32 -0
- package/corpus/templates/slides-2/app/components/ui/dialog.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/dropdown-menu.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/filter-trigger.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/input.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/label.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/popover.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/progress.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/scroll-area.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/select.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/separator.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/sheet.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/skeleton.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/slider.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/spinner.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/switch.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/tabs.tsx +59 -0
- package/corpus/templates/slides-2/app/components/ui/textarea.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/toggle-group.tsx +1 -0
- package/corpus/templates/slides-2/app/components/ui/toolkit-provider.tsx +17 -0
- package/corpus/templates/slides-2/app/components/ui/tooltip.tsx +1 -0
- package/corpus/templates/slides-2/app/components/visual-editor/CanvasCommentPins.tsx +46 -0
- package/corpus/templates/slides-2/app/components/visual-editor/DrawOverlay.tsx +27 -0
- package/corpus/templates/slides-2/app/components/visual-editor/MultiSelectChip.tsx +97 -0
- package/corpus/templates/slides-2/app/components/visual-editor/SaveStatusIndicator.tsx +273 -0
- package/corpus/templates/slides-2/app/components/visual-editor/index.ts +4 -0
- package/corpus/templates/slides-2/app/context/DeckContext.tsx +7486 -0
- package/corpus/templates/slides-2/app/design-system.ts +3 -0
- package/corpus/templates/slides-2/app/entry.client.tsx +10 -0
- package/corpus/templates/slides-2/app/entry.server.tsx +10 -0
- package/corpus/templates/slides-2/app/global.css +1626 -0
- package/corpus/templates/slides-2/app/hooks/use-agent-generating.ts +517 -0
- package/corpus/templates/slides-2/app/hooks/use-compact-editor-layout.ts +26 -0
- package/corpus/templates/slides-2/app/hooks/use-contrast-audit-bridge.ts +49 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-access-reload.ts +70 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-access.ts +50 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-design-system.ts +146 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-history-action-bridge.ts +266 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-presence.ts +89 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-role.ts +46 -0
- package/corpus/templates/slides-2/app/hooks/use-deck-versions.ts +43 -0
- package/corpus/templates/slides-2/app/hooks/use-design-system-workflows.ts +11 -0
- package/corpus/templates/slides-2/app/hooks/use-design-systems.ts +31 -0
- package/corpus/templates/slides-2/app/hooks/use-generating-slide-preview.ts +115 -0
- package/corpus/templates/slides-2/app/hooks/use-navigation-state.ts +229 -0
- package/corpus/templates/slides-2/app/hooks/use-new-deck-generation-signal.ts +46 -0
- package/corpus/templates/slides-2/app/hooks/use-new-deck-generation.ts +710 -0
- package/corpus/templates/slides-2/app/hooks/use-sidebar-collapsed.ts +95 -0
- package/corpus/templates/slides-2/app/hooks/use-slide-comments.ts +202 -0
- package/corpus/templates/slides-2/app/hooks/use-slide-file-storage-status.ts +55 -0
- package/corpus/templates/slides-2/app/hooks/use-undo-selection.ts +66 -0
- package/corpus/templates/slides-2/app/hooks/use-workspace-defaults.ts +31 -0
- package/corpus/templates/slides-2/app/i18n/en-US.ts +1507 -0
- package/corpus/templates/slides-2/app/i18n/index.ts +19 -0
- package/corpus/templates/slides-2/app/lib/agent-visible-message.ts +21 -0
- package/corpus/templates/slides-2/app/lib/aspect-ratios.ts +7 -0
- package/corpus/templates/slides-2/app/lib/asset-error-copy.ts +59 -0
- package/corpus/templates/slides-2/app/lib/canvas-zoom.ts +47 -0
- package/corpus/templates/slides-2/app/lib/composer-context.ts +152 -0
- package/corpus/templates/slides-2/app/lib/composer-draft.ts +34 -0
- package/corpus/templates/slides-2/app/lib/contrast-audit.ts +390 -0
- package/corpus/templates/slides-2/app/lib/contrast-resolve.ts +240 -0
- package/corpus/templates/slides-2/app/lib/create-deck-generation.ts +938 -0
- package/corpus/templates/slides-2/app/lib/deck-access-lost.ts +4 -0
- package/corpus/templates/slides-2/app/lib/deck-backup.ts +186 -0
- package/corpus/templates/slides-2/app/lib/deck-editor-loading.ts +91 -0
- package/corpus/templates/slides-2/app/lib/deck-export-file-client.ts +77 -0
- package/corpus/templates/slides-2/app/lib/deck-filter.ts +52 -0
- package/corpus/templates/slides-2/app/lib/deck-list-loading.ts +16 -0
- package/corpus/templates/slides-2/app/lib/deck-preview-frame.ts +15 -0
- package/corpus/templates/slides-2/app/lib/deck-share-links.ts +9 -0
- package/corpus/templates/slides-2/app/lib/deck-sorting.ts +19 -0
- package/corpus/templates/slides-2/app/lib/deferred-editor-surfaces.ts +24 -0
- package/corpus/templates/slides-2/app/lib/design-system-selection.ts +11 -0
- package/corpus/templates/slides-2/app/lib/design-systems.ts +231 -0
- package/corpus/templates/slides-2/app/lib/dynamic-import.ts +50 -0
- package/corpus/templates/slides-2/app/lib/editor-agent-handoff.ts +92 -0
- package/corpus/templates/slides-2/app/lib/editor-shortcuts.ts +153 -0
- package/corpus/templates/slides-2/app/lib/export-google-slides-client.ts +168 -0
- package/corpus/templates/slides-2/app/lib/export-pdf-client.ts +684 -0
- package/corpus/templates/slides-2/app/lib/export-pptx-client.ts +2420 -0
- package/corpus/templates/slides-2/app/lib/generation-lifecycle.ts +24 -0
- package/corpus/templates/slides-2/app/lib/generation-state.ts +247 -0
- package/corpus/templates/slides-2/app/lib/google-docs-client.ts +110 -0
- package/corpus/templates/slides-2/app/lib/google-slides-export-availability-client.ts +53 -0
- package/corpus/templates/slides-2/app/lib/google-slides-reference-source.ts +18 -0
- package/corpus/templates/slides-2/app/lib/image-download.ts +85 -0
- package/corpus/templates/slides-2/app/lib/image-drop-to-agent.ts +210 -0
- package/corpus/templates/slides-2/app/lib/import-uploaded-deck.ts +132 -0
- package/corpus/templates/slides-2/app/lib/inline-edit-remote.ts +55 -0
- package/corpus/templates/slides-2/app/lib/localize-slides-changelog.ts +47 -0
- package/corpus/templates/slides-2/app/lib/mermaid-blocks.ts +18 -0
- package/corpus/templates/slides-2/app/lib/new-deck-reference-selection.ts +174 -0
- package/corpus/templates/slides-2/app/lib/normalize-slide-padding.ts +74 -0
- package/corpus/templates/slides-2/app/lib/pending-deck-changes.ts +33 -0
- package/corpus/templates/slides-2/app/lib/portaled-layer.ts +7 -0
- package/corpus/templates/slides-2/app/lib/pptx-google-slides.ts +204 -0
- package/corpus/templates/slides-2/app/lib/prompt-attachment-adapter.ts +37 -0
- package/corpus/templates/slides-2/app/lib/prompt-file-uploads.ts +557 -0
- package/corpus/templates/slides-2/app/lib/recent-references.ts +106 -0
- package/corpus/templates/slides-2/app/lib/reference-document-hydration.ts +406 -0
- package/corpus/templates/slides-2/app/lib/register-chat-renderers.tsx +645 -0
- package/corpus/templates/slides-2/app/lib/reveal-after-delete.ts +55 -0
- package/corpus/templates/slides-2/app/lib/sanitize-slide-html.ts +752 -0
- package/corpus/templates/slides-2/app/lib/slide-agent-context.ts +148 -0
- package/corpus/templates/slides-2/app/lib/slide-animation-elements.ts +900 -0
- package/corpus/templates/slides-2/app/lib/slide-clipboard.ts +534 -0
- package/corpus/templates/slides-2/app/lib/slide-comment-anchor.ts +286 -0
- package/corpus/templates/slides-2/app/lib/slide-content-merge.ts +295 -0
- package/corpus/templates/slides-2/app/lib/slide-image-replacement.ts +1919 -0
- package/corpus/templates/slides-2/app/lib/slide-live-remote.ts +215 -0
- package/corpus/templates/slides-2/app/lib/slide-scroll.ts +56 -0
- package/corpus/templates/slides-2/app/lib/slide-source-map.ts +1099 -0
- package/corpus/templates/slides-2/app/lib/slide-video.ts +390 -0
- package/corpus/templates/slides-2/app/lib/slides-relay-tracking.ts +114 -0
- package/corpus/templates/slides-2/app/lib/streaming-slide-html.ts +77 -0
- package/corpus/templates/slides-2/app/lib/tab-id.ts +3 -0
- package/corpus/templates/slides-2/app/lib/template-navigation.ts +15 -0
- package/corpus/templates/slides-2/app/lib/text-tool-shortcut.ts +75 -0
- package/corpus/templates/slides-2/app/lib/undo-reveal.ts +332 -0
- package/corpus/templates/slides-2/app/lib/upload-response.ts +107 -0
- package/corpus/templates/slides-2/app/lib/utils.ts +38 -0
- package/corpus/templates/slides-2/app/lib/validate-native-slide-html.ts +177 -0
- package/corpus/templates/slides-2/app/lib/video-upload.ts +354 -0
- package/corpus/templates/slides-2/app/pages/DeckEditor.tsx +6158 -0
- package/corpus/templates/slides-2/app/pages/DesignSystems.tsx +363 -0
- package/corpus/templates/slides-2/app/pages/Index.tsx +3254 -0
- package/corpus/templates/slides-2/app/pages/NotFound.tsx +33 -0
- package/corpus/templates/slides-2/app/pages/Presentation.tsx +120 -0
- package/corpus/templates/slides-2/app/pages/SharedPresentation.tsx +174 -0
- package/corpus/templates/slides-2/app/pages/SlideThemeDetail.tsx +227 -0
- package/corpus/templates/slides-2/app/pages/SlideThemes.tsx +155 -0
- package/corpus/templates/slides-2/app/pages/Slides2EditorPage.tsx +1618 -0
- package/corpus/templates/slides-2/app/pages/Slides2PresenterConsolePage.tsx +937 -0
- package/corpus/templates/slides-2/app/pages/Slides2PresenterPage.tsx +979 -0
- package/corpus/templates/slides-2/app/pages/Templates.tsx +32 -0
- package/corpus/templates/slides-2/app/root.tsx +391 -0
- package/corpus/templates/slides-2/app/routes/$.tsx +10 -0
- package/corpus/templates/slides-2/app/routes/_index.tsx +1 -0
- package/corpus/templates/slides-2/app/routes/access-request.approve.tsx +276 -0
- package/corpus/templates/slides-2/app/routes/agent.tsx +19 -0
- package/corpus/templates/slides-2/app/routes/chat.$threadId.tsx +1 -0
- package/corpus/templates/slides-2/app/routes/chat.tsx +190 -0
- package/corpus/templates/slides-2/app/routes/deck.$id.tsx +10 -0
- package/corpus/templates/slides-2/app/routes/deck.$id_.present.tsx +10 -0
- package/corpus/templates/slides-2/app/routes/design-systems.tsx +10 -0
- package/corpus/templates/slides-2/app/routes/extensions.$id.$slug.tsx +2 -0
- package/corpus/templates/slides-2/app/routes/extensions.$id.tsx +5 -0
- package/corpus/templates/slides-2/app/routes/extensions._index.tsx +5 -0
- package/corpus/templates/slides-2/app/routes/extensions.tsx +5 -0
- package/corpus/templates/slides-2/app/routes/home-layout.tsx +31 -0
- package/corpus/templates/slides-2/app/routes/home.tsx +22 -0
- package/corpus/templates/slides-2/app/routes/p.$id.tsx +195 -0
- package/corpus/templates/slides-2/app/routes/settings.$.tsx +1 -0
- package/corpus/templates/slides-2/app/routes/settings.tsx +131 -0
- package/corpus/templates/slides-2/app/routes/share.$token.tsx +137 -0
- package/corpus/templates/slides-2/app/routes/slide.tsx +209 -0
- package/corpus/templates/slides-2/app/routes/team.tsx +11 -0
- package/corpus/templates/slides-2/app/routes/templates.tsx +1 -0
- package/corpus/templates/slides-2/app/routes/themes.$id.tsx +1 -0
- package/corpus/templates/slides-2/app/routes/themes.tsx +1 -0
- package/corpus/templates/slides-2/app/routes.ts +24 -0
- package/corpus/templates/slides-2/app/vite-env.d.ts +24 -0
- package/corpus/templates/slides-2/changelog/2026-10-17-find-and-switch-decks-from-the-presenter-console.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-17-meet-slides-2-create-and-refine-editable-slide-decks-with-an.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-17-pptx-image-export.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-17-visual-editor.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-18-apply-an-accessible-design-system-to-an-existing-deck-before.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-18-choose-a-template-or-start-a-new-presentation-from-the-slide.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-18-generate-decks-from-a-prompt-then-edit-slide-elements-direct.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-18-generate-presentation-decks-from-a-prompt-and-edit-every-sli.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-18-new-presentation-drafts-save-before-generation-starts-so-you.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-18-the-assistant-can-undo-redo-and-save-pending-edits-in-the-vi.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-agents-can-insert-duplicate-and-delete-canvas-objects-in-sou.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-browse-slide-themes.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-clicking-a-slide-preview-in-overview-selects-that-slide.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-create-decks-from-a-prompt-and-edit-slides-directly-on-the-c.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-creating-and-editing-decks-now-starts-with-the-tools-most-re.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-deleting-decks-revokes-public-links.md +7 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-escape-cancels-an-in-progress-slide-drag-without-losing-earl.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-import-failures-now-show-clear-localized-descriptions-instea.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-presenter-controls-stay-responsive-when-moving-over-the-slid.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-presenter-notes-stay-private-from-viewers-and-commenters.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-preview-generated-slides-in-chat.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-remote-image-previews-accept-supported-raster-formats.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-search-the-svgl-catalog-and-add-svg-logos-to-a-deck-or-the-g.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-slide-generation-explains-when-react-effect-hooks-cannot-run.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-the-editor-highlights-hovered-objects-and-keeps-image-replac.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-19-the-slide-editor-uses-the-shared-agent-native-controls.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-20-deck-editing-controls-match-the-workspace.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-20-google-slides-imports-now-report-missing-image-data-instead-.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-20-imports-and-previews-handle-large-content-safely.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-20-public-deck-pages-can-export-source-backed-slides-to-pdf.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-20-saved-slide-images-stay-available.md +6 -0
- package/corpus/templates/slides-2/changelog/2026-10-20-scope-global-media-picks-to-assets-the-current-deck-can-reso.md +6 -0
- package/corpus/templates/slides-2/components.json +20 -0
- package/corpus/templates/slides-2/drizzle.config.ts +3 -0
- package/corpus/templates/slides-2/learnings.defaults.md +5 -0
- package/corpus/templates/slides-2/netlify.toml +24 -0
- package/corpus/templates/slides-2/package.json +147 -0
- package/corpus/templates/slides-2/public/agent-native-icon-dark.svg +10 -0
- package/corpus/templates/slides-2/public/agent-native-icon-light.svg +10 -0
- package/corpus/templates/slides-2/public/agent-native-logo-dark.svg +21 -0
- package/corpus/templates/slides-2/public/agent-native-logo-light.svg +21 -0
- package/corpus/templates/slides-2/public/assets/builder-logo-white.svg +15 -0
- package/corpus/templates/slides-2/public/assets/generated/preview.html +61 -0
- package/corpus/templates/slides-2/public/assets/intuit-logo-white.svg +6 -0
- package/corpus/templates/slides-2/public/assets/walmart-logo-white.svg +6 -0
- package/corpus/templates/slides-2/public/chatgpt-plugin-icon.svg +7 -0
- package/corpus/templates/slides-2/public/favicon.svg +1 -0
- package/corpus/templates/slides-2/public/icon-180.svg +1 -0
- package/corpus/templates/slides-2/public/icon-192.svg +1 -0
- package/corpus/templates/slides-2/public/icon-512.svg +1 -0
- package/corpus/templates/slides-2/public/manifest.json +20 -0
- package/corpus/templates/slides-2/public/placeholder.svg +1 -0
- package/corpus/templates/slides-2/public/robots.txt +14 -0
- package/corpus/templates/slides-2/public/visual-edit-structure-proof.html +99 -0
- package/corpus/templates/slides-2/react-router.config.ts +7 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/README.md +499 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/authoring-fuzz.ts +9517 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/baseline.json +16427 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/dev-server-url.ts +10 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/lib/in-page.ts +1975 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/lib/metrics.ts +1401 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/retry-infra.ts +7 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/run-options.ts +21 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/run-outcomes.ts +127 -0
- package/corpus/templates/slides-2/scripts/edit-fidelity/run.ts +8451 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/README.md +116 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/compare-layout-lib.ts +241 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/compare-layout.ts +30 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/diff.ts +222 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/export.ts +765 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/fixtures/agent-dark-deck.json +48 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/generate-calibration.ts +765 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/google-export.ts +137 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/google-layout.ts +82 -0
- package/corpus/templates/slides-2/scripts/export-fidelity/resolve-pkg.ts +29 -0
- package/corpus/templates/slides-2/scripts/migrate-production.ts +22 -0
- package/corpus/templates/slides-2/server/db/index.ts +73 -0
- package/corpus/templates/slides-2/server/db/schema.ts +189 -0
- package/corpus/templates/slides-2/server/handlers/assets-url.ts +13 -0
- package/corpus/templates/slides-2/server/handlers/assets.ts +3217 -0
- package/corpus/templates/slides-2/server/handlers/decks.ts +185 -0
- package/corpus/templates/slides-2/server/handlers/demo.ts +9 -0
- package/corpus/templates/slides-2/server/handlers/design-systems.ts +219 -0
- package/corpus/templates/slides-2/server/handlers/google-docs-auth.ts +165 -0
- package/corpus/templates/slides-2/server/handlers/image-gen.ts +153 -0
- package/corpus/templates/slides-2/server/handlers/image-providers/gemini.ts +209 -0
- package/corpus/templates/slides-2/server/handlers/image-providers/index.ts +61 -0
- package/corpus/templates/slides-2/server/handlers/image-providers/openai.ts +288 -0
- package/corpus/templates/slides-2/server/handlers/image-providers/types.ts +35 -0
- package/corpus/templates/slides-2/server/handlers/import/docx-parser.ts +31 -0
- package/corpus/templates/slides-2/server/handlers/import/html-converter.ts +1534 -0
- package/corpus/templates/slides-2/server/handlers/import/pdf-fidelity-parser.ts +1039 -0
- package/corpus/templates/slides-2/server/handlers/import/pdf-sidecar-reader.ts +81 -0
- package/corpus/templates/slides-2/server/handlers/import/pdf-style-digest.ts +187 -0
- package/corpus/templates/slides-2/server/handlers/import/pptx-assets.ts +155 -0
- package/corpus/templates/slides-2/server/handlers/import/pptx-parser.ts +57 -0
- package/corpus/templates/slides-2/server/handlers/request-auth-context.ts +108 -0
- package/corpus/templates/slides-2/server/handlers/share.ts +52 -0
- package/corpus/templates/slides-2/server/handlers/uploads-chunked.ts +1066 -0
- package/corpus/templates/slides-2/server/handlers/uploads.ts +457 -0
- package/corpus/templates/slides-2/server/lib/access-request-email.ts +66 -0
- package/corpus/templates/slides-2/server/lib/assets-image-delegation.ts +331 -0
- package/corpus/templates/slides-2/server/lib/bounded-multipart.ts +49 -0
- package/corpus/templates/slides-2/server/lib/builder-design-system-proxy.ts +122 -0
- package/corpus/templates/slides-2/server/lib/chat-attachments.ts +425 -0
- package/corpus/templates/slides-2/server/lib/chatgpt-directory-tools.ts +246 -0
- package/corpus/templates/slides-2/server/lib/chunked-upload-session.ts +195 -0
- package/corpus/templates/slides-2/server/lib/comment-notifications.ts +184 -0
- package/corpus/templates/slides-2/server/lib/deck-access-requests.ts +102 -0
- package/corpus/templates/slides-2/server/lib/deck-asset-scope.ts +150 -0
- package/corpus/templates/slides-2/server/lib/deck-export-tracking.ts +119 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-case-study.ts +154 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-company.ts +160 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-pitch.ts +151 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-quarterly.ts +264 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-shared.ts +35 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-update.ts +188 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/a-workshop.ts +196 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-keynote.ts +131 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-lesson.ts +209 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-manifesto.ts +149 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-portfolio.ts +144 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-research.ts +221 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-roadmap.ts +264 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/b-shared.ts +44 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/group-a.ts +16 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/group-b.ts +16 -0
- package/corpus/templates/slides-2/server/lib/deck-templates/legacy.ts +567 -0
- package/corpus/templates/slides-2/server/lib/deck-templates.ts +60 -0
- package/corpus/templates/slides-2/server/lib/deck-versions.ts +233 -0
- package/corpus/templates/slides-2/server/lib/design-system-workflows.ts +22 -0
- package/corpus/templates/slides-2/server/lib/emails.ts +84 -0
- package/corpus/templates/slides-2/server/lib/env-config.ts +15 -0
- package/corpus/templates/slides-2/server/lib/fetch-remote-image.ts +245 -0
- package/corpus/templates/slides-2/server/lib/generation-completion.ts +278 -0
- package/corpus/templates/slides-2/server/lib/google-docs-access.ts +51 -0
- package/corpus/templates/slides-2/server/lib/google-docs-error.ts +54 -0
- package/corpus/templates/slides-2/server/lib/google-docs-oauth.ts +422 -0
- package/corpus/templates/slides-2/server/lib/google-fonts.ts +509 -0
- package/corpus/templates/slides-2/server/lib/google-oauth-preflight.ts +119 -0
- package/corpus/templates/slides-2/server/lib/google-slides-export-availability.ts +55 -0
- package/corpus/templates/slides-2/server/lib/image-proxy-response.ts +16 -0
- package/corpus/templates/slides-2/server/lib/image-proxy-url.ts +155 -0
- package/corpus/templates/slides-2/server/lib/import-asset-storage.ts +214 -0
- package/corpus/templates/slides-2/server/lib/imported-asset-batch.ts +218 -0
- package/corpus/templates/slides-2/server/lib/legacy-slide-source.ts +692 -0
- package/corpus/templates/slides-2/server/lib/media-search-providers.ts +216 -0
- package/corpus/templates/slides-2/server/lib/native-creative-context.ts +295 -0
- package/corpus/templates/slides-2/server/lib/pdf-parse-setup.ts +115 -0
- package/corpus/templates/slides-2/server/lib/provider-api.ts +57 -0
- package/corpus/templates/slides-2/server/lib/request-wait-until.ts +30 -0
- package/corpus/templates/slides-2/server/lib/shared-deck.ts +29 -0
- package/corpus/templates/slides-2/server/lib/slide-asset-references.ts +309 -0
- package/corpus/templates/slides-2/server/lib/slide-content-patch.ts +1004 -0
- package/corpus/templates/slides-2/server/lib/slide-hygiene.ts +731 -0
- package/corpus/templates/slides-2/server/lib/slide-image-insertion.ts +136 -0
- package/corpus/templates/slides-2/server/lib/slide-reveal-issues.ts +41 -0
- package/corpus/templates/slides-2/server/lib/slide-source-editing/babel-walk.ts +117 -0
- package/corpus/templates/slides-2/server/lib/slide-source-editing/batch-edit.ts +152 -0
- package/corpus/templates/slides-2/server/lib/slide-source-editing/edit-ops.ts +1478 -0
- package/corpus/templates/slides-2/server/lib/slide-source-editing/image-target.ts +128 -0
- package/corpus/templates/slides-2/server/lib/slide-source-editing/text-diff.ts +23 -0
- package/corpus/templates/slides-2/server/lib/slide-source-limits.ts +9 -0
- package/corpus/templates/slides-2/server/lib/slide-source.ts +1786 -0
- package/corpus/templates/slides-2/server/lib/slide-theme-demo-sources.ts +2106 -0
- package/corpus/templates/slides-2/server/lib/slide-themes.ts +2174 -0
- package/corpus/templates/slides-2/server/lib/slide-worker-runtime.ts +1995 -0
- package/corpus/templates/slides-2/server/lib/slides-tracking.ts +73 -0
- package/corpus/templates/slides-2/server/lib/source-import.ts +213 -0
- package/corpus/templates/slides-2/server/lib/svgl.ts +364 -0
- package/corpus/templates/slides-2/server/lib/tenant-files.ts +179 -0
- package/corpus/templates/slides-2/server/lib/upload-storage-status.ts +9 -0
- package/corpus/templates/slides-2/server/lib/uploaded-asset-cleanup-outbox.ts +521 -0
- package/corpus/templates/slides-2/server/lib/uploaded-asset-object-lifecycle.ts +404 -0
- package/corpus/templates/slides-2/server/lib/uploaded-fonts.ts +696 -0
- package/corpus/templates/slides-2/server/lib/uploaded-reference-storage.ts +77 -0
- package/corpus/templates/slides-2/server/lib/validate-slide-animations.ts +341 -0
- package/corpus/templates/slides-2/server/middleware/auth.ts +6 -0
- package/corpus/templates/slides-2/server/plugins/_dev-upload-stub.ts +6 -0
- package/corpus/templates/slides-2/server/plugins/agent-chat.ts +402 -0
- package/corpus/templates/slides-2/server/plugins/auth.ts +31 -0
- package/corpus/templates/slides-2/server/plugins/collab.ts +30 -0
- package/corpus/templates/slides-2/server/plugins/config.ts +6 -0
- package/corpus/templates/slides-2/server/plugins/core-routes.ts +30 -0
- package/corpus/templates/slides-2/server/plugins/creative-context.ts +187 -0
- package/corpus/templates/slides-2/server/plugins/db.ts +462 -0
- package/corpus/templates/slides-2/server/plugins/feature-flags.ts +5 -0
- package/corpus/templates/slides-2/server/plugins/labs.ts +8 -0
- package/corpus/templates/slides-2/server/plugins/orphaned-asset-cleanup.ts +17 -0
- package/corpus/templates/slides-2/server/plugins/otel.ts +6 -0
- package/corpus/templates/slides-2/server/plugins/transactional-emails.ts +5 -0
- package/corpus/templates/slides-2/server/register-secrets.ts +209 -0
- package/corpus/templates/slides-2/server/routes/[...page].get.ts +5 -0
- package/corpus/templates/slides-2/server/routes/[...page].head.ts +1 -0
- package/corpus/templates/slides-2/server/routes/[base]/_agent-native/google-docs/auth-url.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/[base]/_agent-native/google-docs/callback.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/_agent-native/google-docs/auth-url.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/_agent-native/google-docs/callback.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/assets/upload-video.post.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/assets/upload.post.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/assets/video-uploads.delete.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/deck-agent-context.json.get.ts +105 -0
- package/corpus/templates/slides-2/server/routes/api/decks/events.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/demo.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/exports/[filename].get.ts +221 -0
- package/corpus/templates/slides-2/server/routes/api/exports/google-slides.post.ts +240 -0
- package/corpus/templates/slides-2/server/routes/api/exports/html.post.ts +67 -0
- package/corpus/templates/slides-2/server/routes/api/exports/pptx.post.ts +100 -0
- package/corpus/templates/slides-2/server/routes/api/gen-preview/[...].get.ts +24 -0
- package/corpus/templates/slides-2/server/routes/api/generated/[...].get.ts +24 -0
- package/corpus/templates/slides-2/server/routes/api/image-proxy.get.ts +518 -0
- package/corpus/templates/slides-2/server/routes/api/import-assets/[token].get.ts +70 -0
- package/corpus/templates/slides-2/server/routes/api/preview-images.get.ts +20 -0
- package/corpus/templates/slides-2/server/routes/api/share/[token].get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/uploads-chunked/[sessionId]/chunk.post.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/uploads-chunked/[sessionId]/status.get.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/uploads-chunked/[sessionId].delete.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/uploads-chunked/start.post.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/uploads.delete.ts +1 -0
- package/corpus/templates/slides-2/server/routes/api/uploads.post.ts +1 -0
- package/corpus/templates/slides-2/server/workspace-defaults.ts +196 -0
- package/corpus/templates/slides-2/shared/action-ui.ts +147 -0
- package/corpus/templates/slides-2/shared/agent-readable.ts +2 -0
- package/corpus/templates/slides-2/shared/api.ts +406 -0
- package/corpus/templates/slides-2/shared/app-state-tabs.ts +30 -0
- package/corpus/templates/slides-2/shared/app-storage.ts +9 -0
- package/corpus/templates/slides-2/shared/aspect-ratios.ts +49 -0
- package/corpus/templates/slides-2/shared/blank-slide.ts +179 -0
- package/corpus/templates/slides-2/shared/client-compatibility.ts +2 -0
- package/corpus/templates/slides-2/shared/contrast-audit.ts +255 -0
- package/corpus/templates/slides-2/shared/deck-access.ts +26 -0
- package/corpus/templates/slides-2/shared/deck-app-scope.ts +14 -0
- package/corpus/templates/slides-2/shared/deck-content.ts +37 -0
- package/corpus/templates/slides-2/shared/deck-history-control.ts +79 -0
- package/corpus/templates/slides-2/shared/deck-scope.ts +5 -0
- package/corpus/templates/slides-2/shared/deck-title.ts +199 -0
- package/corpus/templates/slides-2/shared/deck-write.ts +61 -0
- package/corpus/templates/slides-2/shared/design-flags.ts +7 -0
- package/corpus/templates/slides-2/shared/design-system-validation.ts +88 -0
- package/corpus/templates/slides-2/shared/editor-control.ts +120 -0
- package/corpus/templates/slides-2/shared/generation-timing.ts +19 -0
- package/corpus/templates/slides-2/shared/google-docs.ts +69 -0
- package/corpus/templates/slides-2/shared/labs.ts +10 -0
- package/corpus/templates/slides-2/shared/overview-navigation.ts +34 -0
- package/corpus/templates/slides-2/shared/ownership.ts +6 -0
- package/corpus/templates/slides-2/shared/pdf-sidecar.ts +130 -0
- package/corpus/templates/slides-2/shared/presenter-control.ts +111 -0
- package/corpus/templates/slides-2/shared/representative-slide.ts +89 -0
- package/corpus/templates/slides-2/shared/slide-background.ts +30 -0
- package/corpus/templates/slides-2/shared/slide-comment-anchor.ts +117 -0
- package/corpus/templates/slides-2/shared/slide-comment-reactions.ts +47 -0
- package/corpus/templates/slides-2/shared/slide-design-tokens.ts +92 -0
- package/corpus/templates/slides-2/shared/slide-fit.ts +78 -0
- package/corpus/templates/slides-2/shared/slide-ids.ts +133 -0
- package/corpus/templates/slides-2/shared/slide-number.ts +124 -0
- package/corpus/templates/slides-2/shared/slide-object-structure.ts +790 -0
- package/corpus/templates/slides-2/shared/slide-text-range-selection.ts +50 -0
- package/corpus/templates/slides-2/shared/slide-transitions.ts +70 -0
- package/corpus/templates/slides-2/shared/slides-2-transition.ts +194 -0
- package/corpus/templates/slides-2/shared/slides-user-prefs.ts +22 -0
- package/corpus/templates/slides-2/shared/source-import-errors.ts +12 -0
- package/corpus/templates/slides-2/shared/source-runtime-export.ts +76 -0
- package/corpus/templates/slides-2/shared/upload-types.ts +41 -0
- package/corpus/templates/slides-2/ssr-entry.ts +11 -0
- package/corpus/templates/slides-2/tsconfig.json +27 -0
- package/corpus/templates/slides-2/vite.config.ts +77 -0
- package/corpus/templates/slides-2/vitest.config.ts +28 -0
- package/corpus/templates/tasks/.agents/skills/actions/references/action-fields.md +1 -1
- package/package.json +1 -1
- package/corpus/templates/design/.agents/skills/shader-fills/SKILL.md +0 -182
- package/corpus/templates/design/actions/apply-shader-fill.ts +0 -450
- package/corpus/templates/design/actions/apply-shader.ts +0 -257
- package/corpus/templates/design/actions/preview-shader-fill.ts +0 -157
- package/corpus/templates/design/app/components/design/inspector/GlslShaderPanel.tsx +0 -1144
- package/corpus/templates/design/app/components/design/inspector/SHADER_INTEGRATION.md +0 -450
- package/corpus/templates/design/app/components/design/inspector/ShaderControls.stories.tsx +0 -71
- package/corpus/templates/design/app/components/design/inspector/ShaderControls.tsx +0 -555
- package/corpus/templates/design/app/components/design/inspector/ShaderEffectRow.tsx +0 -105
- package/corpus/templates/design/app/components/design/inspector/ShaderFillsPanel.tsx +0 -433
- package/corpus/templates/design/app/components/design/inspector/color-picker-shader-pane.tsx +0 -648
- package/corpus/templates/design/shared/shader-fill.ts +0 -174
- package/corpus/templates/design/shared/shader-presets.ts +0 -1523
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
function restoreSourceTemplateEscapes(value: string): string {
|
|
2
|
+
return value.replaceAll("\\`", "`").replaceAll("\\${", "${");
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
const AERO_DEMO_SOURCE = restoreSourceTemplateEscapes(String.raw`import {
|
|
6
|
+
type DesignSystem,
|
|
7
|
+
type Page,
|
|
8
|
+
useIsActivePage,
|
|
9
|
+
useSlidePageNumber,
|
|
10
|
+
} from '@open-slide/core';
|
|
11
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
12
|
+
|
|
13
|
+
export const design: DesignSystem = {
|
|
14
|
+
palette: { bg: '#4B1DFF', text: '#FFFFFF', accent: '#D8FF2E' }, // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
15
|
+
fonts: {
|
|
16
|
+
display: '"Barlow Condensed", "Arial Narrow", system-ui, sans-serif',
|
|
17
|
+
body: '"Barlow", system-ui, sans-serif',
|
|
18
|
+
},
|
|
19
|
+
typeScale: { hero: 320, body: 30 },
|
|
20
|
+
radius: 0,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const INK = '#0B0A14'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
24
|
+
const CORAL = '#FF4A3D'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
25
|
+
const DEEP = '#2A0FA3'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
26
|
+
const LAV = '#D3CAFF'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
27
|
+
const WHITE_A = (a: number) => \`rgba(255,255,255,\${a})\`; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
28
|
+
|
|
29
|
+
const KEYFRAMES = \`
|
|
30
|
+
@keyframes ae-run { from { transform: translateX(0) } to { transform: translateX(calc(var(--tile) * -1)) } }
|
|
31
|
+
@keyframes ae-in { from { opacity: 0; transform: translateX(-56px) } to { opacity: 1; transform: none } }
|
|
32
|
+
@keyframes ae-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
33
|
+
@keyframes ae-pace { to { stroke-dashoffset: -1000 } }
|
|
34
|
+
\`;
|
|
35
|
+
|
|
36
|
+
const ANGLE = 12;
|
|
37
|
+
const T = 0.21255656167;
|
|
38
|
+
const SKEW = \`skewX(-\${ANGLE}deg)\`;
|
|
39
|
+
|
|
40
|
+
const cut = (h: number) => {
|
|
41
|
+
const d = (h * T).toFixed(2);
|
|
42
|
+
return \`polygon(\${d}px 0, 100% 0, calc(100% - \${d}px) 100%, 0 100%)\`;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const BAND_RATIO = 12;
|
|
46
|
+
const BAND_PCT = ((T / BAND_RATIO) * 100).toFixed(4);
|
|
47
|
+
const BAND_CLIP = \`polygon(\${BAND_PCT}% 0, 100% 0, \${(100 - Number(BAND_PCT)).toFixed(4)}% 100%, 0 100%)\`;
|
|
48
|
+
|
|
49
|
+
const SNAP = 'cubic-bezier(0.16, 1, 0.3, 1)';
|
|
50
|
+
|
|
51
|
+
type Tone = 'uv' | 'volt' | 'ink';
|
|
52
|
+
|
|
53
|
+
const TONES: Record<Tone, { bg: string; fg: string; dim: string; hi: string; hiFg: string }> = {
|
|
54
|
+
uv: { bg: 'var(--slides2-bg)', fg: 'var(--slides2-text)', dim: LAV, hi: 'var(--slides2-accent)', hiFg: INK },
|
|
55
|
+
volt: {
|
|
56
|
+
bg: 'var(--slides2-accent)',
|
|
57
|
+
fg: INK,
|
|
58
|
+
dim: 'rgba(11,10,20,0.66)', // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
59
|
+
hi: INK,
|
|
60
|
+
hiFg: 'var(--slides2-accent)',
|
|
61
|
+
},
|
|
62
|
+
ink: {
|
|
63
|
+
bg: INK,
|
|
64
|
+
fg: 'var(--slides2-text)',
|
|
65
|
+
dim: 'rgba(255,255,255,0.6)', // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
66
|
+
hi: 'var(--slides2-accent)',
|
|
67
|
+
hiFg: INK,
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const DISPLAY: CSSProperties = {
|
|
72
|
+
fontFamily: 'var(--slides2-font-display)',
|
|
73
|
+
fontStyle: 'italic',
|
|
74
|
+
fontWeight: 900,
|
|
75
|
+
textTransform: 'uppercase',
|
|
76
|
+
lineHeight: 0.84,
|
|
77
|
+
letterSpacing: '-0.012em',
|
|
78
|
+
margin: 0,
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const NUM: CSSProperties = {
|
|
82
|
+
...DISPLAY,
|
|
83
|
+
fontVariantNumeric: 'tabular-nums',
|
|
84
|
+
letterSpacing: '-0.015em',
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const LABEL: CSSProperties = {
|
|
88
|
+
fontFamily: 'var(--slides2-font-body)',
|
|
89
|
+
fontSize: 20,
|
|
90
|
+
fontWeight: 600,
|
|
91
|
+
letterSpacing: '0.2em',
|
|
92
|
+
textTransform: 'uppercase',
|
|
93
|
+
lineHeight: 1.2,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const BODY: CSSProperties = {
|
|
97
|
+
fontFamily: 'var(--slides2-font-body)',
|
|
98
|
+
fontSize: 30,
|
|
99
|
+
fontWeight: 500,
|
|
100
|
+
lineHeight: 1.4,
|
|
101
|
+
margin: 0,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const abs = (left: number, top: number, extra?: CSSProperties): CSSProperties => ({
|
|
105
|
+
position: 'absolute',
|
|
106
|
+
left,
|
|
107
|
+
top,
|
|
108
|
+
...extra,
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
const pad = (n: number) => String(n).padStart(2, '0');
|
|
112
|
+
|
|
113
|
+
const Title = ({
|
|
114
|
+
children,
|
|
115
|
+
size = 132,
|
|
116
|
+
x = 116,
|
|
117
|
+
y = 160,
|
|
118
|
+
style,
|
|
119
|
+
}: {
|
|
120
|
+
children: ReactNode;
|
|
121
|
+
size?: number;
|
|
122
|
+
x?: number;
|
|
123
|
+
y?: number;
|
|
124
|
+
style?: CSSProperties;
|
|
125
|
+
}) => <h2 style={{ ...DISPLAY, ...abs(x, y), fontSize: size, ...style }}>{children}</h2>;
|
|
126
|
+
|
|
127
|
+
const Footer = ({
|
|
128
|
+
tone,
|
|
129
|
+
brand = 'Tempo',
|
|
130
|
+
title = 'Season plan',
|
|
131
|
+
meta = '2027 · Confidential',
|
|
132
|
+
}: {
|
|
133
|
+
tone: Tone;
|
|
134
|
+
brand?: string;
|
|
135
|
+
title?: string;
|
|
136
|
+
meta?: string;
|
|
137
|
+
}) => {
|
|
138
|
+
const { current, total } = useSlidePageNumber();
|
|
139
|
+
const t = TONES[tone];
|
|
140
|
+
return (
|
|
141
|
+
<div
|
|
142
|
+
style={{
|
|
143
|
+
...LABEL,
|
|
144
|
+
position: 'absolute',
|
|
145
|
+
left: 120,
|
|
146
|
+
right: 120,
|
|
147
|
+
top: 1004,
|
|
148
|
+
height: 32,
|
|
149
|
+
display: 'flex',
|
|
150
|
+
alignItems: 'center',
|
|
151
|
+
gap: 18,
|
|
152
|
+
fontSize: 17,
|
|
153
|
+
color: t.dim,
|
|
154
|
+
zIndex: 5,
|
|
155
|
+
}}
|
|
156
|
+
>
|
|
157
|
+
<span
|
|
158
|
+
style={{
|
|
159
|
+
...NUM,
|
|
160
|
+
width: 64,
|
|
161
|
+
height: 32,
|
|
162
|
+
display: 'inline-flex',
|
|
163
|
+
alignItems: 'center',
|
|
164
|
+
justifyContent: 'center',
|
|
165
|
+
background: t.hi,
|
|
166
|
+
color: t.hiFg,
|
|
167
|
+
clipPath: cut(32),
|
|
168
|
+
fontSize: 24,
|
|
169
|
+
fontWeight: 800,
|
|
170
|
+
lineHeight: 1,
|
|
171
|
+
letterSpacing: 0,
|
|
172
|
+
}}
|
|
173
|
+
>
|
|
174
|
+
{pad(current)}
|
|
175
|
+
</span>
|
|
176
|
+
<span style={{ fontVariantNumeric: 'tabular-nums', marginLeft: -8 }}>/ {pad(total)}</span>
|
|
177
|
+
<span style={{ color: t.fg, marginLeft: 14 }}>{brand}</span>
|
|
178
|
+
<span>{title}</span>
|
|
179
|
+
<span style={{ marginLeft: 'auto' }}>{meta}</span>
|
|
180
|
+
</div>
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
const Stage = ({
|
|
185
|
+
tone = 'uv',
|
|
186
|
+
footer = true,
|
|
187
|
+
children,
|
|
188
|
+
}: {
|
|
189
|
+
tone?: Tone;
|
|
190
|
+
footer?: boolean;
|
|
191
|
+
children: ReactNode;
|
|
192
|
+
}) => (
|
|
193
|
+
<div
|
|
194
|
+
style={{
|
|
195
|
+
width: '100%',
|
|
196
|
+
height: '100%',
|
|
197
|
+
position: 'relative',
|
|
198
|
+
overflow: 'hidden',
|
|
199
|
+
isolation: 'isolate',
|
|
200
|
+
background: TONES[tone].bg,
|
|
201
|
+
color: TONES[tone].fg,
|
|
202
|
+
fontFamily: 'var(--slides2-font-body)',
|
|
203
|
+
}}
|
|
204
|
+
>
|
|
205
|
+
{children}
|
|
206
|
+
{footer && <Footer tone={tone} />}
|
|
207
|
+
</div>
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
const Kicker = ({
|
|
211
|
+
tag,
|
|
212
|
+
children,
|
|
213
|
+
tone = 'uv',
|
|
214
|
+
x = 120,
|
|
215
|
+
y = 104,
|
|
216
|
+
}: {
|
|
217
|
+
tag: string;
|
|
218
|
+
children: ReactNode;
|
|
219
|
+
tone?: Tone;
|
|
220
|
+
x?: number;
|
|
221
|
+
y?: number;
|
|
222
|
+
}) => {
|
|
223
|
+
const t = TONES[tone];
|
|
224
|
+
return (
|
|
225
|
+
<div
|
|
226
|
+
style={abs(x, y, { ...LABEL, display: 'flex', alignItems: 'center', gap: 18, color: t.fg })}
|
|
227
|
+
>
|
|
228
|
+
<span
|
|
229
|
+
style={{
|
|
230
|
+
...LABEL,
|
|
231
|
+
height: 32,
|
|
232
|
+
padding: '0 18px',
|
|
233
|
+
display: 'inline-flex',
|
|
234
|
+
alignItems: 'center',
|
|
235
|
+
background: t.hi,
|
|
236
|
+
color: t.hiFg,
|
|
237
|
+
clipPath: cut(32),
|
|
238
|
+
fontWeight: 700,
|
|
239
|
+
fontSize: 17,
|
|
240
|
+
}}
|
|
241
|
+
>
|
|
242
|
+
{tag}
|
|
243
|
+
</span>
|
|
244
|
+
{children}
|
|
245
|
+
</div>
|
|
246
|
+
);
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const Mark = ({ color, h = 34 }: { color: string; h?: number }) => (
|
|
250
|
+
<div style={{ display: 'flex', gap: h * 0.16 }}>
|
|
251
|
+
<div style={{ width: h * 0.3, height: h, background: color, transform: SKEW }} />
|
|
252
|
+
<div style={{ width: h * 0.3, height: h, background: color, transform: SKEW, opacity: 0.7 }} />
|
|
253
|
+
<div style={{ width: h * 0.3, height: h, background: color, transform: SKEW, opacity: 0.4 }} />
|
|
254
|
+
</div>
|
|
255
|
+
);
|
|
256
|
+
|
|
257
|
+
const Wordmark = ({
|
|
258
|
+
x,
|
|
259
|
+
y,
|
|
260
|
+
brand = 'Tempo',
|
|
261
|
+
color = 'var(--slides2-text)',
|
|
262
|
+
mark = 'var(--slides2-accent)',
|
|
263
|
+
}: {
|
|
264
|
+
x: number;
|
|
265
|
+
y: number;
|
|
266
|
+
brand?: string;
|
|
267
|
+
color?: string;
|
|
268
|
+
mark?: string;
|
|
269
|
+
}) => (
|
|
270
|
+
<div style={abs(x, y, { display: 'flex', alignItems: 'center', gap: 18, zIndex: 4 })}>
|
|
271
|
+
<Mark color={mark} />
|
|
272
|
+
<span style={{ ...DISPLAY, fontSize: 46, letterSpacing: '0.02em', color, lineHeight: 1 }}>
|
|
273
|
+
{brand}
|
|
274
|
+
</span>
|
|
275
|
+
</div>
|
|
276
|
+
);
|
|
277
|
+
|
|
278
|
+
const Streak = ({
|
|
279
|
+
y,
|
|
280
|
+
h,
|
|
281
|
+
tile,
|
|
282
|
+
dash,
|
|
283
|
+
color,
|
|
284
|
+
dur,
|
|
285
|
+
shift = 0,
|
|
286
|
+
live,
|
|
287
|
+
}: {
|
|
288
|
+
y: number;
|
|
289
|
+
h: number;
|
|
290
|
+
tile: number;
|
|
291
|
+
dash: number;
|
|
292
|
+
color: string;
|
|
293
|
+
dur: number;
|
|
294
|
+
shift?: number;
|
|
295
|
+
live: boolean;
|
|
296
|
+
}) => (
|
|
297
|
+
<div
|
|
298
|
+
style={{
|
|
299
|
+
position: 'absolute',
|
|
300
|
+
left: -80,
|
|
301
|
+
top: y,
|
|
302
|
+
width: 2080,
|
|
303
|
+
height: h,
|
|
304
|
+
overflow: 'hidden',
|
|
305
|
+
transform: SKEW,
|
|
306
|
+
}}
|
|
307
|
+
>
|
|
308
|
+
<div
|
|
309
|
+
style={
|
|
310
|
+
{
|
|
311
|
+
'--tile': \`\${tile}px\`,
|
|
312
|
+
width: 2080 + tile,
|
|
313
|
+
height: h,
|
|
314
|
+
backgroundImage: \`linear-gradient(90deg, \${color} 0 \${dash}px, transparent \${dash}px)\`,
|
|
315
|
+
backgroundSize: \`\${tile}px \${h}px\`,
|
|
316
|
+
backgroundRepeat: 'repeat-x',
|
|
317
|
+
backgroundPosition: \`\${shift}px 0\`,
|
|
318
|
+
animation: live ? \`ae-run \${dur}s linear infinite\` : undefined,
|
|
319
|
+
} as CSSProperties
|
|
320
|
+
}
|
|
321
|
+
/>
|
|
322
|
+
</div>
|
|
323
|
+
);
|
|
324
|
+
|
|
325
|
+
const VoltBand = ({ x, y, w }: { x: number; y: number; w: number }) => (
|
|
326
|
+
<div
|
|
327
|
+
style={{
|
|
328
|
+
position: 'absolute',
|
|
329
|
+
left: x,
|
|
330
|
+
top: y,
|
|
331
|
+
width: w,
|
|
332
|
+
height: w / BAND_RATIO,
|
|
333
|
+
background: 'var(--slides2-accent)',
|
|
334
|
+
clipPath: BAND_CLIP,
|
|
335
|
+
}}
|
|
336
|
+
/>
|
|
337
|
+
);
|
|
338
|
+
|
|
339
|
+
const CutBar = ({
|
|
340
|
+
x,
|
|
341
|
+
y,
|
|
342
|
+
w,
|
|
343
|
+
h,
|
|
344
|
+
color,
|
|
345
|
+
}: {
|
|
346
|
+
x: number;
|
|
347
|
+
y: number;
|
|
348
|
+
w: number;
|
|
349
|
+
h: number;
|
|
350
|
+
color: string;
|
|
351
|
+
}) => (
|
|
352
|
+
<div
|
|
353
|
+
style={{
|
|
354
|
+
position: 'absolute',
|
|
355
|
+
left: x,
|
|
356
|
+
top: y,
|
|
357
|
+
width: w,
|
|
358
|
+
height: h,
|
|
359
|
+
background: color,
|
|
360
|
+
clipPath: cut(h),
|
|
361
|
+
}}
|
|
362
|
+
/>
|
|
363
|
+
);
|
|
364
|
+
|
|
365
|
+
const SkewRule = ({
|
|
366
|
+
x,
|
|
367
|
+
y,
|
|
368
|
+
h,
|
|
369
|
+
w = 6,
|
|
370
|
+
color = 'var(--slides2-accent)',
|
|
371
|
+
}: {
|
|
372
|
+
x: number;
|
|
373
|
+
y: number;
|
|
374
|
+
h: number;
|
|
375
|
+
w?: number;
|
|
376
|
+
color?: string;
|
|
377
|
+
}) => (
|
|
378
|
+
<div
|
|
379
|
+
style={abs(x, y, {
|
|
380
|
+
width: w,
|
|
381
|
+
height: h,
|
|
382
|
+
background: color,
|
|
383
|
+
transform: SKEW,
|
|
384
|
+
transformOrigin: '0 100%',
|
|
385
|
+
})}
|
|
386
|
+
/>
|
|
387
|
+
);
|
|
388
|
+
|
|
389
|
+
const Chip = ({
|
|
390
|
+
children,
|
|
391
|
+
bg = CORAL,
|
|
392
|
+
fg = INK,
|
|
393
|
+
h = 34,
|
|
394
|
+
}: {
|
|
395
|
+
children: ReactNode;
|
|
396
|
+
bg?: string;
|
|
397
|
+
fg?: string;
|
|
398
|
+
h?: number;
|
|
399
|
+
}) => (
|
|
400
|
+
<span
|
|
401
|
+
style={{
|
|
402
|
+
...LABEL,
|
|
403
|
+
fontSize: 18,
|
|
404
|
+
fontWeight: 700,
|
|
405
|
+
letterSpacing: '0.14em',
|
|
406
|
+
height: h,
|
|
407
|
+
padding: '0 16px',
|
|
408
|
+
display: 'inline-flex',
|
|
409
|
+
alignItems: 'center',
|
|
410
|
+
background: bg,
|
|
411
|
+
color: fg,
|
|
412
|
+
clipPath: cut(h),
|
|
413
|
+
}}
|
|
414
|
+
>
|
|
415
|
+
{children}
|
|
416
|
+
</span>
|
|
417
|
+
);
|
|
418
|
+
|
|
419
|
+
const SpecChip = ({ children }: { children: ReactNode }) => (
|
|
420
|
+
<span style={{ display: 'inline-flex', alignItems: 'center', gap: 22 }}>
|
|
421
|
+
<span style={{ width: 4, height: 22, background: 'var(--slides2-accent)', transform: SKEW }} />
|
|
422
|
+
{children}
|
|
423
|
+
</span>
|
|
424
|
+
);
|
|
425
|
+
|
|
426
|
+
const COVER_STREAKS = [
|
|
427
|
+
{ y: 152, h: 6, tile: 560, dash: 300, color: DEEP, dur: 2.6, shift: 0 },
|
|
428
|
+
{ y: 184, h: 2, tile: 380, dash: 140, color: WHITE_A(0.3), dur: 1.7, shift: -90 },
|
|
429
|
+
{ y: 236, h: 16, tile: 920, dash: 560, color: DEEP, dur: 3.4, shift: -300 },
|
|
430
|
+
{ y: 310, h: 3, tile: 460, dash: 180, color: WHITE_A(0.22), dur: 2.1, shift: -200 },
|
|
431
|
+
{ y: 372, h: 28, tile: 1180, dash: 720, color: DEEP, dur: 4.2, shift: -520 },
|
|
432
|
+
{ y: 462, h: 3, tile: 340, dash: 120, color: WHITE_A(0.3), dur: 1.5, shift: -40 },
|
|
433
|
+
{ y: 512, h: 10, tile: 760, dash: 380, color: DEEP, dur: 3, shift: -610 },
|
|
434
|
+
{ y: 590, h: 2, tile: 300, dash: 90, color: WHITE_A(0.36), dur: 1.3, shift: -150 },
|
|
435
|
+
{ y: 628, h: 20, tile: 980, dash: 520, color: DEEP, dur: 3.8, shift: -120 },
|
|
436
|
+
{ y: 880, h: 8, tile: 640, dash: 260, color: DEEP, dur: 2.4, shift: -330 },
|
|
437
|
+
{ y: 958, h: 14, tile: 840, dash: 420, color: DEEP, dur: 3.2, shift: -700 },
|
|
438
|
+
];
|
|
439
|
+
|
|
440
|
+
const Cover: Page = () => {
|
|
441
|
+
const live = false;
|
|
442
|
+
const enter = (delay: number): CSSProperties =>
|
|
443
|
+
live ? { animation: \`ae-in 0.8s \${SNAP} \${delay}s both\` } : {};
|
|
444
|
+
return (
|
|
445
|
+
<Stage footer={false}>
|
|
446
|
+
{COVER_STREAKS.map((s) => (
|
|
447
|
+
<Streak key={s.y} {...s} live={live} />
|
|
448
|
+
))}
|
|
449
|
+
|
|
450
|
+
<Wordmark x={120} y={92} />
|
|
451
|
+
<div style={abs(1100, 104, { ...LABEL, width: 700, textAlign: 'right', color: LAV })}>
|
|
452
|
+
Partners + leadership
|
|
453
|
+
</div>
|
|
454
|
+
|
|
455
|
+
<h1
|
|
456
|
+
style={{
|
|
457
|
+
...DISPLAY,
|
|
458
|
+
...abs(96, 156),
|
|
459
|
+
fontSize: 'var(--slides2-size-hero)',
|
|
460
|
+
lineHeight: 0.8,
|
|
461
|
+
letterSpacing: '-0.02em',
|
|
462
|
+
whiteSpace: 'nowrap',
|
|
463
|
+
...enter(0.05),
|
|
464
|
+
}}
|
|
465
|
+
>
|
|
466
|
+
Run <span style={{ color: 'var(--slides2-accent)' }}>27</span>
|
|
467
|
+
</h1>
|
|
468
|
+
|
|
469
|
+
<VoltBand x={60} y={700} w={1800} />
|
|
470
|
+
<div
|
|
471
|
+
style={abs(196, 700, {
|
|
472
|
+
height: 150,
|
|
473
|
+
width: 1528,
|
|
474
|
+
display: 'flex',
|
|
475
|
+
alignItems: 'center',
|
|
476
|
+
justifyContent: 'space-between',
|
|
477
|
+
color: INK,
|
|
478
|
+
...enter(0.18),
|
|
479
|
+
})}
|
|
480
|
+
>
|
|
481
|
+
<span style={{ ...DISPLAY, fontSize: 92, lineHeight: 1 }}>Season plan</span>
|
|
482
|
+
<Mark color={INK} h={64} />
|
|
483
|
+
<span style={{ ...NUM, fontSize: 92, lineHeight: 1 }}>Spring 2027</span>
|
|
484
|
+
</div>
|
|
485
|
+
|
|
486
|
+
<div
|
|
487
|
+
style={abs(120, 920, {
|
|
488
|
+
...LABEL,
|
|
489
|
+
fontSize: 22,
|
|
490
|
+
display: 'flex',
|
|
491
|
+
gap: 40,
|
|
492
|
+
color: 'var(--slides2-text)',
|
|
493
|
+
fontVariantNumeric: 'tabular-nums',
|
|
494
|
+
})}
|
|
495
|
+
>
|
|
496
|
+
<span>4 drops</span>
|
|
497
|
+
<SpecChip>6 race cities</SpecChip>
|
|
498
|
+
<SpecChip>38 markets</SpecChip>
|
|
499
|
+
<SpecChip>1 line</SpecChip>
|
|
500
|
+
</div>
|
|
501
|
+
<div style={abs(1380, 896, { width: 420, textAlign: 'right' })}>
|
|
502
|
+
<div style={{ ...LABEL, fontSize: 17, color: LAV }}>Kick-off</div>
|
|
503
|
+
<div style={{ ...NUM, fontSize: 64, fontWeight: 800, marginTop: 6 }}>09·04·27</div>
|
|
504
|
+
</div>
|
|
505
|
+
</Stage>
|
|
506
|
+
);
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
const Content: Page = () => (
|
|
510
|
+
<Stage>
|
|
511
|
+
<Kicker tag="Market">Where we stand</Kicker>
|
|
512
|
+
<div style={abs(1300, 102, { width: 500, display: 'flex', justifyContent: 'flex-end' })}>
|
|
513
|
+
<Chip>Ahead of plan</Chip>
|
|
514
|
+
</div>
|
|
515
|
+
|
|
516
|
+
<div style={abs(120, 176)}>
|
|
517
|
+
<div style={{ ...NUM, fontSize: 300 }}>2.6×</div>
|
|
518
|
+
<p style={{ ...BODY, marginTop: 26, color: LAV, width: 560 }}>
|
|
519
|
+
Category growth in three seasons.
|
|
520
|
+
</p>
|
|
521
|
+
</div>
|
|
522
|
+
<SkewRule x={830} y={176} h={300} />
|
|
523
|
+
<div style={abs(980, 176)}>
|
|
524
|
+
<div style={{ ...NUM, fontSize: 300 }}>€1.8B</div>
|
|
525
|
+
<p style={{ ...BODY, marginTop: 26, color: LAV, width: 640 }}>
|
|
526
|
+
Retail value this season. Still accelerating.
|
|
527
|
+
</p>
|
|
528
|
+
</div>
|
|
529
|
+
|
|
530
|
+
<div style={abs(120, 604, { ...LABEL, color: LAV })}>Our share of category</div>
|
|
531
|
+
|
|
532
|
+
<div style={abs(120, 650, { height: 115, display: 'flex', alignItems: 'center' })}>
|
|
533
|
+
<div>
|
|
534
|
+
<div style={{ ...NUM, fontSize: 52, fontWeight: 800 }}>2026</div>
|
|
535
|
+
<div style={{ ...LABEL, fontSize: 15, color: LAV, marginTop: 4 }}>Today</div>
|
|
536
|
+
</div>
|
|
537
|
+
</div>
|
|
538
|
+
<CutBar x={300} y={650} w={753} h={115} color={DEEP} />
|
|
539
|
+
<div style={abs(1088, 650, { height: 115, display: 'flex', alignItems: 'center' })}>
|
|
540
|
+
<span style={{ ...NUM, fontSize: 104 }}>6%</span>
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
<div style={abs(120, 795, { height: 115, display: 'flex', alignItems: 'center' })}>
|
|
544
|
+
<div>
|
|
545
|
+
<div style={{ ...NUM, fontSize: 52, fontWeight: 800, color: 'var(--slides2-accent)' }}>
|
|
546
|
+
2027
|
|
547
|
+
</div>
|
|
548
|
+
<div style={{ ...LABEL, fontSize: 15, color: LAV, marginTop: 4 }}>Target</div>
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
551
|
+
<VoltBand x={300} y={795} w={1380} />
|
|
552
|
+
<div
|
|
553
|
+
style={abs(340, 795, {
|
|
554
|
+
height: 115,
|
|
555
|
+
width: 1290,
|
|
556
|
+
display: 'flex',
|
|
557
|
+
alignItems: 'center',
|
|
558
|
+
justifyContent: 'space-between',
|
|
559
|
+
color: INK,
|
|
560
|
+
})}
|
|
561
|
+
>
|
|
562
|
+
<span style={{ ...LABEL, fontSize: 18, fontWeight: 700 }}>+5 pts · end of 2027</span>
|
|
563
|
+
<span style={{ ...NUM, fontSize: 104 }}>11%</span>
|
|
564
|
+
</div>
|
|
565
|
+
</Stage>
|
|
566
|
+
);
|
|
567
|
+
|
|
568
|
+
const StartLane = ({ i }: { i: number }) => (
|
|
569
|
+
<div
|
|
570
|
+
style={abs(i * 240, 800, {
|
|
571
|
+
width: 3,
|
|
572
|
+
height: 300,
|
|
573
|
+
background: WHITE_A(0.45),
|
|
574
|
+
transform: SKEW,
|
|
575
|
+
transformOrigin: '0 0',
|
|
576
|
+
})}
|
|
577
|
+
/>
|
|
578
|
+
);
|
|
579
|
+
|
|
580
|
+
const StartNum = ({ n }: { n: number }) => (
|
|
581
|
+
<div
|
|
582
|
+
style={abs((n - 1) * 240 + 60, 880, {
|
|
583
|
+
...NUM,
|
|
584
|
+
width: 120,
|
|
585
|
+
textAlign: 'center',
|
|
586
|
+
fontSize: 120,
|
|
587
|
+
color: n === 4 ? 'var(--slides2-accent)' : WHITE_A(0.9),
|
|
588
|
+
})}
|
|
589
|
+
>
|
|
590
|
+
{n}
|
|
591
|
+
</div>
|
|
592
|
+
);
|
|
593
|
+
|
|
594
|
+
const LANES = [1, 2, 3, 4, 5, 6, 7, 8];
|
|
595
|
+
|
|
596
|
+
const Closer: Page = () => {
|
|
597
|
+
const live = false;
|
|
598
|
+
const enter = (delay: number): CSSProperties =>
|
|
599
|
+
live ? { animation: \`ae-in 0.8s \${SNAP} \${delay}s both\` } : {};
|
|
600
|
+
return (
|
|
601
|
+
<Stage footer={false}>
|
|
602
|
+
<Wordmark x={120} y={92} />
|
|
603
|
+
<Title size={196} x={112} y={186} style={enter(0.05)}>
|
|
604
|
+
See you at
|
|
605
|
+
<br />
|
|
606
|
+
the start line.
|
|
607
|
+
</Title>
|
|
608
|
+
<div style={abs(120, 560, { ...enter(0.18) })}>
|
|
609
|
+
<div style={{ ...DISPLAY, fontSize: 48, lineHeight: 1 }}>Sam Rivera</div>
|
|
610
|
+
<div style={{ ...BODY, color: LAV, marginTop: 12 }}>
|
|
611
|
+
Head of Marketing · sam@example.com
|
|
612
|
+
</div>
|
|
613
|
+
</div>
|
|
614
|
+
<div style={abs(1380, 560, { width: 420, textAlign: 'right' })}>
|
|
615
|
+
<div style={{ ...LABEL, fontSize: 17, color: LAV }}>Kick-off</div>
|
|
616
|
+
<div
|
|
617
|
+
style={{
|
|
618
|
+
...NUM,
|
|
619
|
+
fontSize: 72,
|
|
620
|
+
fontWeight: 800,
|
|
621
|
+
marginTop: 6,
|
|
622
|
+
color: 'var(--slides2-accent)',
|
|
623
|
+
}}
|
|
624
|
+
>
|
|
625
|
+
09·04·27
|
|
626
|
+
</div>
|
|
627
|
+
</div>
|
|
628
|
+
|
|
629
|
+
<div style={abs(0, 800, { width: 1920, height: 280, background: DEEP })} />
|
|
630
|
+
{LANES.map((n) => (
|
|
631
|
+
<StartLane key={n} i={n} />
|
|
632
|
+
))}
|
|
633
|
+
{LANES.map((n) => (
|
|
634
|
+
<StartNum key={n} n={n} />
|
|
635
|
+
))}
|
|
636
|
+
<div style={abs(-40, 770, { width: 2000, height: 34, background: 'var(--slides2-accent)' })} />
|
|
637
|
+
</Stage>
|
|
638
|
+
);
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
export default [Cover, Content, Closer] satisfies Page[];
|
|
642
|
+
`);
|
|
643
|
+
|
|
644
|
+
const FIELDWORK_DEMO_SOURCE = restoreSourceTemplateEscapes(String.raw`import {
|
|
645
|
+
type Page,
|
|
646
|
+
type SlideTransition,
|
|
647
|
+
useIsActivePage,
|
|
648
|
+
useSlidePageNumber,
|
|
649
|
+
} from '@open-slide/core';
|
|
650
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
651
|
+
|
|
652
|
+
const KEYFRAMES = \`
|
|
653
|
+
@keyframes fw-draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
|
|
654
|
+
@keyframes fw-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
655
|
+
@keyframes fw-rise { from { transform: scaleY(0) } to { transform: scaleY(1) } }
|
|
656
|
+
@keyframes fw-grow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
|
|
657
|
+
\`;
|
|
658
|
+
|
|
659
|
+
const SANS = '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif';
|
|
660
|
+
const SERIF = '"Newsreader", "Iowan Old Style", Georgia, serif';
|
|
661
|
+
|
|
662
|
+
const BG = '#FFFEFC'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
663
|
+
const INK = '#191919'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
664
|
+
const CORAL = '#E8553B'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
665
|
+
const BODY = '#5F5E5B'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
666
|
+
const SOFT = '#9B9A97'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
667
|
+
const RULE = 'rgba(25,25,25,0.12)'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
668
|
+
|
|
669
|
+
const YELLOW = '#F8DA7E'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
670
|
+
const BLUE = '#8DBDEB'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
671
|
+
const PINK = '#F6C3CF'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
672
|
+
const GREEN = '#A6D4B2'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
673
|
+
|
|
674
|
+
const TINT_YELLOW = '#FBF3DB'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
675
|
+
const TINT_BLUE = '#E7F3F8'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
676
|
+
const TINT_GREEN = '#EDF3EC'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
677
|
+
|
|
678
|
+
const X0 = 120;
|
|
679
|
+
|
|
680
|
+
const EASE_OUT = 'cubic-bezier(0, 0, 0.2, 1)';
|
|
681
|
+
const EASE_IN = 'cubic-bezier(0.4, 0, 1, 1)';
|
|
682
|
+
|
|
683
|
+
export const transition: SlideTransition = {
|
|
684
|
+
duration: 240,
|
|
685
|
+
exit: { duration: 240, easing: EASE_IN, keyframes: [{ opacity: 1 }, { opacity: 1 }] },
|
|
686
|
+
enter: {
|
|
687
|
+
duration: 240,
|
|
688
|
+
easing: EASE_OUT,
|
|
689
|
+
keyframes: [
|
|
690
|
+
{ opacity: 0, transform: 'translateY(5px)' },
|
|
691
|
+
{ opacity: 1, transform: 'translateY(0)' },
|
|
692
|
+
],
|
|
693
|
+
},
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
const abs = (left: number, top: number, width?: number, height?: number): CSSProperties => ({
|
|
697
|
+
position: 'absolute',
|
|
698
|
+
left,
|
|
699
|
+
top,
|
|
700
|
+
width,
|
|
701
|
+
height,
|
|
702
|
+
});
|
|
703
|
+
|
|
704
|
+
const root: CSSProperties = {
|
|
705
|
+
position: 'relative',
|
|
706
|
+
width: '100%',
|
|
707
|
+
height: '100%',
|
|
708
|
+
background: BG,
|
|
709
|
+
color: INK,
|
|
710
|
+
fontFamily: SANS,
|
|
711
|
+
fontVariantNumeric: 'tabular-nums',
|
|
712
|
+
WebkitFontSmoothing: 'antialiased',
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
const Title = ({ children }: { children: ReactNode }) => (
|
|
716
|
+
<h1
|
|
717
|
+
style={{
|
|
718
|
+
margin: 0,
|
|
719
|
+
fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif',
|
|
720
|
+
fontSize: 150,
|
|
721
|
+
fontWeight: 780,
|
|
722
|
+
lineHeight: 1,
|
|
723
|
+
letterSpacing: '-0.04em',
|
|
724
|
+
wordSpacing: '0.08em',
|
|
725
|
+
color: /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#191919',
|
|
726
|
+
}}
|
|
727
|
+
>
|
|
728
|
+
{children}
|
|
729
|
+
</h1>
|
|
730
|
+
);
|
|
731
|
+
|
|
732
|
+
const Heading = ({ children, size = 104 }: { children: ReactNode; size?: number }) => (
|
|
733
|
+
<h2
|
|
734
|
+
style={{
|
|
735
|
+
margin: 0,
|
|
736
|
+
fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif',
|
|
737
|
+
fontSize: size,
|
|
738
|
+
fontWeight: 780,
|
|
739
|
+
lineHeight: 1,
|
|
740
|
+
letterSpacing: size >= 100 ? '-0.04em' : '-0.03em',
|
|
741
|
+
wordSpacing: '0.08em',
|
|
742
|
+
color: /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#191919',
|
|
743
|
+
}}
|
|
744
|
+
>
|
|
745
|
+
{children}
|
|
746
|
+
</h2>
|
|
747
|
+
);
|
|
748
|
+
|
|
749
|
+
const Eyebrow = ({ children }: { children: ReactNode }) => (
|
|
750
|
+
<div
|
|
751
|
+
style={{
|
|
752
|
+
fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif',
|
|
753
|
+
fontSize: 26,
|
|
754
|
+
fontWeight: 650,
|
|
755
|
+
letterSpacing: '-0.01em',
|
|
756
|
+
color: /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#E8553B',
|
|
757
|
+
}}
|
|
758
|
+
>
|
|
759
|
+
{children}
|
|
760
|
+
</div>
|
|
761
|
+
);
|
|
762
|
+
|
|
763
|
+
const Mark = ({ size = 24 }: { size?: number }) => (
|
|
764
|
+
<svg
|
|
765
|
+
aria-hidden="true"
|
|
766
|
+
width={size * 0.8}
|
|
767
|
+
height={size}
|
|
768
|
+
viewBox="0 0 20 25"
|
|
769
|
+
style={{ display: 'block' }}
|
|
770
|
+
>
|
|
771
|
+
<path
|
|
772
|
+
d="M10 24C8.5 20 1.5 15 1.5 9.5a8.5 8.5 0 0 1 17 0C18.5 15 11.5 20 10 24Z"
|
|
773
|
+
fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#191919"}
|
|
774
|
+
/>
|
|
775
|
+
<circle cx="10" cy="9.5" r="3.4" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFEFC"} />
|
|
776
|
+
</svg>
|
|
777
|
+
);
|
|
778
|
+
|
|
779
|
+
const Footer = ({
|
|
780
|
+
brand = 'Fieldwork',
|
|
781
|
+
label = 'Operating plan',
|
|
782
|
+
}: {
|
|
783
|
+
brand?: string;
|
|
784
|
+
label?: string;
|
|
785
|
+
}) => {
|
|
786
|
+
const { current, total } = useSlidePageNumber();
|
|
787
|
+
const pad2 = (n: number) => String(n).padStart(2, '0');
|
|
788
|
+
return (
|
|
789
|
+
<div
|
|
790
|
+
style={{
|
|
791
|
+
position: 'absolute',
|
|
792
|
+
left: 120,
|
|
793
|
+
right: 120,
|
|
794
|
+
top: 1000,
|
|
795
|
+
height: 32,
|
|
796
|
+
display: 'flex',
|
|
797
|
+
alignItems: 'center',
|
|
798
|
+
justifyContent: 'space-between',
|
|
799
|
+
fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif',
|
|
800
|
+
fontSize: 21,
|
|
801
|
+
color: /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#9B9A97',
|
|
802
|
+
}}
|
|
803
|
+
>
|
|
804
|
+
<span style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
805
|
+
<Mark size={24} />
|
|
806
|
+
<span style={{ color: /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#191919', fontWeight: 720, letterSpacing: '-0.02em' }}>{brand}</span>
|
|
807
|
+
<span style={{ marginLeft: 12 }}>{label}</span>
|
|
808
|
+
</span>
|
|
809
|
+
<span>
|
|
810
|
+
{pad2(current)} / {pad2(total)}
|
|
811
|
+
</span>
|
|
812
|
+
</div>
|
|
813
|
+
);
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
const Highlight = ({ children, color = /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#FCE38A' }: { children: ReactNode; color?: string }) => (
|
|
817
|
+
<span
|
|
818
|
+
style={{
|
|
819
|
+
background: color,
|
|
820
|
+
borderRadius: '6px 12px 8px 14px',
|
|
821
|
+
padding: '0 6px',
|
|
822
|
+
margin: '0 -2px',
|
|
823
|
+
color: /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#191919',
|
|
824
|
+
WebkitBoxDecorationBreak: 'clone',
|
|
825
|
+
boxDecorationBreak: 'clone',
|
|
826
|
+
}}
|
|
827
|
+
>
|
|
828
|
+
{children}
|
|
829
|
+
</span>
|
|
830
|
+
);
|
|
831
|
+
|
|
832
|
+
const TintCard = ({
|
|
833
|
+
tint = /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#E7F3F8',
|
|
834
|
+
style,
|
|
835
|
+
children,
|
|
836
|
+
}: {
|
|
837
|
+
tint?: string;
|
|
838
|
+
style?: CSSProperties;
|
|
839
|
+
children: ReactNode;
|
|
840
|
+
}) => (
|
|
841
|
+
<div
|
|
842
|
+
style={{
|
|
843
|
+
position: 'relative',
|
|
844
|
+
boxSizing: 'border-box',
|
|
845
|
+
borderRadius: 24,
|
|
846
|
+
background: tint,
|
|
847
|
+
padding: '34px 44px 32px',
|
|
848
|
+
...style,
|
|
849
|
+
}}
|
|
850
|
+
>
|
|
851
|
+
{children}
|
|
852
|
+
</div>
|
|
853
|
+
);
|
|
854
|
+
|
|
855
|
+
const Ink = ({
|
|
856
|
+
width,
|
|
857
|
+
height,
|
|
858
|
+
viewBox,
|
|
859
|
+
style,
|
|
860
|
+
children,
|
|
861
|
+
}: {
|
|
862
|
+
width: number;
|
|
863
|
+
height: number;
|
|
864
|
+
viewBox?: string;
|
|
865
|
+
style?: CSSProperties;
|
|
866
|
+
children: ReactNode;
|
|
867
|
+
}) => {
|
|
868
|
+
return (
|
|
869
|
+
<svg
|
|
870
|
+
aria-hidden="true"
|
|
871
|
+
width={width}
|
|
872
|
+
height={height}
|
|
873
|
+
viewBox={viewBox ?? \`0 0 \${width} \${height}\`}
|
|
874
|
+
fill="none"
|
|
875
|
+
stroke={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#191919"}
|
|
876
|
+
strokeWidth={3.2}
|
|
877
|
+
strokeLinecap="round"
|
|
878
|
+
strokeLinejoin="round"
|
|
879
|
+
style={{ display: 'block', overflow: 'visible', ...style }}
|
|
880
|
+
>
|
|
881
|
+
{children}
|
|
882
|
+
</svg>
|
|
883
|
+
);
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
const Stroke = ({
|
|
887
|
+
d,
|
|
888
|
+
live,
|
|
889
|
+
delay = 0.3,
|
|
890
|
+
dur = 0.7,
|
|
891
|
+
color = /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#191919',
|
|
892
|
+
width = 3.2,
|
|
893
|
+
}: {
|
|
894
|
+
d: string;
|
|
895
|
+
live: boolean;
|
|
896
|
+
delay?: number;
|
|
897
|
+
dur?: number;
|
|
898
|
+
color?: string;
|
|
899
|
+
width?: number;
|
|
900
|
+
}) => (
|
|
901
|
+
<path
|
|
902
|
+
d={d}
|
|
903
|
+
pathLength={1}
|
|
904
|
+
strokeDasharray={1}
|
|
905
|
+
stroke={color}
|
|
906
|
+
strokeWidth={width}
|
|
907
|
+
fill="none"
|
|
908
|
+
style={{
|
|
909
|
+
animation: live ? \`fw-draw \${dur}s cubic-bezier(0, 0, 0.2, 1) \${delay}s both\` : undefined,
|
|
910
|
+
}}
|
|
911
|
+
/>
|
|
912
|
+
);
|
|
913
|
+
|
|
914
|
+
const loopPath = (w: number, h: number) => {
|
|
915
|
+
const p = (x: number, y: number) => \`\${((x * w) / 100).toFixed(1)} \${((y * h) / 100).toFixed(1)}\`;
|
|
916
|
+
return \`M\${p(30, 8)}C\${p(55, 2)} \${p(90, 8)} \${p(96, 40)}C\${p(100, 70)} \${p(72, 94)} \${p(42, 93)}C\${p(14, 92)} \${p(2, 74)} \${p(4, 50)}C\${p(6, 26)} \${p(26, 10)} \${p(56, 5)}\`;
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
const CircleDoodle = ({
|
|
920
|
+
x,
|
|
921
|
+
y,
|
|
922
|
+
w,
|
|
923
|
+
h,
|
|
924
|
+
live,
|
|
925
|
+
color = /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#E8553B',
|
|
926
|
+
delay = 0.4,
|
|
927
|
+
}: {
|
|
928
|
+
x: number;
|
|
929
|
+
y: number;
|
|
930
|
+
w: number;
|
|
931
|
+
h: number;
|
|
932
|
+
live: boolean;
|
|
933
|
+
color?: string;
|
|
934
|
+
delay?: number;
|
|
935
|
+
}) => (
|
|
936
|
+
<Ink width={w} height={h} style={{ position: 'absolute', left: x, top: y }}>
|
|
937
|
+
<Stroke d={loopPath(w, h)} color={color} width={3.6} live={live} delay={delay} dur={0.8} />
|
|
938
|
+
</Ink>
|
|
939
|
+
);
|
|
940
|
+
|
|
941
|
+
const Sparkle = ({
|
|
942
|
+
x,
|
|
943
|
+
y,
|
|
944
|
+
s = 1,
|
|
945
|
+
fill = /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#F8DA7E',
|
|
946
|
+
}: {
|
|
947
|
+
x: number;
|
|
948
|
+
y: number;
|
|
949
|
+
s?: number;
|
|
950
|
+
fill?: string;
|
|
951
|
+
}) => (
|
|
952
|
+
<path
|
|
953
|
+
transform={\`translate(\${x} \${y}) scale(\${s})\`}
|
|
954
|
+
d="M0 -20Q3 -3 20 0Q3 3 0 20Q-3 3 -20 0Q-3 -3 0 -20Z"
|
|
955
|
+
fill={fill}
|
|
956
|
+
strokeWidth={3 / s}
|
|
957
|
+
/>
|
|
958
|
+
);
|
|
959
|
+
|
|
960
|
+
const pinPath = (cx: number, cy: number, r: number) =>
|
|
961
|
+
\`M\${cx} \${cy + 2.4 * r}C\${cx - 0.25 * r} \${cy + 1.7 * r} \${cx - r} \${cy + 1.1 * r} \${cx - r} \${cy}A\${r} \${r} 0 1 1 \${cx + r} \${cy}C\${cx + r} \${cy + 1.1 * r} \${cx + 0.25 * r} \${cy + 1.7 * r} \${cx} \${cy + 2.4 * r}Z\`;
|
|
962
|
+
|
|
963
|
+
const CoverArt = () => (
|
|
964
|
+
<Ink width={880} height={700} style={abs(940, 150)}>
|
|
965
|
+
<circle cx="470" cy="330" r="250" fill={YELLOW} stroke="none" />
|
|
966
|
+
<g transform="translate(150 40) scale(1.1)">
|
|
967
|
+
<rect
|
|
968
|
+
x="170"
|
|
969
|
+
y="110"
|
|
970
|
+
width="250"
|
|
971
|
+
height="310"
|
|
972
|
+
rx="6"
|
|
973
|
+
fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"}
|
|
974
|
+
transform="rotate(-9 295 265)"
|
|
975
|
+
/>
|
|
976
|
+
<rect
|
|
977
|
+
x="170"
|
|
978
|
+
y="110"
|
|
979
|
+
width="250"
|
|
980
|
+
height="310"
|
|
981
|
+
rx="6"
|
|
982
|
+
fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"}
|
|
983
|
+
transform="rotate(6 295 265)"
|
|
984
|
+
/>
|
|
985
|
+
<g transform="rotate(-2 300 280)">
|
|
986
|
+
<rect x="170" y="120" width="260" height="320" rx="6" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
987
|
+
<path
|
|
988
|
+
d="M170 170H430M170 220H430M170 270H430M170 320H430M170 370H430M250 120V440M340 120V440"
|
|
989
|
+
strokeWidth={2.4}
|
|
990
|
+
/>
|
|
991
|
+
<rect x="252" y="172" width="86" height="46" fill={PINK} stroke="none" />
|
|
992
|
+
<path d="M190 196h40M270 246h50M360 296h46M190 346h36M272 396h44" strokeWidth={2.6} />
|
|
993
|
+
</g>
|
|
994
|
+
<g transform="translate(372 410) rotate(-38)">
|
|
995
|
+
<rect x="0" y="-13" width="210" height="26" rx="3" fill={BLUE} />
|
|
996
|
+
<path d="M0 -13L-36 0L0 13Z" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
997
|
+
<path d="M-36 0L-24 -4.3L-24 4.3Z" fill={INK} />
|
|
998
|
+
<rect x="210" y="-13" width="28" height="26" rx="5" fill={PINK} />
|
|
999
|
+
<path d="M206 -13V13" />
|
|
1000
|
+
</g>
|
|
1001
|
+
</g>
|
|
1002
|
+
<path d={pinPath(690, 120, 52)} fill={CORAL} />
|
|
1003
|
+
<circle cx="690" cy="120" r="19" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1004
|
+
<Sparkle x={790} y={250} s={1.1} />
|
|
1005
|
+
<Sparkle x={250} y={110} s={0.7} fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1006
|
+
<Sparkle x={190} y={540} s={0.9} />
|
|
1007
|
+
<path d="M60 640Q300 635 560 639T860 638" />
|
|
1008
|
+
</Ink>
|
|
1009
|
+
);
|
|
1010
|
+
|
|
1011
|
+
const House = ({ x, y, fill = /* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ '#FFFFFF' }: { x: number; y: number; fill?: string }) => (
|
|
1012
|
+
<g transform={\`translate(\${x} \${y})\`}>
|
|
1013
|
+
<path d="M-32 0L-32 -40L0 -66L32 -40L32 0Z" fill={fill} />
|
|
1014
|
+
<path d="M-9 0L-9 -22L9 -22L9 0" />
|
|
1015
|
+
</g>
|
|
1016
|
+
);
|
|
1017
|
+
|
|
1018
|
+
const BranchesArt = () => (
|
|
1019
|
+
<Ink width={300} height={200}>
|
|
1020
|
+
<path d="M150 92L62 140M150 92L150 132M150 92L238 140" strokeDasharray="0.1 11" />
|
|
1021
|
+
<House x={56} y={186} />
|
|
1022
|
+
<House x={150} y={186} fill={YELLOW} />
|
|
1023
|
+
<House x={244} y={186} />
|
|
1024
|
+
<path d={pinPath(150, 36, 22)} fill={CORAL} />
|
|
1025
|
+
<circle cx="150" cy="36" r="8" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1026
|
+
</Ink>
|
|
1027
|
+
);
|
|
1028
|
+
|
|
1029
|
+
const PaymentsArt = () => (
|
|
1030
|
+
<Ink width={300} height={200}>
|
|
1031
|
+
<rect x="70" y="24" width="96" height="168" rx="18" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1032
|
+
<path d="M104 42h28" />
|
|
1033
|
+
<circle cx="118" cy="112" r="24" fill={GREEN} />
|
|
1034
|
+
<path d="M107 112l7 7 14-15" strokeWidth={3.4} />
|
|
1035
|
+
<g transform="rotate(-14 222 84)">
|
|
1036
|
+
<rect x="166" y="52" width="118" height="72" rx="10" fill={YELLOW} />
|
|
1037
|
+
<path d="M166 74h118" strokeWidth={6} />
|
|
1038
|
+
<path d="M184 104h34" />
|
|
1039
|
+
</g>
|
|
1040
|
+
</Ink>
|
|
1041
|
+
);
|
|
1042
|
+
|
|
1043
|
+
const OfflineArt = () => (
|
|
1044
|
+
<Ink width={300} height={200}>
|
|
1045
|
+
<rect x="60" y="24" width="96" height="168" rx="18" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1046
|
+
<path d="M94 42h28" />
|
|
1047
|
+
<path d="M80 82h56M80 104h44M80 126h52" strokeWidth={2.6} />
|
|
1048
|
+
<rect x="80" y="144" width="56" height="26" rx="6" fill={PINK} />
|
|
1049
|
+
<path d="M196 118Q190 92 216 90Q226 66 252 76Q278 72 278 98Q296 102 290 120Z" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1050
|
+
<path d="M196 140L292 66" stroke={CORAL} strokeWidth={4} />
|
|
1051
|
+
</Ink>
|
|
1052
|
+
);
|
|
1053
|
+
|
|
1054
|
+
const ToolboxArt = () => (
|
|
1055
|
+
<Ink width={720} height={500} style={abs(1080, 300)}>
|
|
1056
|
+
<circle cx="370" cy="260" r="215" fill={YELLOW} stroke="none" />
|
|
1057
|
+
<path d="M180 214Q180 170 236 168Q292 170 292 212" />
|
|
1058
|
+
<path d="M202 216Q202 190 236 189Q270 190 270 214" />
|
|
1059
|
+
<path d="M122 250L470 246L462 420Q461 432 449 432L136 434Q124 434 123 422Z" fill={CORAL} />
|
|
1060
|
+
<path d="M110 216L482 212L478 252L114 255Z" fill={CORAL} />
|
|
1061
|
+
<rect x="276" y="244" width="44" height="30" rx="5" fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"} />
|
|
1062
|
+
<g transform="translate(440 178) scale(1.2)">
|
|
1063
|
+
<path d="M110 70Q100 58 110 46Q120 34 110 22M146 72Q136 60 146 48Q156 36 146 24" />
|
|
1064
|
+
<path
|
|
1065
|
+
d="M70 92Q69 87.5 74 87.5L177 87Q182 87 181.5 92L176.5 196Q175.5 214 157 214L95 214.5Q76.5 214.5 75.5 197Z"
|
|
1066
|
+
fill={/* guard:allow-raw-color — authored slide theme demo color, not app chrome. */ "#FFFFFF"}
|
|
1067
|
+
/>
|
|
1068
|
+
<path d="M73.4 142L179 141L178 161.5L74.4 162.5Z" fill={BLUE} stroke="none" />
|
|
1069
|
+
<path d="M70 92Q69 87.5 74 87.5L177 87Q182 87 181.5 92L176.5 196Q175.5 214 157 214L95 214.5Q76.5 214.5 75.5 197Z" />
|
|
1070
|
+
<path d="M181 116Q214 113 213.5 142Q213 171 177.5 171.5M180 130Q199 129.5 199 143Q198.5 157 178.5 158" />
|
|
1071
|
+
</g>
|
|
1072
|
+
<path d="M40 436Q300 431 560 435T710 434" />
|
|
1073
|
+
</Ink>
|
|
1074
|
+
);
|
|
1075
|
+
|
|
1076
|
+
const Cover: Page = () => (
|
|
1077
|
+
<div style={root}>
|
|
1078
|
+
<div style={{ ...abs(X0, 100), display: 'flex', alignItems: 'center', gap: 14 }}>
|
|
1079
|
+
<Mark size={32} />
|
|
1080
|
+
<span style={{ fontSize: 30, fontWeight: 760, letterSpacing: '-0.03em' }}>Fieldwork</span>
|
|
1081
|
+
</div>
|
|
1082
|
+
<div style={abs(X0, 262)}>
|
|
1083
|
+
<Title>
|
|
1084
|
+
The annual
|
|
1085
|
+
<br />
|
|
1086
|
+
operating
|
|
1087
|
+
<br />
|
|
1088
|
+
plan.
|
|
1089
|
+
</Title>
|
|
1090
|
+
</div>
|
|
1091
|
+
<p style={{ ...abs(X0, 772, 760), margin: 0, fontSize: 34, lineHeight: 1.45, color: BODY }}>
|
|
1092
|
+
Where we are, where we are going, and <Highlight>who owns each step</Highlight>.
|
|
1093
|
+
</p>
|
|
1094
|
+
<div style={{ ...abs(X0, 906), fontSize: 24, color: SOFT }}>
|
|
1095
|
+
All-hands pre-read · Planning team
|
|
1096
|
+
</div>
|
|
1097
|
+
<CoverArt />
|
|
1098
|
+
<Footer />
|
|
1099
|
+
</div>
|
|
1100
|
+
);
|
|
1101
|
+
|
|
1102
|
+
const BetCard = ({
|
|
1103
|
+
x,
|
|
1104
|
+
tint,
|
|
1105
|
+
index,
|
|
1106
|
+
art,
|
|
1107
|
+
title,
|
|
1108
|
+
body,
|
|
1109
|
+
metric,
|
|
1110
|
+
from,
|
|
1111
|
+
to,
|
|
1112
|
+
}: {
|
|
1113
|
+
x: number;
|
|
1114
|
+
tint: string;
|
|
1115
|
+
index: string;
|
|
1116
|
+
art: ReactNode;
|
|
1117
|
+
title: string;
|
|
1118
|
+
body: string;
|
|
1119
|
+
metric: string;
|
|
1120
|
+
from: string;
|
|
1121
|
+
to: string;
|
|
1122
|
+
}) => (
|
|
1123
|
+
<TintCard
|
|
1124
|
+
tint={tint}
|
|
1125
|
+
style={{ ...abs(x, 330, 536, 610), display: 'flex', flexDirection: 'column' }}
|
|
1126
|
+
>
|
|
1127
|
+
<div style={{ marginLeft: -8 }}>{art}</div>
|
|
1128
|
+
<div style={{ marginTop: 28, fontSize: 22, fontWeight: 700, color: SOFT }}>{index}</div>
|
|
1129
|
+
<div style={{ marginTop: 8 }}>
|
|
1130
|
+
<Heading size={54}>{title}</Heading>
|
|
1131
|
+
</div>
|
|
1132
|
+
<p style={{ margin: '20px 0 0', fontSize: 28, lineHeight: 1.45, color: BODY }}>{body}</p>
|
|
1133
|
+
<div style={{ marginTop: 'auto', fontSize: 22, color: SOFT }}>{metric}</div>
|
|
1134
|
+
<div
|
|
1135
|
+
style={{
|
|
1136
|
+
marginTop: 10,
|
|
1137
|
+
display: 'flex',
|
|
1138
|
+
alignItems: 'center',
|
|
1139
|
+
gap: 14,
|
|
1140
|
+
fontSize: 40,
|
|
1141
|
+
fontWeight: 760,
|
|
1142
|
+
}}
|
|
1143
|
+
>
|
|
1144
|
+
<span style={{ color: SOFT, fontWeight: 500 }}>{from}</span>
|
|
1145
|
+
<span style={{ color: SOFT, fontWeight: 400 }}>→</span>
|
|
1146
|
+
<span style={{ letterSpacing: '-0.03em' }}>{to}</span>
|
|
1147
|
+
</div>
|
|
1148
|
+
</TintCard>
|
|
1149
|
+
);
|
|
1150
|
+
|
|
1151
|
+
const Content: Page = () => {
|
|
1152
|
+
const live = false;
|
|
1153
|
+
return (
|
|
1154
|
+
<div style={root}>
|
|
1155
|
+
<div style={abs(X0, 116)}>
|
|
1156
|
+
<Eyebrow>Strategy</Eyebrow>
|
|
1157
|
+
</div>
|
|
1158
|
+
<div style={abs(X0, 160)}>
|
|
1159
|
+
<Heading>Three bets this year.</Heading>
|
|
1160
|
+
</div>
|
|
1161
|
+
<div style={{ ...abs(1220, 196, 580), fontSize: 28, lineHeight: 1.45, color: BODY }}>
|
|
1162
|
+
Each answers a lesson from last year, and <Highlight>each moves one number</Highlight>.
|
|
1163
|
+
</div>
|
|
1164
|
+
<BetCard
|
|
1165
|
+
x={120}
|
|
1166
|
+
tint={TINT_BLUE}
|
|
1167
|
+
index="01"
|
|
1168
|
+
art={<BranchesArt />}
|
|
1169
|
+
title="Expansion"
|
|
1170
|
+
body="One workspace across every site, with a shared team pool."
|
|
1171
|
+
metric="Net revenue retention · Product"
|
|
1172
|
+
from="109%"
|
|
1173
|
+
to="116%"
|
|
1174
|
+
/>
|
|
1175
|
+
<BetCard
|
|
1176
|
+
x={692}
|
|
1177
|
+
tint={TINT_GREEN}
|
|
1178
|
+
index="02"
|
|
1179
|
+
art={<PaymentsArt />}
|
|
1180
|
+
title="Payments"
|
|
1181
|
+
body="Collect on the spot, so invoices stop sitting for 30 days."
|
|
1182
|
+
metric="Payments attach rate · Finance"
|
|
1183
|
+
from="22%"
|
|
1184
|
+
to="40%"
|
|
1185
|
+
/>
|
|
1186
|
+
<BetCard
|
|
1187
|
+
x={1264}
|
|
1188
|
+
tint={TINT_YELLOW}
|
|
1189
|
+
index="03"
|
|
1190
|
+
art={<OfflineArt />}
|
|
1191
|
+
title="Offline"
|
|
1192
|
+
body="Forms and photos work with no signal, then sync."
|
|
1193
|
+
metric="Crash-free sessions · Engineering"
|
|
1194
|
+
from="99.2%"
|
|
1195
|
+
to="99.8%"
|
|
1196
|
+
/>
|
|
1197
|
+
<CircleDoodle x={710} y={834} w={300} h={104} live={live} delay={0.5} />
|
|
1198
|
+
<Footer />
|
|
1199
|
+
</div>
|
|
1200
|
+
);
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
const Closer: Page = () => {
|
|
1204
|
+
const live = false;
|
|
1205
|
+
return (
|
|
1206
|
+
<div style={root}>
|
|
1207
|
+
<div style={abs(X0, 140)}>
|
|
1208
|
+
<Heading size={130}>
|
|
1209
|
+
Thanks for
|
|
1210
|
+
<br />
|
|
1211
|
+
reading.
|
|
1212
|
+
</Heading>
|
|
1213
|
+
</div>
|
|
1214
|
+
<Ink width={540} height={40} style={abs(X0, 398)}>
|
|
1215
|
+
<Stroke d="M6 22C120 10 260 30 400 16S510 12 532 16" color={CORAL} live={live} />
|
|
1216
|
+
</Ink>
|
|
1217
|
+
<div style={{ ...abs(X0, 460), fontSize: 34, color: BODY }}>
|
|
1218
|
+
Comments stay open until the plan locks.
|
|
1219
|
+
</div>
|
|
1220
|
+
<div style={{ ...abs(X0, 548, 900), borderTop: \`1.5px solid \${RULE}\` }} />
|
|
1221
|
+
<blockquote
|
|
1222
|
+
style={{
|
|
1223
|
+
...abs(X0, 590, 900),
|
|
1224
|
+
margin: 0,
|
|
1225
|
+
fontFamily: SERIF,
|
|
1226
|
+
fontStyle: 'italic',
|
|
1227
|
+
fontSize: 66,
|
|
1228
|
+
lineHeight: 1.16,
|
|
1229
|
+
letterSpacing: '-0.01em',
|
|
1230
|
+
}}
|
|
1231
|
+
>
|
|
1232
|
+
“Write the plan so the newest person on the team could run it.”
|
|
1233
|
+
</blockquote>
|
|
1234
|
+
<div style={{ ...abs(X0, 790), fontSize: 26, color: BODY }}>
|
|
1235
|
+
<span style={{ color: INK, fontWeight: 650 }}>Planning team</span>, house rule
|
|
1236
|
+
</div>
|
|
1237
|
+
<ToolboxArt />
|
|
1238
|
+
<Footer label="Thank you" />
|
|
1239
|
+
</div>
|
|
1240
|
+
);
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
export default [Cover, Content, Closer];
|
|
1244
|
+
`);
|
|
1245
|
+
|
|
1246
|
+
const POMMI_DEMO_SOURCE = restoreSourceTemplateEscapes(String.raw`import {
|
|
1247
|
+
type DesignSystem,
|
|
1248
|
+
type Page,
|
|
1249
|
+
useIsActivePage,
|
|
1250
|
+
useSlidePageNumber,
|
|
1251
|
+
} from '@open-slide/core';
|
|
1252
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
1253
|
+
|
|
1254
|
+
export const design: DesignSystem = {
|
|
1255
|
+
palette: { bg: '#FFF3DF', text: '#151313', accent: '#FF5A2C' }, // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1256
|
+
fonts: {
|
|
1257
|
+
display: '"Gabarito", system-ui, sans-serif',
|
|
1258
|
+
body: '"Gabarito", system-ui, sans-serif',
|
|
1259
|
+
},
|
|
1260
|
+
typeScale: { hero: 300, body: 30 },
|
|
1261
|
+
radius: 28,
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
const CREAM = 'var(--slides2-bg)';
|
|
1265
|
+
const INK = 'var(--slides2-text)';
|
|
1266
|
+
const TOMATO = 'var(--slides2-accent)';
|
|
1267
|
+
const BUTTER = '#FFD23F'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1268
|
+
const MINT = '#7EDDB0'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1269
|
+
const PERI = '#98A6FF'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1270
|
+
const PINK = '#FFB0D0'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1271
|
+
const PAPER = '#FFFCF6'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1272
|
+
const MUTED = 'rgba(21, 19, 19, 0.6)'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1273
|
+
const FAINT = 'rgba(21, 19, 19, 0.16)'; // guard:allow-raw-color — authored slide theme demo color, not app chrome.
|
|
1274
|
+
|
|
1275
|
+
const BORDER = \`4px solid \${INK}\`;
|
|
1276
|
+
const shadow = (n = 8) => \`\${n}px \${n}px 0 \${INK}\`;
|
|
1277
|
+
|
|
1278
|
+
const DISPLAY: CSSProperties = {
|
|
1279
|
+
fontFamily: 'var(--slides2-font-display)',
|
|
1280
|
+
fontWeight: 900,
|
|
1281
|
+
letterSpacing: '-0.035em',
|
|
1282
|
+
lineHeight: 1,
|
|
1283
|
+
margin: 0,
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
const MONO: CSSProperties = {
|
|
1287
|
+
fontFamily: '"DM Mono", ui-monospace, monospace',
|
|
1288
|
+
fontWeight: 500,
|
|
1289
|
+
fontSize: 17,
|
|
1290
|
+
letterSpacing: '0.06em',
|
|
1291
|
+
textTransform: 'uppercase',
|
|
1292
|
+
lineHeight: 1.2,
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
const BODY: CSSProperties = {
|
|
1296
|
+
fontFamily: 'var(--slides2-font-body)',
|
|
1297
|
+
fontWeight: 500,
|
|
1298
|
+
fontSize: 'var(--slides2-size-body)',
|
|
1299
|
+
lineHeight: 1.32,
|
|
1300
|
+
margin: 0,
|
|
1301
|
+
textWrap: 'pretty',
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
const NUM: CSSProperties = { ...DISPLAY, fontVariantNumeric: 'tabular-nums' };
|
|
1305
|
+
|
|
1306
|
+
const abs = (left: number, top: number, extra?: CSSProperties): CSSProperties => ({
|
|
1307
|
+
position: 'absolute',
|
|
1308
|
+
left,
|
|
1309
|
+
top,
|
|
1310
|
+
...extra,
|
|
1311
|
+
});
|
|
1312
|
+
|
|
1313
|
+
const pad = (n: number) => String(n).padStart(2, '0');
|
|
1314
|
+
|
|
1315
|
+
const BOUNCY = 'cubic-bezier(0.2, 0.8, 0.3, 1)';
|
|
1316
|
+
const SNAPPY = 'cubic-bezier(0.2, 0.8, 0.3, 1)';
|
|
1317
|
+
const DROP = 'cubic-bezier(0.2, 0.8, 0.3, 1)';
|
|
1318
|
+
const DROP_LAND = 1 / (1 + 0.6 + 0.18);
|
|
1319
|
+
const SLAP = 'cubic-bezier(0.2, 0.8, 0.3, 1)';
|
|
1320
|
+
|
|
1321
|
+
const CSS = \`
|
|
1322
|
+
@keyframes pm-rise { from { opacity: 0; transform: translateY(var(--pm-rise, 32px)) } to { opacity: 1; transform: translateY(0) } }
|
|
1323
|
+
@keyframes pm-in-l { from { opacity: 0; transform: translateX(-90px) } to { opacity: 1; transform: translateX(0) } }
|
|
1324
|
+
@keyframes pm-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
1325
|
+
@keyframes pm-drop { from { transform: translateY(var(--pm-from, -320px)) } to { transform: translateY(0) } }
|
|
1326
|
+
@keyframes pm-pop { from { opacity: 0; transform: scale(0) } to { opacity: 1; transform: scale(1) } }
|
|
1327
|
+
@keyframes pm-pop-b { from { opacity: 0; transform: translateY(20px) scale(0.55) } to { opacity: 1; transform: translateY(0) scale(1) } }
|
|
1328
|
+
@keyframes pm-squash { 0% { transform: scale(1, 1) } 26% { transform: scale(1.14, 0.82) } 56% { transform: scale(0.96, 1.05) } 100% { transform: scale(1, 1) } }
|
|
1329
|
+
@keyframes pm-slap {
|
|
1330
|
+
0% { opacity: 0; transform: rotate(calc(var(--r) - 24deg)) scale(1.9) }
|
|
1331
|
+
42% { opacity: 1; transform: rotate(calc(var(--r) + 4deg)) scale(0.88, 0.84) }
|
|
1332
|
+
70% { opacity: 1; transform: rotate(calc(var(--r) - 1.5deg)) scale(1.04) }
|
|
1333
|
+
100% { opacity: 1; transform: rotate(var(--r)) scale(1) }
|
|
1334
|
+
}
|
|
1335
|
+
@keyframes pm-wobble { 0%, 100% { transform: rotate(0deg) } 50% { transform: rotate(2.6deg) } }
|
|
1336
|
+
@keyframes pm-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
|
|
1337
|
+
@keyframes pm-twinkle { 0%, 100% { transform: scale(1) rotate(0deg) } 50% { transform: scale(0.7) rotate(25deg) } }
|
|
1338
|
+
@keyframes pm-thunk { 0% { transform: scale(1) } 24% { transform: scale(1.07) rotate(-1.4deg) } 58% { transform: scale(0.985) rotate(0.4deg) } 100% { transform: scale(1) } }
|
|
1339
|
+
|
|
1340
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1341
|
+
.pm-root *, .pm-root *::before, .pm-root *::after { animation: none !important; transition: none !important; }
|
|
1342
|
+
}
|
|
1343
|
+
\`;
|
|
1344
|
+
|
|
1345
|
+
const anim = (live: boolean, value: string): CSSProperties => (live ? { animation: value } : {});
|
|
1346
|
+
|
|
1347
|
+
const rise = (live: boolean, delay = 0, dist = 32): CSSProperties =>
|
|
1348
|
+
live
|
|
1349
|
+
? ({
|
|
1350
|
+
animation: \`pm-rise 820ms \${SNAPPY} \${delay}ms both\`,
|
|
1351
|
+
'--pm-rise': \`\${dist}px\`,
|
|
1352
|
+
} as CSSProperties)
|
|
1353
|
+
: {};
|
|
1354
|
+
|
|
1355
|
+
const useLive = () => false;
|
|
1356
|
+
const useCount = (target: number, _live: boolean, _delay: number, _dur = 1700) => target;
|
|
1357
|
+
|
|
1358
|
+
const Mark = ({ size = 56 }: { size?: number }) => (
|
|
1359
|
+
<svg
|
|
1360
|
+
width={size}
|
|
1361
|
+
height={size}
|
|
1362
|
+
viewBox="0 0 64 64"
|
|
1363
|
+
aria-hidden="true"
|
|
1364
|
+
style={{ display: 'block', overflow: 'visible' }}
|
|
1365
|
+
>
|
|
1366
|
+
<path
|
|
1367
|
+
d="M36.5 13.5 C 38.5 6, 46.5 2.5, 55 4.5 C 53 12, 45 16, 36.5 13.5 Z"
|
|
1368
|
+
style={{ fill: MINT, stroke: INK, strokeWidth: 3.5, strokeLinejoin: 'round' }}
|
|
1369
|
+
/>
|
|
1370
|
+
<path
|
|
1371
|
+
d="M32 19 C 32 13, 33 9, 36 6"
|
|
1372
|
+
style={{ fill: 'none', stroke: INK, strokeWidth: 4, strokeLinecap: 'round' }}
|
|
1373
|
+
/>
|
|
1374
|
+
<path
|
|
1375
|
+
d="M32 19 C 23 13, 6 15, 6 34 C 6 50, 17 60, 25 60 C 28 60, 30 58.5, 32 58.5 C 34 58.5, 36 60, 39 60 C 47 60, 58 50, 58 34 C 58 15, 41 13, 32 19 Z"
|
|
1376
|
+
style={{ fill: TOMATO, stroke: INK, strokeWidth: 4, strokeLinejoin: 'round' }}
|
|
1377
|
+
/>
|
|
1378
|
+
<path
|
|
1379
|
+
d="M26.5 58.6 V 47 A 5.5 5.5 0 0 1 37.5 47 V 58.6"
|
|
1380
|
+
style={{ fill: CREAM, stroke: INK, strokeWidth: 3.5, strokeLinejoin: 'round' }}
|
|
1381
|
+
/>
|
|
1382
|
+
<path
|
|
1383
|
+
d="M15 30 C 15.5 25.5, 18.5 22.5, 22.5 21.5"
|
|
1384
|
+
style={{ fill: 'none', stroke: PAPER, strokeWidth: 3.5, strokeLinecap: 'round' }}
|
|
1385
|
+
/>
|
|
1386
|
+
</svg>
|
|
1387
|
+
);
|
|
1388
|
+
|
|
1389
|
+
const Title = ({
|
|
1390
|
+
children,
|
|
1391
|
+
live,
|
|
1392
|
+
x = 120,
|
|
1393
|
+
y = 168,
|
|
1394
|
+
size = 88,
|
|
1395
|
+
width = 1680,
|
|
1396
|
+
delay = 70,
|
|
1397
|
+
}: {
|
|
1398
|
+
children: ReactNode;
|
|
1399
|
+
live: boolean;
|
|
1400
|
+
x?: number;
|
|
1401
|
+
y?: number;
|
|
1402
|
+
size?: number;
|
|
1403
|
+
width?: number;
|
|
1404
|
+
delay?: number;
|
|
1405
|
+
}) => (
|
|
1406
|
+
<h2 style={{ ...DISPLAY, ...abs(x, y), width, fontSize: size, ...rise(live, delay, 40) }}>
|
|
1407
|
+
{children}
|
|
1408
|
+
</h2>
|
|
1409
|
+
);
|
|
1410
|
+
|
|
1411
|
+
const Footer = ({
|
|
1412
|
+
brand = 'pommi',
|
|
1413
|
+
label = 'Company update · 2026',
|
|
1414
|
+
note = 'Confidential',
|
|
1415
|
+
}: {
|
|
1416
|
+
brand?: string;
|
|
1417
|
+
label?: string;
|
|
1418
|
+
note?: string;
|
|
1419
|
+
}) => {
|
|
1420
|
+
const { current, total } = useSlidePageNumber();
|
|
1421
|
+
return (
|
|
1422
|
+
<div
|
|
1423
|
+
style={abs(120, 996, {
|
|
1424
|
+
width: 1680,
|
|
1425
|
+
height: 44,
|
|
1426
|
+
display: 'flex',
|
|
1427
|
+
alignItems: 'center',
|
|
1428
|
+
gap: 14,
|
|
1429
|
+
zIndex: 8,
|
|
1430
|
+
})}
|
|
1431
|
+
>
|
|
1432
|
+
<Mark size={34} />
|
|
1433
|
+
<span style={{ ...DISPLAY, fontSize: 30, letterSpacing: '-0.04em' }}>{brand}</span>
|
|
1434
|
+
<span style={{ ...MONO, color: MUTED, marginLeft: 18 }}>{label}</span>
|
|
1435
|
+
<span style={{ ...MONO, color: MUTED, marginLeft: 'auto', marginRight: 10 }}>{note}</span>
|
|
1436
|
+
<span
|
|
1437
|
+
style={{
|
|
1438
|
+
...MONO,
|
|
1439
|
+
height: 38,
|
|
1440
|
+
padding: '0 16px',
|
|
1441
|
+
borderRadius: 999,
|
|
1442
|
+
background: INK,
|
|
1443
|
+
color: CREAM,
|
|
1444
|
+
display: 'inline-flex',
|
|
1445
|
+
alignItems: 'center',
|
|
1446
|
+
fontVariantNumeric: 'tabular-nums',
|
|
1447
|
+
}}
|
|
1448
|
+
>
|
|
1449
|
+
{pad(current)} / {pad(total)}
|
|
1450
|
+
</span>
|
|
1451
|
+
</div>
|
|
1452
|
+
);
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
const Eyebrow = ({
|
|
1456
|
+
n,
|
|
1457
|
+
children,
|
|
1458
|
+
live,
|
|
1459
|
+
x = 120,
|
|
1460
|
+
y = 96,
|
|
1461
|
+
color = BUTTER,
|
|
1462
|
+
}: {
|
|
1463
|
+
n: string;
|
|
1464
|
+
children: ReactNode;
|
|
1465
|
+
live: boolean;
|
|
1466
|
+
x?: number;
|
|
1467
|
+
y?: number;
|
|
1468
|
+
color?: string;
|
|
1469
|
+
}) => (
|
|
1470
|
+
<div
|
|
1471
|
+
style={abs(x, y, {
|
|
1472
|
+
display: 'flex',
|
|
1473
|
+
alignItems: 'stretch',
|
|
1474
|
+
height: 46,
|
|
1475
|
+
border: \`3px solid \${INK}\`,
|
|
1476
|
+
borderRadius: 999,
|
|
1477
|
+
background: color,
|
|
1478
|
+
boxShadow: shadow(4),
|
|
1479
|
+
overflow: 'hidden',
|
|
1480
|
+
...rise(live, 0, 20),
|
|
1481
|
+
})}
|
|
1482
|
+
>
|
|
1483
|
+
<span
|
|
1484
|
+
style={{
|
|
1485
|
+
...MONO,
|
|
1486
|
+
fontSize: 18,
|
|
1487
|
+
padding: '0 14px 0 16px',
|
|
1488
|
+
display: 'flex',
|
|
1489
|
+
alignItems: 'center',
|
|
1490
|
+
background: INK,
|
|
1491
|
+
color: CREAM,
|
|
1492
|
+
}}
|
|
1493
|
+
>
|
|
1494
|
+
{n}
|
|
1495
|
+
</span>
|
|
1496
|
+
<span
|
|
1497
|
+
style={{
|
|
1498
|
+
...MONO,
|
|
1499
|
+
fontSize: 18,
|
|
1500
|
+
padding: '0 20px 0 16px',
|
|
1501
|
+
display: 'flex',
|
|
1502
|
+
alignItems: 'center',
|
|
1503
|
+
}}
|
|
1504
|
+
>
|
|
1505
|
+
{children}
|
|
1506
|
+
</span>
|
|
1507
|
+
</div>
|
|
1508
|
+
);
|
|
1509
|
+
|
|
1510
|
+
const Stage = ({ footer = true, children }: { footer?: boolean; children: ReactNode }) => (
|
|
1511
|
+
<div
|
|
1512
|
+
className="pm-root"
|
|
1513
|
+
style={{
|
|
1514
|
+
width: '100%',
|
|
1515
|
+
height: '100%',
|
|
1516
|
+
position: 'relative',
|
|
1517
|
+
overflow: 'hidden',
|
|
1518
|
+
isolation: 'isolate',
|
|
1519
|
+
background: CREAM,
|
|
1520
|
+
color: INK,
|
|
1521
|
+
fontFamily: 'var(--slides2-font-body)',
|
|
1522
|
+
}}
|
|
1523
|
+
>
|
|
1524
|
+
{children}
|
|
1525
|
+
{footer && <Footer />}
|
|
1526
|
+
</div>
|
|
1527
|
+
);
|
|
1528
|
+
|
|
1529
|
+
const Footnote = ({
|
|
1530
|
+
x = 120,
|
|
1531
|
+
y,
|
|
1532
|
+
width = 1680,
|
|
1533
|
+
children,
|
|
1534
|
+
}: {
|
|
1535
|
+
x?: number;
|
|
1536
|
+
y: number;
|
|
1537
|
+
width?: number;
|
|
1538
|
+
children: ReactNode;
|
|
1539
|
+
}) => (
|
|
1540
|
+
<p style={{ ...BODY, ...abs(x, y), width, fontSize: 18, lineHeight: 1.4, color: MUTED }}>
|
|
1541
|
+
{children}
|
|
1542
|
+
</p>
|
|
1543
|
+
);
|
|
1544
|
+
|
|
1545
|
+
const Sticker = ({
|
|
1546
|
+
x,
|
|
1547
|
+
y,
|
|
1548
|
+
r,
|
|
1549
|
+
live,
|
|
1550
|
+
delay,
|
|
1551
|
+
bg,
|
|
1552
|
+
children,
|
|
1553
|
+
round,
|
|
1554
|
+
pad: padding = '14px 26px',
|
|
1555
|
+
z = 6,
|
|
1556
|
+
}: {
|
|
1557
|
+
x: number;
|
|
1558
|
+
y: number;
|
|
1559
|
+
r: number;
|
|
1560
|
+
live: boolean;
|
|
1561
|
+
delay: number;
|
|
1562
|
+
bg: string;
|
|
1563
|
+
children: ReactNode;
|
|
1564
|
+
round?: number;
|
|
1565
|
+
pad?: string;
|
|
1566
|
+
z?: number;
|
|
1567
|
+
}) => (
|
|
1568
|
+
<div
|
|
1569
|
+
style={
|
|
1570
|
+
{
|
|
1571
|
+
...abs(x, y),
|
|
1572
|
+
'--r': \`\${r}deg\`,
|
|
1573
|
+
transform: \`rotate(\${r}deg)\`,
|
|
1574
|
+
zIndex: z,
|
|
1575
|
+
...anim(live, \`pm-slap 760ms \${SLAP} \${delay}ms both\`),
|
|
1576
|
+
} as CSSProperties
|
|
1577
|
+
}
|
|
1578
|
+
>
|
|
1579
|
+
<div
|
|
1580
|
+
style={{
|
|
1581
|
+
...anim(live, \`pm-wobble 5.2s ease-in-out \${delay + 900}ms infinite\`),
|
|
1582
|
+
background: bg,
|
|
1583
|
+
border: BORDER,
|
|
1584
|
+
boxShadow: shadow(6),
|
|
1585
|
+
borderRadius: round ? '50%' : 22,
|
|
1586
|
+
width: round,
|
|
1587
|
+
height: round,
|
|
1588
|
+
padding: round ? 0 : padding,
|
|
1589
|
+
display: 'flex',
|
|
1590
|
+
flexDirection: 'column',
|
|
1591
|
+
alignItems: 'center',
|
|
1592
|
+
justifyContent: 'center',
|
|
1593
|
+
textAlign: 'center',
|
|
1594
|
+
}}
|
|
1595
|
+
>
|
|
1596
|
+
{children}
|
|
1597
|
+
</div>
|
|
1598
|
+
</div>
|
|
1599
|
+
);
|
|
1600
|
+
|
|
1601
|
+
const Sparkle = ({
|
|
1602
|
+
x,
|
|
1603
|
+
y,
|
|
1604
|
+
size,
|
|
1605
|
+
color = BUTTER,
|
|
1606
|
+
live,
|
|
1607
|
+
delay,
|
|
1608
|
+
}: {
|
|
1609
|
+
x: number;
|
|
1610
|
+
y: number;
|
|
1611
|
+
size: number;
|
|
1612
|
+
color?: string;
|
|
1613
|
+
live: boolean;
|
|
1614
|
+
delay: number;
|
|
1615
|
+
}) => (
|
|
1616
|
+
<div
|
|
1617
|
+
style={{
|
|
1618
|
+
...abs(x, y),
|
|
1619
|
+
width: size,
|
|
1620
|
+
height: size,
|
|
1621
|
+
...anim(live, \`pm-pop 700ms \${BOUNCY} \${delay}ms both\`),
|
|
1622
|
+
}}
|
|
1623
|
+
>
|
|
1624
|
+
<svg
|
|
1625
|
+
width={size}
|
|
1626
|
+
height={size}
|
|
1627
|
+
viewBox="0 0 40 40"
|
|
1628
|
+
aria-hidden="true"
|
|
1629
|
+
style={{
|
|
1630
|
+
display: 'block',
|
|
1631
|
+
overflow: 'visible',
|
|
1632
|
+
...anim(live, \`pm-twinkle 2.8s ease-in-out \${delay + 700}ms infinite\`),
|
|
1633
|
+
}}
|
|
1634
|
+
>
|
|
1635
|
+
<path
|
|
1636
|
+
d="M20 2 C 22 14, 26 18, 38 20 C 26 22, 22 26, 20 38 C 18 26, 14 22, 2 20 C 14 18, 18 14, 20 2 Z"
|
|
1637
|
+
style={{ fill: color, stroke: INK, strokeWidth: 3, strokeLinejoin: 'round' }}
|
|
1638
|
+
/>
|
|
1639
|
+
</svg>
|
|
1640
|
+
</div>
|
|
1641
|
+
);
|
|
1642
|
+
|
|
1643
|
+
const Chip = ({ children }: { children: ReactNode }) => (
|
|
1644
|
+
<span
|
|
1645
|
+
style={{
|
|
1646
|
+
height: 52,
|
|
1647
|
+
padding: '0 22px',
|
|
1648
|
+
border: \`3px solid \${INK}\`,
|
|
1649
|
+
borderRadius: 999,
|
|
1650
|
+
display: 'inline-flex',
|
|
1651
|
+
alignItems: 'center',
|
|
1652
|
+
fontSize: 24,
|
|
1653
|
+
fontWeight: 700,
|
|
1654
|
+
background: PAPER,
|
|
1655
|
+
}}
|
|
1656
|
+
>
|
|
1657
|
+
{children}
|
|
1658
|
+
</span>
|
|
1659
|
+
);
|
|
1660
|
+
|
|
1661
|
+
const StatRow = ({
|
|
1662
|
+
x = 120,
|
|
1663
|
+
y,
|
|
1664
|
+
n,
|
|
1665
|
+
color,
|
|
1666
|
+
live,
|
|
1667
|
+
delay,
|
|
1668
|
+
children,
|
|
1669
|
+
}: {
|
|
1670
|
+
x?: number;
|
|
1671
|
+
y: number;
|
|
1672
|
+
n: string;
|
|
1673
|
+
color: string;
|
|
1674
|
+
live: boolean;
|
|
1675
|
+
delay: number;
|
|
1676
|
+
children: ReactNode;
|
|
1677
|
+
}) => (
|
|
1678
|
+
<div
|
|
1679
|
+
style={abs(x, y, {
|
|
1680
|
+
width: 1000,
|
|
1681
|
+
height: 132,
|
|
1682
|
+
display: 'flex',
|
|
1683
|
+
border: BORDER,
|
|
1684
|
+
borderRadius: 28,
|
|
1685
|
+
background: PAPER,
|
|
1686
|
+
boxShadow: shadow(8),
|
|
1687
|
+
overflow: 'hidden',
|
|
1688
|
+
boxSizing: 'border-box',
|
|
1689
|
+
...anim(live, \`pm-in-l 900ms \${SNAPPY} \${delay}ms both\`),
|
|
1690
|
+
})}
|
|
1691
|
+
>
|
|
1692
|
+
<div
|
|
1693
|
+
style={{
|
|
1694
|
+
width: 250,
|
|
1695
|
+
flex: 'none',
|
|
1696
|
+
background: color,
|
|
1697
|
+
borderRight: BORDER,
|
|
1698
|
+
display: 'flex',
|
|
1699
|
+
alignItems: 'center',
|
|
1700
|
+
paddingLeft: 30,
|
|
1701
|
+
boxSizing: 'border-box',
|
|
1702
|
+
}}
|
|
1703
|
+
>
|
|
1704
|
+
<span style={{ ...NUM, fontSize: 76, letterSpacing: '-0.045em' }}>{n}</span>
|
|
1705
|
+
</div>
|
|
1706
|
+
<p style={{ ...BODY, padding: '0 36px', alignSelf: 'center' }}>{children}</p>
|
|
1707
|
+
</div>
|
|
1708
|
+
);
|
|
1709
|
+
|
|
1710
|
+
const TiltCard = ({
|
|
1711
|
+
x,
|
|
1712
|
+
y,
|
|
1713
|
+
r,
|
|
1714
|
+
color,
|
|
1715
|
+
n,
|
|
1716
|
+
title,
|
|
1717
|
+
live,
|
|
1718
|
+
delay,
|
|
1719
|
+
width = 360,
|
|
1720
|
+
height = 420,
|
|
1721
|
+
children,
|
|
1722
|
+
}: {
|
|
1723
|
+
x: number;
|
|
1724
|
+
y: number;
|
|
1725
|
+
r: number;
|
|
1726
|
+
color: string;
|
|
1727
|
+
n: string;
|
|
1728
|
+
title: string;
|
|
1729
|
+
live: boolean;
|
|
1730
|
+
delay: number;
|
|
1731
|
+
width?: number;
|
|
1732
|
+
height?: number;
|
|
1733
|
+
children: ReactNode;
|
|
1734
|
+
}) => (
|
|
1735
|
+
<div
|
|
1736
|
+
style={
|
|
1737
|
+
{
|
|
1738
|
+
...abs(x, y),
|
|
1739
|
+
'--r': \`\${r}deg\`,
|
|
1740
|
+
transform: \`rotate(\${r}deg)\`,
|
|
1741
|
+
width,
|
|
1742
|
+
height,
|
|
1743
|
+
boxSizing: 'border-box',
|
|
1744
|
+
padding: 28,
|
|
1745
|
+
background: color,
|
|
1746
|
+
border: BORDER,
|
|
1747
|
+
borderRadius: 34,
|
|
1748
|
+
boxShadow: shadow(10),
|
|
1749
|
+
display: 'flex',
|
|
1750
|
+
flexDirection: 'column',
|
|
1751
|
+
...anim(live, \`pm-slap 760ms \${SLAP} \${delay}ms both\`),
|
|
1752
|
+
} as CSSProperties
|
|
1753
|
+
}
|
|
1754
|
+
>
|
|
1755
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
|
|
1756
|
+
<span
|
|
1757
|
+
style={{
|
|
1758
|
+
...MONO,
|
|
1759
|
+
fontSize: 18,
|
|
1760
|
+
width: 52,
|
|
1761
|
+
height: 52,
|
|
1762
|
+
flex: 'none',
|
|
1763
|
+
borderRadius: '50%',
|
|
1764
|
+
background: INK,
|
|
1765
|
+
color: CREAM,
|
|
1766
|
+
display: 'flex',
|
|
1767
|
+
alignItems: 'center',
|
|
1768
|
+
justifyContent: 'center',
|
|
1769
|
+
}}
|
|
1770
|
+
>
|
|
1771
|
+
{n}
|
|
1772
|
+
</span>
|
|
1773
|
+
<span style={{ ...DISPLAY, fontSize: 64 }}>{title}</span>
|
|
1774
|
+
</div>
|
|
1775
|
+
<p style={{ ...BODY, fontSize: 28, marginTop: 24, lineHeight: 1.3 }}>{children}</p>
|
|
1776
|
+
</div>
|
|
1777
|
+
);
|
|
1778
|
+
|
|
1779
|
+
const DropWord = ({
|
|
1780
|
+
text,
|
|
1781
|
+
size,
|
|
1782
|
+
}: {
|
|
1783
|
+
text: string;
|
|
1784
|
+
size: number;
|
|
1785
|
+
live: boolean;
|
|
1786
|
+
delay?: number;
|
|
1787
|
+
}) => (
|
|
1788
|
+
<div
|
|
1789
|
+
style={{
|
|
1790
|
+
...DISPLAY,
|
|
1791
|
+
fontSize: size,
|
|
1792
|
+
letterSpacing: '-0.055em',
|
|
1793
|
+
lineHeight: 1,
|
|
1794
|
+
display: 'flex',
|
|
1795
|
+
whiteSpace: 'nowrap',
|
|
1796
|
+
}}
|
|
1797
|
+
>
|
|
1798
|
+
{text}
|
|
1799
|
+
</div>
|
|
1800
|
+
);
|
|
1801
|
+
|
|
1802
|
+
const Cover: Page = () => {
|
|
1803
|
+
const live = useLive();
|
|
1804
|
+
return (
|
|
1805
|
+
<Stage footer={false}>
|
|
1806
|
+
<div
|
|
1807
|
+
style={abs(120, 92, {
|
|
1808
|
+
display: 'flex',
|
|
1809
|
+
alignItems: 'center',
|
|
1810
|
+
gap: 16,
|
|
1811
|
+
...rise(live, 0, 16),
|
|
1812
|
+
})}
|
|
1813
|
+
>
|
|
1814
|
+
<Mark size={50} />
|
|
1815
|
+
<span style={{ ...MONO, fontSize: 18 }}>Company update · October 2026</span>
|
|
1816
|
+
</div>
|
|
1817
|
+
|
|
1818
|
+
<div
|
|
1819
|
+
style={abs(1160, 96, {
|
|
1820
|
+
width: 640,
|
|
1821
|
+
height: 1100,
|
|
1822
|
+
background: PERI,
|
|
1823
|
+
border: BORDER,
|
|
1824
|
+
borderRadius: 48,
|
|
1825
|
+
...rise(live, 40, 120),
|
|
1826
|
+
})}
|
|
1827
|
+
/>
|
|
1828
|
+
<TiltCard
|
|
1829
|
+
x={1220}
|
|
1830
|
+
y={290}
|
|
1831
|
+
r={-4}
|
|
1832
|
+
width={480}
|
|
1833
|
+
height={210}
|
|
1834
|
+
color={TOMATO}
|
|
1835
|
+
n="01"
|
|
1836
|
+
title="Bold"
|
|
1837
|
+
live={live}
|
|
1838
|
+
delay={700}
|
|
1839
|
+
>
|
|
1840
|
+
Huge type that takes up the whole room.
|
|
1841
|
+
</TiltCard>
|
|
1842
|
+
<TiltCard
|
|
1843
|
+
x={1270}
|
|
1844
|
+
y={500}
|
|
1845
|
+
r={3}
|
|
1846
|
+
width={480}
|
|
1847
|
+
height={210}
|
|
1848
|
+
color={BUTTER}
|
|
1849
|
+
n="02"
|
|
1850
|
+
title="Bright"
|
|
1851
|
+
live={live}
|
|
1852
|
+
delay={850}
|
|
1853
|
+
>
|
|
1854
|
+
Cream paper, ink lines, five loud fills.
|
|
1855
|
+
</TiltCard>
|
|
1856
|
+
<TiltCard
|
|
1857
|
+
x={1200}
|
|
1858
|
+
y={710}
|
|
1859
|
+
r={-2}
|
|
1860
|
+
width={480}
|
|
1861
|
+
height={210}
|
|
1862
|
+
color={MINT}
|
|
1863
|
+
n="03"
|
|
1864
|
+
title="Bouncy"
|
|
1865
|
+
live={live}
|
|
1866
|
+
delay={1000}
|
|
1867
|
+
>
|
|
1868
|
+
Things drop, squash and slap into place.
|
|
1869
|
+
</TiltCard>
|
|
1870
|
+
|
|
1871
|
+
<div style={abs(104, 236)}>
|
|
1872
|
+
<DropWord text="hello" size={300} live={live} delay={220} />
|
|
1873
|
+
</div>
|
|
1874
|
+
|
|
1875
|
+
<p
|
|
1876
|
+
style={{
|
|
1877
|
+
...DISPLAY,
|
|
1878
|
+
...abs(120, 600),
|
|
1879
|
+
width: 960,
|
|
1880
|
+
fontSize: 64,
|
|
1881
|
+
fontWeight: 800,
|
|
1882
|
+
lineHeight: 1.08,
|
|
1883
|
+
letterSpacing: '-0.03em',
|
|
1884
|
+
...rise(live, 900, 30),
|
|
1885
|
+
}}
|
|
1886
|
+
>
|
|
1887
|
+
A loud, happy theme
|
|
1888
|
+
<br />
|
|
1889
|
+
for consumer brands.
|
|
1890
|
+
</p>
|
|
1891
|
+
<div
|
|
1892
|
+
style={abs(120, 800, {
|
|
1893
|
+
display: 'flex',
|
|
1894
|
+
gap: 12,
|
|
1895
|
+
...rise(live, 1040, 24),
|
|
1896
|
+
})}
|
|
1897
|
+
>
|
|
1898
|
+
<Chip>Gabarito + DM Mono</Chip>
|
|
1899
|
+
<Chip>Seven colours</Chip>
|
|
1900
|
+
<Chip>Hard shadows</Chip>
|
|
1901
|
+
</div>
|
|
1902
|
+
<div style={{ ...MONO, ...abs(120, 984), color: MUTED, ...rise(live, 1160, 12) }}>
|
|
1903
|
+
Theme preview · Cream, ink and tomato
|
|
1904
|
+
</div>
|
|
1905
|
+
|
|
1906
|
+
<Sticker x={1440} y={200} r={7} live={live} delay={1250} bg={BUTTER}>
|
|
1907
|
+
<span style={{ ...DISPLAY, fontSize: 52, letterSpacing: '-0.03em' }}>New theme</span>
|
|
1908
|
+
</Sticker>
|
|
1909
|
+
<Sticker x={1380} y={950} r={-6} live={live} delay={1650} bg={PAPER} pad="12px 24px">
|
|
1910
|
+
<span style={{ ...DISPLAY, fontSize: 34, fontWeight: 800, letterSpacing: '-0.02em' }}>
|
|
1911
|
+
Made to be shown
|
|
1912
|
+
</span>
|
|
1913
|
+
</Sticker>
|
|
1914
|
+
<Sparkle x={1360} y={170} size={46} live={live} delay={1800} />
|
|
1915
|
+
<Sparkle x={1716} y={150} size={30} color={PINK} live={live} delay={1900} />
|
|
1916
|
+
<Sparkle x={1770} y={470} size={34} color={PAPER} live={live} delay={2000} />
|
|
1917
|
+
</Stage>
|
|
1918
|
+
);
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1921
|
+
const Content: Page = () => {
|
|
1922
|
+
const live = useLive();
|
|
1923
|
+
const count = useCount(412, live, 600, 1600);
|
|
1924
|
+
return (
|
|
1925
|
+
<Stage>
|
|
1926
|
+
<Eyebrow n="01" live={live}>
|
|
1927
|
+
Highlights
|
|
1928
|
+
</Eyebrow>
|
|
1929
|
+
<Title live={live} size={96} width={1100}>
|
|
1930
|
+
This quarter,
|
|
1931
|
+
<br />
|
|
1932
|
+
in three numbers.
|
|
1933
|
+
</Title>
|
|
1934
|
+
<StatRow y={420} n="3.4×" color={TOMATO} live={live} delay={260}>
|
|
1935
|
+
more weekly active users than at the same point last year
|
|
1936
|
+
</StatRow>
|
|
1937
|
+
<StatRow y={576} n="61%" color={BUTTER} live={live} delay={380}>
|
|
1938
|
+
of new sign-ups arrived through a friend's invite link
|
|
1939
|
+
</StatRow>
|
|
1940
|
+
<StatRow y={732} n="4 s" color={PERI} live={live} delay={500}>
|
|
1941
|
+
median time to finish the core action, down from eleven
|
|
1942
|
+
</StatRow>
|
|
1943
|
+
<Footnote y={898} width={1000}>
|
|
1944
|
+
Illustrative figures for the theme preview. Swap in your own numbers and sources.
|
|
1945
|
+
</Footnote>
|
|
1946
|
+
|
|
1947
|
+
<div
|
|
1948
|
+
style={abs(1220, 330, {
|
|
1949
|
+
width: 580,
|
|
1950
|
+
height: 520,
|
|
1951
|
+
boxSizing: 'border-box',
|
|
1952
|
+
padding: '40px 44px',
|
|
1953
|
+
background: PAPER,
|
|
1954
|
+
border: BORDER,
|
|
1955
|
+
borderRadius: 34,
|
|
1956
|
+
boxShadow: shadow(10),
|
|
1957
|
+
display: 'flex',
|
|
1958
|
+
flexDirection: 'column',
|
|
1959
|
+
...rise(live, 160, 60),
|
|
1960
|
+
})}
|
|
1961
|
+
>
|
|
1962
|
+
<span style={{ ...MONO, color: MUTED }}>Monthly active homes</span>
|
|
1963
|
+
<span
|
|
1964
|
+
style={{
|
|
1965
|
+
...NUM,
|
|
1966
|
+
fontSize: 200,
|
|
1967
|
+
lineHeight: 0.86,
|
|
1968
|
+
letterSpacing: '-0.05em',
|
|
1969
|
+
marginTop: 24,
|
|
1970
|
+
transformOrigin: '0% 80%',
|
|
1971
|
+
...anim(live, 'pm-thunk 620ms ease-out 2200ms both'),
|
|
1972
|
+
}}
|
|
1973
|
+
>
|
|
1974
|
+
{Number(count.toFixed(0))}k
|
|
1975
|
+
</span>
|
|
1976
|
+
<p style={{ ...BODY, fontWeight: 700, marginTop: 26 }}>
|
|
1977
|
+
households open the app at least once a month.
|
|
1978
|
+
</p>
|
|
1979
|
+
<div
|
|
1980
|
+
style={{
|
|
1981
|
+
marginTop: 'auto',
|
|
1982
|
+
paddingTop: 22,
|
|
1983
|
+
borderTop: \`3px dashed \${FAINT}\`,
|
|
1984
|
+
display: 'flex',
|
|
1985
|
+
alignItems: 'baseline',
|
|
1986
|
+
gap: 14,
|
|
1987
|
+
}}
|
|
1988
|
+
>
|
|
1989
|
+
<span style={{ ...NUM, fontSize: 44, letterSpacing: '-0.03em' }}>+3.1×</span>
|
|
1990
|
+
<span style={{ ...MONO, fontSize: 16, color: MUTED }}>Year on year</span>
|
|
1991
|
+
</div>
|
|
1992
|
+
</div>
|
|
1993
|
+
<Sticker x={1600} y={286} r={6} live={live} delay={2300} bg={MINT} pad="10px 20px">
|
|
1994
|
+
<span style={{ fontSize: 24, fontWeight: 800 }}>64% organic</span>
|
|
1995
|
+
</Sticker>
|
|
1996
|
+
<Sparkle x={1180} y={296} size={40} live={live} delay={2450} />
|
|
1997
|
+
</Stage>
|
|
1998
|
+
);
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
const Closer: Page = () => {
|
|
2002
|
+
const live = useLive();
|
|
2003
|
+
return (
|
|
2004
|
+
<Stage footer={false}>
|
|
2005
|
+
<div style={abs(104, 150)}>
|
|
2006
|
+
<DropWord text="thanks" size={250} live={live} delay={150} />
|
|
2007
|
+
</div>
|
|
2008
|
+
<p
|
|
2009
|
+
style={{
|
|
2010
|
+
...DISPLAY,
|
|
2011
|
+
...abs(120, 470),
|
|
2012
|
+
width: 1000,
|
|
2013
|
+
fontSize: 72,
|
|
2014
|
+
fontWeight: 800,
|
|
2015
|
+
lineHeight: 1.06,
|
|
2016
|
+
letterSpacing: '-0.035em',
|
|
2017
|
+
...rise(live, 800, 30),
|
|
2018
|
+
}}
|
|
2019
|
+
>
|
|
2020
|
+
Questions, ideas and
|
|
2021
|
+
<br />
|
|
2022
|
+
high fives welcome.
|
|
2023
|
+
</p>
|
|
2024
|
+
<div style={abs(120, 720, { display: 'flex', gap: 12, ...rise(live, 1000, 24) })}>
|
|
2025
|
+
<Chip>hello@example.com</Chip>
|
|
2026
|
+
<Chip>example.com/deck</Chip>
|
|
2027
|
+
</div>
|
|
2028
|
+
<div style={{ ...MONO, ...abs(120, 984), color: MUTED, ...rise(live, 1500, 12) }}>
|
|
2029
|
+
Pommi theme · Slides 2
|
|
2030
|
+
</div>
|
|
2031
|
+
|
|
2032
|
+
<div
|
|
2033
|
+
style={abs(1180, 96, {
|
|
2034
|
+
width: 620,
|
|
2035
|
+
height: 888,
|
|
2036
|
+
background: BUTTER,
|
|
2037
|
+
border: BORDER,
|
|
2038
|
+
borderRadius: 48,
|
|
2039
|
+
boxShadow: shadow(12),
|
|
2040
|
+
...rise(live, 60, 80),
|
|
2041
|
+
})}
|
|
2042
|
+
/>
|
|
2043
|
+
<div
|
|
2044
|
+
style={abs(1290, 250, {
|
|
2045
|
+
width: 400,
|
|
2046
|
+
height: 400,
|
|
2047
|
+
...anim(live, \`pm-pop 900ms \${BOUNCY} 500ms both\`),
|
|
2048
|
+
})}
|
|
2049
|
+
>
|
|
2050
|
+
<div style={{ ...anim(live, 'pm-bob 3.6s ease-in-out 1400ms infinite') }}>
|
|
2051
|
+
<Mark size={400} />
|
|
2052
|
+
</div>
|
|
2053
|
+
</div>
|
|
2054
|
+
<div
|
|
2055
|
+
style={abs(1230, 740, {
|
|
2056
|
+
width: 520,
|
|
2057
|
+
textAlign: 'center',
|
|
2058
|
+
...rise(live, 900, 20),
|
|
2059
|
+
})}
|
|
2060
|
+
>
|
|
2061
|
+
<div style={{ ...MONO, fontSize: 18 }}>Find us at</div>
|
|
2062
|
+
<div style={{ ...DISPLAY, fontSize: 54, marginTop: 10, letterSpacing: '-0.03em' }}>
|
|
2063
|
+
example.com
|
|
2064
|
+
</div>
|
|
2065
|
+
</div>
|
|
2066
|
+
<Sticker x={1110} y={150} r={-9} live={live} delay={1500} bg={TOMATO} pad="12px 26px">
|
|
2067
|
+
<span style={{ ...DISPLAY, fontSize: 50, letterSpacing: '-0.03em' }}>Thank you!</span>
|
|
2068
|
+
</Sticker>
|
|
2069
|
+
<Sticker x={1560} y={600} r={8} live={live} delay={1700} bg={MINT} pad="10px 22px">
|
|
2070
|
+
<span style={{ fontSize: 28, fontWeight: 800 }}>See you soon</span>
|
|
2071
|
+
</Sticker>
|
|
2072
|
+
<Sparkle x={1700} y={170} size={44} color={PAPER} live={live} delay={1850} />
|
|
2073
|
+
<Sparkle x={1250} y={620} size={32} color={PINK} live={live} delay={1950} />
|
|
2074
|
+
</Stage>
|
|
2075
|
+
);
|
|
2076
|
+
};
|
|
2077
|
+
|
|
2078
|
+
export default [Cover, Content, Closer] satisfies Page[];
|
|
2079
|
+
`);
|
|
2080
|
+
|
|
2081
|
+
const themeDemoSources = {
|
|
2082
|
+
aero: AERO_DEMO_SOURCE,
|
|
2083
|
+
fieldwork: FIELDWORK_DEMO_SOURCE,
|
|
2084
|
+
pommi: POMMI_DEMO_SOURCE,
|
|
2085
|
+
} as const;
|
|
2086
|
+
|
|
2087
|
+
const themeDemoPages = {
|
|
2088
|
+
aero: ["Cover", "Content", "Closer"],
|
|
2089
|
+
fieldwork: ["Cover", "Content", "Closer"],
|
|
2090
|
+
pommi: ["Cover", "Content", "Closer"],
|
|
2091
|
+
} as const;
|
|
2092
|
+
|
|
2093
|
+
export function getBuiltInSlideThemeDemoSource(
|
|
2094
|
+
id: string,
|
|
2095
|
+
pageIndex: number,
|
|
2096
|
+
): string | undefined {
|
|
2097
|
+
const source = themeDemoSources[id as keyof typeof themeDemoSources];
|
|
2098
|
+
const pages = themeDemoPages[id as keyof typeof themeDemoPages];
|
|
2099
|
+
if (!source || !pages || !Number.isInteger(pageIndex)) return undefined;
|
|
2100
|
+
const page = pages[pageIndex];
|
|
2101
|
+
if (!page) return undefined;
|
|
2102
|
+
return source.replace(
|
|
2103
|
+
/export default \[Cover, Content, Closer\](?: satisfies Page\[\])?;/,
|
|
2104
|
+
`export default ${page};`,
|
|
2105
|
+
);
|
|
2106
|
+
}
|