@drawnagency/primitives 0.1.98 → 0.1.100
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-EUSWEVOA.js → chunk-3TO4RRHY.js} +12 -1
- package/dist/{chunk-KP4DWTPR.js → chunk-72FMQQIA.js} +246 -3
- package/dist/chunk-BS5AQHZG.js +45 -0
- package/dist/{chunk-NA5EJM6Z.js → chunk-CZLYECHC.js} +19 -8
- package/dist/{chunk-HKHEAH5F.js → chunk-GOCFTXR3.js} +8 -60
- package/dist/{chunk-GYCBWGVW.js → chunk-LBHQWIVL.js} +79 -24
- package/dist/{chunk-HJSE6SK5.js → chunk-REDDTTGJ.js} +3 -3
- package/dist/collab/rebase.d.ts.map +1 -1
- package/dist/collab/rebase.js +3 -1
- package/dist/components/chat/ChatPanel.d.ts.map +1 -1
- package/dist/components/docfile/DocFileOverlay.d.ts +12 -0
- package/dist/components/docfile/DocFileOverlay.d.ts.map +1 -0
- package/dist/components/docfile/DocFilePane.d.ts +17 -0
- package/dist/components/docfile/DocFilePane.d.ts.map +1 -0
- package/dist/components/docfile/doc-file-state.d.ts +33 -0
- package/dist/components/docfile/doc-file-state.d.ts.map +1 -0
- package/dist/components/editor/SettingsForm.d.ts.map +1 -1
- package/dist/components/editor/index.js +1 -1
- package/dist/components/sections/Document/index.d.ts +18 -0
- package/dist/components/sections/Document/index.d.ts.map +1 -0
- package/dist/components/sections/all-sections.d.ts +10 -0
- package/dist/components/sections/all-sections.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.d.ts +10 -0
- package/dist/components/sections/brand-guide.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.js +3 -1
- package/dist/components/sections/register-schemas.js +5 -3
- package/dist/components/sections/register.js +5 -3
- package/dist/components/shared/DocumentSourceField.d.ts +13 -0
- package/dist/components/shared/DocumentSourceField.d.ts.map +1 -0
- package/dist/components/shared/Navigation.d.ts.map +1 -1
- package/dist/components/shell/EditorModal.d.ts.map +1 -1
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/components/shell/MediaBreadcrumb.d.ts.map +1 -1
- package/dist/components/shell/MediaFolderTile.d.ts +3 -1
- package/dist/components/shell/MediaFolderTile.d.ts.map +1 -1
- package/dist/components/shell/MediaFolderTree.d.ts +3 -0
- package/dist/components/shell/MediaFolderTree.d.ts.map +1 -1
- package/dist/components/shell/MediaLibraryContext.d.ts +18 -1
- package/dist/components/shell/MediaLibraryContext.d.ts.map +1 -1
- package/dist/components/shell/MediaLibraryModal.d.ts +21 -1
- package/dist/components/shell/MediaLibraryModal.d.ts.map +1 -1
- package/dist/hooks/useDocumentUploads.d.ts +32 -0
- package/dist/hooks/useDocumentUploads.d.ts.map +1 -0
- package/dist/hooks/useEditorPublish.d.ts +23 -1
- package/dist/hooks/useEditorPublish.d.ts.map +1 -1
- package/dist/hooks/useMediaPipeline.d.ts +14 -1
- package/dist/hooks/useMediaPipeline.d.ts.map +1 -1
- package/dist/hooks/useResolvedDocument.d.ts +12 -0
- package/dist/hooks/useResolvedDocument.d.ts.map +1 -0
- package/dist/index.js +60 -34
- package/dist/lib/block-move.d.ts.map +1 -1
- package/dist/lib/dexie.d.ts +11 -0
- package/dist/lib/dexie.d.ts.map +1 -1
- package/dist/lib/dexie.js +32 -0
- package/dist/lib/document-refs.d.ts +22 -0
- package/dist/lib/document-refs.d.ts.map +1 -0
- package/dist/lib/document-uploads.d.ts +38 -0
- package/dist/lib/document-uploads.d.ts.map +1 -0
- package/dist/lib/documents.d.ts +65 -0
- package/dist/lib/documents.d.ts.map +1 -0
- package/dist/lib/index-ops.d.ts +1 -0
- package/dist/lib/index-ops.d.ts.map +1 -1
- package/dist/lib/index-ops.js +13 -1
- package/dist/lib/index.js +6 -6
- package/dist/lib/loader.d.ts +6 -0
- package/dist/lib/loader.d.ts.map +1 -1
- package/dist/lib/media-folders.d.ts +8 -0
- package/dist/lib/media-folders.d.ts.map +1 -1
- package/dist/lib/media-folders.js +2 -0
- package/dist/lib/nav.d.ts +29 -1
- package/dist/lib/nav.d.ts.map +1 -1
- package/dist/lib/pages.d.ts +18 -0
- package/dist/lib/pages.d.ts.map +1 -1
- package/dist/lib/platform-broker.d.ts +12 -0
- package/dist/lib/platform-broker.d.ts.map +1 -1
- package/dist/lib/platform-broker.js +12 -3
- package/dist/lib/registry.d.ts +10 -0
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/lib/save-chunks.d.ts +15 -0
- package/dist/lib/save-chunks.d.ts.map +1 -1
- package/dist/lib/scroll-lock.d.ts +2 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/schemas/documents.d.ts +80 -0
- package/dist/schemas/documents.d.ts.map +1 -0
- package/dist/schemas/documents.js +25 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +24 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +5 -1
- package/dist/storage/types.d.ts +69 -5
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/types/database.d.ts +14 -0
- package/dist/types/database.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/collab/rebase.ts +15 -0
- package/src/components/chat/ChatPanel.tsx +5 -4
- package/src/components/docfile/DocFileOverlay.tsx +54 -0
- package/src/components/docfile/DocFilePane.tsx +129 -0
- package/src/components/docfile/doc-file-state.ts +180 -0
- package/src/components/editor/SettingsForm.tsx +10 -0
- package/src/components/sections/Document/index.tsx +163 -0
- package/src/components/sections/brand-guide.ts +2 -1
- package/src/components/shared/DocumentSourceField.tsx +51 -0
- package/src/components/shared/Navigation.tsx +53 -10
- package/src/components/shell/EditorModal.tsx +2 -5
- package/src/components/shell/EditorShell.tsx +154 -10
- package/src/components/shell/MediaBreadcrumb.tsx +14 -1
- package/src/components/shell/MediaFolderTile.tsx +4 -2
- package/src/components/shell/MediaFolderTree.tsx +20 -3
- package/src/components/shell/MediaLibraryContext.tsx +18 -1
- package/src/components/shell/MediaLibraryModal.tsx +223 -45
- package/src/hooks/useDocumentUploads.ts +330 -0
- package/src/hooks/useEditorPublish.ts +197 -11
- package/src/hooks/useMediaPipeline.ts +136 -5
- package/src/hooks/useResolvedDocument.ts +25 -0
- package/src/lib/block-move.ts +15 -4
- package/src/lib/dexie.ts +54 -0
- package/src/lib/document-refs.ts +83 -0
- package/src/lib/document-uploads.ts +66 -0
- package/src/lib/documents.ts +138 -0
- package/src/lib/index-ops.ts +16 -0
- package/src/lib/loader.ts +32 -11
- package/src/lib/media-folders.ts +9 -0
- package/src/lib/nav.ts +46 -2
- package/src/lib/pages.ts +48 -0
- package/src/lib/platform-broker.ts +18 -3
- package/src/lib/registry.ts +9 -0
- package/src/lib/save-chunks.ts +42 -0
- package/src/lib/scroll-lock.ts +27 -0
- package/src/schemas/documents.ts +82 -0
- package/src/schemas/index.ts +1 -0
- package/src/schemas/nav.ts +3 -3
- package/src/storage/index.ts +2 -2
- package/src/storage/types.ts +71 -5
- package/src/types/database.ts +14 -0
- /package/dist/{chunk-FOY5TF7D.js → chunk-ZDQ3TT47.js} +0 -0
|
@@ -15,6 +15,9 @@ import {
|
|
|
15
15
|
useMediaLibrary,
|
|
16
16
|
useResolvedMedia
|
|
17
17
|
} from "./chunk-26ALJO4K.js";
|
|
18
|
+
import {
|
|
19
|
+
formatFileSize
|
|
20
|
+
} from "./chunk-3COSXTOY.js";
|
|
18
21
|
import {
|
|
19
22
|
cn
|
|
20
23
|
} from "./chunk-7EOSDFS3.js";
|
|
@@ -356,9 +359,52 @@ function VideoSourceField({ value, onChange }) {
|
|
|
356
359
|
] });
|
|
357
360
|
}
|
|
358
361
|
|
|
362
|
+
// src/hooks/useResolvedDocument.ts
|
|
363
|
+
import { useMemo } from "react";
|
|
364
|
+
function useResolvedDocument(documentId) {
|
|
365
|
+
const ctx = useMediaLibrary();
|
|
366
|
+
return useMemo(() => {
|
|
367
|
+
if (!documentId) return { entry: null, missing: false };
|
|
368
|
+
const committed = ctx?.documentManifest?.[documentId];
|
|
369
|
+
const pending = ctx?.pendingDocuments?.find((d) => d.id === documentId)?.entry;
|
|
370
|
+
const entry = committed ?? pending ?? null;
|
|
371
|
+
return { entry, missing: entry === null };
|
|
372
|
+
}, [documentId, ctx]);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// src/components/shared/DocumentSourceField.tsx
|
|
376
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
377
|
+
function DocumentSourceField({ value, onChange }) {
|
|
378
|
+
const mediaLibrary = useMediaLibrary();
|
|
379
|
+
const documentId = value?.documentId || void 0;
|
|
380
|
+
const { entry, missing } = useResolvedDocument(documentId);
|
|
381
|
+
return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-3", children: [
|
|
382
|
+
/* @__PURE__ */ jsx8(FormLabel, { children: "Document" }),
|
|
383
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
|
|
384
|
+
entry ? /* @__PURE__ */ jsxs6("span", { className: "min-w-0 flex-1 truncate text-sm text-base-contrast", children: [
|
|
385
|
+
entry.filename,
|
|
386
|
+
/* @__PURE__ */ jsxs6("span", { className: "text-base-contrast-light", children: [
|
|
387
|
+
" \xB7 ",
|
|
388
|
+
formatFileSize(entry.size)
|
|
389
|
+
] })
|
|
390
|
+
] }) : /* @__PURE__ */ jsx8("span", { className: "flex-1 text-sm text-base-contrast-light", children: missing ? "File missing" : "No document selected" }),
|
|
391
|
+
/* @__PURE__ */ jsx8(
|
|
392
|
+
Button,
|
|
393
|
+
{
|
|
394
|
+
type: "button",
|
|
395
|
+
variant: "secondary",
|
|
396
|
+
size: "sm",
|
|
397
|
+
onClick: () => mediaLibrary?.openSelectModal((id) => onChange({ documentId: id }), { kinds: ["document"] }),
|
|
398
|
+
children: documentId ? "Replace document" : "Choose document"
|
|
399
|
+
}
|
|
400
|
+
)
|
|
401
|
+
] })
|
|
402
|
+
] });
|
|
403
|
+
}
|
|
404
|
+
|
|
359
405
|
// src/components/shared/Tabs.tsx
|
|
360
406
|
import { useState as useState2 } from "react";
|
|
361
|
-
import { jsx as
|
|
407
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
362
408
|
function Tabs({ tabs, defaultTabId, activeTabId, onTabChange, fullBleedTabBar }) {
|
|
363
409
|
const [uncontrolledId, setUncontrolledId] = useState2(defaultTabId ?? tabs[0]?.id);
|
|
364
410
|
const isControlled = activeTabId !== void 0;
|
|
@@ -368,8 +414,8 @@ function Tabs({ tabs, defaultTabId, activeTabId, onTabChange, fullBleedTabBar })
|
|
|
368
414
|
if (!isControlled) setUncontrolledId(id);
|
|
369
415
|
onTabChange?.(id);
|
|
370
416
|
}
|
|
371
|
-
return /* @__PURE__ */
|
|
372
|
-
/* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
418
|
+
/* @__PURE__ */ jsx9("div", { className: cn("border-b border-base-200", fullBleedTabBar && "-mx-6 px-6"), children: /* @__PURE__ */ jsx9("div", { className: "flex", role: "tablist", children: tabs.map((tab) => /* @__PURE__ */ jsx9(
|
|
373
419
|
"button",
|
|
374
420
|
{
|
|
375
421
|
type: "button",
|
|
@@ -384,12 +430,12 @@ function Tabs({ tabs, defaultTabId, activeTabId, onTabChange, fullBleedTabBar })
|
|
|
384
430
|
},
|
|
385
431
|
tab.id
|
|
386
432
|
)) }) }),
|
|
387
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ jsx9("div", { role: "tabpanel", className: cn("flex min-h-0 flex-1 flex-col px-px", fullBleedTabBar && "pt-4"), children: activeTab?.content })
|
|
388
434
|
] });
|
|
389
435
|
}
|
|
390
436
|
|
|
391
437
|
// src/components/editor/SettingsForm.tsx
|
|
392
|
-
import { jsx as
|
|
438
|
+
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
393
439
|
function resolveValues(schema, values) {
|
|
394
440
|
const resolved = {};
|
|
395
441
|
for (const [key, field] of Object.entries(schema)) {
|
|
@@ -429,9 +475,9 @@ function RangeField({
|
|
|
429
475
|
onChange
|
|
430
476
|
}) {
|
|
431
477
|
const id = useId2();
|
|
432
|
-
return /* @__PURE__ */
|
|
433
|
-
/* @__PURE__ */
|
|
434
|
-
/* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ jsxs8("div", { children: [
|
|
479
|
+
/* @__PURE__ */ jsx10(FormLabel, { htmlFor: id, children: field.label }),
|
|
480
|
+
/* @__PURE__ */ jsx10(
|
|
435
481
|
"input",
|
|
436
482
|
{
|
|
437
483
|
id,
|
|
@@ -451,7 +497,7 @@ function RangeField({
|
|
|
451
497
|
function renderField(key, field, value, handleFieldChange) {
|
|
452
498
|
switch (field.type) {
|
|
453
499
|
case "text":
|
|
454
|
-
return /* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ jsx10(
|
|
455
501
|
Input,
|
|
456
502
|
{
|
|
457
503
|
label: field.label,
|
|
@@ -462,7 +508,7 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
462
508
|
key
|
|
463
509
|
);
|
|
464
510
|
case "number":
|
|
465
|
-
return /* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ jsx10(
|
|
466
512
|
Input,
|
|
467
513
|
{
|
|
468
514
|
label: field.label,
|
|
@@ -473,7 +519,7 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
473
519
|
key
|
|
474
520
|
);
|
|
475
521
|
case "checkbox":
|
|
476
|
-
return /* @__PURE__ */
|
|
522
|
+
return /* @__PURE__ */ jsx10(
|
|
477
523
|
Checkbox,
|
|
478
524
|
{
|
|
479
525
|
label: field.label,
|
|
@@ -483,7 +529,7 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
483
529
|
key
|
|
484
530
|
);
|
|
485
531
|
case "select":
|
|
486
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ jsx10(
|
|
487
533
|
Select,
|
|
488
534
|
{
|
|
489
535
|
label: field.label,
|
|
@@ -494,7 +540,7 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
494
540
|
key
|
|
495
541
|
);
|
|
496
542
|
case "range":
|
|
497
|
-
return /* @__PURE__ */
|
|
543
|
+
return /* @__PURE__ */ jsx10(
|
|
498
544
|
RangeField,
|
|
499
545
|
{
|
|
500
546
|
field,
|
|
@@ -504,7 +550,7 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
504
550
|
key
|
|
505
551
|
);
|
|
506
552
|
case "link":
|
|
507
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ jsx10(
|
|
508
554
|
LinkField,
|
|
509
555
|
{
|
|
510
556
|
label: field.label,
|
|
@@ -514,7 +560,7 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
514
560
|
key
|
|
515
561
|
);
|
|
516
562
|
case "video-source":
|
|
517
|
-
return /* @__PURE__ */
|
|
563
|
+
return /* @__PURE__ */ jsx10(
|
|
518
564
|
VideoSourceField,
|
|
519
565
|
{
|
|
520
566
|
value,
|
|
@@ -522,6 +568,15 @@ function renderField(key, field, value, handleFieldChange) {
|
|
|
522
568
|
},
|
|
523
569
|
key
|
|
524
570
|
);
|
|
571
|
+
case "document-source":
|
|
572
|
+
return /* @__PURE__ */ jsx10(
|
|
573
|
+
DocumentSourceField,
|
|
574
|
+
{
|
|
575
|
+
value,
|
|
576
|
+
onChange: (v) => handleFieldChange(key, v)
|
|
577
|
+
},
|
|
578
|
+
key
|
|
579
|
+
);
|
|
525
580
|
default:
|
|
526
581
|
return null;
|
|
527
582
|
}
|
|
@@ -539,12 +594,12 @@ function SettingsForm({ schema, values, onChange, tabs }) {
|
|
|
539
594
|
const otherKeys = Object.keys(schema).filter((key) => !listed.has(key));
|
|
540
595
|
const panel = "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-px";
|
|
541
596
|
const tabItems = [
|
|
542
|
-
...tabs.map((t) => ({ id: t.label, label: t.label, content: /* @__PURE__ */
|
|
543
|
-
...otherKeys.length > 0 ? [{ id: "__other__", label: "Other", content: /* @__PURE__ */
|
|
597
|
+
...tabs.map((t) => ({ id: t.label, label: t.label, content: /* @__PURE__ */ jsx10("div", { className: panel, children: fields(t.fields) }) })),
|
|
598
|
+
...otherKeys.length > 0 ? [{ id: "__other__", label: "Other", content: /* @__PURE__ */ jsx10("div", { className: panel, children: fields(otherKeys) }) }] : []
|
|
544
599
|
];
|
|
545
|
-
return /* @__PURE__ */
|
|
600
|
+
return /* @__PURE__ */ jsx10(Tabs, { tabs: tabItems, fullBleedTabBar: true });
|
|
546
601
|
}
|
|
547
|
-
return /* @__PURE__ */
|
|
602
|
+
return /* @__PURE__ */ jsx10("div", { className: "flex flex-col gap-4", children: Object.entries(schema).map(([key, field]) => renderField(key, field, local[key], handleFieldChange)) });
|
|
548
603
|
}
|
|
549
604
|
|
|
550
605
|
// src/components/shared/Popover.tsx
|
|
@@ -600,7 +655,7 @@ function useFocusTrap(ref, active) {
|
|
|
600
655
|
}
|
|
601
656
|
|
|
602
657
|
// src/components/shared/Popover.tsx
|
|
603
|
-
import { jsx as
|
|
658
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
604
659
|
function Popover({
|
|
605
660
|
isOpen,
|
|
606
661
|
onClose,
|
|
@@ -683,7 +738,7 @@ function Popover({
|
|
|
683
738
|
if (portal) {
|
|
684
739
|
if (!fixedPos) return null;
|
|
685
740
|
return createPortal(
|
|
686
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ jsx11(
|
|
687
742
|
"div",
|
|
688
743
|
{
|
|
689
744
|
ref: panelRef,
|
|
@@ -702,7 +757,7 @@ function Popover({
|
|
|
702
757
|
document.body
|
|
703
758
|
);
|
|
704
759
|
}
|
|
705
|
-
return /* @__PURE__ */
|
|
760
|
+
return /* @__PURE__ */ jsx11(
|
|
706
761
|
"div",
|
|
707
762
|
{
|
|
708
763
|
ref: panelRef,
|
|
@@ -720,10 +775,10 @@ function Popover({
|
|
|
720
775
|
|
|
721
776
|
// src/components/shared/PopoverItem.tsx
|
|
722
777
|
import { forwardRef as forwardRef2 } from "react";
|
|
723
|
-
import { jsx as
|
|
778
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
724
779
|
var PopoverItem = forwardRef2(
|
|
725
780
|
function PopoverItem2({ className, children, ...rest }, ref) {
|
|
726
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ jsx12(
|
|
727
782
|
"button",
|
|
728
783
|
{
|
|
729
784
|
ref,
|
|
@@ -11,9 +11,9 @@ var NavEntrySchema = z.discriminatedUnion("kind", [
|
|
|
11
11
|
/** May be blank — agent-authored files can omit it; UI falls back to "Untitled group". */
|
|
12
12
|
label: z.string().default(""),
|
|
13
13
|
startCollapsed: z.boolean().default(false),
|
|
14
|
-
// Everything but `id` defaults:
|
|
15
|
-
//
|
|
16
|
-
// missing a key
|
|
14
|
+
// Everything but `id` defaults: the loader parses entries individually and
|
|
15
|
+
// drops the ones that fail — defaulting here keeps an agent-authored group
|
|
16
|
+
// missing a key from being dropped (and its drop marking the nav degraded).
|
|
17
17
|
pageIds: z.array(z.string().min(1)).default([])
|
|
18
18
|
})
|
|
19
19
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebase.d.ts","sourceRoot":"","sources":["../../src/collab/rebase.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIxD,MAAM,WAAW,UAAU;IACzB,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,UAAU,EAAE,SAAS,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;;+EAK2E;IAC3E,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC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GAAG,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,KAAK,EAAE,SAAS,CAAC;IAIjB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;;;qEAUqE;AACrE;;;;;;;;;;;;;;;;;;;;;oEAqBoE;AACpE,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,GAAG,SAAS,CAS7F;AAED;;;;;;;;;;;;;;;;;;wCAkBwC;AACxC,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI,CAYvG;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CA0G5D"}
|
package/dist/collab/rebase.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NavFileSchema
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-REDDTTGJ.js";
|
|
4
4
|
import {
|
|
5
5
|
IndexSchema
|
|
6
6
|
} from "../chunk-BGHWUJFV.js";
|
|
@@ -73,6 +73,8 @@ function rebaseContent(args) {
|
|
|
73
73
|
}
|
|
74
74
|
index = { ...args.localIndex, pages, sections };
|
|
75
75
|
}
|
|
76
|
+
const nav = args.remoteIndex.nav !== void 0 ? args.remoteIndex.nav : args.localIndex.nav;
|
|
77
|
+
if (nav !== void 0) index = { ...index, nav };
|
|
76
78
|
for (const s of merged) {
|
|
77
79
|
const id = s.section.id;
|
|
78
80
|
if (id in index.sections) continue;
|
|
@@ -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"],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AAQ,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,kDAqfA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SiteDocument } from "../../lib/documents";
|
|
2
|
+
/**
|
|
3
|
+
* One mount per page, rendered into the Layout `chrome` slot (OUTSIDE <main>:
|
|
4
|
+
* the chat dock's band-shift transform would re-anchor a position:fixed
|
|
5
|
+
* descendant). `documents` is the requester-filtered SSR list — on /edit it is
|
|
6
|
+
* initial state only; EditorShell republishes the live draft list.
|
|
7
|
+
*/
|
|
8
|
+
export default function DocFileOverlay({ documents, editor, }: {
|
|
9
|
+
documents: SiteDocument[];
|
|
10
|
+
editor?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=DocFileOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocFileOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/docfile/DocFileOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYxD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,MAAc,GACf,EAAE;IAAE,SAAS,EAAE,YAAY,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,kDA+BjD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SiteDocument } from "../../lib/documents";
|
|
2
|
+
/**
|
|
3
|
+
* The solid stage: an opaque, flat, bordered pane between the nav edge and the
|
|
4
|
+
* chat edge. Geometry lives in base.css (.doc-file-pane) because it is calc()
|
|
5
|
+
* against doc mode's own 120rem stage band — the band the nav and chat are
|
|
6
|
+
* pinned to under html.bp-doc-open (NOT the page's 80rem --layout-max-width
|
|
7
|
+
* band, which doc mode never touches). z-30 — above unpositioned page content,
|
|
8
|
+
* BELOW the nav and docked chat (z-40) and the mobile nav header / chat sheet
|
|
9
|
+
* (z-50), so all chrome stays reachable. `editor` adds top clearance for the
|
|
10
|
+
* edit route's always-fixed h-16 toolbar.
|
|
11
|
+
*/
|
|
12
|
+
export default function DocFilePane({ doc, onClose, editor, }: {
|
|
13
|
+
doc: SiteDocument;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
editor?: boolean;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=DocFilePane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocFilePane.d.ts","sourceRoot":"","sources":["../../../src/components/docfile/DocFilePane.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOxD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,GAAG,EACH,OAAO,EACP,MAAc,GACf,EAAE;IAAE,GAAG,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,2CAyG9D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { SiteDocument } from "../../lib/documents";
|
|
2
|
+
/** Toggled on <html> while a document is open (the chat's class mechanism). */
|
|
3
|
+
export declare const DOC_OPEN_CLASS = "bp-doc-open";
|
|
4
|
+
/** The one breakpoint the doc feature keys off: at or above it the overlay
|
|
5
|
+
* gets the desktop stage; below it a PDF goes to the OS viewer instead (iOS
|
|
6
|
+
* Safari cannot scroll an iframed PDF, Android Chrome forces a download).
|
|
7
|
+
* 1024px — the SAME breakpoint as U5's desktop CSS block and the width where
|
|
8
|
+
* the nav sidebar exists at all. Deliberately NOT the chat's 768px dock query:
|
|
9
|
+
* keying JS at 768 while the pane's desktop rules start at 1024 would give
|
|
10
|
+
* 768–1023px viewers framed PDFs inside the mobile pane geometry, under a
|
|
11
|
+
* docked chat. */
|
|
12
|
+
export declare const DOC_DESKTOP_QUERY = "(min-width: 1024px)";
|
|
13
|
+
/** Cross-island open request. Islands that would rather not import this module
|
|
14
|
+
* can dispatch it instead; applying an already-current value is a no-op, so
|
|
15
|
+
* the dispatch-listen pair cannot loop. */
|
|
16
|
+
export declare const docFileOpenEvent: import("../..").TypedEvent<{
|
|
17
|
+
sectionId: string | null;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function isDocDesktop(): boolean;
|
|
20
|
+
export declare function openDocFile(sectionId: string): void;
|
|
21
|
+
export declare function closeDocFile(): void;
|
|
22
|
+
export declare function getOpenDocFile(): string | null;
|
|
23
|
+
export declare function subscribeDocFile(cb: (sectionId: string | null) => void): () => void;
|
|
24
|
+
/** Authoritative publish — the editor's live draft list. */
|
|
25
|
+
export declare function setSiteDocuments(docs: SiteDocument[]): void;
|
|
26
|
+
/** First-writer-wins publish for the SSR-derived list, so an island that mounts
|
|
27
|
+
* after the editor has already published cannot clobber the live list. */
|
|
28
|
+
export declare function seedSiteDocuments(docs: SiteDocument[]): void;
|
|
29
|
+
export declare function getSiteDocuments(): SiteDocument[] | null;
|
|
30
|
+
export declare function subscribeSiteDocuments(cb: (docs: SiteDocument[] | null) => void): () => void;
|
|
31
|
+
/** Test-only: drop the store and any window wiring (mirrors clearRegistry). */
|
|
32
|
+
export declare function resetDocFileState(): void;
|
|
33
|
+
//# sourceMappingURL=doc-file-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doc-file-state.d.ts","sourceRoot":"","sources":["../../../src/components/docfile/doc-file-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,+EAA+E;AAC/E,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C;;;;;;;mBAOmB;AACnB,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD;;4CAE4C;AAC5C,eAAO,MAAM,gBAAgB;eAA4B,MAAM,GAAG,IAAI;EAAuB,CAAC;AA2B9F,wBAAgB,YAAY,IAAI,OAAO,CAGtC;AAmCD,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAWnD;AAED,wBAAgB,YAAY,IAAI,IAAI,CAUnC;AAED,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAE9C;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,MAAM,IAAI,CAkCnF;AAED,4DAA4D;AAC5D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,CAI3D;AAED;2EAC2E;AAC3E,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,CAG5D;AAED,wBAAgB,gBAAgB,IAAI,YAAY,EAAE,GAAG,IAAI,CAExD;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,KAAK,IAAI,GAAG,MAAM,IAAI,CAI5F;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,IAAI,IAAI,CAKxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsForm.d.ts","sourceRoot":"","sources":["../../../src/components/editor/SettingsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingsForm.d.ts","sourceRoot":"","sources":["../../../src/components/editor/SettingsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AAa3E,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,UAAU,iBAAiB;IACzB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CAC9C;AAuKD,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CA8BjF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function DocumentRow({ sectionId, title, isEditMode, }: {
|
|
2
|
+
sectionId: string;
|
|
3
|
+
title: string;
|
|
4
|
+
isEditMode: boolean;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
declare const _default: import("../../..").SectionDefinition<{
|
|
7
|
+
type: "document";
|
|
8
|
+
content: {
|
|
9
|
+
title: string;
|
|
10
|
+
doc: {
|
|
11
|
+
documentId: string;
|
|
12
|
+
};
|
|
13
|
+
showInDocumentsNav: boolean;
|
|
14
|
+
};
|
|
15
|
+
options: Record<string, never>;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Document/index.tsx"],"names":[],"mappings":"AAqDA,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,UAAU,GACX,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACrB,kDAsDA;;;;;;;;;;;;AAED,wBA6CG"}
|
|
@@ -203,5 +203,15 @@ export declare const allSectionDefs: (import("../..").SectionDefinition<{
|
|
|
203
203
|
border?: boolean | undefined;
|
|
204
204
|
objectFit?: "cover" | "contain" | undefined;
|
|
205
205
|
};
|
|
206
|
+
}> | import("../..").SectionDefinition<{
|
|
207
|
+
type: "document";
|
|
208
|
+
content: {
|
|
209
|
+
title: string;
|
|
210
|
+
doc: {
|
|
211
|
+
documentId: string;
|
|
212
|
+
};
|
|
213
|
+
showInDocumentsNav: boolean;
|
|
214
|
+
};
|
|
215
|
+
options: Record<string, never>;
|
|
206
216
|
}>)[];
|
|
207
217
|
//# sourceMappingURL=all-sections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-sections.d.ts","sourceRoot":"","sources":["../../../src/components/sections/all-sections.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"all-sections.d.ts","sourceRoot":"","sources":["../../../src/components/sections/all-sections.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAiD,CAAC"}
|
|
@@ -79,6 +79,16 @@ export declare const brandGuideSectionDefs: (import("../..").SectionDefinition<{
|
|
|
79
79
|
border?: boolean | undefined;
|
|
80
80
|
objectFit?: "cover" | "contain" | undefined;
|
|
81
81
|
};
|
|
82
|
+
}> | import("../..").SectionDefinition<{
|
|
83
|
+
type: "document";
|
|
84
|
+
content: {
|
|
85
|
+
title: string;
|
|
86
|
+
doc: {
|
|
87
|
+
documentId: string;
|
|
88
|
+
};
|
|
89
|
+
showInDocumentsNav: boolean;
|
|
90
|
+
};
|
|
91
|
+
options: Record<string, never>;
|
|
82
92
|
}>)[];
|
|
83
93
|
export { ColorSpaceSchema, ColorItemSchema } from "./Colors/schema";
|
|
84
94
|
export type { ColorSpace, ColorItem } from "./Colors/schema";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-guide.d.ts","sourceRoot":"","sources":["../../../src/components/sections/brand-guide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand-guide.d.ts","sourceRoot":"","sources":["../../../src/components/sections/brand-guide.ts"],"names":[],"mappings":"AAKA;;;iEAGiE;AAEjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAmD,CAAC;AAEtF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACpE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -2,13 +2,15 @@ import {
|
|
|
2
2
|
ColorItemSchema,
|
|
3
3
|
ColorSpaceSchema,
|
|
4
4
|
brandGuideSectionDefs
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-72FMQQIA.js";
|
|
6
6
|
import "../../chunk-5THS4K5D.js";
|
|
7
7
|
import "../../chunk-MUTHF2GT.js";
|
|
8
8
|
import "../../chunk-26ALJO4K.js";
|
|
9
9
|
import "../../chunk-3COSXTOY.js";
|
|
10
10
|
import "../../chunk-PZJL2S3Z.js";
|
|
11
|
+
import "../../chunk-BS5AQHZG.js";
|
|
11
12
|
import "../../chunk-WDSVHKAH.js";
|
|
13
|
+
import "../../chunk-PTOLUMGV.js";
|
|
12
14
|
import "../../chunk-7EOSDFS3.js";
|
|
13
15
|
import "../../chunk-TGNS7D4F.js";
|
|
14
16
|
import "../../chunk-VKAGMEKE.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
allSectionDefs
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-GOCFTXR3.js";
|
|
4
|
+
import "../../chunk-72FMQQIA.js";
|
|
5
|
+
import "../../chunk-LBHQWIVL.js";
|
|
6
6
|
import "../../chunk-5THS4K5D.js";
|
|
7
7
|
import "../../chunk-EWNDBKYK.js";
|
|
8
8
|
import "../../chunk-MUTHF2GT.js";
|
|
@@ -11,7 +11,9 @@ import "../../chunk-26ALJO4K.js";
|
|
|
11
11
|
import "../../chunk-Y4JQGO6G.js";
|
|
12
12
|
import "../../chunk-3COSXTOY.js";
|
|
13
13
|
import "../../chunk-PZJL2S3Z.js";
|
|
14
|
+
import "../../chunk-BS5AQHZG.js";
|
|
14
15
|
import "../../chunk-WDSVHKAH.js";
|
|
16
|
+
import "../../chunk-PTOLUMGV.js";
|
|
15
17
|
import "../../chunk-72CG6AA2.js";
|
|
16
18
|
import "../../chunk-7EOSDFS3.js";
|
|
17
19
|
import "../../chunk-TGNS7D4F.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
allSectionDefs
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-GOCFTXR3.js";
|
|
4
|
+
import "../../chunk-72FMQQIA.js";
|
|
5
|
+
import "../../chunk-LBHQWIVL.js";
|
|
6
6
|
import "../../chunk-5THS4K5D.js";
|
|
7
7
|
import "../../chunk-EWNDBKYK.js";
|
|
8
8
|
import "../../chunk-MUTHF2GT.js";
|
|
@@ -11,7 +11,9 @@ import "../../chunk-26ALJO4K.js";
|
|
|
11
11
|
import "../../chunk-Y4JQGO6G.js";
|
|
12
12
|
import "../../chunk-3COSXTOY.js";
|
|
13
13
|
import "../../chunk-PZJL2S3Z.js";
|
|
14
|
+
import "../../chunk-BS5AQHZG.js";
|
|
14
15
|
import "../../chunk-WDSVHKAH.js";
|
|
16
|
+
import "../../chunk-PTOLUMGV.js";
|
|
15
17
|
import "../../chunk-72CG6AA2.js";
|
|
16
18
|
import "../../chunk-7EOSDFS3.js";
|
|
17
19
|
import "../../chunk-TGNS7D4F.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DocumentRef {
|
|
2
|
+
documentId: string;
|
|
3
|
+
}
|
|
4
|
+
interface Props {
|
|
5
|
+
value: DocumentRef | undefined;
|
|
6
|
+
onChange: (value: DocumentRef) => void;
|
|
7
|
+
}
|
|
8
|
+
/** Picker for the `document` section type. Writes only { documentId } — the
|
|
9
|
+
* filename/size shown here are read back out of the sidecar manifest, never
|
|
10
|
+
* copied into section content. */
|
|
11
|
+
export declare function DocumentSourceField({ value, onChange }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=DocumentSourceField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentSourceField.d.ts","sourceRoot":"","sources":["../../../src/components/shared/DocumentSourceField.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,KAAK;IACb,KAAK,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC;AAED;;mCAEmC;AACnC,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAgC7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Navigation.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/shared/Navigation.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAmE,MAAM,eAAe,CAAC;AAS9G,UAAU,KAAK;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACxC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAGlF,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;kFAG8E;IAC9E,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACjC;AAQD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,iBAAwB,EAAE,EAAE,KAAK,2CA+V/I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorModal.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EditorModal.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQjE,UAAU,gBAAgB;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAgB,EAAE,IAAiB,EAAE,SAAiB,EAAE,MAAc,EAAE,QAAQ,EAAE,EAAE,gBAAgB,sCAwFzJ"}
|
|
@@ -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;
|
|
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;AAyDtF,OAAO,KAAK,EAAE,eAAe,EAA2D,MA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AO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,sBAAsB,CAAC;CAC9B;AA0CD,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"MediaBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/shell/MediaBreadcrumb.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAGhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,sBAAsB,CAAC;CAC9B;AA0CD,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,oBAAoB,kDAkClG"}
|
|
@@ -10,6 +10,8 @@ export interface MediaFolderTileProps {
|
|
|
10
10
|
dnd?: MediaFolderDndBindings;
|
|
11
11
|
/** Optional accessible label override for the root element (e.g. "Open folder Logos"). */
|
|
12
12
|
ariaLabel?: string;
|
|
13
|
+
/** Glyph override — the Documents pseudo-folder uses a file icon. */
|
|
14
|
+
icon?: React.ReactNode;
|
|
13
15
|
}
|
|
14
|
-
export declare function MediaFolderTile({ id, name, count, onOpen, manage, onRename, onDeleteRequest, dnd, ariaLabel, }: MediaFolderTileProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function MediaFolderTile({ id, name, count, onOpen, manage, onRename, onDeleteRequest, dnd, ariaLabel, icon, }: MediaFolderTileProps): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
//# sourceMappingURL=MediaFolderTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaFolderTile.d.ts","sourceRoot":"","sources":["../../../src/components/shell/MediaFolderTile.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,GAAG,CAAC,EAAE,sBAAsB,CAAC;IAC7B,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"MediaFolderTile.d.ts","sourceRoot":"","sources":["../../../src/components/shell/MediaFolderTile.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,GAAG,CAAC,EAAE,sBAAsB,CAAC;IAC7B,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAGD,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,GACjF,EAAE,oBAAoB,2CAoHtB"}
|
|
@@ -15,6 +15,9 @@ export interface MediaFolderTreeProps {
|
|
|
15
15
|
onExpand: (id: string) => void;
|
|
16
16
|
onToggleExpand: (id: string) => void;
|
|
17
17
|
dnd?: MediaFolderDndBindings;
|
|
18
|
+
/** Documents pseudo-folder row. Omitted (or 0) renders no row; it is never a
|
|
19
|
+
* drop target — nothing can be moved into it. */
|
|
20
|
+
documentCount?: number;
|
|
18
21
|
}
|
|
19
22
|
export declare function MediaFolderTree(props: MediaFolderTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
//# sourceMappingURL=MediaFolderTree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaFolderTree.d.ts","sourceRoot":"","sources":["../../../src/components/shell/MediaFolderTree.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAIhE,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IACzD,YAAY,EAAE,KAAK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