@drawnagency/primitives 0.1.110 → 0.1.112
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/{chunk-3GAG6ZXB.js → chunk-3SZNUCXI.js} +8 -4
- package/dist/chunk-4I5OO5UB.js +785 -0
- package/dist/{chunk-ALMEC3XN.js → chunk-5KNXTMUC.js} +22 -18
- package/dist/{chunk-OUYB2GCW.js → chunk-BR4MIPTM.js} +1 -57
- package/dist/chunk-CXZ5YJG4.js +85 -0
- package/dist/{chunk-RA5IOFPY.js → chunk-DNY72JZN.js} +16 -38
- package/dist/{chunk-7MI3HCOF.js → chunk-EPWBPIV6.js} +10 -6
- package/dist/chunk-FV7JQRCN.js +94 -0
- package/dist/{chunk-UVIYI4J6.js → chunk-HSXMOS5Q.js} +15 -2
- package/dist/chunk-IIDKW7AV.js +41 -0
- package/dist/chunk-IINIZBQB.js +204 -0
- package/dist/chunk-MM7KZS5C.js +30 -0
- package/dist/{chunk-VCCNKTFD.js → chunk-OGGZ5AXT.js} +3 -31
- package/dist/{chunk-XQMDWXD6.js → chunk-P3ZNCHW7.js} +1 -1
- package/dist/chunk-QQ3S3P5P.js +38 -0
- package/dist/{chunk-ELQ4C677.js → chunk-TALRVOGO.js} +9 -44
- package/dist/chunk-VAYZJKVR.js +209 -0
- package/dist/{chunk-OTDA6KWL.js → chunk-VLPELTPI.js} +1 -1
- package/dist/{chunk-7WQJ57XG.js → chunk-VT3PYGVW.js} +68 -260
- package/dist/chunk-WUJ3XNFI.js +62 -0
- package/dist/{chunk-NXGIHSL5.js → chunk-Z2LO4PSQ.js} +11 -91
- package/dist/collab/rebase.js +1 -1
- package/dist/components/chat/ChatComposer.d.ts +25 -0
- package/dist/components/chat/ChatComposer.d.ts.map +1 -0
- package/dist/components/chat/ChatPanel.d.ts +5 -4
- package/dist/components/chat/ChatPanel.d.ts.map +1 -1
- package/dist/components/chat/markdown.d.ts +14 -0
- package/dist/components/chat/markdown.d.ts.map +1 -0
- package/dist/components/editor/index.js +16 -11
- package/dist/components/primitives/EditablePlainText.d.ts.map +1 -1
- package/dist/components/primitives/index.js +15 -10
- package/dist/components/sections/brand-guide.js +11 -9
- package/dist/components/sections/register-schemas.js +19 -14
- package/dist/components/sections/register.js +19 -14
- package/dist/components/shell/AudienceChips.d.ts +10 -0
- package/dist/components/shell/AudienceChips.d.ts.map +1 -0
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsChatbot.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsDecks.d.ts +13 -0
- package/dist/components/shell/SiteSettingsDecks.d.ts.map +1 -0
- package/dist/components/shell/SiteSettingsModal.d.ts.map +1 -1
- package/dist/deck/DeckComponentView.d.ts +13 -0
- package/dist/deck/DeckComponentView.d.ts.map +1 -0
- package/dist/deck/DeckPlayer.d.ts +26 -0
- package/dist/deck/DeckPlayer.d.ts.map +1 -0
- package/dist/deck/DeckSlideView.d.ts +17 -0
- package/dist/deck/DeckSlideView.d.ts.map +1 -0
- package/dist/deck/DeckStage.d.ts +16 -0
- package/dist/deck/DeckStage.d.ts.map +1 -0
- package/dist/deck/components/DeckImage.d.ts +14 -0
- package/dist/deck/components/DeckImage.d.ts.map +1 -0
- package/dist/deck/components/DeckImageGrid.d.ts +27 -0
- package/dist/deck/components/DeckImageGrid.d.ts.map +1 -0
- package/dist/deck/components/DeckRichText.d.ts +22 -0
- package/dist/deck/components/DeckRichText.d.ts.map +1 -0
- package/dist/deck/components/DeckVideo.d.ts +15 -0
- package/dist/deck/components/DeckVideo.d.ts.map +1 -0
- package/dist/deck/editing.d.ts +50 -0
- package/dist/deck/editing.d.ts.map +1 -0
- package/dist/deck/flip.d.ts +11 -0
- package/dist/deck/flip.d.ts.map +1 -0
- package/dist/deck/index.d.ts +24 -0
- package/dist/deck/index.d.ts.map +1 -0
- package/dist/deck/index.js +53 -0
- package/dist/deck/layouts/CenteredTextLayout.d.ts +12 -0
- package/dist/deck/layouts/CenteredTextLayout.d.ts.map +1 -0
- package/dist/deck/layouts/ColumnSplitLayout.d.ts +14 -0
- package/dist/deck/layouts/ColumnSplitLayout.d.ts.map +1 -0
- package/dist/deck/layouts/FullBleedImageLayout.d.ts +14 -0
- package/dist/deck/layouts/FullBleedImageLayout.d.ts.map +1 -0
- package/dist/deck/media.d.ts +33 -0
- package/dist/deck/media.d.ts.map +1 -0
- package/dist/deck/tokens.d.ts +22 -0
- package/dist/deck/tokens.d.ts.map +1 -0
- package/dist/deck/useStageScale.d.ts +10 -0
- package/dist/deck/useStageScale.d.ts.map +1 -0
- package/dist/deck-builder/DeckBuilderApp.d.ts +30 -0
- package/dist/deck-builder/DeckBuilderApp.d.ts.map +1 -0
- package/dist/deck-builder/DeckBuilderTopBar.d.ts +24 -0
- package/dist/deck-builder/DeckBuilderTopBar.d.ts.map +1 -0
- package/dist/deck-builder/DeckChatPanel.d.ts +45 -0
- package/dist/deck-builder/DeckChatPanel.d.ts.map +1 -0
- package/dist/deck-builder/DeckEditor.d.ts +37 -0
- package/dist/deck-builder/DeckEditor.d.ts.map +1 -0
- package/dist/deck-builder/DeckLibrary.d.ts +22 -0
- package/dist/deck-builder/DeckLibrary.d.ts.map +1 -0
- package/dist/deck-builder/DeckSlideSurface.d.ts +31 -0
- package/dist/deck-builder/DeckSlideSurface.d.ts.map +1 -0
- package/dist/deck-builder/deck-api.d.ts +76 -0
- package/dist/deck-builder/deck-api.d.ts.map +1 -0
- package/dist/deck-builder/deck-chat-client.d.ts +44 -0
- package/dist/deck-builder/deck-chat-client.d.ts.map +1 -0
- package/dist/deck-builder/deck-chat-history.d.ts +10 -0
- package/dist/deck-builder/deck-chat-history.d.ts.map +1 -0
- package/dist/deck-builder/index.d.ts +13 -0
- package/dist/deck-builder/index.d.ts.map +1 -0
- package/dist/deck-builder/index.js +1505 -0
- package/dist/deck-builder/starter-deck.d.ts +23 -0
- package/dist/deck-builder/starter-deck.d.ts.map +1 -0
- package/dist/deck-builder/types.d.ts +29 -0
- package/dist/deck-builder/types.d.ts.map +1 -0
- package/dist/deck-builder/useSortableSlide.d.ts +29 -0
- package/dist/deck-builder/useSortableSlide.d.ts.map +1 -0
- package/dist/index.js +70 -63
- package/dist/lib/deck-access.d.ts +86 -0
- package/dist/lib/deck-access.d.ts.map +1 -0
- package/dist/lib/deck-access.js +58 -0
- package/dist/lib/deck-dexie.d.ts +88 -0
- package/dist/lib/deck-dexie.d.ts.map +1 -0
- package/dist/lib/deck-dexie.js +22 -0
- package/dist/lib/deck-edit.d.ts +67 -0
- package/dist/lib/deck-edit.d.ts.map +1 -0
- package/dist/lib/deck-media-assets.d.ts +27 -0
- package/dist/lib/deck-media-assets.d.ts.map +1 -0
- package/dist/lib/deck-media-assets.js +25 -0
- package/dist/lib/deck-media-refs.d.ts +35 -0
- package/dist/lib/deck-media-refs.d.ts.map +1 -0
- package/dist/lib/deck-media-refs.js +36 -0
- package/dist/lib/deck-tool.d.ts +25 -0
- package/dist/lib/deck-tool.d.ts.map +1 -0
- package/dist/lib/deck-tool.js +58 -0
- package/dist/lib/index-ops.js +2 -2
- package/dist/lib/index.js +17 -12
- package/dist/lib/nav-progress.d.ts +14 -0
- package/dist/lib/nav-progress.d.ts.map +1 -0
- package/dist/lib/nav.d.ts.map +1 -1
- package/dist/media/index.js +3 -3
- package/dist/schemas/deck-meta.d.ts +85 -0
- package/dist/schemas/deck-meta.d.ts.map +1 -0
- package/dist/schemas/deck-meta.js +64 -0
- package/dist/schemas/deck.d.ts +954 -0
- package/dist/schemas/deck.d.ts.map +1 -0
- package/dist/schemas/deck.js +65 -0
- package/dist/schemas/index.js +39 -37
- package/dist/schemas/site-config.d.ts +13 -1
- package/dist/schemas/site-config.d.ts.map +1 -1
- package/package.json +37 -1
- package/src/components/chat/ChatComposer.tsx +100 -0
- package/src/components/chat/ChatPanel.tsx +20 -69
- package/src/components/chat/markdown.ts +32 -0
- package/src/components/primitives/EditablePlainText.tsx +11 -1
- package/src/components/shell/AudienceChips.tsx +30 -0
- package/src/components/shell/EditorShell.tsx +12 -0
- package/src/components/shell/SiteSettingsChatbot.tsx +1 -18
- package/src/components/shell/SiteSettingsDecks.tsx +41 -0
- package/src/components/shell/SiteSettingsModal.tsx +11 -0
- package/src/deck/DeckComponentView.tsx +28 -0
- package/src/deck/DeckPlayer.tsx +166 -0
- package/src/deck/DeckSlideView.tsx +38 -0
- package/src/deck/DeckStage.tsx +39 -0
- package/src/deck/components/DeckImage.tsx +38 -0
- package/src/deck/components/DeckImageGrid.tsx +254 -0
- package/src/deck/components/DeckRichText.tsx +111 -0
- package/src/deck/components/DeckVideo.tsx +81 -0
- package/src/deck/editing.tsx +201 -0
- package/src/deck/flip.ts +70 -0
- package/src/deck/index.ts +30 -0
- package/src/deck/layouts/CenteredTextLayout.tsx +29 -0
- package/src/deck/layouts/ColumnSplitLayout.tsx +69 -0
- package/src/deck/layouts/FullBleedImageLayout.tsx +58 -0
- package/src/deck/media.tsx +46 -0
- package/src/deck/tokens.ts +57 -0
- package/src/deck/useStageScale.ts +44 -0
- package/src/deck-builder/DeckBuilderApp.tsx +572 -0
- package/src/deck-builder/DeckBuilderTopBar.tsx +62 -0
- package/src/deck-builder/DeckChatPanel.tsx +334 -0
- package/src/deck-builder/DeckEditor.tsx +258 -0
- package/src/deck-builder/DeckLibrary.tsx +195 -0
- package/src/deck-builder/DeckSlideSurface.tsx +55 -0
- package/src/deck-builder/deck-api.ts +177 -0
- package/src/deck-builder/deck-chat-client.ts +129 -0
- package/src/deck-builder/deck-chat-history.ts +62 -0
- package/src/deck-builder/index.ts +12 -0
- package/src/deck-builder/starter-deck.ts +86 -0
- package/src/deck-builder/types.ts +24 -0
- package/src/deck-builder/useSortableSlide.ts +102 -0
- package/src/lib/deck-access.ts +132 -0
- package/src/lib/deck-dexie.ts +190 -0
- package/src/lib/deck-edit.ts +196 -0
- package/src/lib/deck-media-assets.ts +57 -0
- package/src/lib/deck-media-refs.ts +67 -0
- package/src/lib/deck-tool.ts +95 -0
- package/src/lib/nav-progress.ts +108 -0
- package/src/lib/nav.ts +21 -1
- package/src/schemas/deck-meta.ts +88 -0
- package/src/schemas/deck.ts +478 -0
- package/src/schemas/index.ts +4 -0
- package/src/schemas/site-config.ts +24 -1
|
@@ -7,23 +7,18 @@ import {
|
|
|
7
7
|
MediaBlock,
|
|
8
8
|
containerGridClass,
|
|
9
9
|
useEditableCollection
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3SZNUCXI.js";
|
|
11
11
|
import {
|
|
12
12
|
AddIcon,
|
|
13
13
|
DeleteIcon,
|
|
14
14
|
DragHandle,
|
|
15
15
|
FormLabel,
|
|
16
|
-
IconButton,
|
|
17
16
|
Input,
|
|
18
17
|
useMediaLibrary
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TALRVOGO.js";
|
|
20
19
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./chunk-3ZRQ4G5F.js";
|
|
24
|
-
import {
|
|
25
|
-
DOCUMENT_MIME_TO_EXT
|
|
26
|
-
} from "./chunk-BS5AQHZG.js";
|
|
20
|
+
IconButton
|
|
21
|
+
} from "./chunk-IIDKW7AV.js";
|
|
27
22
|
import {
|
|
28
23
|
curatedIcons,
|
|
29
24
|
getIcon
|
|
@@ -41,6 +36,13 @@ import {
|
|
|
41
36
|
HexColorSchema,
|
|
42
37
|
SingleMediaReferenceSchema
|
|
43
38
|
} from "./chunk-GGXZZ77Z.js";
|
|
39
|
+
import {
|
|
40
|
+
DEFAULT_LINK,
|
|
41
|
+
LinkValueSchema
|
|
42
|
+
} from "./chunk-3ZRQ4G5F.js";
|
|
43
|
+
import {
|
|
44
|
+
DOCUMENT_MIME_TO_EXT
|
|
45
|
+
} from "./chunk-BS5AQHZG.js";
|
|
44
46
|
|
|
45
47
|
// src/components/sections/Colors/index.tsx
|
|
46
48
|
import { z as z2 } from "zod";
|
|
@@ -1407,82 +1409,6 @@ function DocumentDropZone({ onDocumentSelected, className }) {
|
|
|
1407
1409
|
);
|
|
1408
1410
|
}
|
|
1409
1411
|
|
|
1410
|
-
// src/lib/insert-menu.ts
|
|
1411
|
-
var PRESET_PREFIX = "__preset:";
|
|
1412
|
-
var INSERT_MENU_ORDER = [
|
|
1413
|
-
"container",
|
|
1414
|
-
"link_heading",
|
|
1415
|
-
"sub_heading",
|
|
1416
|
-
"sub_sub_heading",
|
|
1417
|
-
"prose",
|
|
1418
|
-
"media",
|
|
1419
|
-
"video",
|
|
1420
|
-
"button",
|
|
1421
|
-
"colors",
|
|
1422
|
-
"document",
|
|
1423
|
-
"icon_list",
|
|
1424
|
-
`${PRESET_PREFIX}do_dont_list`,
|
|
1425
|
-
"dodont_media"
|
|
1426
|
-
];
|
|
1427
|
-
|
|
1428
|
-
// src/lib/container-ops.ts
|
|
1429
|
-
function getContainerChildren(block) {
|
|
1430
|
-
const content = block.content;
|
|
1431
|
-
return Array.isArray(content?.children) ? content.children : [];
|
|
1432
|
-
}
|
|
1433
|
-
function withChildren(container, children) {
|
|
1434
|
-
return { ...container, content: { ...container.content, children } };
|
|
1435
|
-
}
|
|
1436
|
-
function containerColumns(container) {
|
|
1437
|
-
const n = container.content?.columns;
|
|
1438
|
-
return typeof n === "number" && n >= 1 ? n : 1;
|
|
1439
|
-
}
|
|
1440
|
-
function removeChildAt(container, index) {
|
|
1441
|
-
const children = getContainerChildren(container);
|
|
1442
|
-
if (index < 0 || index >= children.length) return { container, removed: null };
|
|
1443
|
-
const next = [...children];
|
|
1444
|
-
const [removed] = next.splice(index, 1);
|
|
1445
|
-
return { container: withChildren(container, next), removed };
|
|
1446
|
-
}
|
|
1447
|
-
function duplicateChildAt(container, index, newId) {
|
|
1448
|
-
const children = getContainerChildren(container);
|
|
1449
|
-
if (index < 0 || index >= children.length) return container;
|
|
1450
|
-
const clone = { ...JSON.parse(JSON.stringify(children[index])), id: newId() };
|
|
1451
|
-
const next = [...children];
|
|
1452
|
-
next.splice(index + 1, 0, clone);
|
|
1453
|
-
return withChildren(container, next);
|
|
1454
|
-
}
|
|
1455
|
-
function setChildColSpan(container, index, span) {
|
|
1456
|
-
const children = getContainerChildren(container);
|
|
1457
|
-
if (index < 0 || index >= children.length) return container;
|
|
1458
|
-
const clamped = Math.max(1, Math.min(span, containerColumns(container)));
|
|
1459
|
-
const next = children.map((child, i) => {
|
|
1460
|
-
if (i !== index) return child;
|
|
1461
|
-
if (clamped <= 1) {
|
|
1462
|
-
const { layout: _drop, ...rest } = child;
|
|
1463
|
-
return rest;
|
|
1464
|
-
}
|
|
1465
|
-
return { ...child, layout: { ...child.layout, colSpan: clamped } };
|
|
1466
|
-
});
|
|
1467
|
-
return withChildren(container, next);
|
|
1468
|
-
}
|
|
1469
|
-
function effectiveSpan(child, columns) {
|
|
1470
|
-
return isSpacer(child) ? 1 : Math.min(child.layout?.colSpan ?? 1, columns);
|
|
1471
|
-
}
|
|
1472
|
-
function isSpacer(child) {
|
|
1473
|
-
return child.type === "spacer";
|
|
1474
|
-
}
|
|
1475
|
-
function occupiedColumns(children, columns) {
|
|
1476
|
-
return children.reduce((sum, c) => sum + effectiveSpan(c, columns), 0);
|
|
1477
|
-
}
|
|
1478
|
-
function trimTrailingSpacers(container) {
|
|
1479
|
-
const children = getContainerChildren(container);
|
|
1480
|
-
let end = children.length;
|
|
1481
|
-
while (end > 0 && isSpacer(children[end - 1])) end--;
|
|
1482
|
-
if (end === children.length) return container;
|
|
1483
|
-
return withChildren(container, children.slice(0, end));
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
1412
|
// src/lib/documents.ts
|
|
1487
1413
|
function formatDocSize(bytes) {
|
|
1488
1414
|
if (!Number.isFinite(bytes) || bytes < 0) return "";
|
|
@@ -1687,12 +1613,6 @@ export {
|
|
|
1687
1613
|
stripHtmlToPlainText,
|
|
1688
1614
|
truncate,
|
|
1689
1615
|
pluralize,
|
|
1690
|
-
removeChildAt,
|
|
1691
|
-
duplicateChildAt,
|
|
1692
|
-
setChildColSpan,
|
|
1693
|
-
isSpacer,
|
|
1694
|
-
occupiedColumns,
|
|
1695
|
-
trimTrailingSpacers,
|
|
1696
1616
|
ColorSpaceSchema,
|
|
1697
1617
|
ColorItemSchema,
|
|
1698
1618
|
brandGuideSectionDefs
|
package/dist/collab/rebase.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The composer every chat surface shares: an autosizing textarea, Enter-to-send
|
|
4
|
+
* with Shift+Enter for a newline, and a send button that becomes a stop button
|
|
5
|
+
* while a turn is in flight.
|
|
6
|
+
*
|
|
7
|
+
* Extracted for the Deck Builder's docked assistant (#35). Rendering it twice
|
|
8
|
+
* from one component is what keeps "Enter sends" from meaning two things on two
|
|
9
|
+
* panes of the same product.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ChatComposer({ value, onChange, onSend, onStop, busy, placeholder, disabled, className, textareaRef, maxLength, }: {
|
|
12
|
+
value: string;
|
|
13
|
+
onChange: (value: string) => void;
|
|
14
|
+
onSend: () => void;
|
|
15
|
+
/** Omitted where a turn cannot be interrupted; the button then just disables. */
|
|
16
|
+
onStop?: () => void;
|
|
17
|
+
busy: boolean;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Exposed so a panel can focus the composer (open, clear, suggestion click). */
|
|
22
|
+
textareaRef?: RefObject<HTMLTextAreaElement | null>;
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=ChatComposer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatComposer.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatComposer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI9E;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,WAAW,EACX,SAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA8DA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { assistantHtml } from "./markdown";
|
|
1
2
|
export interface ChatMessage {
|
|
2
3
|
role: "user" | "assistant";
|
|
3
4
|
content: string;
|
|
@@ -7,10 +8,10 @@ export interface ChatMessage {
|
|
|
7
8
|
* - "docked": full-height right sidebar (viewer + /edit, >=768px)
|
|
8
9
|
* - "sheet": bottom sheet (viewer + /edit, phones) */
|
|
9
10
|
export type ChatPanelMode = "floating" | "docked" | "sheet";
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
export
|
|
11
|
+
/** Re-exported from ./markdown, where the rendering rules now live so the deck
|
|
12
|
+
* assistant shares them. Kept here because tests and callers import it from
|
|
13
|
+
* this module. */
|
|
14
|
+
export { assistantHtml };
|
|
14
15
|
/** Parse our /api/chat SSE frames out of a fetch body. Exported for tests. */
|
|
15
16
|
export declare function streamChat(body: {
|
|
16
17
|
messages: ChatMessage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAgC,MAAM,YAAY,CAAC;AASzE,MAAM,WAAW,WAAW;IAAG,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AAE5E;;;0DAG0D;AAC1D,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AA+C5D;;mBAEmB;AACnB,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,8EAA8E;AAC9E,wBAAsB,UAAU,CAC9B,IAAI,EAAE;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,EACxH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC9B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA6CjG;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAE,OAAkB,EAAE,IAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE;IAC/N,IAAI,EAAE,OAAO,CAAC;IACd;uDACmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;4CAEwC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;6EAEyE;IACzE,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;kFAC8E;IAC9E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;+DAC2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,kDAseA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The assistant-message treatment, shared by every chat surface (brand chat's
|
|
3
|
+
* ChatPanel and the Deck Builder's docked assistant). Extracted so a second
|
|
4
|
+
* chat pane is a second CALLER, not a second copy of the rendering rules —
|
|
5
|
+
* particularly the sanitizer gate below, which is a security property.
|
|
6
|
+
*/
|
|
7
|
+
/** Assistant markdown → sanitized HTML. Callers MUST gate on the sanitizer
|
|
8
|
+
* having loaded (`mdReady`) — before then sanitizeHtml passes raw HTML
|
|
9
|
+
* through, and model output is untrusted. */
|
|
10
|
+
export declare function assistantHtml(md: string): string;
|
|
11
|
+
export declare const MD_STYLES: string;
|
|
12
|
+
/** The user's turn: the only side of a transcript that gets a filled bubble. */
|
|
13
|
+
export declare const USER_BUBBLE_CLASS = "ml-auto max-w-[85%] whitespace-pre-wrap rounded-outer bg-primary px-3 py-2 text-sm text-primary-contrast";
|
|
14
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/components/chat/markdown.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH;;8CAE8C;AAC9C,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEhD;AAID,eAAO,MAAM,SAAS,QAQ8E,CAAC;AAErG,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,6GAC8E,CAAC"}
|
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeleteButton,
|
|
3
3
|
DragHandle,
|
|
4
|
-
Kbd,
|
|
5
|
-
Popover,
|
|
6
|
-
PopoverItem,
|
|
7
4
|
SettingsButton,
|
|
8
5
|
SettingsForm,
|
|
9
|
-
Tooltip,
|
|
10
6
|
buildBlockDragData,
|
|
11
7
|
buildBlockDropData,
|
|
12
8
|
canDropBlock,
|
|
13
9
|
isBlockDragData
|
|
14
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VT3PYGVW.js";
|
|
15
11
|
import "../../chunk-F2LYQPXV.js";
|
|
16
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-BR4MIPTM.js";
|
|
13
|
+
import {
|
|
14
|
+
AddIcon
|
|
15
|
+
} from "../../chunk-TALRVOGO.js";
|
|
16
|
+
import {
|
|
17
|
+
Kbd,
|
|
18
|
+
Popover,
|
|
19
|
+
PopoverItem,
|
|
20
|
+
Tooltip
|
|
21
|
+
} from "../../chunk-IINIZBQB.js";
|
|
22
|
+
import "../../chunk-WUJ3XNFI.js";
|
|
17
23
|
import {
|
|
18
|
-
AddIcon,
|
|
19
24
|
IconButton
|
|
20
|
-
} from "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
25
|
+
} from "../../chunk-IIDKW7AV.js";
|
|
26
|
+
import "../../chunk-P3ZNCHW7.js";
|
|
22
27
|
import "../../chunk-4RNF2DRG.js";
|
|
23
28
|
import {
|
|
24
29
|
cn
|
|
25
30
|
} from "../../chunk-7EOSDFS3.js";
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
31
|
+
import "../../chunk-VLPELTPI.js";
|
|
32
|
+
import "../../chunk-HSXMOS5Q.js";
|
|
28
33
|
import "../../chunk-4TZJZU2T.js";
|
|
29
34
|
import "../../chunk-GGXZZ77Z.js";
|
|
30
35
|
import "../../chunk-JSBRDJBE.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditablePlainText.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/EditablePlainText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAGf,UAAU,sBACR,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACrD,GAAG,EAAE,WAAW,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,GAAG,EACH,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAiB,EACjB,WAAW,EACX,SAAS,EACT,GAAG,SAAS,EACb,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"EditablePlainText.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/EditablePlainText.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAGf,UAAU,sBACR,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACrD,GAAG,EAAE,WAAW,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,GAAG,EACH,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAiB,EACjB,WAAW,EACX,SAAS,EACT,GAAG,SAAS,EACb,EAAE,sBAAsB,0FA+ExB"}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
EditableRichText,
|
|
3
3
|
LinkPopover,
|
|
4
4
|
defineHeadingSection
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-EPWBPIV6.js";
|
|
6
6
|
import {
|
|
7
7
|
EditableGrid,
|
|
8
8
|
EditablePlainText,
|
|
@@ -10,26 +10,31 @@ import {
|
|
|
10
10
|
MediaBlock,
|
|
11
11
|
ResolvedMedia,
|
|
12
12
|
useEditableCollection
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-3SZNUCXI.js";
|
|
14
14
|
import {
|
|
15
15
|
LinkField,
|
|
16
16
|
PagesContext,
|
|
17
17
|
usePages
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-BR4MIPTM.js";
|
|
19
19
|
import {
|
|
20
20
|
DeleteIcon,
|
|
21
|
-
DragHandle
|
|
21
|
+
DragHandle
|
|
22
|
+
} from "../../chunk-TALRVOGO.js";
|
|
23
|
+
import "../../chunk-WUJ3XNFI.js";
|
|
24
|
+
import {
|
|
22
25
|
IconButton
|
|
23
|
-
} from "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
26
|
+
} from "../../chunk-IIDKW7AV.js";
|
|
27
|
+
import "../../chunk-P3ZNCHW7.js";
|
|
28
|
+
import "../../chunk-DNY72JZN.js";
|
|
29
|
+
import "../../chunk-CXZ5YJG4.js";
|
|
30
|
+
import "../../chunk-QQ3S3P5P.js";
|
|
26
31
|
import {
|
|
27
32
|
cn
|
|
28
33
|
} from "../../chunk-7EOSDFS3.js";
|
|
29
|
-
import "../../chunk-
|
|
30
|
-
import "../../chunk-
|
|
31
|
-
import "../../chunk-UVIYI4J6.js";
|
|
34
|
+
import "../../chunk-VLPELTPI.js";
|
|
35
|
+
import "../../chunk-HSXMOS5Q.js";
|
|
32
36
|
import "../../chunk-4TZJZU2T.js";
|
|
37
|
+
import "../../chunk-FTPETWXE.js";
|
|
33
38
|
import "../../chunk-GGXZZ77Z.js";
|
|
34
39
|
import "../../chunk-JSBRDJBE.js";
|
|
35
40
|
|
|
@@ -2,21 +2,23 @@ import {
|
|
|
2
2
|
ColorItemSchema,
|
|
3
3
|
ColorSpaceSchema,
|
|
4
4
|
brandGuideSectionDefs
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-Z2LO4PSQ.js";
|
|
6
6
|
import "../../chunk-F2LYQPXV.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-BS5AQHZG.js";
|
|
7
|
+
import "../../chunk-3SZNUCXI.js";
|
|
8
|
+
import "../../chunk-TALRVOGO.js";
|
|
9
|
+
import "../../chunk-IIDKW7AV.js";
|
|
10
|
+
import "../../chunk-P3ZNCHW7.js";
|
|
12
11
|
import "../../chunk-WDSVHKAH.js";
|
|
13
12
|
import "../../chunk-4RNF2DRG.js";
|
|
13
|
+
import "../../chunk-CXZ5YJG4.js";
|
|
14
14
|
import "../../chunk-7EOSDFS3.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-UVIYI4J6.js";
|
|
15
|
+
import "../../chunk-VLPELTPI.js";
|
|
16
|
+
import "../../chunk-HSXMOS5Q.js";
|
|
18
17
|
import "../../chunk-4TZJZU2T.js";
|
|
18
|
+
import "../../chunk-FTPETWXE.js";
|
|
19
19
|
import "../../chunk-GGXZZ77Z.js";
|
|
20
|
+
import "../../chunk-3ZRQ4G5F.js";
|
|
21
|
+
import "../../chunk-BS5AQHZG.js";
|
|
20
22
|
import "../../chunk-JSBRDJBE.js";
|
|
21
23
|
export {
|
|
22
24
|
ColorItemSchema,
|
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
allSectionDefs
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-5KNXTMUC.js";
|
|
4
|
+
import "../../chunk-Z2LO4PSQ.js";
|
|
5
|
+
import "../../chunk-VT3PYGVW.js";
|
|
6
6
|
import "../../chunk-F2LYQPXV.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-EPWBPIV6.js";
|
|
8
|
+
import "../../chunk-3SZNUCXI.js";
|
|
9
|
+
import "../../chunk-BR4MIPTM.js";
|
|
10
|
+
import "../../chunk-TALRVOGO.js";
|
|
11
|
+
import "../../chunk-IINIZBQB.js";
|
|
12
|
+
import "../../chunk-WUJ3XNFI.js";
|
|
13
|
+
import "../../chunk-IIDKW7AV.js";
|
|
11
14
|
import "../../chunk-Y4JQGO6G.js";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-3ZRQ4G5F.js";
|
|
14
|
-
import "../../chunk-BS5AQHZG.js";
|
|
15
|
+
import "../../chunk-P3ZNCHW7.js";
|
|
15
16
|
import "../../chunk-WDSVHKAH.js";
|
|
16
17
|
import "../../chunk-4RNF2DRG.js";
|
|
17
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-DNY72JZN.js";
|
|
19
|
+
import "../../chunk-CXZ5YJG4.js";
|
|
20
|
+
import "../../chunk-QQ3S3P5P.js";
|
|
18
21
|
import "../../chunk-7EOSDFS3.js";
|
|
19
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-VLPELTPI.js";
|
|
20
23
|
import "../../chunk-DMCGN5AS.js";
|
|
24
|
+
import "../../chunk-HSXMOS5Q.js";
|
|
25
|
+
import "../../chunk-4TZJZU2T.js";
|
|
21
26
|
import {
|
|
22
27
|
registerRichText,
|
|
23
28
|
registerSchema
|
|
24
29
|
} from "../../chunk-FTPETWXE.js";
|
|
25
|
-
import "../../chunk-UVIYI4J6.js";
|
|
26
|
-
import "../../chunk-4TZJZU2T.js";
|
|
27
30
|
import "../../chunk-GGXZZ77Z.js";
|
|
28
31
|
import "../../chunk-NSCT3AMV.js";
|
|
32
|
+
import "../../chunk-3ZRQ4G5F.js";
|
|
33
|
+
import "../../chunk-BS5AQHZG.js";
|
|
29
34
|
import "../../chunk-JSBRDJBE.js";
|
|
30
35
|
|
|
31
36
|
// src/components/sections/register-schemas.ts
|
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
allSectionDefs
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-5KNXTMUC.js";
|
|
4
|
+
import "../../chunk-Z2LO4PSQ.js";
|
|
5
|
+
import "../../chunk-VT3PYGVW.js";
|
|
6
6
|
import "../../chunk-F2LYQPXV.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-EPWBPIV6.js";
|
|
8
|
+
import "../../chunk-3SZNUCXI.js";
|
|
9
|
+
import "../../chunk-BR4MIPTM.js";
|
|
10
|
+
import "../../chunk-TALRVOGO.js";
|
|
11
|
+
import "../../chunk-IINIZBQB.js";
|
|
12
|
+
import "../../chunk-WUJ3XNFI.js";
|
|
13
|
+
import "../../chunk-IIDKW7AV.js";
|
|
11
14
|
import "../../chunk-Y4JQGO6G.js";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-3ZRQ4G5F.js";
|
|
14
|
-
import "../../chunk-BS5AQHZG.js";
|
|
15
|
+
import "../../chunk-P3ZNCHW7.js";
|
|
15
16
|
import "../../chunk-WDSVHKAH.js";
|
|
16
17
|
import "../../chunk-4RNF2DRG.js";
|
|
17
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-DNY72JZN.js";
|
|
19
|
+
import "../../chunk-CXZ5YJG4.js";
|
|
20
|
+
import "../../chunk-QQ3S3P5P.js";
|
|
18
21
|
import "../../chunk-7EOSDFS3.js";
|
|
19
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-VLPELTPI.js";
|
|
20
23
|
import "../../chunk-DMCGN5AS.js";
|
|
24
|
+
import "../../chunk-HSXMOS5Q.js";
|
|
25
|
+
import "../../chunk-4TZJZU2T.js";
|
|
21
26
|
import {
|
|
22
27
|
registerSection
|
|
23
28
|
} from "../../chunk-FTPETWXE.js";
|
|
24
|
-
import "../../chunk-UVIYI4J6.js";
|
|
25
|
-
import "../../chunk-4TZJZU2T.js";
|
|
26
29
|
import "../../chunk-GGXZZ77Z.js";
|
|
27
30
|
import "../../chunk-NSCT3AMV.js";
|
|
31
|
+
import "../../chunk-3ZRQ4G5F.js";
|
|
32
|
+
import "../../chunk-BS5AQHZG.js";
|
|
28
33
|
import "../../chunk-JSBRDJBE.js";
|
|
29
34
|
|
|
30
35
|
// src/components/sections/register.ts
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Audience } from "../../auth/types";
|
|
2
|
+
/** Multi-select audience chips — the site-settings idiom for "who sees this".
|
|
3
|
+
* Shared by the chatbot and deck-builder opt-ins so the two gates, which have
|
|
4
|
+
* identical strict-opt-in semantics, cannot come to look like different rules. */
|
|
5
|
+
export declare function AudienceChips({ audiences, selected, onToggle, }: {
|
|
6
|
+
audiences: Audience[];
|
|
7
|
+
selected: string[];
|
|
8
|
+
onToggle: (name: string) => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=AudienceChips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudienceChips.d.ts","sourceRoot":"","sources":["../../../src/components/shell/AudienceChips.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;mFAEmF;AACnF,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,2CAcA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorShell.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAejD,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAuDtF,OAAO,KAAK,EAAE,eAAe,EAA2D,MAAM,oBAAoB,CAAC;AA+CnH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA2BxD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAIhB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,YAAY,EAAE;QACZ,KAAK,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,OAAO,CAAC;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,cAAc,EAAE,OAAO,CAAC;QACxB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;KAAE,GAAG,IAAI,CAAC;IAIhE,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAKjC,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC1C;AAQD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,YAAY,EACZ,MAAM,EACN,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EACZ,WAAW,EACX,sBAA8B,EAC9B,eAAe,GAChB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorShell.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAejD,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAuDtF,OAAO,KAAK,EAAE,eAAe,EAA2D,MAAM,oBAAoB,CAAC;AA+CnH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA2BxD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAIhB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,YAAY,EAAE;QACZ,KAAK,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,OAAO,CAAC;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,cAAc,EAAE,OAAO,CAAC;QACxB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;KAAE,GAAG,IAAI,CAAC;IAIhE,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAKjC,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC1C;AAQD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,YAAY,EACZ,MAAM,EACN,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EACZ,WAAW,EACX,sBAA8B,EAC9B,eAAe,GAChB,EAAE,KAAK,2CAqnEP;AA0FD;6EAC6E;AAC7E,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,EACvC,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5B,eAAe,EAAE,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SiteSettingsChatbot.d.ts","sourceRoot":"","sources":["../../../src/components/shell/SiteSettingsChatbot.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SiteSettingsChatbot.d.ts","sourceRoot":"","sources":["../../../src/components/shell/SiteSettingsChatbot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAA8B,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAcjD,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAMD,wBAAgB,mBAAmB,CAAC,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,KAAK,2CA+MxG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SiteConfig } from "../../schemas/site-config";
|
|
2
|
+
import type { Audience } from "../../auth/types";
|
|
3
|
+
interface Props {
|
|
4
|
+
siteConfig: SiteConfig;
|
|
5
|
+
onSiteConfigChange: (config: SiteConfig) => void;
|
|
6
|
+
audiences: Audience[];
|
|
7
|
+
}
|
|
8
|
+
/** Deck Builder settings. One control today — the creation opt-in — because
|
|
9
|
+
* that is the only `deckBuilder` key that exists; public sharing (#37) is the
|
|
10
|
+
* next one and belongs on this tab. */
|
|
11
|
+
export declare function SiteSettingsDecks({ siteConfig, onSiteConfigChange, audiences }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SiteSettingsDecks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteSettingsDecks.d.ts","sourceRoot":"","sources":["../../../src/components/shell/SiteSettingsDecks.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED;;wCAEwC;AACxC,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,EAAE,KAAK,2CA2BrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SiteSettingsModal.d.ts","sourceRoot":"","sources":["../../../src/components/shell/SiteSettingsModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SiteSettingsModal.d.ts","sourceRoot":"","sources":["../../../src/components/shell/SiteSettingsModal.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,UAAU,KAAK;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACjD,iBAAiB,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACnD,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE;QACZ,KAAK,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,OAAO,CAAC;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,cAAc,EAAE,OAAO,CAAC;QACxB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;KAAE,GAAG,IAAI,CAAC;CACjE;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,SAAS,EAAE,sBAAsB,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,KAAK,2CAoH5K"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DeckTextSlot } from "../lib/deck-edit";
|
|
2
|
+
import type { DeckComponent } from "../schemas/deck";
|
|
3
|
+
interface Props {
|
|
4
|
+
component: DeckComponent;
|
|
5
|
+
/** The Layout slot this component fills — carried only so text leaves can
|
|
6
|
+
* address themselves for inline editing (#39). Optional: a caller that omits
|
|
7
|
+
* it gets the read-only render. */
|
|
8
|
+
slot?: DeckTextSlot;
|
|
9
|
+
}
|
|
10
|
+
/** Dispatches a Deck Component onto its runtime implementation. */
|
|
11
|
+
export declare function DeckComponentView({ component, slot }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=DeckComponentView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckComponentView.d.ts","sourceRoot":"","sources":["../../src/deck/DeckComponentView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMrD,UAAU,KAAK;IACb,SAAS,EAAE,aAAa,CAAC;IACzB;;wCAEoC;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,mEAAmE;AACnE,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,KAAK,2CAW3D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Deck, DeckMediaAsset, DeckMediaResolver } from "../schemas/deck";
|
|
2
|
+
interface Props {
|
|
3
|
+
deck: Deck;
|
|
4
|
+
/** Slide to open on. Out-of-range values clamp into the deck. */
|
|
5
|
+
initialSlide?: number;
|
|
6
|
+
/** Window-level arrow/space/Home/End navigation. Off for thumbnails. */
|
|
7
|
+
keyboard?: boolean;
|
|
8
|
+
/** Turns media references into bytes. The Deck Builder injects the real one. */
|
|
9
|
+
resolveMedia?: DeckMediaResolver;
|
|
10
|
+
/**
|
|
11
|
+
* Pre-resolved portal media, keyed by media id. The serializable form of the
|
|
12
|
+
* same seam, for callers that cross an Astro island boundary — a function
|
|
13
|
+
* prop cannot survive that trip. Ignored when `resolveMedia` is given.
|
|
14
|
+
*/
|
|
15
|
+
mediaAssets?: Record<string, DeckMediaAsset>;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The deck runtime's presentation surface: one 16:9 stage plus slide
|
|
20
|
+
* navigation. Deliberately self-contained — the Deck Builder, the in-portal
|
|
21
|
+
* deck view and the Public Link view all mount this same component, so slide
|
|
22
|
+
* state lives here rather than in any one of those shells.
|
|
23
|
+
*/
|
|
24
|
+
export declare function DeckPlayer({ deck, initialSlide, keyboard, resolveMedia, mediaAssets, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=DeckPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckPlayer.d.ts","sourceRoot":"","sources":["../../src/deck/DeckPlayer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAK/E,UAAU,KAAK;IACb,IAAI,EAAE,IAAI,CAAC;IACX,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gFAAgF;IAChF,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6BD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,YAAgB,EAAE,QAAe,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,KAAK,2CA2GlH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeckSlide } from "../schemas/deck";
|
|
2
|
+
interface Props {
|
|
3
|
+
slide: DeckSlide;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Dispatches a slide onto its Layout. One slide uses exactly one Layout.
|
|
7
|
+
*
|
|
8
|
+
* Keyed by slide id, and that key is load-bearing rather than a lint nicety:
|
|
9
|
+
* two slides sharing a Layout shape reconcile onto the SAME component
|
|
10
|
+
* instances, so an expanded image-grid tile or a playing video on slide 1 was
|
|
11
|
+
* inherited by slide 2 the moment you pressed the arrow key. The key forces the
|
|
12
|
+
* subtree to remount, which is the only thing that makes a slide's interaction
|
|
13
|
+
* state belong to that slide.
|
|
14
|
+
*/
|
|
15
|
+
export declare function DeckSlideView({ slide }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=DeckSlideView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckSlideView.d.ts","sourceRoot":"","sources":["../../src/deck/DeckSlideView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKjD,UAAU,KAAK;IACb,KAAK,EAAE,SAAS,CAAC;CAClB;AAcD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CAM7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/** Applied to the fit box, which is what the stage is scaled to fill. */
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The 16:9 stage: a fixed logical canvas centered in — and scaled to fit — its
|
|
9
|
+
* container, so slide contents are authored in px against one coordinate system
|
|
10
|
+
* regardless of the viewport. Scaling by transform (rather than by a font-size
|
|
11
|
+
* cascade) keeps every measurement, including line breaks, identical at every
|
|
12
|
+
* size, which is what makes a screenshared deck look the same as its preview.
|
|
13
|
+
*/
|
|
14
|
+
export declare function DeckStage({ children, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=DeckStage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckStage.d.ts","sourceRoot":"","sources":["../../src/deck/DeckStage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK/C,UAAU,KAAK;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,KAAK,2CAoBvD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DeckImage as DeckImageContent } from "../../schemas/deck";
|
|
2
|
+
interface Props {
|
|
3
|
+
content: DeckImageContent;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Deck Component — image.
|
|
7
|
+
*
|
|
8
|
+
* Fills its slot and crops. The caption is a solid brand block sitting on the
|
|
9
|
+
* image's bottom edge rather than a gradient scrim: a scrim needs a literal
|
|
10
|
+
* color to darken toward, and legibility here comes from the block.
|
|
11
|
+
*/
|
|
12
|
+
export declare function DeckImage({ content }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=DeckImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckImage.d.ts","sourceRoot":"","sources":["../../../src/deck/components/DeckImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAIxE,UAAU,KAAK;IACb,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,2CAsB3C"}
|