@agent-native/core 0.80.4 → 0.80.6
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 +2 -2
- package/corpus/core/CHANGELOG.md +28 -2
- package/corpus/core/docs/content/locales/ar-SA/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/ar-SA/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/de-DE/real-time-collaboration.mdx +3 -3
- package/corpus/core/docs/content/locales/de-DE/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/es-ES/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/es-ES/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/fr-FR/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/fr-FR/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/hi-IN/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/ja-JP/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/ja-JP/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/ko-KR/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/ko-KR/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/pt-BR/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/pt-BR/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/zh-CN/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/zh-CN/template-design.mdx +1 -1
- package/corpus/core/docs/content/locales/zh-TW/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/locales/zh-TW/template-design.mdx +1 -1
- package/corpus/core/docs/content/real-time-collaboration.mdx +2 -2
- package/corpus/core/docs/content/template-design.mdx +1 -1
- package/corpus/core/package.json +3 -7
- package/corpus/core/src/action.ts +21 -0
- package/corpus/core/src/agent/durable-background.ts +32 -11
- package/corpus/core/src/agent/production-agent.ts +11 -1
- package/corpus/core/src/agent/run-loop-with-resume.ts +3 -1
- package/corpus/core/src/brand-kit/fig/index.ts +17 -37
- package/corpus/core/src/cli/create.ts +1 -0
- package/corpus/core/src/cli/index.ts +1 -1
- package/corpus/core/src/cli/mcp-config-writers.ts +187 -51
- package/corpus/core/src/cli/skills.ts +18 -3
- package/corpus/core/src/client/AssistantChat.tsx +11 -1
- package/corpus/core/src/client/agent-chat.ts +12 -1
- package/corpus/core/src/client/composer/PromptComposer.tsx +100 -41
- package/corpus/core/src/client/org/OrgSwitcher.tsx +1 -1
- package/corpus/core/src/client/sharing/ShareButton.tsx +3 -27
- package/corpus/core/src/collab/presence.ts +1 -1
- package/corpus/core/src/mcp/connect-route.ts +34 -5
- package/corpus/core/src/server/action-discovery.ts +4 -0
- package/corpus/core/src/server/agent-chat-plugin.ts +20 -0
- package/corpus/core/src/sharing/registry.ts +17 -0
- package/corpus/core/src/templates/default/pnpm-workspace.yaml +1 -0
- package/corpus/core/src/templates/workspace-root/pnpm-workspace.yaml +1 -0
- package/corpus/templates/analytics/actions/dashboard-mutation-api.ts +2 -0
- package/corpus/templates/analytics/actions/update-dashboard.ts +8 -0
- package/corpus/templates/analytics/app/components/layout/Layout.tsx +1 -1
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +117 -33
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/index.tsx +4 -0
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/types.ts +7 -0
- package/corpus/templates/analytics/changelog/2026-06-27-dashboards-can-now-nest-under-a-parent-in-the-sidebar-via-a-.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-29-analytics-pages-now-sit-closer-under-the-header-with-tighter.md +6 -0
- package/corpus/templates/assets/actions/generate-image-batch.ts +3 -0
- package/corpus/templates/assets/actions/generate-image.ts +3 -0
- package/corpus/templates/assets/changelog/2026-06-29-longer-agent-generation-window.md +6 -0
- package/corpus/templates/assets/netlify.toml +3 -3
- package/corpus/templates/assets/server/plugins/agent-chat.ts +4 -1
- package/corpus/templates/clips/app/components/capture-install-options.tsx +7 -8
- package/corpus/templates/clips/app/components/recorder/recorder-engine.ts +1 -1
- package/corpus/templates/content/AGENTS.md +57 -44
- package/corpus/templates/content/README.md +16 -0
- package/corpus/templates/content/actions/_builder-cms-read-client.ts +125 -0
- package/corpus/templates/content/actions/_builder-cms-source-adapter.ts +28 -6
- package/corpus/templates/content/actions/_builder-cms-write-adapter.ts +238 -69
- package/corpus/templates/content/actions/_builder-cms-write-settings.ts +125 -43
- package/corpus/templates/content/actions/_database-source-utils.ts +746 -97
- package/corpus/templates/content/actions/_database-utils.ts +17 -14
- package/corpus/templates/content/actions/_federation-join.ts +14 -2
- package/corpus/templates/content/actions/_join-suggestion.ts +89 -14
- package/corpus/templates/content/actions/_local-file-documents.ts +2 -1
- package/corpus/templates/content/actions/attach-content-database-source.ts +124 -5
- package/corpus/templates/content/actions/bind-content-database-source-field.ts +256 -0
- package/corpus/templates/content/actions/change-content-database-source-role.ts +420 -0
- package/corpus/templates/content/actions/create-document.ts +8 -0
- package/corpus/templates/content/actions/execute-builder-source-batch.ts +282 -0
- package/corpus/templates/content/actions/execute-builder-source-execution.ts +220 -8
- package/corpus/templates/content/actions/get-content-database.ts +10 -2
- package/corpus/templates/content/actions/prepare-builder-source-execution.ts +19 -2
- package/corpus/templates/content/actions/prepare-builder-source-review.ts +47 -15
- package/corpus/templates/content/actions/refresh-content-database-source.ts +11 -4
- package/corpus/templates/content/actions/review-content-database-source-change-set.ts +6 -2
- package/corpus/templates/content/actions/set-content-database-source-write-mode.ts +32 -12
- package/corpus/templates/content/actions/stage-builder-revision.ts +14 -10
- package/corpus/templates/content/actions/validate-builder-source-execution.ts +25 -3
- package/corpus/templates/content/app/blocks/BuilderDocsBlocks.tsx +10 -0
- package/corpus/templates/content/app/components/editor/BubbleToolbar.tsx +1 -0
- package/corpus/templates/content/app/components/editor/ContentReferencePreview.tsx +185 -0
- package/corpus/templates/content/app/components/editor/DocumentDatabase.tsx +1520 -553
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +3 -0
- package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +150 -1
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +19 -0
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +647 -66
- package/corpus/templates/content/app/components/editor/database-sources/BuilderSourceReviewDialog.tsx +543 -204
- package/corpus/templates/content/app/components/editor/extensions/ContentReferenceNode.tsx +82 -0
- package/corpus/templates/content/app/global.css +9 -0
- package/corpus/templates/content/app/hooks/use-content-database.ts +62 -0
- package/corpus/templates/content/app/i18n/zh-TW.ts +76 -0
- package/corpus/templates/content/app/i18n-data.ts +924 -0
- package/corpus/templates/content/changelog/2026-06-29-builder-review-checks-now-preserve-publish-and-unpublish-cho.md +6 -0
- package/corpus/templates/content/changelog/2026-06-29-database-sources-can-now-be-added-as-more-rows-or-matched.md +6 -0
- package/corpus/templates/content/changelog/2026-06-29-fixed-loading-the-final-rows-in-larger-databases-without-bre.md +6 -0
- package/corpus/templates/content/changelog/2026-06-29-reusable-mdx-references-now-preview-linked-local-documents-i.md +6 -0
- package/corpus/templates/content/shared/api.ts +91 -1
- package/corpus/templates/content/shared/builder-docs-blocks.ts +8 -0
- package/corpus/templates/content/shared/builder-mdx.ts +141 -4
- package/corpus/templates/content/shared/nfm.ts +62 -0
- package/corpus/templates/content/vite.config.ts +14 -7
- package/corpus/templates/design/.agents/skills/design-systems/SKILL.md +10 -11
- package/corpus/templates/design/AGENTS.md +5 -0
- package/corpus/templates/design/_gitignore +7 -0
- package/corpus/templates/design/actions/apply-visual-edit.ts +22 -12
- package/corpus/templates/design/actions/create-design-system.ts +15 -4
- package/corpus/templates/design/actions/create-file.ts +20 -1
- package/corpus/templates/design/actions/delete-design-system.ts +2 -2
- package/corpus/templates/design/actions/duplicate-design.ts +35 -9
- package/corpus/templates/design/actions/generate-design.ts +146 -69
- package/corpus/templates/design/actions/generate-screens.ts +51 -19
- package/corpus/templates/design/actions/get-design-snapshot.ts +5 -1
- package/corpus/templates/design/actions/get-design.ts +2 -0
- package/corpus/templates/design/actions/import-design-project.ts +28 -9
- package/corpus/templates/design/actions/import-document.ts +22 -8
- package/corpus/templates/design/actions/index-design-system-with-builder.ts +6 -153
- package/corpus/templates/design/actions/navigate.ts +105 -54
- package/corpus/templates/design/actions/set-default-design-system.ts +17 -3
- package/corpus/templates/design/actions/show-design-questions.ts +2 -0
- package/corpus/templates/design/actions/update-design.ts +2 -1
- package/corpus/templates/design/actions/view-screen.ts +12 -6
- package/corpus/templates/design/app/components/design/CanvasContextMenu.tsx +4 -4
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +159 -41
- package/corpus/templates/design/app/components/design/DesignExtensionsPanel.tsx +8 -4
- package/corpus/templates/design/app/components/design/DrawOverlay.tsx +37 -42
- package/corpus/templates/design/app/components/design/EditPanel.tsx +336 -183
- package/corpus/templates/design/app/components/design/LayersPanel.tsx +153 -34
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +135 -33
- package/corpus/templates/design/app/components/design/QuestionFlow.tsx +6 -0
- package/corpus/templates/design/app/components/design/TweaksPanel.tsx +2 -1
- package/corpus/templates/design/app/components/design/inspector/AlignmentMatrix.tsx +4 -10
- package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +84 -43
- package/corpus/templates/design/app/components/design/inspector/ConstraintsWidget.tsx +4 -4
- package/corpus/templates/design/app/components/design/inspector/{FigmaColorPicker.tsx → DesignColorPicker.tsx} +89 -62
- package/corpus/templates/design/app/components/design/inspector/ExportSettingsPanel.tsx +14 -26
- package/corpus/templates/design/app/components/design/inspector/GradientEditor.tsx +40 -12
- package/corpus/templates/design/app/components/design/inspector/ImageFillControls.tsx +13 -4
- package/corpus/templates/design/app/components/design/inspector/SHADER_INTEGRATION.md +13 -13
- package/corpus/templates/design/app/components/design/inspector/ScrubInput.tsx +13 -9
- package/corpus/templates/design/app/components/design/inspector/ShaderControls.tsx +13 -4
- package/corpus/templates/design/app/components/design/inspector/ShaderFillsPanel.tsx +6 -6
- package/corpus/templates/design/app/components/design/inspector/{figma-icons.tsx → design-icons.tsx} +2 -2
- package/corpus/templates/design/app/components/design/inspector/index.ts +12 -12
- package/corpus/templates/design/app/components/design/inspector/scrub-input-utils.ts +5 -2
- package/corpus/templates/design/app/components/editor/PromptDialog.tsx +3 -3
- package/corpus/templates/design/app/components/layout/Layout.tsx +5 -2
- package/corpus/templates/design/app/components/layout/Sidebar.tsx +1 -1
- package/corpus/templates/design/app/components/visual-editor/CanvasCommentPins.tsx +167 -91
- package/corpus/templates/design/app/components/visual-editor/DrawOverlay.tsx +16 -3
- package/corpus/templates/design/app/components/visual-editor/SaveStatusIndicator.tsx +15 -0
- package/corpus/templates/design/app/global.css +4 -0
- package/corpus/templates/design/app/hooks/use-design-system.ts +4 -1
- package/corpus/templates/design/app/hooks/use-navigation-state.ts +38 -3
- package/corpus/templates/design/app/hooks/useDesignHotkeys.ts +9 -2
- package/corpus/templates/design/app/i18n/zh-TW.ts +22 -0
- package/corpus/templates/design/app/i18n-data.ts +527 -0
- package/corpus/templates/design/app/lib/design-systems.ts +6 -4
- package/corpus/templates/design/app/lib/design-templates.ts +15 -3
- package/corpus/templates/design/app/pages/DesignEditor.tsx +641 -158
- package/corpus/templates/design/app/pages/DesignSystemSetup.tsx +42 -34
- package/corpus/templates/design/app/pages/VisualEdit.tsx +100 -0
- package/corpus/templates/design/app/root.tsx +42 -9
- package/corpus/templates/design/app/routes/visual-edit.tsx +7 -0
- package/corpus/templates/design/changelog/2026-06-28-live-cursors-now-keep-names-beside-a-cleaner-pointer-marker.md +1 -1
- package/corpus/templates/design/changelog/2026-06-28-mode-switching-now-lives-in-a-compact-bottom-right-icon-dock.md +1 -1
- package/corpus/templates/design/changelog/2026-06-28-visual-code-design-mode.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-design-generation-prompts-now-show-connect-ai-before-sending.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-design-mode-top-chrome-now-groups-collaborators-preview-shar.md +1 -1
- package/corpus/templates/design/changelog/2026-06-29-fixed-design-editor-exports-and-gradient-edits-so-multi-scre.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-longer-hosted-agent-turns.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-png-export-handles-modern-css-color-functions-more-reliably.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-png-export-now-ignores-duplicate-clicks-while-a-download-is-.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-public-visual-edit-and-shared-design-links-now-invite-visito.md +6 -0
- package/corpus/templates/design/changelog/2026-06-29-visual-edit-actions-now-reject-missing-design-targets-before.md +6 -0
- package/corpus/templates/design/e2e/README.md +71 -0
- package/corpus/templates/design/e2e/global-setup.ts +157 -0
- package/corpus/templates/design/e2e/helpers.ts +148 -0
- package/corpus/templates/design/netlify.toml +3 -4
- package/corpus/templates/design/package.json +5 -1
- package/corpus/templates/design/playwright.config.ts +51 -0
- package/corpus/templates/design/server/handlers/index-design-system-with-builder.ts +121 -0
- package/corpus/templates/design/server/handlers/uploads.ts +89 -38
- package/corpus/templates/design/server/lib/builder-design-system-proxy.ts +181 -0
- package/corpus/templates/design/server/lib/coding-handoff.ts +33 -4
- package/corpus/templates/design/server/lib/design-export.ts +35 -8
- package/corpus/templates/design/server/plugins/agent-chat.ts +4 -0
- package/corpus/templates/design/server/plugins/auth.ts +10 -1
- package/corpus/templates/design/server/routes/api/index-design-system-with-builder.post.ts +1 -0
- package/corpus/templates/design/shared/api.ts +2 -0
- package/corpus/templates/design/shared/apply-edits.ts +12 -8
- package/corpus/templates/design/shared/canvas-math.ts +19 -1
- package/corpus/templates/design/shared/code-layer.ts +87 -28
- package/corpus/templates/design/shared/generation-session.ts +1 -0
- package/corpus/templates/design/shared/resolve-tweaks.ts +4 -3
- package/corpus/templates/design/shared/shader-presets.ts +10 -0
- package/corpus/templates/design/shared/source-mode.ts +9 -0
- package/corpus/templates/design/vitest.config.ts +2 -1
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +1 -1
- package/corpus/templates/plan/.agents/skills/visual-plan/references/canvas.md +1 -1
- package/corpus/templates/plan/AGENTS.md +1 -1
- package/corpus/templates/plan/actions/create-plan-design.ts +1 -1
- package/corpus/templates/plan/actions/validate-local-plan-source.ts +2 -10
- package/corpus/templates/plan/app/pages/PlansPage.tsx +1 -0
- package/corpus/templates/plan/docs/commenting-ux-plan.md +2 -2
- package/corpus/templates/plan/server/plan-content.ts +1 -1
- package/corpus/templates/plan/server/ui-plan-html.ts +2 -2
- package/corpus/templates/slides/actions/index-design-system-with-builder.ts +6 -153
- package/corpus/templates/slides/app/components/design-system/DesignSystemSetup.tsx +53 -38
- package/corpus/templates/slides/app/components/design-system/{fig-import-response.ts → builder-index-response.ts} +9 -6
- package/corpus/templates/slides/app/components/visual-editor/MultiSelectChip.tsx +1 -1
- package/corpus/templates/slides/changelog/2026-06-29-design-system-setup-now-indexes-uploaded-design-files-throug.md +6 -0
- package/corpus/templates/slides/changelog/2026-06-29-longer-hosted-agent-turns.md +6 -0
- package/corpus/templates/slides/netlify.toml +3 -6
- package/corpus/templates/slides/server/handlers/index-design-system-with-builder.ts +116 -0
- package/corpus/templates/slides/server/lib/builder-design-system-proxy.ts +179 -0
- package/corpus/templates/slides/server/plugins/agent-chat.ts +4 -1
- package/corpus/templates/slides/server/routes/api/index-design-system-with-builder.post.ts +1 -0
- package/dist/action.d.ts +15 -0
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +6 -0
- package/dist/action.js.map +1 -1
- package/dist/agent/durable-background.d.ts +9 -7
- package/dist/agent/durable-background.d.ts.map +1 -1
- package/dist/agent/durable-background.js +27 -11
- package/dist/agent/durable-background.js.map +1 -1
- package/dist/agent/production-agent.d.ts +7 -0
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +4 -1
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/run-loop-with-resume.d.ts +2 -1
- package/dist/agent/run-loop-with-resume.d.ts.map +1 -1
- package/dist/agent/run-loop-with-resume.js +2 -2
- package/dist/agent/run-loop-with-resume.js.map +1 -1
- package/dist/brand-kit/fig/index.d.ts +4 -4
- package/dist/brand-kit/fig/index.d.ts.map +1 -1
- package/dist/brand-kit/fig/index.js +14 -27
- package/dist/brand-kit/fig/index.js.map +1 -1
- package/dist/cli/create.d.ts.map +1 -1
- package/dist/cli/create.js +1 -0
- package/dist/cli/create.js.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp-config-writers.d.ts +15 -7
- package/dist/cli/mcp-config-writers.d.ts.map +1 -1
- package/dist/cli/mcp-config-writers.js +198 -45
- package/dist/cli/mcp-config-writers.js.map +1 -1
- package/dist/cli/skills.d.ts +1 -1
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +18 -3
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +11 -1
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/agent-chat.d.ts.map +1 -1
- package/dist/client/agent-chat.js +15 -2
- package/dist/client/agent-chat.js.map +1 -1
- package/dist/client/composer/PromptComposer.d.ts.map +1 -1
- package/dist/client/composer/PromptComposer.js +35 -1
- package/dist/client/composer/PromptComposer.js.map +1 -1
- package/dist/client/org/OrgSwitcher.js +1 -1
- package/dist/client/org/OrgSwitcher.js.map +1 -1
- package/dist/client/sharing/ShareButton.d.ts +1 -1
- package/dist/client/sharing/ShareButton.d.ts.map +1 -1
- package/dist/client/sharing/ShareButton.js +2 -15
- package/dist/client/sharing/ShareButton.js.map +1 -1
- package/dist/collab/presence.d.ts +1 -1
- package/dist/collab/presence.js +1 -1
- package/dist/collab/presence.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +2 -2
- package/dist/mcp/connect-route.d.ts.map +1 -1
- package/dist/mcp/connect-route.js +34 -5
- package/dist/mcp/connect-route.js.map +1 -1
- package/dist/notifications/routes.d.ts +2 -2
- package/dist/observability/routes.d.ts +8 -8
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/server/action-discovery.d.ts.map +1 -1
- package/dist/server/action-discovery.js +5 -0
- package/dist/server/action-discovery.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts +6 -0
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +12 -3
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/sharing/registry.d.ts.map +1 -1
- package/dist/sharing/registry.js +11 -0
- package/dist/sharing/registry.js.map +1 -1
- package/dist/templates/default/pnpm-workspace.yaml +1 -0
- package/dist/templates/workspace-root/pnpm-workspace.yaml +1 -0
- package/docs/content/locales/ar-SA/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/ar-SA/template-design.mdx +1 -1
- package/docs/content/locales/de-DE/real-time-collaboration.mdx +3 -3
- package/docs/content/locales/de-DE/template-design.mdx +1 -1
- package/docs/content/locales/es-ES/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/es-ES/template-design.mdx +1 -1
- package/docs/content/locales/fr-FR/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/fr-FR/template-design.mdx +1 -1
- package/docs/content/locales/hi-IN/template-design.mdx +1 -1
- package/docs/content/locales/ja-JP/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/ja-JP/template-design.mdx +1 -1
- package/docs/content/locales/ko-KR/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/ko-KR/template-design.mdx +1 -1
- package/docs/content/locales/pt-BR/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/pt-BR/template-design.mdx +1 -1
- package/docs/content/locales/zh-CN/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/zh-CN/template-design.mdx +1 -1
- package/docs/content/locales/zh-TW/real-time-collaboration.mdx +2 -2
- package/docs/content/locales/zh-TW/template-design.mdx +1 -1
- package/docs/content/real-time-collaboration.mdx +2 -2
- package/docs/content/template-design.mdx +1 -1
- package/package.json +3 -7
- package/src/templates/default/pnpm-workspace.yaml +1 -0
- package/src/templates/workspace-root/pnpm-workspace.yaml +1 -0
- package/corpus/core/src/brand-kit/fig/decode.ts +0 -410
- package/corpus/core/src/brand-kit/fig/extract-design-system.ts +0 -947
- package/corpus/core/src/brand-kit/fig/fig-to-html.ts +0 -1906
- package/corpus/templates/design/actions/import-figma.ts +0 -55
- package/corpus/templates/design/changelog/2026-06-28-figma-style-code-design-mode.md +0 -6
- package/corpus/templates/design/server/handlers/import-figma-system.ts +0 -86
- package/corpus/templates/design/server/routes/api/import-figma-system.post.ts +0 -1
- package/corpus/templates/slides/server/handlers/import-figma-system.ts +0 -101
- package/corpus/templates/slides/server/routes/api/import-figma-system.post.ts +0 -1
- package/dist/brand-kit/fig/decode.d.ts +0 -33
- package/dist/brand-kit/fig/decode.d.ts.map +0 -1
- package/dist/brand-kit/fig/decode.js +0 -358
- package/dist/brand-kit/fig/decode.js.map +0 -1
- package/dist/brand-kit/fig/extract-design-system.d.ts +0 -44
- package/dist/brand-kit/fig/extract-design-system.d.ts.map +0 -1
- package/dist/brand-kit/fig/extract-design-system.js +0 -752
- package/dist/brand-kit/fig/extract-design-system.js.map +0 -1
- package/dist/brand-kit/fig/fig-to-html.d.ts +0 -246
- package/dist/brand-kit/fig/fig-to-html.d.ts.map +0 -1
- package/dist/brand-kit/fig/fig-to-html.js +0 -1506
- package/dist/brand-kit/fig/fig-to-html.js.map +0 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Node as TiptapNode,
|
|
3
|
+
NodeViewWrapper,
|
|
4
|
+
ReactNodeViewRenderer,
|
|
5
|
+
mergeAttributes,
|
|
6
|
+
type NodeViewProps,
|
|
7
|
+
} from "@tiptap/react";
|
|
8
|
+
|
|
9
|
+
import { ContentReferencePreview } from "../ContentReferencePreview";
|
|
10
|
+
|
|
11
|
+
function ContentReferenceView({ node, extension }: NodeViewProps) {
|
|
12
|
+
const sourcePath =
|
|
13
|
+
typeof node.attrs.sourcePath === "string" ? node.attrs.sourcePath : null;
|
|
14
|
+
const title = typeof node.attrs.title === "string" ? node.attrs.title : null;
|
|
15
|
+
const currentPath =
|
|
16
|
+
typeof extension.options.currentPath === "string"
|
|
17
|
+
? extension.options.currentPath
|
|
18
|
+
: null;
|
|
19
|
+
const referenceDepth =
|
|
20
|
+
typeof extension.options.referenceDepth === "number"
|
|
21
|
+
? extension.options.referenceDepth
|
|
22
|
+
: 0;
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<NodeViewWrapper
|
|
26
|
+
className="my-4"
|
|
27
|
+
contentEditable={false}
|
|
28
|
+
data-content-reference={sourcePath ?? ""}
|
|
29
|
+
>
|
|
30
|
+
<ContentReferencePreview
|
|
31
|
+
sourcePath={sourcePath}
|
|
32
|
+
currentPath={currentPath}
|
|
33
|
+
title={title}
|
|
34
|
+
referenceDepth={referenceDepth}
|
|
35
|
+
/>
|
|
36
|
+
</NodeViewWrapper>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ContentReferenceNode = TiptapNode.create<{
|
|
41
|
+
currentPath?: string | null;
|
|
42
|
+
referenceDepth?: number;
|
|
43
|
+
}>({
|
|
44
|
+
name: "contentReference",
|
|
45
|
+
group: "block",
|
|
46
|
+
atom: true,
|
|
47
|
+
selectable: true,
|
|
48
|
+
draggable: true,
|
|
49
|
+
|
|
50
|
+
addOptions() {
|
|
51
|
+
return {
|
|
52
|
+
currentPath: null,
|
|
53
|
+
referenceDepth: 0,
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
addAttributes() {
|
|
58
|
+
return {
|
|
59
|
+
sourcePath: { default: "" },
|
|
60
|
+
title: { default: null },
|
|
61
|
+
__raw: { default: "" },
|
|
62
|
+
indent: { default: 0 },
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
parseHTML() {
|
|
67
|
+
return [{ tag: "div[data-content-reference]" }];
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
renderHTML({ HTMLAttributes }) {
|
|
71
|
+
return [
|
|
72
|
+
"div",
|
|
73
|
+
mergeAttributes(HTMLAttributes, {
|
|
74
|
+
"data-content-reference": HTMLAttributes.sourcePath,
|
|
75
|
+
}),
|
|
76
|
+
];
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
addNodeView() {
|
|
80
|
+
return ReactNodeViewRenderer(ContentReferenceView);
|
|
81
|
+
},
|
|
82
|
+
});
|
|
@@ -305,6 +305,15 @@
|
|
|
305
305
|
min-height: 6rem;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
.content-reference-preview .visual-editor-wrapper,
|
|
309
|
+
.content-reference-preview .visual-editor-wrapper .notion-editor {
|
|
310
|
+
min-height: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.content-reference-preview .notion-editor {
|
|
314
|
+
font-size: 0.875rem;
|
|
315
|
+
}
|
|
316
|
+
|
|
308
317
|
.notion-editor > *:first-child {
|
|
309
318
|
margin-top: 0;
|
|
310
319
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { useActionMutation, useActionQuery } from "@agent-native/core/client";
|
|
2
2
|
import type {
|
|
3
|
+
AddContentDatabaseSourceFieldPropertyRequest,
|
|
3
4
|
AddDatabaseItemRequest,
|
|
4
5
|
AttachContentDatabaseSourceRequest,
|
|
5
6
|
BuilderCmsModelsResponse,
|
|
7
|
+
ChangeContentDatabaseSourceRoleRequest,
|
|
6
8
|
ContentDatabaseResponse,
|
|
7
9
|
CreateInlineDatabaseRequest,
|
|
8
10
|
CreateInlineDatabaseResponse,
|
|
@@ -12,6 +14,8 @@ import type {
|
|
|
12
14
|
ContentDatabaseSourceStatusResponse,
|
|
13
15
|
CreateDatabaseRequest,
|
|
14
16
|
DisconnectContentDatabaseSourceRequest,
|
|
17
|
+
ExecuteBuilderSourceBatchRequest,
|
|
18
|
+
ExecuteBuilderSourceBatchResponse,
|
|
15
19
|
DuplicateDatabaseItemRequest,
|
|
16
20
|
ExecuteBuilderSourceExecutionRequest,
|
|
17
21
|
MoveDatabaseItemRequest,
|
|
@@ -300,6 +304,47 @@ export function useAttachContentDatabaseSource(documentId: string) {
|
|
|
300
304
|
});
|
|
301
305
|
}
|
|
302
306
|
|
|
307
|
+
export function useChangeContentDatabaseSourceRole(documentId: string) {
|
|
308
|
+
const queryClient = useQueryClient();
|
|
309
|
+
return useActionMutation<
|
|
310
|
+
ContentDatabaseResponse,
|
|
311
|
+
ChangeContentDatabaseSourceRoleRequest
|
|
312
|
+
>("change-content-database-source-role", {
|
|
313
|
+
onSuccess: () => {
|
|
314
|
+
queryClient.invalidateQueries({
|
|
315
|
+
queryKey: contentDatabaseQueryKey(documentId),
|
|
316
|
+
});
|
|
317
|
+
queryClient.invalidateQueries({
|
|
318
|
+
queryKey: ["action", "get-content-database-source", { documentId }],
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export function useAddContentDatabaseSourceFieldProperty(documentId: string) {
|
|
325
|
+
const queryClient = useQueryClient();
|
|
326
|
+
return useActionMutation<
|
|
327
|
+
ContentDatabaseSourceFieldPropertyResponse,
|
|
328
|
+
AddContentDatabaseSourceFieldPropertyRequest
|
|
329
|
+
>("add-content-database-source-field-property", {
|
|
330
|
+
onSuccess: (data) => {
|
|
331
|
+
queryClient.setQueryData<ContentDatabaseResponse>(
|
|
332
|
+
contentDatabaseQueryKey(documentId),
|
|
333
|
+
(current) => applySourceFieldPropertyToDatabaseResponse(current, data),
|
|
334
|
+
);
|
|
335
|
+
queryClient.invalidateQueries({
|
|
336
|
+
queryKey: contentDatabaseQueryKey(documentId),
|
|
337
|
+
});
|
|
338
|
+
queryClient.invalidateQueries({
|
|
339
|
+
queryKey: ["action", "get-content-database-source", { documentId }],
|
|
340
|
+
});
|
|
341
|
+
queryClient.invalidateQueries({
|
|
342
|
+
queryKey: ["action", "list-document-properties", { documentId }],
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
|
|
303
348
|
export function useBuilderCmsModels(enabled: boolean) {
|
|
304
349
|
return useActionQuery<BuilderCmsModelsResponse>(
|
|
305
350
|
"list-builder-cms-models",
|
|
@@ -465,6 +510,23 @@ export function useExecuteBuilderSourceExecution(documentId: string) {
|
|
|
465
510
|
});
|
|
466
511
|
}
|
|
467
512
|
|
|
513
|
+
export function useExecuteBuilderSourceBatch(documentId: string) {
|
|
514
|
+
const queryClient = useQueryClient();
|
|
515
|
+
return useActionMutation<
|
|
516
|
+
ExecuteBuilderSourceBatchResponse,
|
|
517
|
+
ExecuteBuilderSourceBatchRequest
|
|
518
|
+
>("execute-builder-source-batch", {
|
|
519
|
+
onSuccess: () => {
|
|
520
|
+
queryClient.invalidateQueries({
|
|
521
|
+
queryKey: contentDatabaseQueryKey(documentId),
|
|
522
|
+
});
|
|
523
|
+
queryClient.invalidateQueries({
|
|
524
|
+
queryKey: ["action", "get-content-database-source", { documentId }],
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
|
|
468
530
|
export function useSetContentDatabaseSourceWriteMode(documentId: string) {
|
|
469
531
|
const queryClient = useQueryClient();
|
|
470
532
|
return useActionMutation<
|
|
@@ -142,6 +142,18 @@ const messages = {
|
|
|
142
142
|
"還原會替所有人取代目前內容,且無法復原。不過目前狀態會先儲存為一個版本。",
|
|
143
143
|
versionRestored: "版本已還原。",
|
|
144
144
|
versionSavedAutomatically: "編輯時會自動儲存版本。",
|
|
145
|
+
reference: {
|
|
146
|
+
defaultTitle: "引用",
|
|
147
|
+
empty: "引用的文件是空的。",
|
|
148
|
+
loadError: "無法載入引用的文件。",
|
|
149
|
+
loading: "正在載入引用...",
|
|
150
|
+
missingPath: "引用路徑缺失或不受支援。",
|
|
151
|
+
nestedSkipped: "已略過巢狀引用預覽。",
|
|
152
|
+
notFound: "找不到引用的文件。",
|
|
153
|
+
open: "開啟",
|
|
154
|
+
pathMissing: "引用路徑缺失",
|
|
155
|
+
selfReference: "此引用指向目前文件。",
|
|
156
|
+
},
|
|
145
157
|
media: {
|
|
146
158
|
addAltTextDescription: "新增替代文字來描述該圖片。",
|
|
147
159
|
addAudio: "新增音訊",
|
|
@@ -502,6 +514,69 @@ const messages = {
|
|
|
502
514
|
updated: "Actualizado {{date}}",
|
|
503
515
|
},
|
|
504
516
|
database: {
|
|
517
|
+
addARowTo: "新增列至…",
|
|
518
|
+
addASource: "新增來源",
|
|
519
|
+
aField: "一個欄位",
|
|
520
|
+
addAnotherItemSourceBeforeChangingToDetails:
|
|
521
|
+
"先新增另一個項目來源,再將此來源改為詳細資料。",
|
|
522
|
+
addAsItems: "以項目新增",
|
|
523
|
+
addDetailsInstead: "改為新增詳細資料",
|
|
524
|
+
addDetailsToExistingItems: "為現有項目新增詳細資料",
|
|
525
|
+
addedFieldsFromSource: "已從此來源新增 {{count}} 個欄位。",
|
|
526
|
+
addedOneFieldFromSource: "已從此來源新增 1 個欄位。",
|
|
527
|
+
addingDetails: "正在新增詳細資料",
|
|
528
|
+
addingDetailsMatchedOn: "正在新增以 {{field}} 比對的詳細資料。",
|
|
529
|
+
addingItems: "正在新增項目",
|
|
530
|
+
addingItemsAsRows: "正在將項目新增為此資料庫中的獨立列。",
|
|
531
|
+
addMoreItemsToThisList: "向此清單新增更多項目",
|
|
532
|
+
allAvailableDetailFieldsAlreadyVisible: "所有可用的詳細資料欄位都已顯示。",
|
|
533
|
+
bestWhenSameKindAdditionalRows:
|
|
534
|
+
"適合此集合具有相同類型的記錄,且應顯示為其他列時使用。",
|
|
535
|
+
checkingForMatchingFields: "正在檢查可比對的欄位...",
|
|
536
|
+
checkingHowTheseRecordsMatch: "正在檢查這些記錄如何比對...",
|
|
537
|
+
chooseFields: "選擇欄位",
|
|
538
|
+
pickDetailsBecomeColumns: "選擇哪些詳細資料應成為資料庫欄位。",
|
|
539
|
+
detailFieldsAdded: "已新增詳細資料欄位",
|
|
540
|
+
fieldsWereNotAdded: "未新增欄位",
|
|
541
|
+
recommended: "建議",
|
|
542
|
+
recommendedBecauseSampledRowsMatchOn:
|
|
543
|
+
"建議使用,因為 {{percent}}% 的抽樣列在 {{field}} 上相符。",
|
|
544
|
+
recommendedWhenCollectionDescribesExistingRows:
|
|
545
|
+
"當此集合描述現有列時建議使用。",
|
|
546
|
+
sourceRole: "來源角色",
|
|
547
|
+
localNoCollection: "本機(無集合)",
|
|
548
|
+
liveWritesTestCollectionOnly: "即時寫入僅適用於 Agent Native 測試集合。",
|
|
549
|
+
builderWriteMode: "Builder 寫入模式",
|
|
550
|
+
builderWriteModeUpdated: "已更新 Builder 寫入模式",
|
|
551
|
+
allowPublishUnpublishPerItem: "允許逐項發佈/取消發佈",
|
|
552
|
+
builderChanges: "Builder 變更",
|
|
553
|
+
reviewLocalEditsBeforeBuilder: "在本機編輯到達 Builder 之前進行審查。",
|
|
554
|
+
liveWritesOffStagedForReview: "即時寫入已關閉 — 本機編輯僅暫存以供審查。",
|
|
555
|
+
noPendingChangesEditASourceBackedRow:
|
|
556
|
+
"沒有待處理的變更。編輯來源支援的列以在此排入佇列。",
|
|
557
|
+
reviewChanges: "審查變更",
|
|
558
|
+
recentlyPushed: "最近推送",
|
|
559
|
+
connectABuilderCollectionToMapRows:
|
|
560
|
+
"連接 Builder 集合或其他表格以對應到這些列。",
|
|
561
|
+
noBuilderWrites: "無 Builder 寫入。",
|
|
562
|
+
stageOnly: "僅暫存",
|
|
563
|
+
savesDraftsNeverPublishes: "將草稿儲存到 Builder — 從不發佈。",
|
|
564
|
+
publishUpdates: "發佈更新",
|
|
565
|
+
writesUpdatesToLiveEntries: "將更新寫入即時項目。",
|
|
566
|
+
sourcesFeedingThisColumn: "為此欄供給的來源",
|
|
567
|
+
noSourceFieldsBoundYet: "尚未繫結來源欄位。",
|
|
568
|
+
bindAFieldFromASource: "從來源繫結欄位",
|
|
569
|
+
confirmUnpublish: "確認取消發佈",
|
|
570
|
+
changedInBuilderSinceSync:
|
|
571
|
+
"自您同步以來在 Builder 中已變更 — 推送前請審查。",
|
|
572
|
+
thisUnpublishesTheLiveEntry: "這會取消發佈 Builder 中的即時項目。",
|
|
573
|
+
needsAttentionBeforeFinish: "完成前需要處理",
|
|
574
|
+
noPendingLocalBuilderChanges: "尚無待處理的本機 Builder 變更。",
|
|
575
|
+
needsAttention: "需要處理",
|
|
576
|
+
failedYouCanRetry: "失敗 — 您可以重試",
|
|
577
|
+
needsAFreshReview: "需要重新審查",
|
|
578
|
+
working: "處理中…",
|
|
579
|
+
ready: "就緒",
|
|
505
580
|
addAnotherSource: "新增另一個來源",
|
|
506
581
|
agentNativeApps: "Agent-Native 應用",
|
|
507
582
|
addDatabaseView: "新增資料庫檢視",
|
|
@@ -540,6 +615,7 @@ const messages = {
|
|
|
540
615
|
insertLeft: "在左側插入",
|
|
541
616
|
insertRight: "在右側插入",
|
|
542
617
|
layout: "布局",
|
|
618
|
+
matchExistingItemsToDetails: "將現有項目比對到詳細資料",
|
|
543
619
|
name: "名稱",
|
|
544
620
|
nameColumnMenu: "名稱列選單",
|
|
545
621
|
newBoardGroupName: "新看板分組名稱",
|