@agent-native/core 0.165.4 → 0.167.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/secrets/SKILL.md +5 -1
- package/corpus/templates/analytics/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +93 -56
- package/corpus/templates/analytics/app/i18n-data.ts +23 -20
- package/corpus/templates/analytics/app/pages/Settings.tsx +0 -1
- package/corpus/templates/analytics/app/pages/adhoc/explorer/index.tsx +0 -1
- package/corpus/templates/analytics/app/pages/adhoc/explorer-dashboard/index.tsx +1 -1
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +2 -1
- package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +0 -1
- package/corpus/templates/analytics/server/lib/first-party-analytics-backend.ts +0 -32
- package/corpus/templates/analytics/server/lib/session-replay.ts +1 -5
- package/corpus/templates/assets/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/assets/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/assets/actions/navigate.ts +2 -2
- package/corpus/templates/assets/actions/save-generated-image.ts +0 -5
- package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +2 -262
- package/corpus/templates/assets/app/routes/library.tsx +1 -1
- package/corpus/templates/assets/app/routes/settings.tsx +0 -3
- package/corpus/templates/brain/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/brain/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/brain/actions/ask-brain.ts +0 -1
- package/corpus/templates/brain/actions/navigate.ts +2 -2
- package/corpus/templates/brain/app/routes/sources.tsx +0 -4
- package/corpus/templates/brain/server/lib/capture-sanitization.ts +0 -11
- package/corpus/templates/calendar/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/calendar/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +0 -20
- package/corpus/templates/calendar/app/pages/CalendarView.tsx +0 -1
- package/corpus/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/chat/actions/navigate.ts +2 -2
- package/corpus/templates/clips/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/clips/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/clips/CHANGELOG.md +1 -0
- package/corpus/templates/clips/actions/import-loom-recording.ts +16 -4
- package/corpus/templates/clips/actions/navigate.ts +2 -2
- package/corpus/templates/clips/app/components/editor/stitch-manager.tsx +0 -1
- package/corpus/templates/clips/app/components/library/space-dialogs.tsx +0 -1
- package/corpus/templates/clips/app/components/meetings/share-meeting-dialog.tsx +0 -1
- package/corpus/templates/clips/app/components/player/clips-share-trigger.tsx +17 -0
- package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +3 -3
- package/corpus/templates/clips/app/components/player/video-player.tsx +2 -2
- package/corpus/templates/clips/app/components/recorder/recorder-engine.ts +0 -1
- package/corpus/templates/clips/app/components/settings/ai-setup-section.tsx +0 -1
- package/corpus/templates/clips/app/global.css +31 -0
- package/corpus/templates/clips/app/hooks/use-playback-position.ts +0 -2
- package/corpus/templates/clips/app/lib/download-release-channel.ts +10 -0
- package/corpus/templates/clips/app/routes/_app.meetings.$meetingId.tsx +1 -3
- package/corpus/templates/clips/app/routes/download.tsx +67 -44
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +7 -12
- package/corpus/templates/clips/app/routes/record.tsx +6 -6
- package/corpus/templates/clips/app/routes/share.$shareId.tsx +26 -29
- package/corpus/templates/clips/changelog/2026-08-20-clip-viewer-share-actions.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-20-preparing-recording-countdown-overlay.md +1 -0
- package/corpus/templates/clips/chrome-extension/src/background.ts +0 -13
- package/corpus/templates/clips/chrome-extension/src/overlay.ts +0 -1
- package/corpus/templates/clips/chrome-extension/src/popup.ts +0 -20
- package/corpus/templates/clips/desktop/src/app.tsx +6 -18
- package/corpus/templates/clips/desktop/src/hooks/useMediaDevices.ts +0 -1
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +0 -8
- package/corpus/templates/content/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/content/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/content/actions/_database-source-utils.ts +0 -3
- package/corpus/templates/content/actions/attach-content-database-source.ts +1 -4
- package/corpus/templates/content/actions/navigate.ts +2 -2
- package/corpus/templates/content/actions/prepare-builder-source-execution.ts +1 -1
- package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +0 -6
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +0 -580
- package/corpus/templates/content/app/components/editor/database/FormView.tsx +2 -2
- package/corpus/templates/content/app/components/editor/database/filter-sort.ts +1 -1
- package/corpus/templates/content/app/components/editor/database/settings.tsx +0 -23
- package/corpus/templates/content/app/components/editor/database/sidebar.tsx +0 -1
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +8 -304
- package/corpus/templates/content/app/hooks/use-documents.ts +0 -1
- package/corpus/templates/content/shared/api.ts +0 -1
- package/corpus/templates/content/shared/builder-mdx.ts +0 -1
- package/corpus/templates/content/shared/nfm.ts +1 -7
- package/corpus/templates/crm/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/crm/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/crm/actions/merge-crm-records.ts +0 -4
- package/corpus/templates/crm/app/components/crm/record/RecordLists.tsx +0 -1
- package/corpus/templates/crm/server/crm/hubspot-adapter.ts +0 -1
- package/corpus/templates/crm/server/crm/salesforce-adapter.ts +0 -1
- package/corpus/templates/crm/server/db/crm-store.ts +1 -1
- package/corpus/templates/design/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/design/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +1 -14
- package/corpus/templates/design/AGENTS.md +2 -1
- package/corpus/templates/design/actions/apply-component-prop-edit.ts +1 -5
- package/corpus/templates/design/actions/generate-design.ts +0 -1
- package/corpus/templates/design/actions/generate-screens.ts +5 -2
- package/corpus/templates/design/actions/go-to-main-component.ts +2 -2
- package/corpus/templates/design/actions/list-design-systems.ts +10 -0
- package/corpus/templates/design/actions/navigate.ts +2 -2
- package/corpus/templates/design/actions/open-component-source.ts +4 -4
- package/corpus/templates/design/actions/present-design-variants.ts +1 -2
- package/corpus/templates/design/actions/run-design-audit.ts +0 -22
- package/corpus/templates/design/actions/show-design-questions.ts +5 -2
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +19 -8
- package/corpus/templates/design/app/components/design/EditPanel.tsx +11 -183
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +21 -4
- package/corpus/templates/design/app/components/design/QuestionFlow.tsx +1 -5
- package/corpus/templates/design/app/components/design/bridge/codegen.ts +1 -1
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +10 -19
- package/corpus/templates/design/app/components/design/edit-panel/appearance-properties.tsx +1 -1
- package/corpus/templates/design/app/components/design/edit-panel/layout-properties.tsx +13 -3
- package/corpus/templates/design/app/components/design/edit-panel/panel-primitives.tsx +38 -32
- package/corpus/templates/design/app/components/design/edit-panel/position-layout-properties.tsx +1 -4
- package/corpus/templates/design/app/components/design/inspector/AlignmentMatrix.tsx +0 -4
- package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +15 -6
- package/corpus/templates/design/app/components/design/inspector/DesignColorPicker.tsx +2 -2
- package/corpus/templates/design/app/components/visual-editor/NodeRewriteProposal.tsx +0 -1
- package/corpus/templates/design/app/components/visual-editor/ReviewCanvasPins.tsx +1 -1
- package/corpus/templates/design/app/i18n-data.ts +122 -0
- package/corpus/templates/design/app/lib/clipboard-content-lineage.ts +11 -1
- package/corpus/templates/design/app/pages/DesignEditor.tsx +50 -254
- package/corpus/templates/design/app/pages/DesignSystemSetup.tsx +163 -8
- package/corpus/templates/design/app/pages/Index.tsx +17 -0
- package/corpus/templates/design/app/pages/design-editor/canvas-primitive-insert.ts +44 -32
- package/corpus/templates/design/app/pages/design-editor/canvas-primitives.ts +10 -0
- package/corpus/templates/design/app/pages/design-editor/clone-and-pen-edit.ts +49 -3
- package/corpus/templates/design/app/pages/design-editor/clone-idrefs.ts +31 -0
- package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +28 -0
- package/corpus/templates/design/app/pages/design-editor/commands/add-auto-layout.ts +3 -3
- package/corpus/templates/design/app/pages/design-editor/commands/align-selection.ts +44 -14
- package/corpus/templates/design/app/pages/design-editor/commands/apply-local-content-update.ts +16 -5
- package/corpus/templates/design/app/pages/design-editor/commands/change-selected-z-index.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/frame-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/group-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/nudge-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/paste-selection.ts +142 -17
- package/corpus/templates/design/app/pages/design-editor/commands/screen-visual-duplicate-change.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/commands/ungroup-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/visual-duplicate-change.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/cross-screen-text-color.ts +25 -9
- package/corpus/templates/design/app/pages/design-editor/editor-state.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/measure-child-rects.ts +83 -0
- package/corpus/templates/design/app/pages/design-editor/paste-placement.ts +66 -0
- package/corpus/templates/design/server/routes/[...page].get.ts +0 -1
- package/corpus/templates/design/shared/code-layer.ts +120 -70
- package/corpus/templates/design/shared/design-surface-index.ts +0 -1
- package/corpus/templates/design/shared/pen-path.ts +0 -4
- package/corpus/templates/dispatch/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/dispatch/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/dispatch/app/routes/integrations.tsx +0 -109
- package/corpus/templates/factory/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/factory/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/factory/actions/navigate.ts +2 -2
- package/corpus/templates/factory/app/components/factory/FactoryAuditView.tsx +0 -13
- package/corpus/templates/factory/app/routes/factory.tsx +0 -1
- package/corpus/templates/factory/server/factory-graph/store.ts +0 -1
- package/corpus/templates/forms/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/forms/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/macros/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/macros/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/macros/app/components/layout/AppLayout.tsx +0 -1
- package/corpus/templates/mail/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/mail/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/mail/app/components/email/EmailList.tsx +0 -1
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +2 -2
- package/corpus/templates/mail/shared/markdown.ts +3 -0
- package/corpus/templates/plan/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/plan/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/slides/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/slides/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/slides/actions/add-slide.ts +0 -1
- package/corpus/templates/slides/actions/list-decks.ts +1 -1
- package/corpus/templates/slides/app/components/editor/EditorSidebar.tsx +1 -4
- package/corpus/templates/slides/app/components/editor/SlideContextToolbar.tsx +0 -1
- package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +1 -1
- package/corpus/templates/slides/app/pages/DeckEditor.tsx +1 -6
- package/corpus/templates/tasks/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/tasks/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/tasks/app/components/layout/Layout.tsx +0 -1
- package/corpus/templates/tasks/app/hooks/use-visible-task-fields.ts +1 -4
- package/corpus/templates/tasks/server/custom-fields/store.ts +1 -6
- package/corpus/templates/tasks/shared/list-screen-snapshot.ts +2 -2
- package/dist/agent/engine/registry.js +27 -14
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/production-agent.d.ts +19 -6
- package/dist/agent/production-agent.js +57 -16
- package/dist/agent/types.d.ts +3 -0
- package/dist/client/EnvironmentBadge.d.ts +1 -0
- package/dist/client/EnvironmentBadge.js +7 -0
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/routes.d.ts +1 -1
- package/dist/config.d.ts +11 -0
- package/dist/config.js +248 -0
- package/dist/deploy/build.js +12 -1
- package/dist/index.d.ts +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/observability/routes.d.ts +2 -2
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +2 -2
- package/dist/server/agent-chat/plugin-options.d.ts +3 -2
- package/dist/server/agent-chat-plugin.js +5 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/dist/templates/chat/actions/navigate.ts +2 -2
- package/dist/templates/default/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/default/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/dist/templates/headless/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/workspace-core/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/workspace-core/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/dist/vite/agent-native-config-loader.d.ts +1 -0
- package/dist/vite/agent-native-config-loader.js +3 -3
- package/dist/vite/agents-bundle-plugin.d.ts +1 -1
- package/dist/vite/agents-bundle-plugin.js +13 -1
- package/dist/vite/client.js +14 -14
- package/docs/content/agent-native-config.mdx +62 -11
- package/docs/content/agent-surfaces.mdx +6 -0
- package/docs/content/environment-variables.mdx +5 -2
- package/package.json +3 -3
- package/src/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/src/templates/chat/actions/navigate.ts +2 -2
- package/src/templates/default/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/default/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/src/templates/headless/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/workspace-core/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/workspace-core/.agents/skills/workspace-conventions/SKILL.md +4 -1
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseCssColor,
|
|
3
|
-
rgbaToCss,
|
|
4
|
-
withColorOpacity,
|
|
5
|
-
} from "@shared/color-utils";
|
|
1
|
+
import { parseCssColor } from "@shared/color-utils";
|
|
6
2
|
import { IconChevronDown, IconChevronRight } from "@tabler/icons-react";
|
|
7
|
-
import { useEffect, useRef, useState, type ReactNode } from "react";
|
|
3
|
+
import { Children, useEffect, useRef, useState, type ReactNode } from "react";
|
|
8
4
|
|
|
9
5
|
import { Input } from "@/components/ui/input";
|
|
10
6
|
import { Label } from "@/components/ui/label";
|
|
@@ -28,7 +24,6 @@ import type { DesignPaintType } from "../inspector/DesignColorPicker";
|
|
|
28
24
|
import type { GlslShaderPanelContext } from "../inspector/GlslShaderPanel";
|
|
29
25
|
import {
|
|
30
26
|
buildGradientLayer,
|
|
31
|
-
defaultGradientLayer,
|
|
32
27
|
defaultGradientStops,
|
|
33
28
|
fillLayerId,
|
|
34
29
|
fillLayerIndex,
|
|
@@ -654,8 +649,9 @@ export function PropSlider({
|
|
|
654
649
|
|
|
655
650
|
/**
|
|
656
651
|
* design-editor inspector section: divider above, title left, actions right.
|
|
657
|
-
*
|
|
658
|
-
*
|
|
652
|
+
* The chevron appears only when there is content, so a collapsed section is
|
|
653
|
+
* never mistaken for an empty one — and an empty section offers no control
|
|
654
|
+
* that does nothing.
|
|
659
655
|
*/
|
|
660
656
|
export function PanelSection({
|
|
661
657
|
title,
|
|
@@ -669,41 +665,51 @@ export function PanelSection({
|
|
|
669
665
|
defaultCollapsed?: boolean;
|
|
670
666
|
}) {
|
|
671
667
|
const [collapsed, setCollapsed] = useState(defaultCollapsed);
|
|
668
|
+
const hasContent = Children.toArray(children).length > 0;
|
|
669
|
+
const heading = (
|
|
670
|
+
<h3 className="min-w-0 flex-1 truncate !text-[11px] font-semibold text-foreground">
|
|
671
|
+
{title}
|
|
672
|
+
</h3>
|
|
673
|
+
);
|
|
672
674
|
|
|
673
675
|
return (
|
|
674
676
|
<section className="shrink-0 border-t border-[var(--design-editor-control-border)] first:border-t-0">
|
|
675
677
|
<div className="flex min-h-9 items-center gap-2 px-3">
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
{
|
|
689
|
-
</
|
|
690
|
-
|
|
678
|
+
{hasContent ? (
|
|
679
|
+
<button
|
|
680
|
+
type="button"
|
|
681
|
+
className="flex min-w-0 flex-1 cursor-pointer items-center gap-1 bg-transparent text-left"
|
|
682
|
+
onClick={() => setCollapsed((c) => !c)}
|
|
683
|
+
aria-expanded={!collapsed}
|
|
684
|
+
>
|
|
685
|
+
{collapsed ? (
|
|
686
|
+
<IconChevronRight className="size-3 shrink-0 text-muted-foreground/50 rtl:-scale-x-100" />
|
|
687
|
+
) : (
|
|
688
|
+
<IconChevronDown className="size-3 shrink-0 text-muted-foreground/50" />
|
|
689
|
+
)}
|
|
690
|
+
{heading}
|
|
691
|
+
</button>
|
|
692
|
+
) : (
|
|
693
|
+
<div className="flex min-w-0 flex-1 items-center gap-1 pl-4">
|
|
694
|
+
{heading}
|
|
695
|
+
</div>
|
|
696
|
+
)}
|
|
691
697
|
{actions ? (
|
|
692
698
|
<div className="flex shrink-0 items-center gap-0.5">{actions}</div>
|
|
693
699
|
) : null}
|
|
694
700
|
</div>
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
+
{hasContent ? (
|
|
702
|
+
<div
|
|
703
|
+
className="grid transition-[grid-template-rows] duration-200 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none"
|
|
704
|
+
style={{ gridTemplateRows: collapsed ? "0fr" : "1fr" }}
|
|
705
|
+
>
|
|
706
|
+
<div className="overflow-hidden">
|
|
701
707
|
<div className="space-y-1.5 px-3 pb-3 pt-0.5 !text-[11px]">
|
|
702
708
|
{children}
|
|
703
709
|
</div>
|
|
704
|
-
|
|
710
|
+
</div>
|
|
705
711
|
</div>
|
|
706
|
-
|
|
712
|
+
) : null}
|
|
707
713
|
</section>
|
|
708
714
|
);
|
|
709
715
|
}
|
package/corpus/templates/design/app/components/design/edit-panel/position-layout-properties.tsx
CHANGED
|
@@ -39,10 +39,7 @@ import {
|
|
|
39
39
|
type ScrubInputChangeMeta,
|
|
40
40
|
} from "../inspector";
|
|
41
41
|
import type { ElementInfo } from "../types";
|
|
42
|
-
import {
|
|
43
|
-
AppearanceScrubField,
|
|
44
|
-
CornerRadiusControl,
|
|
45
|
-
} from "./appearance-properties";
|
|
42
|
+
import { AppearanceScrubField } from "./appearance-properties";
|
|
46
43
|
import {
|
|
47
44
|
commitStylePatch,
|
|
48
45
|
FieldTrailer,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { ComponentType } from "react";
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
Tooltip,
|
|
5
3
|
TooltipContent,
|
|
@@ -41,8 +39,6 @@ export interface AlignmentMatrixProps {
|
|
|
41
39
|
direction?: FlowDirection;
|
|
42
40
|
}
|
|
43
41
|
|
|
44
|
-
type MatrixIcon = ComponentType<{ className?: string }>;
|
|
45
|
-
|
|
46
42
|
const DEFAULT_LABELS: AlignmentMatrixLabels = {
|
|
47
43
|
title: "Align", // i18n-ignore fallback component label
|
|
48
44
|
alignTopLeft: "Align top left", // i18n-ignore fallback component label
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconArrowBackUp } from "@tabler/icons-react";
|
|
2
|
-
import { type ReactNode
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
import { Button } from "@/components/ui/button";
|
|
5
5
|
import { Checkbox } from "@/components/ui/checkbox";
|
|
@@ -379,6 +379,13 @@ export function AutoLayoutMatrix({
|
|
|
379
379
|
);
|
|
380
380
|
|
|
381
381
|
const activeFlow = getFlowOption(value);
|
|
382
|
+
const activeFlowLabel = {
|
|
383
|
+
normal: "Normal flow" /* i18n-ignore design inspector label */,
|
|
384
|
+
vertical: copy.vertical,
|
|
385
|
+
horizontal: copy.horizontal,
|
|
386
|
+
grid: "Grid" /* i18n-ignore design inspector label */,
|
|
387
|
+
mixed: "Mixed" /* i18n-ignore design mixed value */,
|
|
388
|
+
}[activeFlow];
|
|
382
389
|
const isBlock = activeFlow === "normal";
|
|
383
390
|
|
|
384
391
|
/** Apply a flow choice, coordinating display + direction + wrap. */
|
|
@@ -414,11 +421,13 @@ export function AutoLayoutMatrix({
|
|
|
414
421
|
<ControlLabel>
|
|
415
422
|
{"Flow" /* i18n-ignore design inspector label */}
|
|
416
423
|
</ControlLabel>
|
|
417
|
-
{
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
424
|
+
{/* The icon highlight alone does not say which flow is active,
|
|
425
|
+
so a Tailwind-named layer reads as "flex" and nothing else. */}
|
|
426
|
+
<span className="!text-[11px] text-muted-foreground">
|
|
427
|
+
{value.flowMixed
|
|
428
|
+
? "Mixed" /* i18n-ignore design mixed value */
|
|
429
|
+
: activeFlowLabel}
|
|
430
|
+
</span>
|
|
422
431
|
</div>
|
|
423
432
|
<div className="flex items-center gap-1.5">
|
|
424
433
|
{/* 4-segment flow bar: normal / vertical / horizontal / grid */}
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
parseImageFillCss,
|
|
62
62
|
type ImageFillValue,
|
|
63
63
|
} from "./ImageFillControls";
|
|
64
|
-
import { ShaderFillsPanel
|
|
64
|
+
import { ShaderFillsPanel } from "./ShaderFillsPanel";
|
|
65
65
|
|
|
66
66
|
// ─── Public types ──────────────────────────────────────────────────────────────
|
|
67
67
|
|
|
@@ -716,7 +716,7 @@ export function DesignColorPicker({
|
|
|
716
716
|
const copy = { ...DEFAULT_LABELS, ...labels };
|
|
717
717
|
const color = parseCssColorExtended(value) ?? FALLBACK_COLOR;
|
|
718
718
|
const hsv = rgbaToHsv(color);
|
|
719
|
-
|
|
719
|
+
|
|
720
720
|
const effectiveOpacity = opacity ?? alphaToOpacity(color.a);
|
|
721
721
|
const blendModeValue = BLEND_MODE_OPTIONS.some(
|
|
722
722
|
(option) => option.value === blendMode,
|
|
@@ -1478,6 +1478,9 @@ const enUS = {
|
|
|
1478
1478
|
continue: "Continue to generation",
|
|
1479
1479
|
starting: "Starting...",
|
|
1480
1480
|
githubIndexStarted: "GitHub indexing started",
|
|
1481
|
+
designMdIndexStarted: "design.md indexing started",
|
|
1482
|
+
designMdUpload: "Upload design.md",
|
|
1483
|
+
designMdHelp: "Import design.md guidance into Builder DSI",
|
|
1481
1484
|
title: "Set up your design system",
|
|
1482
1485
|
description:
|
|
1483
1486
|
"Connect Figma, code, and optional design.md guidance through Builder DSI. More context gives the agent a more accurate system.",
|
|
@@ -1542,6 +1545,11 @@ const enUS = {
|
|
|
1542
1545
|
"Use a full GitHub repository URL, like https://github.com/org/repo.",
|
|
1543
1546
|
githubIndex:
|
|
1544
1547
|
"Could not start GitHub indexing. Check your Builder connection and repository access.",
|
|
1548
|
+
chooseDesignMd: "Please choose a design.md or design.mdx file.",
|
|
1549
|
+
readDesignMd: "Could not read the design.md file.",
|
|
1550
|
+
designMdTooLarge: "design.md must be 2 MB or smaller.",
|
|
1551
|
+
designMdIndex:
|
|
1552
|
+
"Could not start design.md indexing. Check your Builder connection.",
|
|
1545
1553
|
noSources: "Add at least one source before generating a design system.",
|
|
1546
1554
|
},
|
|
1547
1555
|
sections: {
|
|
@@ -1559,6 +1567,10 @@ const enUS = {
|
|
|
1559
1567
|
description:
|
|
1560
1568
|
"GitHub repos, local source files, and optional design.md guidance for Builder DSI",
|
|
1561
1569
|
},
|
|
1570
|
+
designMd: {
|
|
1571
|
+
title: "Import design.md",
|
|
1572
|
+
description: "Use a design.md file as the design system source",
|
|
1573
|
+
},
|
|
1562
1574
|
designFiles: {
|
|
1563
1575
|
title: "Reference files",
|
|
1564
1576
|
description: "Documents, screenshots, logos, fonts, and brand assets",
|
|
@@ -1960,6 +1972,9 @@ const designLocaleOverrides = {
|
|
|
1960
1972
|
continue: "继续生成",
|
|
1961
1973
|
starting: "正在启动…",
|
|
1962
1974
|
githubIndexStarted: "GitHub 索引已开始",
|
|
1975
|
+
designMdIndexStarted: "design.md 索引已开始",
|
|
1976
|
+
designMdUpload: "上传 design.md",
|
|
1977
|
+
designMdHelp: "将 design.md 指引导入 Builder DSI",
|
|
1963
1978
|
title: "设置您的设计系统",
|
|
1964
1979
|
description:
|
|
1965
1980
|
"通过 Builder DSI 连接 Figma、代码和可选的 design.md 指引。上下文越多,代理得到的系统越准确。",
|
|
@@ -2016,6 +2031,10 @@ const designLocaleOverrides = {
|
|
|
2016
2031
|
"使用完整的 GitHub 存储库 URL,例如 https://github.com/org/repo。",
|
|
2017
2032
|
githubIndex:
|
|
2018
2033
|
"无法启动 GitHub 索引。请检查 Builder 连接和仓库访问权限。",
|
|
2034
|
+
chooseDesignMd: "请选择 design.md 或 design.mdx 文件。",
|
|
2035
|
+
readDesignMd: "无法读取 design.md 文件。",
|
|
2036
|
+
designMdTooLarge: "design.md 必须不超过 2 MB。",
|
|
2037
|
+
designMdIndex: "无法启动 design.md 索引。请检查 Builder 连接。",
|
|
2019
2038
|
noSources: "在生成设计系统之前至少添加一个源。",
|
|
2020
2039
|
},
|
|
2021
2040
|
sections: {
|
|
@@ -2033,6 +2052,10 @@ const designLocaleOverrides = {
|
|
|
2033
2052
|
description:
|
|
2034
2053
|
"GitHub 存储库、本地代码文件或 design.md 会交给 Builder DSI 索引。",
|
|
2035
2054
|
},
|
|
2055
|
+
designMd: {
|
|
2056
|
+
title: "导入 design.md",
|
|
2057
|
+
description: "使用 design.md 文件作为设计系统来源",
|
|
2058
|
+
},
|
|
2036
2059
|
designFiles: {
|
|
2037
2060
|
title: "参考文件",
|
|
2038
2061
|
description: "文档、截图和品牌资产会补充 Builder DSI 的索引上下文",
|
|
@@ -2376,6 +2399,9 @@ const designLocaleOverrides = {
|
|
|
2376
2399
|
continue: "continuar con la generación",
|
|
2377
2400
|
starting: "Iniciando…",
|
|
2378
2401
|
githubIndexStarted: "La indexación de GitHub ha comenzado",
|
|
2402
|
+
designMdIndexStarted: "La indexación de design.md ha comenzado",
|
|
2403
|
+
designMdUpload: "Importar design.md",
|
|
2404
|
+
designMdHelp: "Importa las directrices de design.md a Builder DSI",
|
|
2379
2405
|
title: "Configure su sistema de diseño",
|
|
2380
2406
|
description:
|
|
2381
2407
|
"Conecta Figma, código y guía opcional de design.md mediante Builder DSI. Más contexto le da al agente un sistema más preciso.",
|
|
@@ -2442,6 +2468,11 @@ const designLocaleOverrides = {
|
|
|
2442
2468
|
"Utilice un repositorio GitHub completo URL, como https://github.com/org/repo.",
|
|
2443
2469
|
githubIndex:
|
|
2444
2470
|
"No se pudo iniciar la indexación de GitHub. Comprueba la conexión de Builder y el acceso al repositorio.",
|
|
2471
|
+
chooseDesignMd: "Elija un archivo design.md o design.mdx.",
|
|
2472
|
+
readDesignMd: "No se pudo leer el archivo design.md.",
|
|
2473
|
+
designMdTooLarge: "design.md debe tener un tamaño máximo de 2 MB.",
|
|
2474
|
+
designMdIndex:
|
|
2475
|
+
"No se pudo iniciar la indexación de design.md. Comprueba la conexión de Builder.",
|
|
2445
2476
|
noSources:
|
|
2446
2477
|
"Agregue al menos una fuente antes de generar un sistema de diseño.",
|
|
2447
2478
|
},
|
|
@@ -2460,6 +2491,11 @@ const designLocaleOverrides = {
|
|
|
2460
2491
|
description:
|
|
2461
2492
|
"Repositorios de GitHub, archivos de código locales o design.md se indexan con Builder DSI.",
|
|
2462
2493
|
},
|
|
2494
|
+
designMd: {
|
|
2495
|
+
title: "Importar design.md",
|
|
2496
|
+
description:
|
|
2497
|
+
"Usa un archivo design.md como fuente del sistema de diseño",
|
|
2498
|
+
},
|
|
2463
2499
|
designFiles: {
|
|
2464
2500
|
title: "Archivos de referencia",
|
|
2465
2501
|
description:
|
|
@@ -2814,6 +2850,9 @@ const designLocaleOverrides = {
|
|
|
2814
2850
|
continue: "Continuer jusqu'à la génération",
|
|
2815
2851
|
starting: "Démarrage…",
|
|
2816
2852
|
githubIndexStarted: "L’indexation GitHub a démarré",
|
|
2853
|
+
designMdIndexStarted: "L’indexation de design.md a démarré",
|
|
2854
|
+
designMdUpload: "Importer design.md",
|
|
2855
|
+
designMdHelp: "Importez les consignes design.md dans Builder DSI",
|
|
2817
2856
|
title: "Configurez votre système de conception",
|
|
2818
2857
|
description:
|
|
2819
2858
|
"Connectez Figma, le code et les consignes design.md facultatives via Builder DSI. Plus le contexte est riche, plus le système de l’agent est précis.",
|
|
@@ -2881,6 +2920,11 @@ const designLocaleOverrides = {
|
|
|
2881
2920
|
"Utilisez un référentiel GitHub complet URL, comme https://github.com/org/repo.",
|
|
2882
2921
|
githubIndex:
|
|
2883
2922
|
"Impossible de démarrer l’indexation GitHub. Vérifiez la connexion à Builder et l’accès au dépôt.",
|
|
2923
|
+
chooseDesignMd: "Veuillez choisir un fichier design.md ou design.mdx.",
|
|
2924
|
+
readDesignMd: "Impossible de lire le fichier design.md.",
|
|
2925
|
+
designMdTooLarge: "design.md doit faire 2 Mo ou moins.",
|
|
2926
|
+
designMdIndex:
|
|
2927
|
+
"Impossible de démarrer l’indexation de design.md. Vérifiez la connexion à Builder.",
|
|
2884
2928
|
noSources:
|
|
2885
2929
|
"Ajoutez au moins une source avant de générer un système de conception.",
|
|
2886
2930
|
},
|
|
@@ -2899,6 +2943,11 @@ const designLocaleOverrides = {
|
|
|
2899
2943
|
description:
|
|
2900
2944
|
"Les dépôts GitHub, fichiers de code locaux ou design.md sont indexés par Builder DSI.",
|
|
2901
2945
|
},
|
|
2946
|
+
designMd: {
|
|
2947
|
+
title: "Importer design.md",
|
|
2948
|
+
description:
|
|
2949
|
+
"Utilisez un fichier design.md comme source du système de conception",
|
|
2950
|
+
},
|
|
2902
2951
|
designFiles: {
|
|
2903
2952
|
title: "Fichiers de référence",
|
|
2904
2953
|
description:
|
|
@@ -3253,6 +3302,9 @@ const designLocaleOverrides = {
|
|
|
3253
3302
|
continue: "Weiter zur Generation",
|
|
3254
3303
|
starting: "Wird gestartet…",
|
|
3255
3304
|
githubIndexStarted: "GitHub-Indizierung gestartet",
|
|
3305
|
+
designMdIndexStarted: "design.md-Indizierung gestartet",
|
|
3306
|
+
designMdUpload: "design.md importieren",
|
|
3307
|
+
designMdHelp: "design.md-Anweisungen in Builder DSI importieren",
|
|
3256
3308
|
title: "Richten Sie Ihr Designsystem ein",
|
|
3257
3309
|
description:
|
|
3258
3310
|
"Verbinde Figma, Code und optionale design.md-Anweisungen über Builder DSI. Mehr Kontext gibt dem Agenten ein genaueres System.",
|
|
@@ -3321,6 +3373,11 @@ const designLocaleOverrides = {
|
|
|
3321
3373
|
"Verwenden Sie ein vollständiges GitHub-Repository URL, wie https://github.com/org/repo.",
|
|
3322
3374
|
githubIndex:
|
|
3323
3375
|
"GitHub-Indizierung konnte nicht gestartet werden. Prüfe die Builder-Verbindung und den Repository-Zugriff.",
|
|
3376
|
+
chooseDesignMd: "Wählen Sie eine design.md- oder design.mdx-Datei aus.",
|
|
3377
|
+
readDesignMd: "Die design.md-Datei konnte nicht gelesen werden.",
|
|
3378
|
+
designMdTooLarge: "design.md darf höchstens 2 MB groß sein.",
|
|
3379
|
+
designMdIndex:
|
|
3380
|
+
"Die design.md-Indizierung konnte nicht gestartet werden. Prüfen Sie die Builder-Verbindung.",
|
|
3324
3381
|
noSources:
|
|
3325
3382
|
"Fügen Sie mindestens eine Quelle hinzu, bevor Sie ein Designsystem erstellen.",
|
|
3326
3383
|
},
|
|
@@ -3339,6 +3396,11 @@ const designLocaleOverrides = {
|
|
|
3339
3396
|
description:
|
|
3340
3397
|
"GitHub-Repositories, lokale Code-Dateien oder design.md werden mit Builder DSI indexiert.",
|
|
3341
3398
|
},
|
|
3399
|
+
designMd: {
|
|
3400
|
+
title: "design.md importieren",
|
|
3401
|
+
description:
|
|
3402
|
+
"Eine design.md-Datei als Quelle für das Designsystem verwenden",
|
|
3403
|
+
},
|
|
3342
3404
|
designFiles: {
|
|
3343
3405
|
title: "Referenzdateien",
|
|
3344
3406
|
description:
|
|
@@ -3691,6 +3753,9 @@ const designLocaleOverrides = {
|
|
|
3691
3753
|
continue: "世代を継続する",
|
|
3692
3754
|
starting: "開始中…",
|
|
3693
3755
|
githubIndexStarted: "GitHub のインデックス作成を開始しました",
|
|
3756
|
+
designMdIndexStarted: "design.md のインデックス作成を開始しました",
|
|
3757
|
+
designMdUpload: "design.md をインポート",
|
|
3758
|
+
designMdHelp: "design.md ガイドを Builder DSI にインポートします",
|
|
3694
3759
|
title: "デザインシステムをセットアップする",
|
|
3695
3760
|
description:
|
|
3696
3761
|
"Figma、コード、任意の design.md ガイドを Builder DSI で接続します。コンテキストが多いほど、エージェントのシステムは正確になります。",
|
|
@@ -3757,6 +3822,12 @@ const designLocaleOverrides = {
|
|
|
3757
3822
|
"https://github.com/org/repo など、完全な GitHub リポジトリ URL を使用します。",
|
|
3758
3823
|
githubIndex:
|
|
3759
3824
|
"GitHub のインデックス作成を開始できませんでした。Builder の接続とリポジトリへのアクセスを確認してください。",
|
|
3825
|
+
chooseDesignMd:
|
|
3826
|
+
"design.md または design.mdx ファイルを選択してください。",
|
|
3827
|
+
readDesignMd: "design.md ファイルを読み込めませんでした。",
|
|
3828
|
+
designMdTooLarge: "design.md は 2 MB 以下にしてください。",
|
|
3829
|
+
designMdIndex:
|
|
3830
|
+
"design.md のインデックス作成を開始できませんでした。Builder の接続を確認してください。",
|
|
3760
3831
|
noSources:
|
|
3761
3832
|
"デザイン システムを生成する前に、少なくとも 1 つのソースを追加します。",
|
|
3762
3833
|
},
|
|
@@ -3775,6 +3846,10 @@ const designLocaleOverrides = {
|
|
|
3775
3846
|
description:
|
|
3776
3847
|
"GitHub リポジトリ、ローカルコードファイル、design.md は Builder DSI でインデックス化されます。",
|
|
3777
3848
|
},
|
|
3849
|
+
designMd: {
|
|
3850
|
+
title: "design.md をインポート",
|
|
3851
|
+
description: "design.md ファイルをデザインシステムのソースとして使用",
|
|
3852
|
+
},
|
|
3778
3853
|
designFiles: {
|
|
3779
3854
|
title: "参照ファイル",
|
|
3780
3855
|
description:
|
|
@@ -4124,6 +4199,9 @@ const designLocaleOverrides = {
|
|
|
4124
4199
|
continue: "세대를 이어가다",
|
|
4125
4200
|
starting: "시작 중…",
|
|
4126
4201
|
githubIndexStarted: "GitHub 인덱싱이 시작되었습니다",
|
|
4202
|
+
designMdIndexStarted: "design.md 인덱싱이 시작되었습니다",
|
|
4203
|
+
designMdUpload: "design.md 가져오기",
|
|
4204
|
+
designMdHelp: "design.md 지침을 Builder DSI로 가져오기",
|
|
4127
4205
|
title: "디자인 시스템 설정",
|
|
4128
4206
|
description:
|
|
4129
4207
|
"Figma, 코드, 선택적 design.md 지침을 Builder DSI로 연결하세요. 맥락이 많을수록 에이전트의 시스템이 더 정확해집니다.",
|
|
@@ -4186,6 +4264,11 @@ const designLocaleOverrides = {
|
|
|
4186
4264
|
"https://github.com/org/repo와 같은 전체 GitHub 저장소 URL를 사용하세요.",
|
|
4187
4265
|
githubIndex:
|
|
4188
4266
|
"GitHub 인덱싱을 시작할 수 없습니다. Builder 연결과 저장소 접근 권한을 확인하세요.",
|
|
4267
|
+
chooseDesignMd: "design.md 또는 design.mdx 파일을 선택하세요.",
|
|
4268
|
+
readDesignMd: "design.md 파일을 읽을 수 없습니다.",
|
|
4269
|
+
designMdTooLarge: "design.md 파일은 2MB 이하여야 합니다.",
|
|
4270
|
+
designMdIndex:
|
|
4271
|
+
"design.md 인덱싱을 시작할 수 없습니다. Builder 연결을 확인하세요.",
|
|
4189
4272
|
noSources: "디자인 시스템을 생성하기 전에 소스를 하나 이상 추가하세요.",
|
|
4190
4273
|
},
|
|
4191
4274
|
sections: {
|
|
@@ -4203,6 +4286,10 @@ const designLocaleOverrides = {
|
|
|
4203
4286
|
description:
|
|
4204
4287
|
"GitHub 저장소, 로컬 코드 파일 또는 design.md가 Builder DSI로 색인화됩니다.",
|
|
4205
4288
|
},
|
|
4289
|
+
designMd: {
|
|
4290
|
+
title: "design.md 가져오기",
|
|
4291
|
+
description: "design.md 파일을 디자인 시스템 소스로 사용",
|
|
4292
|
+
},
|
|
4206
4293
|
designFiles: {
|
|
4207
4294
|
title: "참조 파일",
|
|
4208
4295
|
description:
|
|
@@ -4551,6 +4638,9 @@ const designLocaleOverrides = {
|
|
|
4551
4638
|
continue: "Continuar para a geração",
|
|
4552
4639
|
starting: "Iniciando…",
|
|
4553
4640
|
githubIndexStarted: "Indexação do GitHub iniciada",
|
|
4641
|
+
designMdIndexStarted: "Indexação do design.md iniciada",
|
|
4642
|
+
designMdUpload: "Importar design.md",
|
|
4643
|
+
designMdHelp: "Importe as orientações de design.md para o Builder DSI",
|
|
4554
4644
|
title: "Configure seu sistema de design",
|
|
4555
4645
|
description:
|
|
4556
4646
|
"Conecte Figma, código e orientações opcionais de design.md pelo Builder DSI. Mais contexto dá ao agente um sistema mais preciso.",
|
|
@@ -4616,6 +4706,11 @@ const designLocaleOverrides = {
|
|
|
4616
4706
|
"Use um repositório GitHub completo URL, como https://github.com/org/repo.",
|
|
4617
4707
|
githubIndex:
|
|
4618
4708
|
"Não foi possível iniciar a indexação do GitHub. Verifique a conexão do Builder e o acesso ao repositório.",
|
|
4709
|
+
chooseDesignMd: "Escolha um arquivo design.md ou design.mdx.",
|
|
4710
|
+
readDesignMd: "Não foi possível ler o arquivo design.md.",
|
|
4711
|
+
designMdTooLarge: "design.md deve ter no máximo 2 MB.",
|
|
4712
|
+
designMdIndex:
|
|
4713
|
+
"Não foi possível iniciar a indexação do design.md. Verifique a conexão do Builder.",
|
|
4619
4714
|
noSources:
|
|
4620
4715
|
"Adicione pelo menos uma fonte antes de gerar um sistema de design.",
|
|
4621
4716
|
},
|
|
@@ -4634,6 +4729,11 @@ const designLocaleOverrides = {
|
|
|
4634
4729
|
description:
|
|
4635
4730
|
"Repositórios GitHub, arquivos de código locais ou design.md são indexados com Builder DSI.",
|
|
4636
4731
|
},
|
|
4732
|
+
designMd: {
|
|
4733
|
+
title: "Importar design.md",
|
|
4734
|
+
description:
|
|
4735
|
+
"Usar um arquivo design.md como fonte do sistema de design",
|
|
4736
|
+
},
|
|
4637
4737
|
designFiles: {
|
|
4638
4738
|
title: "Arquivos de referência",
|
|
4639
4739
|
description:
|
|
@@ -4984,6 +5084,9 @@ const designLocaleOverrides = {
|
|
|
4984
5084
|
continue: "पीढ़ी तक जारी रखें",
|
|
4985
5085
|
starting: "शुरू हो रहा है…",
|
|
4986
5086
|
githubIndexStarted: "GitHub इंडेक्सिंग शुरू हो गई",
|
|
5087
|
+
designMdIndexStarted: "design.md इंडेक्सिंग शुरू हो गई",
|
|
5088
|
+
designMdUpload: "design.md आयात करें",
|
|
5089
|
+
designMdHelp: "design.md मार्गदर्शन को Builder DSI में आयात करें",
|
|
4987
5090
|
title: "अपना डिज़ाइन सिस्टम सेट करें",
|
|
4988
5091
|
description:
|
|
4989
5092
|
"Figma, कोड और वैकल्पिक design.md मार्गदर्शन को Builder DSI से कनेक्ट करें. अधिक संदर्भ एजेंट को अधिक सटीक सिस्टम देता है.",
|
|
@@ -5044,6 +5147,10 @@ const designLocaleOverrides = {
|
|
|
5044
5147
|
"https://github.com/org/repo जैसे पूर्ण GitHub रिपॉजिटरी URL का उपयोग करें।",
|
|
5045
5148
|
githubIndex:
|
|
5046
5149
|
"GitHub इंडेक्सिंग शुरू नहीं हो सकी। Builder कनेक्शन और रिपॉजिटरी एक्सेस जाँचें।",
|
|
5150
|
+
chooseDesignMd: "कृपया design.md या design.mdx फ़ाइल चुनें।",
|
|
5151
|
+
readDesignMd: "design.md फ़ाइल पढ़ी नहीं जा सकी।",
|
|
5152
|
+
designMdTooLarge: "design.md 2 MB या उससे छोटा होना चाहिए।",
|
|
5153
|
+
designMdIndex: "design.md इंडेक्सिंग शुरू नहीं हो सकी। Builder कनेक्शन जाँचें।",
|
|
5047
5154
|
noSources: "डिज़ाइन सिस्टम तैयार करने से पहले कम से कम एक स्रोत जोड़ें।",
|
|
5048
5155
|
},
|
|
5049
5156
|
sections: {
|
|
@@ -5061,6 +5168,10 @@ const designLocaleOverrides = {
|
|
|
5061
5168
|
description:
|
|
5062
5169
|
"GitHub रिपॉज़िटरी, स्थानीय कोड फ़ाइलें या design.md Builder DSI से index होते हैं.",
|
|
5063
5170
|
},
|
|
5171
|
+
designMd: {
|
|
5172
|
+
title: "design.md आयात करें",
|
|
5173
|
+
description: "डिज़ाइन सिस्टम के स्रोत के रूप में design.md फ़ाइल का उपयोग करें",
|
|
5174
|
+
},
|
|
5064
5175
|
designFiles: {
|
|
5065
5176
|
title: "संदर्भ फ़ाइलें",
|
|
5066
5177
|
description:
|
|
@@ -5407,6 +5518,9 @@ const designLocaleOverrides = {
|
|
|
5407
5518
|
continue: "الاستمرار في الجيل",
|
|
5408
5519
|
starting: "جارٍ البدء…",
|
|
5409
5520
|
githubIndexStarted: "بدأت فهرسة GitHub",
|
|
5521
|
+
designMdIndexStarted: "بدأت فهرسة design.md",
|
|
5522
|
+
designMdUpload: "استيراد design.md",
|
|
5523
|
+
designMdHelp: "استيراد إرشادات design.md إلى Builder DSI",
|
|
5410
5524
|
title: "قم بإعداد نظام التصميم الخاص بك",
|
|
5411
5525
|
description:
|
|
5412
5526
|
"اربط Figma والكود وإرشادات design.md الاختيارية عبر Builder DSI. كلما زاد السياق، حصل الوكيل على نظام أدق.",
|
|
@@ -5469,6 +5583,10 @@ const designLocaleOverrides = {
|
|
|
5469
5583
|
"استخدم مستودع GitHub الكامل URL، مثل https://github.com/org/repo.",
|
|
5470
5584
|
githubIndex:
|
|
5471
5585
|
"تعذر بدء فهرسة GitHub. تحقق من اتصال Builder ومن صلاحية الوصول إلى المستودع.",
|
|
5586
|
+
chooseDesignMd: "يرجى اختيار ملف design.md أو design.mdx.",
|
|
5587
|
+
readDesignMd: "تعذر قراءة ملف design.md.",
|
|
5588
|
+
designMdTooLarge: "يجب ألا يتجاوز حجم design.md 2 ميغابايت.",
|
|
5589
|
+
designMdIndex: "تعذر بدء فهرسة design.md. تحقق من اتصال Builder.",
|
|
5472
5590
|
noSources: "أضف مصدرًا واحدًا على الأقل قبل إنشاء نظام التصميم.",
|
|
5473
5591
|
},
|
|
5474
5592
|
sections: {
|
|
@@ -5486,6 +5604,10 @@ const designLocaleOverrides = {
|
|
|
5486
5604
|
description:
|
|
5487
5605
|
"تتم فهرسة مستودعات GitHub أو ملفات الكود المحلية أو design.md عبر Builder DSI.",
|
|
5488
5606
|
},
|
|
5607
|
+
designMd: {
|
|
5608
|
+
title: "استيراد design.md",
|
|
5609
|
+
description: "استخدم ملف design.md كمصدر لنظام التصميم",
|
|
5610
|
+
},
|
|
5489
5611
|
designFiles: {
|
|
5490
5612
|
title: "ملفات مرجعية",
|
|
5491
5613
|
description:
|
|
@@ -25,8 +25,18 @@ export function publishClipboardContentMutation(args: {
|
|
|
25
25
|
nextContent: string;
|
|
26
26
|
nextContentHash: string;
|
|
27
27
|
origin: ClipboardContentMutationOrigin;
|
|
28
|
+
/**
|
|
29
|
+
* "document" means the base was read from the live document. Ordinary edits
|
|
30
|
+
* never advance the lineage, so a lineage disagreeing with such a base is
|
|
31
|
+
* behind it and is superseded, not a competing generation to reject.
|
|
32
|
+
*/
|
|
33
|
+
baseSource?: "lineage" | "document";
|
|
28
34
|
}): ClipboardContentLineage | null {
|
|
29
|
-
if (
|
|
35
|
+
if (
|
|
36
|
+
args.current &&
|
|
37
|
+
args.current.contentHash !== args.baseContentHash &&
|
|
38
|
+
args.baseSource !== "document"
|
|
39
|
+
) {
|
|
30
40
|
return null;
|
|
31
41
|
}
|
|
32
42
|
return {
|