@cellarnode/ui 0.178.1 → 0.180.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/dist/brand/brand-field-provenance.js +3 -3
- package/dist/brand/brand-field-provenance.js.map +1 -1
- package/dist/brand/brand-generation-context-form.js +2 -2
- package/dist/brand/brand-generation-recovery.js +2 -2
- package/dist/brand/brand-generation-recovery.js.map +1 -1
- package/dist/brand/brand-image-asset-slot-card.js +1 -1
- package/dist/brand/brand-image-chooser.js +1 -1
- package/dist/brand/brand-image-source-picker.js +1 -1
- package/dist/brand/brand-profile-form-lists.js +2 -2
- package/dist/brand/brand-profile-form-people.js +2 -2
- package/dist/brand/brand-profile-review-media.js +1 -1
- package/dist/brand/brand-profile-review-visibility.d.ts.map +1 -1
- package/dist/brand/brand-profile-review-visibility.js +6 -4
- package/dist/brand/brand-profile-review-visibility.js.map +1 -1
- package/dist/brand/brand-profile-workspace-copy.d.ts +14 -0
- package/dist/brand/brand-profile-workspace-copy.d.ts.map +1 -1
- package/dist/brand/brand-profile-workspace-copy.js +4 -0
- package/dist/brand/brand-profile-workspace-copy.js.map +1 -1
- package/dist/brand/brand-profile-workspace-parts.d.ts +22 -2
- package/dist/brand/brand-profile-workspace-parts.d.ts.map +1 -1
- package/dist/brand/brand-profile-workspace-parts.js +6 -7
- package/dist/brand/brand-profile-workspace-parts.js.map +1 -1
- package/dist/brand/brand-profile-workspace.d.ts +5 -1
- package/dist/brand/brand-profile-workspace.d.ts.map +1 -1
- package/dist/brand/brand-profile-workspace.js +8 -3
- package/dist/brand/brand-profile-workspace.js.map +1 -1
- package/dist/brand/brand-provenance-summary.js +1 -1
- package/dist/brand/brand-summary-card.js +1 -1
- package/dist/brand/brand-summary-card.js.map +1 -1
- package/dist/brand/index.d.ts +1 -0
- package/dist/brand/index.d.ts.map +1 -1
- package/dist/brand/index.js +1 -0
- package/dist/brand/index.js.map +1 -1
- package/dist/brand/public-visibility-toggle.d.ts +33 -0
- package/dist/brand/public-visibility-toggle.d.ts.map +1 -0
- package/dist/brand/public-visibility-toggle.js +23 -0
- package/dist/brand/public-visibility-toggle.js.map +1 -0
- package/dist/chat/chat-composer.d.ts +3 -1
- package/dist/chat/chat-composer.d.ts.map +1 -1
- package/dist/chat/chat-composer.js +3 -3
- package/dist/chat/chat-composer.js.map +1 -1
- package/dist/chat/chat-surface.d.ts +23 -2
- package/dist/chat/chat-surface.d.ts.map +1 -1
- package/dist/chat/chat-surface.js +77 -41
- package/dist/chat/chat-surface.js.map +1 -1
- package/dist/chat/index.d.ts +2 -0
- package/dist/chat/index.d.ts.map +1 -1
- package/dist/chat/index.js +1 -0
- package/dist/chat/index.js.map +1 -1
- package/dist/chat/messenger-layout.js +2 -2
- package/dist/chat/messenger-layout.js.map +1 -1
- package/dist/chat/messenger-screen/room-panel.d.ts +24 -0
- package/dist/chat/messenger-screen/room-panel.d.ts.map +1 -1
- package/dist/chat/messenger-screen/room-panel.js +175 -21
- package/dist/chat/messenger-screen/room-panel.js.map +1 -1
- package/dist/chat/messenger-screen/types.d.ts +2 -0
- package/dist/chat/messenger-screen/types.d.ts.map +1 -1
- package/dist/chat/use-stick-to-bottom.d.ts +45 -0
- package/dist/chat/use-stick-to-bottom.d.ts.map +1 -0
- package/dist/chat/use-stick-to-bottom.js +191 -0
- package/dist/chat/use-stick-to-bottom.js.map +1 -0
- package/dist/chat-ably/use-presence.d.ts +13 -0
- package/dist/chat-ably/use-presence.d.ts.map +1 -1
- package/dist/chat-ably/use-presence.js +35 -0
- package/dist/chat-ably/use-presence.js.map +1 -1
- package/dist/components/access-model-select.d.ts.map +1 -1
- package/dist/components/access-model-select.js +2 -1
- package/dist/components/access-model-select.js.map +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/animated-select.js +1 -1
- package/dist/components/animated-select.js.map +1 -1
- package/dist/components/animated-shadcn-select.d.ts +2 -2
- package/dist/components/animated-shadcn-select.d.ts.map +1 -1
- package/dist/components/animated-shadcn-select.js +16 -3
- package/dist/components/animated-shadcn-select.js.map +1 -1
- package/dist/components/avatar-stack.js +3 -3
- package/dist/components/avatar-stack.js.map +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/bottle-extract-dialog.js +2 -2
- package/dist/components/bottle-extract-dialog.js.map +1 -1
- package/dist/components/bottle-extraction-inline-progress.js +1 -1
- package/dist/components/bottle-extraction-inline-progress.js.map +1 -1
- package/dist/components/card-actions-trigger.js +1 -1
- package/dist/components/card-actions-trigger.js.map +1 -1
- package/dist/components/certification-upload-card.d.ts +23 -2
- package/dist/components/certification-upload-card.d.ts.map +1 -1
- package/dist/components/certification-upload-card.js +103 -8
- package/dist/components/certification-upload-card.js.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/closure-select.d.ts.map +1 -1
- package/dist/components/closure-select.js +2 -1
- package/dist/components/closure-select.js.map +1 -1
- package/dist/components/colour-picker-field.js +1 -1
- package/dist/components/colour-picker-field.js.map +1 -1
- package/dist/components/composition-editor.js +1 -1
- package/dist/components/composition-editor.js.map +1 -1
- package/dist/components/confirmation/beverage-comparison-modal.js +1 -1
- package/dist/components/confirmation/beverage-comparison-modal.js.map +1 -1
- package/dist/components/confirmation/confirmation-card.js +2 -2
- package/dist/components/confirmation/confirmation-card.js.map +1 -1
- package/dist/components/confirmation/cross-portfolio-nudge-sheet.js +5 -5
- package/dist/components/confirmation/cross-portfolio-nudge-sheet.js.map +1 -1
- package/dist/components/corner-style-picker.js +1 -1
- package/dist/components/corner-style-picker.js.map +1 -1
- package/dist/components/country-code-multi-select.d.ts.map +1 -1
- package/dist/components/country-code-multi-select.js +2 -1
- package/dist/components/country-code-multi-select.js.map +1 -1
- package/dist/components/country-code-select.d.ts.map +1 -1
- package/dist/components/country-code-select.js +4 -2
- package/dist/components/country-code-select.js.map +1 -1
- package/dist/components/currency-select.d.ts.map +1 -1
- package/dist/components/currency-select.js +2 -1
- package/dist/components/currency-select.js.map +1 -1
- package/dist/components/delivery-terms-select.d.ts.map +1 -1
- package/dist/components/delivery-terms-select.js +2 -1
- package/dist/components/delivery-terms-select.js.map +1 -1
- package/dist/components/enterprise-type-select.d.ts.map +1 -1
- package/dist/components/enterprise-type-select.js +2 -1
- package/dist/components/enterprise-type-select.js.map +1 -1
- package/dist/components/inset-drawer.js +1 -1
- package/dist/components/inset-drawer.js.map +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.d.ts.map +1 -1
- package/dist/components/link.js +3 -2
- package/dist/components/link.js.map +1 -1
- package/dist/components/offer-card.js +1 -1
- package/dist/components/offer-card.js.map +1 -1
- package/dist/components/packaging-select.d.ts.map +1 -1
- package/dist/components/packaging-select.js +2 -1
- package/dist/components/packaging-select.js.map +1 -1
- package/dist/components/picker-empty-guidance.js +1 -1
- package/dist/components/picker-empty-guidance.js.map +1 -1
- package/dist/components/preflight-verdict-sheet.js +2 -2
- package/dist/components/preflight-verdict-sheet.js.map +1 -1
- package/dist/components/price-range-picker.js +1 -1
- package/dist/components/price-range-picker.js.map +1 -1
- package/dist/components/procurement-channel-select.d.ts.map +1 -1
- package/dist/components/procurement-channel-select.js +2 -1
- package/dist/components/procurement-channel-select.js.map +1 -1
- package/dist/components/product-card.js +1 -1
- package/dist/components/product-card.js.map +1 -1
- package/dist/components/product-picker-drawer.js +4 -4
- package/dist/components/product-picker-drawer.js.map +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/radio.js.map +1 -1
- package/dist/components/region-select.d.ts.map +1 -1
- package/dist/components/region-select.js +2 -1
- package/dist/components/region-select.js.map +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/shadcn-badge.js +2 -2
- package/dist/components/shadcn-badge.js.map +1 -1
- package/dist/components/shadcn-button.d.ts.map +1 -1
- package/dist/components/shadcn-button.js +2 -2
- package/dist/components/shadcn-button.js.map +1 -1
- package/dist/components/shadcn-input.js +1 -1
- package/dist/components/shadcn-input.js.map +1 -1
- package/dist/components/shadcn-select.d.ts +1 -1
- package/dist/components/shadcn-select.d.ts.map +1 -1
- package/dist/components/shadcn-select.js +9 -2
- package/dist/components/shadcn-select.js.map +1 -1
- package/dist/components/shadcn-textarea.js +1 -1
- package/dist/components/shadcn-textarea.js.map +1 -1
- package/dist/components/source-composite.js +1 -1
- package/dist/components/source-composite.js.map +1 -1
- package/dist/components/source-drawer.js +1 -1
- package/dist/components/source-drawer.js.map +1 -1
- package/dist/components/supporting-pane-layout.d.ts +6 -1
- package/dist/components/supporting-pane-layout.d.ts.map +1 -1
- package/dist/components/supporting-pane-layout.js +65 -12
- package/dist/components/supporting-pane-layout.js.map +1 -1
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +35 -19
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/text.js.map +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.js.map +1 -1
- package/dist/components/variant-picker-dialog.js +6 -6
- package/dist/components/variant-picker-dialog.js.map +1 -1
- package/dist/components/variant-picker-hero.js +1 -1
- package/dist/components/variant-picker-hero.js.map +1 -1
- package/dist/components/year-picker.js +1 -1
- package/dist/components/year-picker.js.map +1 -1
- package/dist/fic-label/ingredient-input.js +1 -1
- package/dist/fic-label/ingredient-input.js.map +1 -1
- package/dist/globe/globe-view.js +1 -1
- package/dist/globe/globe-view.js.map +1 -1
- package/dist/image-upload/focal-point-picker.js +1 -1
- package/dist/image-upload/focal-point-picker.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/insight-band/next-best-action-card.js +1 -1
- package/dist/insight-band/next-best-action-card.js.map +1 -1
- package/dist/lib/reveal-truncated-select-value.d.ts +8 -0
- package/dist/lib/reveal-truncated-select-value.d.ts.map +1 -0
- package/dist/lib/reveal-truncated-select-value.js +16 -0
- package/dist/lib/reveal-truncated-select-value.js.map +1 -0
- package/dist/marketing/pricing-table.js +1 -1
- package/dist/marketing/qr/qr-customizer-controls.js +1 -1
- package/dist/marketing/qr/qr-customizer-controls.js.map +1 -1
- package/dist/notifications/notification-tray.js +1 -1
- package/dist/notifications/notification-tray.js.map +1 -1
- package/dist/offer/attachments-card.js +1 -1
- package/dist/offer/attachments-card.js.map +1 -1
- package/dist/offer/index.d.ts +1 -1
- package/dist/offer/index.d.ts.map +1 -1
- package/dist/offer/index.js.map +1 -1
- package/dist/offer/negotiation-flow-timeline.js +1 -1
- package/dist/offer/negotiation-flow-timeline.js.map +1 -1
- package/dist/offer/negotiation-labels.d.ts +12 -0
- package/dist/offer/negotiation-labels.d.ts.map +1 -1
- package/dist/offer/negotiation-labels.js +17 -3
- package/dist/offer/negotiation-labels.js.map +1 -1
- package/dist/offer/offer-branch-shared.d.ts +1 -1
- package/dist/offer/offer-branch-shared.js +1 -1
- package/dist/offer/offer-evaluation-sections.js +1 -1
- package/dist/offer/offer-page.d.ts +62 -2
- package/dist/offer/offer-page.d.ts.map +1 -1
- package/dist/offer/offer-page.js +158 -14
- package/dist/offer/offer-page.js.map +1 -1
- package/dist/offer/parties-card.d.ts.map +1 -1
- package/dist/offer/parties-card.js +1 -1
- package/dist/offer/parties-card.js.map +1 -1
- package/dist/offer/reviews-summary.js +1 -1
- package/dist/offer/reviews-summary.js.map +1 -1
- package/dist/offer/sticky-scroll-padding.d.ts +4 -0
- package/dist/offer/sticky-scroll-padding.d.ts.map +1 -0
- package/dist/offer/sticky-scroll-padding.js +54 -0
- package/dist/offer/sticky-scroll-padding.js.map +1 -0
- package/dist/offer/timeline-event.d.ts.map +1 -1
- package/dist/offer/timeline-event.js +5 -3
- package/dist/offer/timeline-event.js.map +1 -1
- package/dist/opportunities/opportunity-detail-header.js +1 -1
- package/dist/opportunities/opportunity-detail-header.js.map +1 -1
- package/dist/opportunities/opportunity-detail-panel.js +1 -1
- package/dist/opportunities/opportunity-detail-panel.js.map +1 -1
- package/dist/opportunities/opportunity-filter-bar.js +1 -1
- package/dist/opportunities/opportunity-filter-bar.js.map +1 -1
- package/dist/opportunities/opportunity-stacked-card.js +2 -2
- package/dist/opportunities/opportunity-stacked-card.js.map +1 -1
- package/dist/opportunities/wizard/allowed-delivery-terms-section.js +1 -1
- package/dist/opportunities/wizard/allowed-delivery-terms-section.js.map +1 -1
- package/dist/opportunities/wizard/opportunity-wizard.js +2 -2
- package/dist/opportunities/wizard/opportunity-wizard.js.map +1 -1
- package/dist/opportunities/wizard/step-opportunities.js +14 -10
- package/dist/opportunities/wizard/step-opportunities.js.map +1 -1
- package/dist/opportunities/wizard/step-pricing-timeline.js +4 -4
- package/dist/opportunities/wizard/step-review.js +1 -1
- package/dist/opportunities/wizard/step-tender-basics.js +2 -2
- package/dist/opportunities/wizard/wizard-stepper.js +1 -1
- package/dist/opportunities/wizard/wizard-task-frame.js +1 -1
- package/dist/org/billing-address-source.js +2 -2
- package/dist/org/public-location-notice.js +2 -2
- package/dist/pdf-tool/live/pdf-label-layer.js +1 -1
- package/dist/pdf-tool/live/pdf-label-layer.js.map +1 -1
- package/dist/portfolio/portfolio-folder-card.js +1 -1
- package/dist/portfolio/portfolio-folder-card.js.map +1 -1
- package/dist/portfolio-import/beverage-comparison-modal.js +5 -5
- package/dist/portfolio-import/beverage-comparison-modal.js.map +1 -1
- package/dist/portfolio-import/bottle-photos-status.js +1 -1
- package/dist/portfolio-import/bottle-photos-status.js.map +1 -1
- package/dist/portfolio-import/import-job-detail-view.js +1 -1
- package/dist/portfolio-import/import-job-detail-view.js.map +1 -1
- package/dist/portfolio-import/product-gallery.js +1 -1
- package/dist/portfolio-import/product-gallery.js.map +1 -1
- package/dist/product-editor/product-editor-surface.js +1 -1
- package/dist/product-editor/product-editor-surface.js.map +1 -1
- package/dist/product-editor/tabs/product-status-tab.js +1 -1
- package/dist/product-editor/tabs/product-status-tab.js.map +1 -1
- package/dist/product-editor/tabs/resources/awards-panel.js +2 -2
- package/dist/product-editor/tabs/resources/awards-panel.js.map +1 -1
- package/dist/profile/business-details.js +1 -1
- package/dist/profile/business-details.js.map +1 -1
- package/dist/profile/product-detail-drawer.js +2 -2
- package/dist/profile/product-detail-drawer.js.map +1 -1
- package/package.json +1 -1
- package/src/theme/tokens.css +7 -1
|
@@ -36,9 +36,9 @@ export function BrandFieldProvenance({ field, copy, density = "inline", }) {
|
|
|
36
36
|
const tooltipText = isLowConfidence
|
|
37
37
|
? `${methodLabel} · ${resolvedCopy.lowConfidenceLabel}`
|
|
38
38
|
: methodLabel;
|
|
39
|
-
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", "aria-label": tooltipText, className: "inline-flex size-6 shrink-0 items-center justify-center rounded-full text-muted-foreground focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
39
|
+
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", "aria-label": tooltipText, className: "inline-flex size-6 shrink-0 items-center justify-center rounded-full text-muted-foreground focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: _jsx("span", { "aria-hidden": "true", className: cn("size-2 rounded-full ring-2 ring-card", isLowConfidence ? dotToneClasses.warning : dotToneClasses[tone]) }) }) }), _jsx(TooltipContent, { children: tooltipText })] }));
|
|
40
40
|
}
|
|
41
|
-
return (_jsxs("details", { className: "group text-xs text-muted-foreground [&_summary::-webkit-details-marker]:hidden", children: [_jsx("summary", { className: "-m-3 flex min-h-11 cursor-pointer flex-wrap items-center gap-1.5 p-3 focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
41
|
+
return (_jsxs("details", { className: "group text-xs text-muted-foreground [&_summary::-webkit-details-marker]:hidden", children: [_jsx("summary", { className: "-m-3 flex min-h-11 cursor-pointer flex-wrap items-center gap-1.5 p-3 focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: _jsxs("span", { className: "flex items-center gap-1.5 whitespace-nowrap", children: [_jsx(DataProvenanceTag, { tone: tone, label: methodLabel }), isLowConfidence ? (_jsx(DataProvenanceTag, { tone: "warning", label: resolvedCopy.lowConfidenceLabel })) : null, _jsx(ChevronDownIcon, { className: "h-4 w-4 shrink-0 opacity-50 transition-none group-open:rotate-180", "aria-hidden": "true" })] }) }), _jsxs("dl", { className: "grid gap-2 pt-3", children: [_jsxs("div", { className: "grid gap-0.5", children: [_jsx("dt", { className: "font-medium text-foreground", children: resolvedCopy.metadataLabels.method }), _jsx("dd", { children: methodLabel })] }), _jsxs("div", { className: "grid gap-0.5", children: [_jsx("dt", { className: "font-medium text-foreground", children: resolvedCopy.metadataLabels.confidence }), _jsx("dd", { children: confidence === null
|
|
42
42
|
? resolvedCopy.unavailableValueLabel
|
|
43
43
|
: resolvedCopy.confidenceLabel(confidence) })] }), _jsxs("div", { className: "grid gap-0.5", children: [_jsx("dt", { className: "font-medium text-foreground", children: resolvedCopy.metadataLabels.iteration }), _jsx("dd", { children: field.iteration })] }), _jsxs("div", { className: "grid gap-0.5", children: [_jsx("dt", { className: "font-medium text-foreground", children: resolvedCopy.metadataLabels.source }), _jsx("dd", { children: source === null ? (resolvedCopy.sourceUnavailableLabel) : (
|
|
44
44
|
// Single icon choice (Link2Icon) shared by every surface that
|
|
@@ -48,6 +48,6 @@ export function BrandFieldProvenance({ field, copy, density = "inline", }) {
|
|
|
48
48
|
// meaning and style identical everywhere by construction
|
|
49
49
|
// (CEL-1680: "website URL icon... must be the same in the
|
|
50
50
|
// editor and in brand-profile-display / public preview").
|
|
51
|
-
_jsxs("a", { className: "inline-flex min-w-0 items-center gap-1 break-all underline decoration-current underline-offset-2", href: source.href, rel: "noreferrer", target: "_blank", "aria-label": resolvedCopy.sourceLinkLabel(source.hostname), children: [_jsx(Link2Icon, { className: "size-3.5 shrink-0", "aria-hidden": "true" }), source.hostname] })) })] })] })] }));
|
|
51
|
+
_jsxs("a", { className: "inline-flex min-w-0 items-center gap-1 break-all underline decoration-current underline-offset-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring", href: source.href, rel: "noreferrer", target: "_blank", "aria-label": resolvedCopy.sourceLinkLabel(source.hostname), children: [_jsx(Link2Icon, { className: "size-3.5 shrink-0", "aria-hidden": "true" }), source.hostname] })) })] })] })] }));
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=brand-field-provenance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-field-provenance.js","sourceRoot":"","sources":["../../src/brand/brand-field-provenance.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,8BAA8B,GAE/B,MAAM,8BAA8B,CAAC;AAKtC,MAAM,eAAe,GAAkD;IACrE,kBAAkB,EAAE,MAAM;IAC1B,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,MAAM;CAClB,CAAC;AAEF,+EAA+E;AAC/E,iFAAiF;AACjF,mCAAmC;AACnC,MAAM,cAAc,GAAmC;IACrD,KAAK,EAAE,2BAA2B;IAClC,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,6BAA6B;IACtC,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,4BAA4B;IACpC,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAgBF,MAAM,UAAU,oBAAoB,CAAC,EACnC,KAAK,EACL,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GAAM,EACrF,uBAAK,WAAW,GAAM,IAClB,EACN,eAAK,SAAS,EAAC,cAAc,aAC3B,aAAI,SAAS,EAAC,6BAA6B,YAAE,YAAY,CAAC,cAAc,CAAC,UAAU,GAAM,EACzF,uBACG,UAAU,KAAK,IAAI;oCAClB,CAAC,CAAC,YAAY,CAAC,qBAAqB;oCACpC,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,UAAU,CAAC,GACzC,IACD,EACN,eAAK,SAAS,EAAC,cAAc,aAC3B,aAAI,SAAS,EAAC,6BAA6B,YAAE,YAAY,CAAC,cAAc,CAAC,SAAS,GAAM,EACxF,uBAAK,KAAK,CAAC,SAAS,GAAM,IACtB,EACN,eAAK,SAAS,EAAC,cAAc,aAC3B,aAAI,SAAS,EAAC,6BAA6B,YAAE,YAAY,CAAC,cAAc,CAAC,MAAM,GAAM,EACrF,uBACG,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,CACjB,YAAY,CAAC,sBAAsB,CACpC,CAAC,CAAC,CAAC;gCACF,8DAA8D;gCAC9D,+DAA+D;gCAC/D,8DAA8D;gCAC9D,6DAA6D;gCAC7D,yDAAyD;gCACzD,0DAA0D;gCAC1D,0DAA0D;gCAC1D,aACE,SAAS,EAAC,oLAAoL,EAC9L,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,GAAG,EAAC,YAAY,EAChB,MAAM,EAAC,QAAQ,gBACH,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,aAEzD,KAAC,SAAS,IAAC,SAAS,EAAC,mBAAmB,iBAAa,MAAM,GAAG,EAC7D,MAAM,CAAC,QAAQ,IACd,CACL,GACE,IACD,IACH,IACG,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -5,8 +5,8 @@ import { brandGenerationContextWithDefaults, } from "./brand-generation-types.js
|
|
|
5
5
|
import { DEFAULT_BRAND_GENERATION_RECOVERY_COPY, } from "./brand-generation-recovery-copy.js";
|
|
6
6
|
const INPUT = "min-h-11 w-full rounded-lg border border-border/60 bg-background px-3 py-2 text-sm text-foreground";
|
|
7
7
|
const LABEL = "text-xs font-medium text-muted-foreground";
|
|
8
|
-
const ADD_BUTTON = "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
9
|
-
const REMOVE_BUTTON = "inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-[var(--tone-danger-soft)] hover:text-[var(--tone-danger-fg)] focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
8
|
+
const ADD_BUTTON = "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
9
|
+
const REMOVE_BUTTON = "inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-[var(--tone-danger-soft)] hover:text-[var(--tone-danger-fg)] focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
10
10
|
/**
|
|
11
11
|
* Optional generation-start/retry context (CEL-1680, contracts §2): business
|
|
12
12
|
* name/type, locale, up to 5 focus URLs, and free-text corrections. Never
|
|
@@ -5,8 +5,8 @@ import { cn } from "../lib/utils.js";
|
|
|
5
5
|
import { BrandGenerationContextForm } from "./brand-generation-context-form.js";
|
|
6
6
|
import { DEFAULT_BRAND_GENERATION_RECOVERY_COPY, } from "./brand-generation-recovery-copy.js";
|
|
7
7
|
import { brandGenerationContextWithDefaults, } from "./brand-generation-types.js";
|
|
8
|
-
const ACTION_PRIMARY = "inline-flex min-h-11 items-center gap-1.5 rounded-lg bg-primary px-3.5 py-2 text-sm/5 font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
9
|
-
const ACTION_SECONDARY = "inline-flex min-h-11 items-center gap-1.5 rounded-lg border border-border bg-background px-3.5 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
8
|
+
const ACTION_PRIMARY = "inline-flex min-h-11 items-center gap-1.5 rounded-lg bg-primary px-3.5 py-2 text-sm/5 font-medium text-primary-foreground hover:bg-primary/90 focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background";
|
|
9
|
+
const ACTION_SECONDARY = "inline-flex min-h-11 items-center gap-1.5 rounded-lg border border-border bg-background px-3.5 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
10
10
|
const TONE_BADGE_CLASS = {
|
|
11
11
|
info: "bg-[var(--tone-info-soft)] text-[var(--tone-info-fg)]",
|
|
12
12
|
warning: "bg-[var(--tone-warning-soft)] text-[var(--tone-warning-fg)]",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-generation-recovery.js","sourceRoot":"","sources":["../../src/brand/brand-generation-recovery.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,SAAS,EACT,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EACL,sCAAsC,GAEvC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,kCAAkC,GAInC,MAAM,0BAA0B,CAAC;AAElC,MAAM,cAAc,GAClB,
|
|
1
|
+
{"version":3,"file":"brand-generation-recovery.js","sourceRoot":"","sources":["../../src/brand/brand-generation-recov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AAC,MAAM,EACX,IAAI,EAAE,KAAC,SAAS,IAAC,SAAS,EAAC,QAAQ,iBAAa,MAAM,GAAG,EACzD,OAAO,EAAE,IAAI,CAAC,yBAAyB,EACvC,IAAI,EACF,WAAW,CAAC,cAAc;YACxB,CAAC,CAAC,IAAI,CAAC,+BAA+B,CAAC,cAAc,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YAClF,CAAC,CAAC,IAAI,CAAC,sBAAsB,EAEjC,SAAS,EAAE,GAAG,QAAQ,sBAAsB,EAC5C,IAAI,EAAC,QAAQ,GACb,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -27,7 +27,7 @@ export function BrandImageAssetSlotCard({ copy, slot, asset, fallbackSource, all
|
|
|
27
27
|
if (asset)
|
|
28
28
|
onDelete(slot, asset.id);
|
|
29
29
|
};
|
|
30
|
-
return (_jsxs("div", { "aria-busy": busy || undefined, className: cn("rounded-xl border border-border/60 bg-card p-4", isWide && "sm:col-span-2"), children: [_jsxs("div", { className: "mb-2", children: [_jsx("span", { className: "text-eyebrow-xs font-bold text-muted-foreground", children: copy.slotLabels[slot] }), helpText && !error ? (_jsx("p", { className: "mt-1 max-w-prose text-sm text-muted-foreground", children: helpText })) : null] }), currentUrl ? (_jsxs("div", { className: cn("flex min-w-0 flex-col gap-3", !isWide && "sm:flex-row sm:items-center"), children: [_jsx("div", { className: cn("flex shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border/60 bg-muted/40", isWide ? "aspect-video w-full" : "size-12"), children: _jsx(BrandSafeImage, { src: currentUrl, alt: copy.previewAriaLabel(copy.slotLabels[slot]), sourcePolicy: fallbackSource ? "first-party" : "trusted", allowedOrigins: fallbackSource ? fallbackSource.allowedOrigins : allowedImageOrigins, className: cn("size-full", isWide ? "object-cover" : "object-contain"), fallback: _jsx("span", { role: "status", className: "px-3 text-center text-xs text-muted-foreground", children: copy.previewUnavailableLabel(copy.slotLabels[slot]) }) }) }), _jsxs("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-3 gap-y-2", children: [_jsx("span", { className: "min-w-0 flex-1 truncate text-xs text-foreground", children: sourceLabel }), _jsx("button", { type: "button", onClick: () => inputRef.current?.click(), disabled: busy, className: "min-h-11 min-w-11 shrink-0 rounded-lg px-2 py-1 text-xs font-medium text-primary hover:underline focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
30
|
+
return (_jsxs("div", { "aria-busy": busy || undefined, className: cn("rounded-xl border border-border/60 bg-card p-4", isWide && "sm:col-span-2"), children: [_jsxs("div", { className: "mb-2", children: [_jsx("span", { className: "text-eyebrow-xs font-bold text-muted-foreground", children: copy.slotLabels[slot] }), helpText && !error ? (_jsx("p", { className: "mt-1 max-w-prose text-sm text-muted-foreground", children: helpText })) : null] }), currentUrl ? (_jsxs("div", { className: cn("flex min-w-0 flex-col gap-3", !isWide && "sm:flex-row sm:items-center"), children: [_jsx("div", { className: cn("flex shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border/60 bg-muted/40", isWide ? "aspect-video w-full" : "size-12"), children: _jsx(BrandSafeImage, { src: currentUrl, alt: copy.previewAriaLabel(copy.slotLabels[slot]), sourcePolicy: fallbackSource ? "first-party" : "trusted", allowedOrigins: fallbackSource ? fallbackSource.allowedOrigins : allowedImageOrigins, className: cn("size-full", isWide ? "object-cover" : "object-contain"), fallback: _jsx("span", { role: "status", className: "px-3 text-center text-xs text-muted-foreground", children: copy.previewUnavailableLabel(copy.slotLabels[slot]) }) }) }), _jsxs("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-3 gap-y-2", children: [_jsx("span", { className: "min-w-0 flex-1 truncate text-xs text-foreground", children: sourceLabel }), _jsx("button", { type: "button", onClick: () => inputRef.current?.click(), disabled: busy, className: "min-h-11 min-w-11 shrink-0 rounded-lg px-2 py-1 text-xs font-medium text-primary hover:underline focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70 disabled:cursor-not-allowed disabled:opacity-50", children: uploading ? copy.uploadingLabel : copy.replaceActionLabel }), _jsx("button", { type: "button", onClick: handleRemove, disabled: busy, className: "min-h-11 min-w-11 shrink-0 rounded-lg px-2 py-1 text-xs font-medium text-[var(--tone-danger-fg)] hover:underline focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70 disabled:cursor-not-allowed disabled:opacity-50", children: destructiveActionLabel })] })] })) : (_jsxs("button", { type: "button", onClick: () => inputRef.current?.click(), "aria-label": busy ? emptyActionLabel : undefined, "aria-describedby": error ? errorId : undefined, "aria-invalid": error ? true : undefined, disabled: busy, className: "flex w-full cursor-pointer items-center justify-center rounded-lg border border-dashed border-border/60 px-3 py-4 text-xs text-muted-foreground hover:border-primary hover:text-primary focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70 disabled:cursor-not-allowed disabled:opacity-50", children: [!busy ? _jsx("span", { className: "sr-only", children: inputAriaLabel }) : null, _jsx("span", { "aria-hidden": "true", children: emptyActionLabel })] })), error ? (_jsx("p", { role: "alert", id: errorId, className: "mt-2 text-xs font-medium text-[var(--tone-danger-fg)]", children: error })) : null, _jsx("input", { ref: inputRef, type: "file", accept: accept, tabIndex: -1, className: "sr-only", "aria-label": inputAriaLabel, disabled: busy, onChange: (event) => {
|
|
31
31
|
const file = event.target.files?.[0];
|
|
32
32
|
if (file)
|
|
33
33
|
onUpload(slot, file);
|
|
@@ -88,7 +88,7 @@ export function BrandImageChooser({ target, candidates, unavailableCandidates =
|
|
|
88
88
|
!busy &&
|
|
89
89
|
!failed &&
|
|
90
90
|
!indeterminate &&
|
|
91
|
-
operationResult?.status === "saved" ? (_jsxs("p", { role: "status", className: "flex items-center gap-2 text-sm/6 text-[var(--tone-success-fg)]", children: [_jsx(CheckIcon, { className: "size-4", "aria-hidden": "true" }), c.savedStatus] })) : null, candidates.length === 0 && unavailableCandidates.length === 0 ? (_jsxs("div", { className: "flex flex-col items-start gap-3 rounded-xl border border-dashed border-border/70 bg-muted/20 p-5", children: [_jsxs("div", { children: [_jsx("p", { className: "text-sm/6 font-semibold text-foreground", children: c.emptyStateHeading }), _jsx("p", { className: "mt-1 text-sm/6 text-muted-foreground", children: c.emptyStateBody })] }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs("button", { type: "button", onClick: () => inputRef.current?.click(), className: "inline-flex min-h-11 items-center gap-1.5 rounded-lg bg-primary px-3.5 py-2 text-sm/5 font-medium text-primary-foreground hover:bg-primary/90", children: [_jsx(UploadIcon, { className: "size-4", "aria-hidden": "true" }), c.uploadAction] }), onCreateManually ? (_jsx("button", { type: "button", onClick: onCreateManually, className: "inline-flex min-h-11 items-center rounded-lg border border-border bg-background px-3.5 py-2 text-sm/5 font-medium text-foreground hover:bg-muted", children: c.createManuallyAction })) : null] })] })) : (_jsxs(_Fragment, { children: [_jsx(BrandImageSourcePicker, { candidates: candidates, unavailableCandidates: unavailableCandidates, onSelect: handleCandidateSelect, target: target, copy: copy, allowedImageOrigins: allowedImageOrigins }), _jsxs("button", { type: "button", onClick: () => inputRef.current?.click(), className: "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3.5 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
91
|
+
operationResult?.status === "saved" ? (_jsxs("p", { role: "status", className: "flex items-center gap-2 text-sm/6 text-[var(--tone-success-fg)]", children: [_jsx(CheckIcon, { className: "size-4", "aria-hidden": "true" }), c.savedStatus] })) : null, candidates.length === 0 && unavailableCandidates.length === 0 ? (_jsxs("div", { className: "flex flex-col items-start gap-3 rounded-xl border border-dashed border-border/70 bg-muted/20 p-5", children: [_jsxs("div", { children: [_jsx("p", { className: "text-sm/6 font-semibold text-foreground", children: c.emptyStateHeading }), _jsx("p", { className: "mt-1 text-sm/6 text-muted-foreground", children: c.emptyStateBody })] }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs("button", { type: "button", onClick: () => inputRef.current?.click(), className: "inline-flex min-h-11 items-center gap-1.5 rounded-lg bg-primary px-3.5 py-2 text-sm/5 font-medium text-primary-foreground hover:bg-primary/90", children: [_jsx(UploadIcon, { className: "size-4", "aria-hidden": "true" }), c.uploadAction] }), onCreateManually ? (_jsx("button", { type: "button", onClick: onCreateManually, className: "inline-flex min-h-11 items-center rounded-lg border border-border bg-background px-3.5 py-2 text-sm/5 font-medium text-foreground hover:bg-muted", children: c.createManuallyAction })) : null] })] })) : (_jsxs(_Fragment, { children: [_jsx(BrandImageSourcePicker, { candidates: candidates, unavailableCandidates: unavailableCandidates, onSelect: handleCandidateSelect, target: target, copy: copy, allowedImageOrigins: allowedImageOrigins }), _jsxs("button", { type: "button", onClick: () => inputRef.current?.click(), className: "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3.5 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: [_jsx(UploadIcon, { className: "size-4", "aria-hidden": "true" }), c.uploadNewAction] })] })), _jsx("input", { ref: inputRef, type: "file", accept: uploadAccept, tabIndex: -1, className: "sr-only", "aria-label": c.uploadAction, onChange: (event) => {
|
|
92
92
|
const file = event.target.files?.[0];
|
|
93
93
|
if (file)
|
|
94
94
|
handleFileChosen(file);
|
|
@@ -66,7 +66,7 @@ export function BrandImageSourcePicker({ candidates, unavailableCandidates = [],
|
|
|
66
66
|
return (_jsxs("section", { "aria-labelledby": headingId, className: cn("flex flex-col gap-3", className), children: [_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("h3", { id: headingId, className: "text-sm/5 font-semibold text-foreground", children: heading }), _jsx("p", { className: "text-sm/5 text-muted-foreground", children: description }), _jsx("p", { className: "text-xs/5 text-muted-foreground", children: targetGuidance })] }), _jsxs("ul", { className: "grid list-none gap-2 p-0 sm:grid-cols-2", children: [eligibleCandidates.map((candidate, index) => {
|
|
67
67
|
const selected = candidate.id === selectedCandidateId;
|
|
68
68
|
const metadataId = `${headingId}-candidate-${index}`;
|
|
69
|
-
return (_jsx("li", { children: _jsxs("button", { type: "button", onClick: () => onSelect(candidate), "aria-label": sourceActionLabel(candidate.sourceLabel), "aria-pressed": selected, "aria-describedby": metadataId, className: "flex w-full items-center gap-3 rounded-xl border border-border bg-card p-2.5 text-left transition-colors duration-[var(--duration-micro)] hover:bg-muted/50 focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
69
|
+
return (_jsx("li", { children: _jsxs("button", { type: "button", onClick: () => onSelect(candidate), "aria-label": sourceActionLabel(candidate.sourceLabel), "aria-pressed": selected, "aria-describedby": metadataId, className: "flex w-full items-center gap-3 rounded-xl border border-border bg-card p-2.5 text-left transition-colors duration-[var(--duration-micro)] hover:bg-muted/50 focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: [_jsx("span", { className: "grid size-12 shrink-0 place-items-center overflow-hidden rounded-lg bg-muted", children: _jsx(BrandSafeImage, { src: candidate.trustedUrl, allowedOrigins: allowedImageOrigins, sourcePolicy: "first-party", alt: "", className: "size-full object-cover", fallback: _jsx(ImageIcon, { className: "size-5 text-muted-foreground", "aria-hidden": "true" }) }) }), _jsxs("span", { id: metadataId, className: "min-w-0", children: [_jsx("span", { className: "block text-sm/5 font-medium text-foreground", children: candidate.sourceLabel }), _jsxs("span", { className: "flex flex-wrap items-center gap-1 text-xs/4 text-muted-foreground", children: [provenanceLabel(candidate), candidate.isManual ? (_jsxs("span", { className: "inline-flex items-center gap-0.5 rounded-full bg-[var(--tone-success-soft)] px-1.5 py-0.5 text-xs/4 font-medium text-[var(--tone-success-fg)]", title: manualBadgeLabel, children: [_jsx(StarIcon, { className: "size-2.5", "aria-hidden": "true" }), manualBadgeLabel] })) : null] }), _jsx("span", { className: "block text-xs/4 text-muted-foreground", children: candidate.aspectHint === "wide"
|
|
70
70
|
? "Wide"
|
|
71
71
|
: candidate.aspectHint === "square"
|
|
72
72
|
? "Square"
|
|
@@ -7,8 +7,8 @@ import { createEmptyAwardRow } from "./brand-profile-form-values.js";
|
|
|
7
7
|
const INPUT = "min-h-11 w-full rounded-lg border border-border/60 bg-background px-3 py-2 text-sm text-foreground";
|
|
8
8
|
const LABEL = "text-xs font-medium text-muted-foreground";
|
|
9
9
|
const ERR = "text-xs text-[var(--tone-danger-fg)]";
|
|
10
|
-
const ADD_BUTTON = "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
11
|
-
const REMOVE_BUTTON = "inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-[var(--tone-danger-soft)] hover:text-[var(--tone-danger-fg)] focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
10
|
+
const ADD_BUTTON = "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
11
|
+
const REMOVE_BUTTON = "inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-[var(--tone-danger-soft)] hover:text-[var(--tone-danger-fg)] focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
12
12
|
/**
|
|
13
13
|
* Editor for a plain `string[]` field (key messages, sustainability claims,
|
|
14
14
|
* certifications, production methods). RHF's `useFieldArray` wants an array of
|
|
@@ -7,8 +7,8 @@ import { createEmptyKeyPersonRow } from "./brand-profile-form-values.js";
|
|
|
7
7
|
const INPUT = "min-h-11 w-full rounded-lg border border-border/60 bg-background px-3 py-2 text-sm text-foreground";
|
|
8
8
|
const LABEL = "text-xs font-medium text-muted-foreground";
|
|
9
9
|
const ERR = "text-xs text-[var(--tone-danger-fg)]";
|
|
10
|
-
const ADD_BUTTON = "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
11
|
-
const REMOVE_BUTTON = "inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-[var(--tone-danger-soft)] hover:text-[var(--tone-danger-fg)] focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
10
|
+
const ADD_BUTTON = "inline-flex min-h-11 items-center gap-1.5 self-start rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
11
|
+
const REMOVE_BUTTON = "inline-flex size-11 shrink-0 items-center justify-center rounded-lg text-muted-foreground hover:bg-[var(--tone-danger-soft)] hover:text-[var(--tone-danger-fg)] focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70";
|
|
12
12
|
export function BrandParentOrganizationFields({ register, errors, copy, idPrefix, }) {
|
|
13
13
|
const nameId = `${idPrefix}-parentOrgName`;
|
|
14
14
|
const relationshipId = `${idPrefix}-parentOrgRelationship`;
|
|
@@ -43,7 +43,7 @@ function WebPresenceRow({ item, copy, density, onRetryMedia, firstPartyOnly, all
|
|
|
43
43
|
const [availability, setAvailability] = useState(item.failed ? "failed" : "loading");
|
|
44
44
|
const failed = item.failed || availability === "failed";
|
|
45
45
|
if (failed)
|
|
46
|
-
return (_jsxs("li", { className: "flex min-h-18 items-center gap-3 rounded-xl border border-border bg-muted p-3", children: [_jsx("div", { className: "grid size-12 shrink-0 place-items-center rounded-lg border border-border bg-card text-[var(--tone-warning-fg)]", children: _jsx(CircleAlertIcon, { className: "size-5", "aria-hidden": "true" }) }), _jsxs("div", { className: "flex min-w-0 flex-col gap-0.5", children: [_jsx("span", { className: "text-eyebrow-xs text-muted-foreground", children: item.label }), _jsx("span", { className: "text-sm/5 text-[var(--tone-warning-fg)]", children: copy.mediaFailedLabel })] }), onRetryMedia ? (_jsxs("button", { type: "button", onClick: () => onRetryMedia(item.key), className: "ms-auto inline-flex min-h-11 shrink-0 items-center gap-1.5 rounded-lg border border-border bg-card px-2.5 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
46
|
+
return (_jsxs("li", { className: "flex min-h-18 items-center gap-3 rounded-xl border border-border bg-muted p-3", children: [_jsx("div", { className: "grid size-12 shrink-0 place-items-center rounded-lg border border-border bg-card text-[var(--tone-warning-fg)]", children: _jsx(CircleAlertIcon, { className: "size-5", "aria-hidden": "true" }) }), _jsxs("div", { className: "flex min-w-0 flex-col gap-0.5", children: [_jsx("span", { className: "text-eyebrow-xs text-muted-foreground", children: item.label }), _jsx("span", { className: "text-sm/5 text-[var(--tone-warning-fg)]", children: copy.mediaFailedLabel })] }), onRetryMedia ? (_jsxs("button", { type: "button", onClick: () => onRetryMedia(item.key), className: "ms-auto inline-flex min-h-11 shrink-0 items-center gap-1.5 rounded-lg border border-border bg-card px-2.5 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: [_jsx(RotateCwIcon, { className: "size-3.5", "aria-hidden": "true" }), copy.mediaRetryLabel] })) : null] }));
|
|
47
47
|
const image = (_jsx(BrandSafeImage, { src: item.src, alt: item.alt, className: item.kind === "favicon" ? "size-8 object-contain" : "size-full object-cover", fallback: _jsx("div", { className: item.kind === "favicon" ? "size-8 rounded bg-muted" : "size-full bg-muted", "aria-hidden": "true" }), onAvailabilityChange: setAvailability, sourcePolicy: firstPartyOnly ? "first-party" : "trusted", allowedOrigins: allowedImageOrigins }));
|
|
48
48
|
return (_jsxs("li", { className: "flex min-h-18 items-center gap-3 rounded-xl border border-border bg-muted/30 p-3", children: [item.kind === "favicon" ? (_jsx("div", { className: "grid size-12 shrink-0 place-items-center rounded-lg border border-border bg-card", children: image })) : (_jsx("div", { className: "h-12 w-20 shrink-0 overflow-hidden rounded-lg border border-border bg-card", children: image })), _jsxs("div", { className: "flex min-w-0 flex-col gap-0.5", children: [_jsx("span", { className: "text-eyebrow-xs text-muted-foreground", children: item.label }), _jsx("span", { className: "text-sm/5 text-foreground", "aria-live": "polite", children: availability === "loaded" ? copy.mediaLoadedLabel : copy.mediaLoadingLabel })] }), item.field ? (_jsx("div", { className: "ms-auto shrink-0", children: _jsx(BrandFieldProvenance, { field: item.field, copy: copy, density: density }) })) : null] }));
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-review-visibility.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-review-visibility.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand-profile-review-visibility.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-review-visibility.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,UAAU,iCAAiC;IACzC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,+BAA+B,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACrE;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,GACT,EAAE,iCAAiC,2CAYnC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import {
|
|
3
|
-
import { Switch, SwitchField } from "../components/switch.js";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PublicVisibilityToggle } from "./public-visibility-toggle.js";
|
|
4
3
|
export function BrandProfileReviewVisibility({ checked, copy, field, onChange, }) {
|
|
5
|
-
return (
|
|
4
|
+
return (_jsx(PublicVisibilityToggle, { label: copy.publicVisibilityLabel, checked: checked, onChange: (next) => onChange(field, next), stateLabels: {
|
|
5
|
+
visible: copy.publicVisibilityHint(true),
|
|
6
|
+
hidden: copy.publicVisibilityHint(false),
|
|
7
|
+
} }));
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=brand-profile-review-visibility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-review-visibility.js","sourceRoot":"","sources":["../../src/brand/brand-profile-review-visibility.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"brand-profile-review-visibility.js","sourceRoot":"","sources":["../../src/brand/brand-profile-review-visibility.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AASpE,MAAM,UAAU,4BAA4B,CAAC,EAC3C,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,GAC0B;IAClC,OAAO,CACL,KAAC,sBAAsB,IACrB,KAAK,EAAE,IAAI,CAAC,qBAAqB,EACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,EACzC,WAAW,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YACxC,MAAM,EAAE,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;SACzC,GACD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -11,12 +11,26 @@ export interface BrandProfileWorkspaceCopy {
|
|
|
11
11
|
readonly contactVisibilityLabel?: string;
|
|
12
12
|
readonly keyPeopleVisibilityLabel?: string;
|
|
13
13
|
readonly draftActionGuidance?: string;
|
|
14
|
+
/** State line under each public-visibility switch (default "Visible on your public profile"). */
|
|
15
|
+
readonly visibilityVisibleLabel?: string;
|
|
16
|
+
/** State line when the switch is off (default "Hidden from your public profile"). */
|
|
17
|
+
readonly visibilityHiddenLabel?: string;
|
|
18
|
+
/** Optional draft-scope note under each switch, e.g. "Applies when this profile is approved". */
|
|
19
|
+
readonly visibilityPendingScopeHint?: string;
|
|
20
|
+
/** Shown when the contact switch is on but there is no contact (see `hasContactContent`). */
|
|
21
|
+
readonly contactEmptyHint?: string;
|
|
22
|
+
/** Shown when the key-people switch is on but there are none (see `hasKeyPeopleContent`). */
|
|
23
|
+
readonly keyPeopleEmptyHint?: string;
|
|
14
24
|
/** Shown under a public-visibility toggle when its last save failed and the
|
|
15
25
|
* switch bounced back to its previous value (CEL-1680). */
|
|
16
26
|
readonly visibilitySaveError?: string;
|
|
17
27
|
}
|
|
18
28
|
export declare const DEFAULT_BRAND_PROFILE_WORKSPACE_COPY: {
|
|
19
29
|
draftActionGuidance: string;
|
|
30
|
+
visibilityVisibleLabel: string;
|
|
31
|
+
visibilityHiddenLabel: string;
|
|
32
|
+
contactEmptyHint: string;
|
|
33
|
+
keyPeopleEmptyHint: string;
|
|
20
34
|
visibilitySaveError: string;
|
|
21
35
|
};
|
|
22
36
|
//# sourceMappingURL=brand-profile-workspace-copy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-workspace-copy.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-copy.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,mBAAmB,CAAC,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E,MAAM,CAAC;IACxC,iGAAiG;IACjG,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAC7C,6FAA6F;IAC7F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,6FAA6F;IAC7F,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC;+DAC2D;IAC3D,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,eAAO,MAAM,oCAAoC;;;;;;;CAgBhD,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export const DEFAULT_BRAND_PROFILE_WORKSPACE_COPY = {
|
|
2
2
|
draftActionGuidance: "Save profile edits separately, then use draft actions to accept or discard generation.",
|
|
3
|
+
visibilityVisibleLabel: "Visible on your public profile",
|
|
4
|
+
visibilityHiddenLabel: "Hidden from your public profile",
|
|
5
|
+
contactEmptyHint: "Add a contact to show it on your profile",
|
|
6
|
+
keyPeopleEmptyHint: "Add key people to show them on your profile",
|
|
3
7
|
visibilitySaveError: "Couldn't save. Reverted to the previous setting — try again.",
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=brand-profile-workspace-copy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-workspace-copy.js","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-copy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand-profile-workspace-copy.js","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-copy.ts"],"names":[],"mappings":"AA4BA,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,mBAAmB,EACjB,wFAAwF;IAC1F,sBAAsB,EAAE,gCAAgC;IACxD,qBAAqB,EAAE,iCAAiC;IACxD,gBAAgB,EAAE,0CAA0C;IAC5D,kBAAkB,EAAE,6CAA6C;IACjE,mBAAmB,EAAE,8DAA8D;CASpF,CAAC"}
|
|
@@ -4,7 +4,7 @@ import type { BrandProfileFormValues } from "./brand-profile-form.js";
|
|
|
4
4
|
import type { BrandProfileInput } from "./types.js";
|
|
5
5
|
export declare function mergeLiveValues(profile: BrandProfileInput, values: BrandProfileFormValues): BrandProfileInput;
|
|
6
6
|
export declare function mergeIncomingProfile(previous: BrandProfileInput, incoming: BrandProfileInput, live: BrandProfileInput): BrandProfileInput;
|
|
7
|
-
export declare function VisibilitySetting({ field, label, visibility, status, errorMessage, onChange, }: {
|
|
7
|
+
export declare function VisibilitySetting({ field, label, visibility, status, errorMessage, stateLabels, pendingScopeHint, emptyHint, hasContent, onChange, }: {
|
|
8
8
|
readonly field: BrandPublicField;
|
|
9
9
|
readonly label: string;
|
|
10
10
|
readonly visibility: BrandPublicVisibility;
|
|
@@ -15,13 +15,23 @@ export declare function VisibilitySetting({ field, label, visibility, status, er
|
|
|
15
15
|
* component owning any mutation state of its own. */
|
|
16
16
|
readonly status?: "pending" | "error";
|
|
17
17
|
readonly errorMessage?: string;
|
|
18
|
+
/** Overrides the English "Visible on / Hidden from your public profile" state line. */
|
|
19
|
+
readonly stateLabels?: {
|
|
20
|
+
readonly visible: string;
|
|
21
|
+
readonly hidden: string;
|
|
22
|
+
};
|
|
23
|
+
/** Draft scope, e.g. "Applies when this profile is approved". */
|
|
24
|
+
readonly pendingScopeHint?: string;
|
|
25
|
+
/** Shown when `hasContent === false` and the switch is on. */
|
|
26
|
+
readonly emptyHint?: string;
|
|
27
|
+
readonly hasContent?: boolean;
|
|
18
28
|
readonly onChange: (field: BrandPublicField, next: boolean) => void;
|
|
19
29
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
30
|
export declare function WorkspaceSection({ label, children, }: {
|
|
21
31
|
readonly label: string;
|
|
22
32
|
readonly children: ReactNode;
|
|
23
33
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare function WorkspaceContactSection({ heading, description, contactEditor, keyPeopleEditor, visibility, visibilityStatus, visibilityErrorMessage, onVisibilityChange, contactVisibilityLabel, keyPeopleVisibilityLabel, }: {
|
|
34
|
+
export declare function WorkspaceContactSection({ heading, description, contactEditor, keyPeopleEditor, visibility, visibilityStatus, visibilityErrorMessage, onVisibilityChange, contactVisibilityLabel, keyPeopleVisibilityLabel, visibilityStateLabels, visibilityPendingScopeHint, contactEmptyHint, keyPeopleEmptyHint, hasContactContent, hasKeyPeopleContent, }: {
|
|
25
35
|
readonly heading: string;
|
|
26
36
|
readonly description: string;
|
|
27
37
|
readonly contactEditor?: ReactNode;
|
|
@@ -32,6 +42,16 @@ export declare function WorkspaceContactSection({ heading, description, contactE
|
|
|
32
42
|
readonly onVisibilityChange?: (field: BrandPublicField, next: boolean) => void;
|
|
33
43
|
readonly contactVisibilityLabel: string;
|
|
34
44
|
readonly keyPeopleVisibilityLabel: string;
|
|
45
|
+
/** Optional copy/hints forwarded to the shared PublicVisibilityToggle. */
|
|
46
|
+
readonly visibilityStateLabels?: {
|
|
47
|
+
readonly visible: string;
|
|
48
|
+
readonly hidden: string;
|
|
49
|
+
};
|
|
50
|
+
readonly visibilityPendingScopeHint?: string;
|
|
51
|
+
readonly contactEmptyHint?: string;
|
|
52
|
+
readonly keyPeopleEmptyHint?: string;
|
|
53
|
+
readonly hasContactContent?: boolean;
|
|
54
|
+
readonly hasKeyPeopleContent?: boolean;
|
|
35
55
|
}): import("react/jsx-runtime").JSX.Element;
|
|
36
56
|
export declare function WorkspaceStateMessage({ status }: {
|
|
37
57
|
readonly status: "running" | "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-workspace-parts.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-parts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"brand-profile-workspace-parts.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-parts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO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CAAC;IACvF,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAC7C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACxC,2CA0CA;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;CAAE,2CAiB1F;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B,2CAeA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { mergeLiveVisualValues, mergeIncomingVisualValues } from "./brand-visual-preview.js";
|
|
3
|
-
import { Switch } from "../components/switch.js";
|
|
4
3
|
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { PublicVisibilityToggle } from "./public-visibility-toggle.js";
|
|
5
5
|
function manualField(value) {
|
|
6
6
|
return { value, sourceUrl: null, confidence: 1, extractionMethod: "user_manual", iteration: 1 };
|
|
7
7
|
}
|
|
@@ -64,15 +64,14 @@ export function mergeIncomingProfile(previous, incoming, live) {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
export function VisibilitySetting({ field, label, visibility, status, errorMessage, onChange, }) {
|
|
68
|
-
|
|
69
|
-
return (_jsxs("div", { className: "flex flex-col gap-1.5 rounded-lg bg-muted/40 p-3", children: [_jsxs("label", { className: "flex items-center justify-between gap-4 text-sm/5 text-foreground", children: [_jsx("span", { className: "min-w-0 break-words", children: label }), _jsx(Switch, { checked: checked, disabled: status === "pending", onChange: (next) => onChange(field, next), "aria-label": label, "aria-busy": status === "pending" })] }), status === "error" && errorMessage ? (_jsx("p", { role: "alert", className: "text-xs text-[var(--tone-danger-fg)]", children: errorMessage })) : null] }));
|
|
67
|
+
export function VisibilitySetting({ field, label, visibility, status, errorMessage, stateLabels, pendingScopeHint, emptyHint, hasContent, onChange, }) {
|
|
68
|
+
return (_jsx(PublicVisibilityToggle, { label: label, checked: visibility[field] === true, status: status, errorMessage: errorMessage, stateLabels: stateLabels, pendingScopeHint: pendingScopeHint, emptyHint: emptyHint, hasContent: hasContent, onChange: (next) => onChange(field, next) }));
|
|
70
69
|
}
|
|
71
70
|
export function WorkspaceSection({ label, children, }) {
|
|
72
71
|
return (_jsx("section", { "aria-label": label, className: "rounded-2xl border border-border bg-card p-4 @lg:p-6", children: children }));
|
|
73
72
|
}
|
|
74
|
-
export function WorkspaceContactSection({ heading, description, contactEditor, keyPeopleEditor, visibility, visibilityStatus = {}, visibilityErrorMessage, onVisibilityChange, contactVisibilityLabel, keyPeopleVisibilityLabel, }) {
|
|
75
|
-
return (_jsxs("section", { "aria-label": heading, className: "flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 @lg:p-6", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-lg/7 font-semibold text-foreground", children: heading }), _jsx("p", { className: "text-sm/6 text-muted-foreground", children: description })] }), contactEditor, onVisibilityChange ? (_jsx(VisibilitySetting, { field: "contact", label: contactVisibilityLabel, visibility: visibility, status: visibilityStatus.contact, errorMessage: visibilityErrorMessage, onChange: onVisibilityChange })) : null, keyPeopleEditor, onVisibilityChange ? (_jsx(VisibilitySetting, { field: "keyPeople", label: keyPeopleVisibilityLabel, visibility: visibility, status: visibilityStatus.keyPeople, errorMessage: visibilityErrorMessage, onChange: onVisibilityChange })) : null] }));
|
|
73
|
+
export function WorkspaceContactSection({ heading, description, contactEditor, keyPeopleEditor, visibility, visibilityStatus = {}, visibilityErrorMessage, onVisibilityChange, contactVisibilityLabel, keyPeopleVisibilityLabel, visibilityStateLabels, visibilityPendingScopeHint, contactEmptyHint, keyPeopleEmptyHint, hasContactContent, hasKeyPeopleContent, }) {
|
|
74
|
+
return (_jsxs("section", { "aria-label": heading, className: "flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 @lg:p-6", children: [_jsxs("div", { children: [_jsx("h3", { className: "text-lg/7 font-semibold text-foreground", children: heading }), _jsx("p", { className: "text-sm/6 text-muted-foreground", children: description })] }), contactEditor, onVisibilityChange ? (_jsx(VisibilitySetting, { field: "contact", label: contactVisibilityLabel, visibility: visibility, status: visibilityStatus.contact, stateLabels: visibilityStateLabels, pendingScopeHint: visibilityPendingScopeHint, emptyHint: contactEmptyHint, hasContent: hasContactContent, errorMessage: visibilityErrorMessage, onChange: onVisibilityChange })) : null, keyPeopleEditor, onVisibilityChange ? (_jsx(VisibilitySetting, { field: "keyPeople", label: keyPeopleVisibilityLabel, visibility: visibility, status: visibilityStatus.keyPeople, stateLabels: visibilityStateLabels, pendingScopeHint: visibilityPendingScopeHint, emptyHint: keyPeopleEmptyHint, hasContent: hasKeyPeopleContent, errorMessage: visibilityErrorMessage, onChange: onVisibilityChange })) : null] }));
|
|
76
75
|
}
|
|
77
76
|
export function WorkspaceStateMessage({ status }) {
|
|
78
77
|
const failed = status === "failed";
|
|
@@ -83,6 +82,6 @@ export function WorkspaceStateMessage({ status }) {
|
|
|
83
82
|
: "Generation is in progress. Editing resumes when the draft is ready." }));
|
|
84
83
|
}
|
|
85
84
|
export function WorkspaceFindings({ title, count, running, children, }) {
|
|
86
|
-
return (_jsxs("details", { className: "rounded-2xl border border-border bg-card p-4", children: [_jsxs("summary", { className: "min-h-11 cursor-pointer py-2 text-sm/5 font-semibold text-foreground focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
85
|
+
return (_jsxs("details", { className: "rounded-2xl border border-border bg-card p-4", children: [_jsxs("summary", { className: "min-h-11 cursor-pointer py-2 text-sm/5 font-semibold text-foreground focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: [title, count === undefined ? null : (_jsxs("span", { className: "ms-2 font-normal text-muted-foreground", children: [count, " ", count === 1 ? "finding" : "findings", running ? ", still generating" : " ready to review"] }))] }), _jsx("div", { className: "mt-3 text-sm/6 text-muted-foreground", children: children })] }));
|
|
87
86
|
}
|
|
88
87
|
//# sourceMappingURL=brand-profile-workspace-parts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-workspace-parts.js","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-parts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE1F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"brand-profile-workspace-parts.js","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace-parts.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE1F,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,SAAS,WAAW,CAAI,KAAQ;IAC9B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;AAClG,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,OAA0B,EAC1B,MAA8B;IAE9B,OAAO;QACL,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,GAAG,OAAO,CAAC,QAAQ;YACnB,YAAY,EAAE,WAAW,CAAC,MAA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40,10 @@ export interface BrandProfileWorkspaceProps {
|
|
|
40
40
|
readonly formCopy?: BrandProfileFormCopy;
|
|
41
41
|
readonly reviewCopy?: BrandProfileReviewProps["copy"];
|
|
42
42
|
readonly allowedImageOrigins?: readonly string[];
|
|
43
|
+
/** False when the profile has no contact; with the contact switch on, shows `copy.contactEmptyHint`. */
|
|
44
|
+
readonly hasContactContent?: boolean;
|
|
45
|
+
/** False when there are no key people; with that switch on, shows `copy.keyPeopleEmptyHint`. */
|
|
46
|
+
readonly hasKeyPeopleContent?: boolean;
|
|
43
47
|
readonly copy?: BrandProfileWorkspaceCopy;
|
|
44
48
|
readonly countryOptions?: ReadonlyArray<CountryRegistryEntry>;
|
|
45
49
|
/** Which persisted target the form's save action writes to (CEL-1680).
|
|
@@ -62,5 +66,5 @@ export interface BrandProfileWorkspaceProps {
|
|
|
62
66
|
readonly recoveryPanel?: ReactNode;
|
|
63
67
|
readonly className?: string;
|
|
64
68
|
}
|
|
65
|
-
export declare function BrandProfileWorkspace({ profile, resetKey, onSubmit, persona, status, statusLabel, saveState, actions, findings, findingsCount, visualEditor, contactEditor, keyPeopleEditor, imageCandidates, imageTarget, onSelectImageCandidate, selectedImageCandidateId, publicVisibility, onPublicVisibilityChange, publicVisibilityStatus, formCopy, reviewCopy, allowedImageOrigins, copy, countryOptions, saveTarget, fieldErrors, conflict, onReloadConflict, onKeepMineConflict, recoveryPanel, className, }: BrandProfileWorkspaceProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare function BrandProfileWorkspace({ profile, resetKey, onSubmit, persona, status, statusLabel, saveState, actions, findings, findingsCount, visualEditor, contactEditor, keyPeopleEditor, imageCandidates, imageTarget, onSelectImageCandidate, selectedImageCandidateId, publicVisibility, onPublicVisibilityChange, publicVisibilityStatus, hasContactContent, hasKeyPeopleContent, formCopy, reviewCopy, allowedImageOrigins, copy, countryOptions, saveTarget, fieldErrors, conflict, onReloadConflict, onKeepMineConflict, recoveryPanel, className, }: BrandProfileWorkspaceProps): import("react/jsx-runtime").JSX.Element;
|
|
66
70
|
//# sourceMappingURL=brand-profile-workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-workspace.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAS/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,oCAAoC,EACpC,KAAK,yBAAyB,GAC/B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3E,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACpC;kFAC8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACtD,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC5D,QAAQ,CAAC,OAAO,CAAC,EAAE,Y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AC,IAAI,CAAC,EAAE,yBAAyB,CAAC;IAC1C,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC9D;mDAC+C;IAC/C,QAAQ,CAAC,UAAU,CAAC,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAC1D;yCACqC;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC5D;wEACoE;IACpE,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACtD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAoB,EACpB,MAAe,EACf,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAoB,EACpB,WAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,gBAAqB,EACrB,wBAAwB,EACxB,sBAA2B,EAC3B,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,IAAI,EACJ,cAAc,EACd,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,SAAS,GACV,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"brand-profile-workspace.d.ts","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW3E,OAAO,KAAK,EAAE,mBAAmB,EAA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,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAC1D;yCACqC;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC5D;wEACoE;IACpE,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACtD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAoB,EACpB,MAAe,EACf,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAoB,EACpB,WAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,gBAAqB,EACrB,wBAAwB,EACxB,sBAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,IAAI,EACJ,cAAc,EACd,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,SAAS,GACV,EAAE,0BAA0B,2CAsM5B"}
|
|
@@ -9,7 +9,7 @@ import { BrandProfileReview, } from "./brand-profile-review.js";
|
|
|
9
9
|
import { mergeIncomingProfile, mergeLiveValues, WorkspaceContactSection, WorkspaceFindings, WorkspaceSection, WorkspaceStateMessage, } from "./brand-profile-workspace-parts.js";
|
|
10
10
|
import { DEFAULT_BRAND_PROFILE_WORKSPACE_COPY, } from "./brand-profile-workspace-copy.js";
|
|
11
11
|
export { DEFAULT_BRAND_PROFILE_WORKSPACE_COPY, } from "./brand-profile-workspace-copy.js";
|
|
12
|
-
export function BrandProfileWorkspace({ profile, resetKey, onSubmit, persona = "producer", status = "idle", statusLabel, saveState, actions, findings, findingsCount, visualEditor, contactEditor, keyPeopleEditor, imageCandidates = [], imageTarget = "profilePicture", onSelectImageCandidate, selectedImageCandidateId, publicVisibility = {}, onPublicVisibilityChange, publicVisibilityStatus = {}, formCopy, reviewCopy, allowedImageOrigins, copy, countryOptions, saveTarget, fieldErrors, conflict, onReloadConflict, onKeepMineConflict, recoveryPanel, className, }) {
|
|
12
|
+
export function BrandProfileWorkspace({ profile, resetKey, onSubmit, persona = "producer", status = "idle", statusLabel, saveState, actions, findings, findingsCount, visualEditor, contactEditor, keyPeopleEditor, imageCandidates = [], imageTarget = "profilePicture", onSelectImageCandidate, selectedImageCandidateId, publicVisibility = {}, onPublicVisibilityChange, publicVisibilityStatus = {}, hasContactContent, hasKeyPeopleContent, formCopy, reviewCopy, allowedImageOrigins, copy, countryOptions, saveTarget, fieldErrors, conflict, onReloadConflict, onKeepMineConflict, recoveryPanel, className, }) {
|
|
13
13
|
const titleId = useId();
|
|
14
14
|
const [profileSnapshot, setProfileSnapshot] = useState(profile);
|
|
15
15
|
const [liveProfile, setLiveProfile] = useState(profile);
|
|
@@ -41,7 +41,7 @@ export function BrandProfileWorkspace({ profile, resetKey, onSubmit, persona = "
|
|
|
41
41
|
// eslint-disable-next-line @eslint-react/set-state-in-effect
|
|
42
42
|
setLiveProfile(nextLiveProfile);
|
|
43
43
|
}, [profile, profileSnapshot, resetKey]);
|
|
44
|
-
return (_jsxs("section", { className: cn("@container flex min-w-0 flex-col gap-5", className), "aria-labelledby": titleId, children: [_jsxs("header", { className: "flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 @3xl:flex-row @3xl:items-center @3xl:justify-between", children: [_jsxs("div", { className: "min-w-0", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx("h2", { id: titleId, className: "[word-break:auto-phrase] text-xl/7 font-semibold text-foreground", children: title }), statusLabel ? (_jsx("span", { "data-status": status, className: "rounded-full bg-muted px-2.5 py-1 text-xs/4 font-medium text-muted-foreground", children: statusLabel })) : null] }), _jsx("p", { className: "mt-1 [word-break:auto-phrase] text-sm/6 text-muted-foreground", children: description })] }), _jsxs("div", { className: "flex flex-col gap-3 @lg:flex-row @lg:items-center @lg:justify-between @3xl:justify-end", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(Sheet, { children: [_jsx(SheetTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "inline-flex min-h-11 shrink-0 items-center gap-2 whitespace-nowrap rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/
|
|
44
|
+
return (_jsxs("section", { className: cn("@container flex min-w-0 flex-col gap-5", className), "aria-labelledby": titleId, children: [_jsxs("header", { className: "flex flex-col gap-4 rounded-2xl border border-border bg-card p-4 @3xl:flex-row @3xl:items-center @3xl:justify-between", children: [_jsxs("div", { className: "min-w-0", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx("h2", { id: titleId, className: "[word-break:auto-phrase] text-xl/7 font-semibold text-foreground", children: title }), statusLabel ? (_jsx("span", { "data-status": status, className: "rounded-full bg-muted px-2.5 py-1 text-xs/4 font-medium text-muted-foreground", children: statusLabel })) : null] }), _jsx("p", { className: "mt-1 [word-break:auto-phrase] text-sm/6 text-muted-foreground", children: description })] }), _jsxs("div", { className: "flex flex-col gap-3 @lg:flex-row @lg:items-center @lg:justify-between @3xl:justify-end", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(Sheet, { children: [_jsx(SheetTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "inline-flex min-h-11 shrink-0 items-center gap-2 whitespace-nowrap rounded-lg border border-border bg-background px-3 py-2 text-sm/5 font-medium text-foreground hover:bg-muted focus-visible:outline-hidden focus-visible:ring-3 focus-visible:ring-ring/70", children: [_jsx(EyeIcon, { className: "size-4", "aria-hidden": "true" }), previewAction] }) }), _jsxs(SheetContent, { side: "right", className: "w-full max-w-none overflow-y-auto p-4 sm:max-w-xl sm:p-6", children: [_jsxs(SheetHeader, { className: "pr-8", children: [_jsx(SheetTitle, { children: previewTitle }), _jsx(SheetDescription, { children: previewDescription })] }), _jsx(BrandProfileReview, { profile: liveProfile, variant: "display", publicVisibility: publicVisibility, copy: reviewCopy, persona: persona, className: "mt-5 shadow-none", allowedImageOrigins: allowedImageOrigins })] })] }), actions] }), status === "draft" && actions ? (_jsx("p", { className: "max-w-md text-sm/5 text-muted-foreground", children: copy?.draftActionGuidance ??
|
|
45
45
|
DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.draftActionGuidance })) : null] })] }), recoveryPanel, status === "running" || status === "failed" ? (_jsx(WorkspaceStateMessage, { status: status })) : null, _jsxs("div", { className: "flex min-w-0 flex-col gap-5", children: [_jsxs(WorkspaceSection, { label: "Identity, visual system, story and voice", children: [_jsx(BrandProfileForm, { value: profile, resetKey: resetKey, persona: persona, onSubmit: (values) => {
|
|
46
46
|
onSubmit(values);
|
|
47
47
|
}, disabled: editingDisabled, saveState: saveState, saveTarget: saveTarget, fieldErrors: fieldErrors, conflict: conflict, onReloadConflict: onReloadConflict, onKeepMineConflict: onKeepMineConflict, onChange: (values) => {
|
|
@@ -49,6 +49,11 @@ export function BrandProfileWorkspace({ profile, resetKey, onSubmit, persona = "
|
|
|
49
49
|
liveProfileRef.current = nextLiveProfile;
|
|
50
50
|
setLiveProfile(nextLiveProfile);
|
|
51
51
|
}, copy: formCopy, countryOptions: countryOptions }), visualEditor ? (_jsx("div", { className: "mt-5 border-t border-border pt-5", children: visualEditor })) : null, onSelectImageCandidate ? (_jsx(BrandImageSourcePicker, { candidates: imageCandidates, target: imageTarget, onSelect: onSelectImageCandidate, selectedCandidateId: selectedImageCandidateId, allowedImageOrigins: allowedImageOrigins, className: "mt-5 border-t border-border pt-5" })) : null] }), hasProfile ? (_jsx(WorkspaceContactSection, { heading: copy?.contactHeading ?? "Contact and people", description: copy?.contactDescription ??
|
|
52
|
-
"Manage contact details and people associated with your brand. Edit those details in the form above, then choose what appears on your public profile here.", contactEditor: contactEditor, keyPeopleEditor: keyPeopleEditor, visibility: publicVisibility, visibilityStatus: publicVisibilityStatus, visibilityErrorMessage: copy?.visibilitySaveError ?? DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.visibilitySaveError, onVisibilityChange: onPublicVisibilityChange,
|
|
52
|
+
"Manage contact details and people associated with your brand. Edit those details in the form above, then choose what appears on your public profile here.", contactEditor: contactEditor, keyPeopleEditor: keyPeopleEditor, visibility: publicVisibility, visibilityStatus: publicVisibilityStatus, visibilityErrorMessage: copy?.visibilitySaveError ?? DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.visibilitySaveError, onVisibilityChange: onPublicVisibilityChange, visibilityStateLabels: {
|
|
53
|
+
visible: copy?.visibilityVisibleLabel ??
|
|
54
|
+
DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.visibilityVisibleLabel,
|
|
55
|
+
hidden: copy?.visibilityHiddenLabel ??
|
|
56
|
+
DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.visibilityHiddenLabel,
|
|
57
|
+
}, visibilityPendingScopeHint: copy?.visibilityPendingScopeHint, contactEmptyHint: copy?.contactEmptyHint ?? DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.contactEmptyHint, keyPeopleEmptyHint: copy?.keyPeopleEmptyHint ?? DEFAULT_BRAND_PROFILE_WORKSPACE_COPY.keyPeopleEmptyHint, hasContactContent: hasContactContent, hasKeyPeopleContent: hasKeyPeopleContent, contactVisibilityLabel: copy?.contactVisibilityLabel ?? "Show contact on public profile", keyPeopleVisibilityLabel: copy?.keyPeopleVisibilityLabel ?? "Show key people on public profile" })) : null, _jsx(WorkspaceFindings, { title: copy?.findingsTitle ?? "Generation findings", count: findingsCount, running: status === "running", children: findings ?? copy?.findingsDescription ?? "Review source details and field provenance." })] })] }));
|
|
53
58
|
}
|
|
54
59
|
//# sourceMappingURL=brand-profile-workspace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-profile-workspace.js","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAC3E,OAAO,EACL,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,EACL,gBAAgB,GAIjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,GAInB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,oCAAoC,GAErC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,oCAAoC,GAErC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"brand-profile-workspace.js","sourceRoot":"","sources":["../../src/brand/brand-profile-workspace.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAC3E,OAAO,EACL,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,M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