@drawnagency/primitives 0.1.118 → 0.1.120
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-O37AV27P.js → chunk-5JYHTHVR.js} +28 -0
- package/dist/{chunk-W72BPGR3.js → chunk-BZKHHUIN.js} +44 -8
- package/dist/{chunk-4NSOKEA7.js → chunk-HFHM4MNK.js} +12 -7
- package/dist/{chunk-CEFFP3CH.js → chunk-HZTPF6OK.js} +304 -83
- package/dist/{chunk-RIITGTV3.js → chunk-LQHBC7C6.js} +37 -2
- package/dist/{chunk-VY3IFGE3.js → chunk-QAMAIDXZ.js} +1 -1
- package/dist/{chunk-HRX3XJBU.js → chunk-RIN2QCYJ.js} +9 -11
- package/dist/{chunk-ZOTRHHUB.js → chunk-UNFPATDE.js} +8 -10
- package/dist/{chunk-ERLIL4RU.js → chunk-UZBFVVTC.js} +35 -37
- package/dist/{chunk-67P34WNW.js → chunk-ZKVQMIMJ.js} +3 -20
- package/dist/collab/rebase.js +4 -5
- package/dist/components/chat/ChatComposer.d.ts +0 -4
- package/dist/components/chat/ChatComposer.d.ts.map +1 -1
- package/dist/components/chat/ChatPanel.d.ts +2 -3
- package/dist/components/chat/ChatPanel.d.ts.map +1 -1
- package/dist/components/chat/markdown.d.ts +2 -3
- package/dist/components/chat/markdown.d.ts.map +1 -1
- package/dist/components/editor/AudienceIndicator.d.ts +3 -1
- package/dist/components/editor/AudienceIndicator.d.ts.map +1 -1
- package/dist/components/editor/IndicatorPill.d.ts +3 -1
- package/dist/components/editor/IndicatorPill.d.ts.map +1 -1
- package/dist/components/editor/PagesModal.d.ts +0 -2
- package/dist/components/editor/PagesModal.d.ts.map +1 -1
- package/dist/components/editor/SectionBulkEditModal.d.ts +25 -0
- package/dist/components/editor/SectionBulkEditModal.d.ts.map +1 -0
- package/dist/components/editor/StatusIndicator.d.ts +3 -1
- package/dist/components/editor/StatusIndicator.d.ts.map +1 -1
- package/dist/components/editor/index.js +28 -26
- package/dist/components/primitives/index.js +11 -15
- package/dist/components/sections/brand-guide.js +10 -13
- package/dist/components/sections/register-schemas.js +16 -21
- package/dist/components/sections/register.js +16 -21
- package/dist/components/shared/Popover.d.ts +1 -1
- package/dist/components/shared/Popover.d.ts.map +1 -1
- package/dist/components/shared/SectionSummaryRow.d.ts +1 -1
- package/dist/components/shell/AudienceChips.d.ts +1 -3
- package/dist/components/shell/AudienceChips.d.ts.map +1 -1
- package/dist/components/shell/EditorModal.d.ts.map +1 -1
- package/dist/components/shell/EditorShell.d.ts +0 -34
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/components/shell/SiteSettingsModal.d.ts.map +1 -1
- package/dist/hooks/useSortableNavRow.d.ts +1 -1
- package/dist/hooks/useSortableRow.d.ts +1 -1
- package/dist/index.js +83 -90
- package/dist/lib/index-ops.js +5 -6
- package/dist/lib/index.js +27 -32
- package/dist/lib/pages.d.ts +0 -2
- package/dist/lib/pages.d.ts.map +1 -1
- package/dist/lib/sidecars.js +2 -2
- package/dist/lib/site-validation.js +13 -14
- package/dist/lib/storage-tier.js +4 -4
- package/dist/schemas/index.js +42 -45
- package/dist/schemas/site-config.d.ts +1 -277
- package/dist/schemas/site-config.d.ts.map +1 -1
- package/package.json +2 -42
- package/src/components/chat/ChatComposer.tsx +0 -4
- package/src/components/chat/ChatPanel.tsx +2 -3
- package/src/components/chat/markdown.ts +2 -3
- package/src/components/editor/AudienceIndicator.tsx +8 -4
- package/src/components/editor/IndicatorPill.tsx +4 -0
- package/src/components/editor/PagesModal.tsx +1 -15
- package/src/components/editor/SectionBulkEditModal.tsx +328 -0
- package/src/components/editor/StatusIndicator.tsx +7 -6
- package/src/components/shared/Popover.tsx +17 -4
- package/src/components/shared/SectionSummaryRow.tsx +1 -1
- package/src/components/shell/AudienceChips.tsx +1 -3
- package/src/components/shell/EditorModal.tsx +5 -2
- package/src/components/shell/EditorShell.tsx +15 -119
- package/src/components/shell/SiteSettingsModal.tsx +0 -11
- package/src/lib/pages.ts +0 -22
- package/src/schemas/index.ts +0 -4
- package/src/schemas/site-config.ts +4 -32
- package/dist/chunk-4TZJZU2T.js +0 -92
- package/dist/chunk-DIMDRBFK.js +0 -11
- package/dist/chunk-FV7JQRCN.js +0 -94
- package/dist/chunk-IIDKW7AV.js +0 -41
- package/dist/chunk-JCDZAFX2.js +0 -224
- package/dist/chunk-MM7KZS5C.js +0 -30
- package/dist/chunk-QQ3S3P5P.js +0 -38
- package/dist/chunk-TEOAKGZA.js +0 -784
- package/dist/chunk-VAYZJKVR.js +0 -209
- package/dist/components/editor/SectionOrderingModal.d.ts +0 -10
- package/dist/components/editor/SectionOrderingModal.d.ts.map +0 -1
- package/dist/components/shell/DocInspector.d.ts +0 -18
- package/dist/components/shell/DocInspector.d.ts.map +0 -1
- package/dist/components/shell/DocumentEditorOverlay.d.ts +0 -29
- package/dist/components/shell/DocumentEditorOverlay.d.ts.map +0 -1
- package/dist/components/shell/DocumentPresentOverlay.d.ts +0 -30
- package/dist/components/shell/DocumentPresentOverlay.d.ts.map +0 -1
- package/dist/components/shell/SiteSettingsDecks.d.ts +0 -13
- package/dist/components/shell/SiteSettingsDecks.d.ts.map +0 -1
- package/dist/deck/DeckComponentView.d.ts +0 -13
- package/dist/deck/DeckComponentView.d.ts.map +0 -1
- package/dist/deck/DeckPlayer.d.ts +0 -26
- package/dist/deck/DeckPlayer.d.ts.map +0 -1
- package/dist/deck/DeckSlideView.d.ts +0 -17
- package/dist/deck/DeckSlideView.d.ts.map +0 -1
- package/dist/deck/DeckStage.d.ts +0 -16
- package/dist/deck/DeckStage.d.ts.map +0 -1
- package/dist/deck/components/DeckImage.d.ts +0 -14
- package/dist/deck/components/DeckImage.d.ts.map +0 -1
- package/dist/deck/components/DeckImageGrid.d.ts +0 -27
- package/dist/deck/components/DeckImageGrid.d.ts.map +0 -1
- package/dist/deck/components/DeckRichText.d.ts +0 -22
- package/dist/deck/components/DeckRichText.d.ts.map +0 -1
- package/dist/deck/components/DeckVideo.d.ts +0 -15
- package/dist/deck/components/DeckVideo.d.ts.map +0 -1
- package/dist/deck/editing.d.ts +0 -50
- package/dist/deck/editing.d.ts.map +0 -1
- package/dist/deck/flip.d.ts +0 -11
- package/dist/deck/flip.d.ts.map +0 -1
- package/dist/deck/index.d.ts +0 -24
- package/dist/deck/index.d.ts.map +0 -1
- package/dist/deck/index.js +0 -51
- package/dist/deck/layouts/CenteredTextLayout.d.ts +0 -12
- package/dist/deck/layouts/CenteredTextLayout.d.ts.map +0 -1
- package/dist/deck/layouts/ColumnSplitLayout.d.ts +0 -14
- package/dist/deck/layouts/ColumnSplitLayout.d.ts.map +0 -1
- package/dist/deck/layouts/FullBleedImageLayout.d.ts +0 -14
- package/dist/deck/layouts/FullBleedImageLayout.d.ts.map +0 -1
- package/dist/deck/media.d.ts +0 -33
- package/dist/deck/media.d.ts.map +0 -1
- package/dist/deck/tokens.d.ts +0 -22
- package/dist/deck/tokens.d.ts.map +0 -1
- package/dist/deck/useStageScale.d.ts +0 -10
- package/dist/deck/useStageScale.d.ts.map +0 -1
- package/dist/deck-builder/DeckBuilderApp.d.ts +0 -30
- package/dist/deck-builder/DeckBuilderApp.d.ts.map +0 -1
- package/dist/deck-builder/DeckBuilderTopBar.d.ts +0 -24
- package/dist/deck-builder/DeckBuilderTopBar.d.ts.map +0 -1
- package/dist/deck-builder/DeckChatPanel.d.ts +0 -45
- package/dist/deck-builder/DeckChatPanel.d.ts.map +0 -1
- package/dist/deck-builder/DeckEditor.d.ts +0 -37
- package/dist/deck-builder/DeckEditor.d.ts.map +0 -1
- package/dist/deck-builder/DeckLibrary.d.ts +0 -22
- package/dist/deck-builder/DeckLibrary.d.ts.map +0 -1
- package/dist/deck-builder/DeckSlideSurface.d.ts +0 -31
- package/dist/deck-builder/DeckSlideSurface.d.ts.map +0 -1
- package/dist/deck-builder/deck-api.d.ts +0 -76
- package/dist/deck-builder/deck-api.d.ts.map +0 -1
- package/dist/deck-builder/deck-chat-client.d.ts +0 -44
- package/dist/deck-builder/deck-chat-client.d.ts.map +0 -1
- package/dist/deck-builder/deck-chat-history.d.ts +0 -10
- package/dist/deck-builder/deck-chat-history.d.ts.map +0 -1
- package/dist/deck-builder/index.d.ts +0 -13
- package/dist/deck-builder/index.d.ts.map +0 -1
- package/dist/deck-builder/index.js +0 -1498
- package/dist/deck-builder/starter-deck.d.ts +0 -23
- package/dist/deck-builder/starter-deck.d.ts.map +0 -1
- package/dist/deck-builder/types.d.ts +0 -29
- package/dist/deck-builder/types.d.ts.map +0 -1
- package/dist/deck-builder/useSortableSlide.d.ts +0 -29
- package/dist/deck-builder/useSortableSlide.d.ts.map +0 -1
- package/dist/document/assets/fonts/albra-grotesk-bold.woff +0 -0
- package/dist/document/assets/fonts/albra-grotesk-regular.woff +0 -0
- package/dist/document/assets/fonts/kapra-neue-expanded-medium.woff +0 -0
- package/dist/document/assets/fonts/kapra-neue-expanded-regular.woff +0 -0
- package/dist/document/components/DocCoverPage.d.ts +0 -11
- package/dist/document/components/DocCoverPage.d.ts.map +0 -1
- package/dist/document/components/DocPage.d.ts +0 -10
- package/dist/document/components/DocPage.d.ts.map +0 -1
- package/dist/document/components/DocRail.d.ts +0 -28
- package/dist/document/components/DocRail.d.ts.map +0 -1
- package/dist/document/components/DocSectionPage.d.ts +0 -12
- package/dist/document/components/DocSectionPage.d.ts.map +0 -1
- package/dist/document/components/DocViewer.d.ts +0 -21
- package/dist/document/components/DocViewer.d.ts.map +0 -1
- package/dist/document/components/Wordmark.d.ts +0 -4
- package/dist/document/components/Wordmark.d.ts.map +0 -1
- package/dist/document/components/measure.d.ts +0 -7
- package/dist/document/components/measure.d.ts.map +0 -1
- package/dist/document/components/useDocPages.d.ts +0 -12
- package/dist/document/components/useDocPages.d.ts.map +0 -1
- package/dist/document/engine/blocks.d.ts +0 -2
- package/dist/document/engine/blocks.d.ts.map +0 -1
- package/dist/document/engine/harvest.d.ts +0 -3
- package/dist/document/engine/harvest.d.ts.map +0 -1
- package/dist/document/engine/masonry.d.ts +0 -26
- package/dist/document/engine/masonry.d.ts.map +0 -1
- package/dist/document/engine/paginate.d.ts +0 -43
- package/dist/document/engine/paginate.d.ts.map +0 -1
- package/dist/document/engine/settings.d.ts +0 -91
- package/dist/document/engine/settings.d.ts.map +0 -1
- package/dist/document/engine/types.d.ts +0 -44
- package/dist/document/engine/types.d.ts.map +0 -1
- package/dist/document/index.d.ts +0 -13
- package/dist/document/index.d.ts.map +0 -1
- package/dist/document/index.js +0 -1030
- package/dist/document/styles/document.css +0 -217
- package/dist/lib/deck-access.d.ts +0 -86
- package/dist/lib/deck-access.d.ts.map +0 -1
- package/dist/lib/deck-access.js +0 -58
- package/dist/lib/deck-dexie.d.ts +0 -88
- package/dist/lib/deck-dexie.d.ts.map +0 -1
- package/dist/lib/deck-dexie.js +0 -22
- package/dist/lib/deck-edit.d.ts +0 -67
- package/dist/lib/deck-edit.d.ts.map +0 -1
- package/dist/lib/deck-media-assets.d.ts +0 -27
- package/dist/lib/deck-media-assets.d.ts.map +0 -1
- package/dist/lib/deck-media-assets.js +0 -25
- package/dist/lib/deck-media-refs.d.ts +0 -35
- package/dist/lib/deck-media-refs.d.ts.map +0 -1
- package/dist/lib/deck-media-refs.js +0 -36
- package/dist/lib/deck-tool.d.ts +0 -25
- package/dist/lib/deck-tool.d.ts.map +0 -1
- package/dist/lib/deck-tool.js +0 -58
- package/dist/lib/document-input.d.ts +0 -25
- package/dist/lib/document-input.d.ts.map +0 -1
- package/dist/schemas/deck-meta.d.ts +0 -85
- package/dist/schemas/deck-meta.d.ts.map +0 -1
- package/dist/schemas/deck-meta.js +0 -64
- package/dist/schemas/deck.d.ts +0 -954
- package/dist/schemas/deck.d.ts.map +0 -1
- package/dist/schemas/deck.js +0 -65
- package/src/components/editor/SectionOrderingModal.tsx +0 -80
- package/src/components/shell/DocInspector.tsx +0 -314
- package/src/components/shell/DocumentEditorOverlay.tsx +0 -179
- package/src/components/shell/DocumentPresentOverlay.tsx +0 -87
- package/src/components/shell/SiteSettingsDecks.tsx +0 -41
- package/src/deck/DeckComponentView.tsx +0 -28
- package/src/deck/DeckPlayer.tsx +0 -166
- package/src/deck/DeckSlideView.tsx +0 -38
- package/src/deck/DeckStage.tsx +0 -39
- package/src/deck/components/DeckImage.tsx +0 -38
- package/src/deck/components/DeckImageGrid.tsx +0 -254
- package/src/deck/components/DeckRichText.tsx +0 -111
- package/src/deck/components/DeckVideo.tsx +0 -81
- package/src/deck/editing.tsx +0 -201
- package/src/deck/flip.ts +0 -70
- package/src/deck/index.ts +0 -30
- package/src/deck/layouts/CenteredTextLayout.tsx +0 -29
- package/src/deck/layouts/ColumnSplitLayout.tsx +0 -69
- package/src/deck/layouts/FullBleedImageLayout.tsx +0 -58
- package/src/deck/media.tsx +0 -46
- package/src/deck/tokens.ts +0 -57
- package/src/deck/useStageScale.ts +0 -44
- package/src/deck-builder/DeckBuilderApp.tsx +0 -572
- package/src/deck-builder/DeckBuilderTopBar.tsx +0 -62
- package/src/deck-builder/DeckChatPanel.tsx +0 -334
- package/src/deck-builder/DeckEditor.tsx +0 -258
- package/src/deck-builder/DeckLibrary.tsx +0 -195
- package/src/deck-builder/DeckSlideSurface.tsx +0 -55
- package/src/deck-builder/deck-api.ts +0 -177
- package/src/deck-builder/deck-chat-client.ts +0 -129
- package/src/deck-builder/deck-chat-history.ts +0 -62
- package/src/deck-builder/index.ts +0 -12
- package/src/deck-builder/starter-deck.ts +0 -86
- package/src/deck-builder/types.ts +0 -24
- package/src/deck-builder/useSortableSlide.ts +0 -102
- package/src/document/assets/fonts/albra-grotesk-bold.woff +0 -0
- package/src/document/assets/fonts/albra-grotesk-regular.woff +0 -0
- package/src/document/assets/fonts/kapra-neue-expanded-medium.woff +0 -0
- package/src/document/assets/fonts/kapra-neue-expanded-regular.woff +0 -0
- package/src/document/components/DocCoverPage.tsx +0 -45
- package/src/document/components/DocPage.tsx +0 -40
- package/src/document/components/DocRail.tsx +0 -189
- package/src/document/components/DocSectionPage.tsx +0 -48
- package/src/document/components/DocViewer.tsx +0 -313
- package/src/document/components/Wordmark.tsx +0 -18
- package/src/document/components/measure.tsx +0 -133
- package/src/document/components/useDocPages.ts +0 -95
- package/src/document/engine/blocks.ts +0 -116
- package/src/document/engine/harvest.ts +0 -95
- package/src/document/engine/masonry.ts +0 -158
- package/src/document/engine/paginate.ts +0 -232
- package/src/document/engine/settings.ts +0 -125
- package/src/document/engine/types.ts +0 -64
- package/src/document/index.ts +0 -18
- package/src/document/styles/document.css +0 -217
- package/src/lib/deck-access.ts +0 -132
- package/src/lib/deck-dexie.ts +0 -190
- package/src/lib/deck-edit.ts +0 -196
- package/src/lib/deck-media-assets.ts +0 -57
- package/src/lib/deck-media-refs.ts +0 -67
- package/src/lib/deck-tool.ts +0 -95
- package/src/lib/document-input.ts +0 -57
- package/src/schemas/deck-meta.ts +0 -88
- package/src/schemas/deck.ts +0 -478
- package/dist/{chunk-DJABADOO.js → chunk-AJ2QOAZI.js} +3 -3
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type Deck } from "../schemas/deck";
|
|
2
|
-
/**
|
|
3
|
-
* A new deck's seed. Three slides using the two text-only Layouts, so a New
|
|
4
|
-
* Deck is publishable and presentable before the author has said anything —
|
|
5
|
-
* and so the starter never cites media that a given site may not have (a
|
|
6
|
-
* reference the manifest cannot resolve renders as a gap, which is a poor
|
|
7
|
-
* first impression of the runtime).
|
|
8
|
-
*
|
|
9
|
-
* Parsed rather than cast: this is the one deck the product itself authors, so
|
|
10
|
-
* a schema change that breaks it should break a test, not a client's first
|
|
11
|
-
* deck.
|
|
12
|
-
*/
|
|
13
|
-
export declare function starterDeck(id: string, title: string): Deck;
|
|
14
|
-
/**
|
|
15
|
-
* A deck id for a new deck: a slug of the title plus a short random suffix.
|
|
16
|
-
*
|
|
17
|
-
* Random rather than sequential because the id is a directory name on a shared
|
|
18
|
-
* branch that this browser cannot enumerate (a viewer only ever sees their own
|
|
19
|
-
* decks), so "next free number" is not something the builder can know. The
|
|
20
|
-
* charset is `DeckIdSchema`'s.
|
|
21
|
-
*/
|
|
22
|
-
export declare function newDeckId(title: string): string;
|
|
23
|
-
//# sourceMappingURL=starter-deck.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"starter-deck.d.ts","sourceRoot":"","sources":["../../src/deck-builder/starter-deck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAsD3D;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ/C"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Deck } from "../schemas/deck";
|
|
2
|
-
/**
|
|
3
|
-
* One row of the builder's deck grid: whatever this browser has staged, joined
|
|
4
|
-
* to whatever the decks branch holds.
|
|
5
|
-
*
|
|
6
|
-
* The join is by deck id and both sides are optional, because the three states
|
|
7
|
-
* are all real: a draft never published (published side absent), a deck
|
|
8
|
-
* published from another device (draft side absent), and the normal case where
|
|
9
|
-
* both exist and may differ.
|
|
10
|
-
*/
|
|
11
|
-
export interface DeckGridEntry {
|
|
12
|
-
id: string;
|
|
13
|
-
title: string;
|
|
14
|
-
slideCount: number;
|
|
15
|
-
/** ISO timestamp behind the card's "… ago" line. */
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
/** Present when this browser has the deck staged. */
|
|
18
|
-
draft: {
|
|
19
|
-
deck: Deck;
|
|
20
|
-
baseVersion: string | null;
|
|
21
|
-
} | null;
|
|
22
|
-
/** Present when the decks branch holds it. */
|
|
23
|
-
published: {
|
|
24
|
-
version: string;
|
|
25
|
-
} | null;
|
|
26
|
-
/** The draft differs from what was published (or was never published). */
|
|
27
|
-
unpublishedChanges: boolean;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/deck-builder/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACzD,8CAA8C;IAC9C,SAAS,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACtC,0EAA0E;IAC1E,kBAAkB,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
interface Options {
|
|
2
|
-
index: number;
|
|
3
|
-
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
4
|
-
/** False while a chat turn streams — the strip goes inert, like the stage. */
|
|
5
|
-
enabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Drag-to-reorder for one filmstrip thumbnail.
|
|
9
|
-
*
|
|
10
|
-
* A sibling of `useSortableRow` rather than an option on it: the filmstrip is
|
|
11
|
-
* HORIZONTAL, so it reads left/right edges where every existing consumer reads
|
|
12
|
-
* top/bottom, and widening that hook's `closestEdge` type would change the two
|
|
13
|
-
* shipped editor modals that render `DropEdgeIndicator` from it. The Deck
|
|
14
|
-
* Builder is a sealed subtree; a second small hook here costs less than a type
|
|
15
|
-
* change under two surfaces this ticket is not touching.
|
|
16
|
-
*
|
|
17
|
-
* The pointer-math is NOT duplicated: `computeReorderTarget` is written in
|
|
18
|
-
* before/after terms, so left maps to "top" and right to "bottom" and the
|
|
19
|
-
* unit-tested decrement stays the one implementation. The whole atlaskit
|
|
20
|
-
* adapter is imported lazily, as it is everywhere else — jsdom cannot run it,
|
|
21
|
-
* which is why `moveDeckSlide` and the move affordances carry the coverage.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useSortableSlide<E extends HTMLElement>({ index, onReorder, enabled }: Options): {
|
|
24
|
-
ref: import("react").RefObject<E | null>;
|
|
25
|
-
isDragging: boolean;
|
|
26
|
-
closestEdge: "right" | "left" | null;
|
|
27
|
-
};
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=useSortableSlide.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSortableSlide.d.ts","sourceRoot":"","sources":["../../src/deck-builder/useSortableSlide.ts"],"names":[],"mappings":"AAGA,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,8EAA8E;IAC9E,OAAO,EAAE,OAAO,CAAC;CAClB;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,OAAO;;;;EAyE7F"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DocCover } from "../engine/settings";
|
|
2
|
-
import type { DocImage, DocMeta } from "../engine/types";
|
|
3
|
-
import type { DocHost } from "./DocSectionPage";
|
|
4
|
-
export declare function DocCoverPage({ cover, meta, image, host, }: {
|
|
5
|
-
cover: DocCover;
|
|
6
|
-
meta: DocMeta;
|
|
7
|
-
/** Resolved from source.images[cover.imageId] by the caller; null/undefined = solid cover. */
|
|
8
|
-
image?: DocImage | null;
|
|
9
|
-
host?: DocHost;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=DocCoverPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocCoverPage.d.ts","sourceRoot":"","sources":["../../../src/document/components/DocCoverPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQhD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,KAAK,EACL,IAAI,GACL,EAAE;IACD,KAAK,EAAE,QAAQ,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,8FAA8F;IAC9F,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,2CAsBA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { DocMeta } from "../engine/types";
|
|
3
|
-
export type { DocMeta };
|
|
4
|
-
export declare function DocPage({ meta, bleed, chrome, children, }: {
|
|
5
|
-
meta: DocMeta;
|
|
6
|
-
bleed?: boolean;
|
|
7
|
-
chrome?: boolean;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=DocPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocPage.d.ts","sourceRoot":"","sources":["../../../src/document/components/DocPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAM/C,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAa,EACb,MAAa,EACb,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAoBA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { DerivedPage } from "../engine/paginate";
|
|
2
|
-
import type { DocCover } from "../engine/settings";
|
|
3
|
-
import type { DocImage, DocMeta } from "../engine/types";
|
|
4
|
-
import { type DocHost } from "./DocSectionPage";
|
|
5
|
-
export type RailEntry = {
|
|
6
|
-
kind: "cover";
|
|
7
|
-
} | {
|
|
8
|
-
kind: "page";
|
|
9
|
-
page: DerivedPage;
|
|
10
|
-
} | {
|
|
11
|
-
kind: "ghost";
|
|
12
|
-
chunkId: string;
|
|
13
|
-
title: string;
|
|
14
|
-
reason: "excluded" | "empty";
|
|
15
|
-
depth?: 1;
|
|
16
|
-
};
|
|
17
|
-
export declare function entryId(entry: RailEntry): string;
|
|
18
|
-
export declare function DocRail({ entries, selectedId, meta, cover, coverImage, host, onSelect, onCollapse, }: {
|
|
19
|
-
entries: RailEntry[];
|
|
20
|
-
selectedId: string;
|
|
21
|
-
meta: DocMeta;
|
|
22
|
-
cover: DocCover;
|
|
23
|
-
coverImage?: DocImage | null;
|
|
24
|
-
host: DocHost;
|
|
25
|
-
onSelect: (id: string) => void;
|
|
26
|
-
onCollapse: () => void;
|
|
27
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=DocRail.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocRail.d.ts","sourceRoot":"","sources":["../../../src/document/components/DocRail.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOhE,MAAM,MAAM,SAAS,GACjB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;AAE/F,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAIhD;AAyED,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,UAAU,EACV,IAAI,EACJ,KAAK,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,UAAU,GACX,EAAE;IACD,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,2CA4EA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DocImage, DocMeta } from "../engine/types";
|
|
2
|
-
import type { DerivedPage } from "../engine/paginate";
|
|
3
|
-
export interface DocHost {
|
|
4
|
-
imageSrc: (image: DocImage, variant: "preview" | "print") => string;
|
|
5
|
-
variant: "preview" | "print";
|
|
6
|
-
}
|
|
7
|
-
export declare function DocSectionPage({ page, meta, host }: {
|
|
8
|
-
page: DerivedPage;
|
|
9
|
-
meta: DocMeta;
|
|
10
|
-
host: DocHost;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=DocSectionPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocSectionPage.d.ts","sourceRoot":"","sources":["../../../src/document/components/DocSectionPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,GAAG,OAAO,KAAK,MAAM,CAAC;IACpE,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;CAC9B;AAID,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,2CAoCvG"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DocumentOptions } from "../engine/settings";
|
|
2
|
-
import type { Chunk, DocSourceContent } from "../engine/types";
|
|
3
|
-
import { type DocHost } from "./DocSectionPage";
|
|
4
|
-
export interface DocViewerProps {
|
|
5
|
-
source: DocSourceContent | null;
|
|
6
|
-
document: DocumentOptions;
|
|
7
|
-
host: DocHost;
|
|
8
|
-
mode: "present" | "edit";
|
|
9
|
-
selectedChunkId?: string | null;
|
|
10
|
-
onSelectChunk?: (chunkId: string | null) => void;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
/** Present mode only: when set, the toolbar shows a "Download PDF" link (the /present
|
|
13
|
-
* route passes the gated /api/document-pdf href when a PDF exists for this viewer). */
|
|
14
|
-
downloadHref?: string | null;
|
|
15
|
-
onDocState?: (state: {
|
|
16
|
-
chunks: Chunk[];
|
|
17
|
-
warningsByChunk: Record<string, string[]>;
|
|
18
|
-
}) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare function DocViewer({ source, document: doc, host, mode, selectedChunkId, onSelectChunk, onClose, downloadHref, onDocState, }: DocViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
//# sourceMappingURL=DocViewer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocViewer.d.ts","sourceRoot":"","sources":["../../../src/document/components/DocViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,EAAE,KAAK,EAAY,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGzE,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IAEzB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;2FACuF;IACvF,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAK7B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CAC9F;AAUD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,QAAQ,EAAE,GAAG,EACb,IAAI,EACJ,IAAI,EACJ,eAAe,EACf,aAAa,EACb,OAAO,EACP,YAAY,EACZ,UAAU,GACX,EAAE,cAAc,2CA8KhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wordmark.d.ts","sourceRoot":"","sources":["../../../src/document/components/Wordmark.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAe7D"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SectionSettings } from "../engine/settings";
|
|
2
|
-
import type { Chunk } from "../engine/types";
|
|
3
|
-
export declare function useTextMeasurements(chunks: Chunk[], settingsMap: Record<string, SectionSettings>): {
|
|
4
|
-
heights: Record<string, number[]> | null;
|
|
5
|
-
textWidths: Record<string, number> | null;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../src/document/components/measure.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,iBAAiB,CAAC;AAmCxD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,KAAK,EAAE,EACf,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAC3C;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;CAAE,CA2FzF"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type DerivedPage } from "../engine/paginate";
|
|
2
|
-
import type { Chunk, DocSourceContent } from "../engine/types";
|
|
3
|
-
export declare function useDocPages(input: {
|
|
4
|
-
source: DocSourceContent | null;
|
|
5
|
-
sections: Record<string, unknown>;
|
|
6
|
-
}): {
|
|
7
|
-
chunks: Chunk[];
|
|
8
|
-
pages: DerivedPage[];
|
|
9
|
-
measuring: boolean;
|
|
10
|
-
warningsByChunk: Record<string, string[]>;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useDocPages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDocPages.d.ts","sourceRoot":"","sources":["../../../src/document/components/useDocPages.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAW,MAAM,iBAAiB,CAAC;AAGxE,wBAAgB,WAAW,CAAC,KAAK,EAAE;IACjC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,GAAG;IAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CAAE,CAoF3G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../src/document/engine/blocks.ts"],"names":[],"mappings":"AA6FA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAsBvD"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type Chunk, type DocImage, type DocSectionInput, type SplitAt } from "./types";
|
|
2
|
-
export declare function harvest(sections: DocSectionInput[], pageTitle: string, imagesById: Record<string, DocImage>, splitAtFor?: (chunkId: string) => SplitAt): Chunk[];
|
|
3
|
-
//# sourceMappingURL=harvest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"harvest.d.ts","sourceRoot":"","sources":["../../../src/document/engine/harvest.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,KAAK,EAAE,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AA0DrG,wBAAgB,OAAO,CACrB,QAAQ,EAAE,eAAe,EAAE,EAC3B,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EACpC,UAAU,GAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAsB,GACtD,KAAK,EAAE,CA8BT"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type MasonryMode = "rows" | "columns";
|
|
2
|
-
export type Sized = {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
6
|
-
export interface MasonryOpts {
|
|
7
|
-
mode: MasonryMode;
|
|
8
|
-
columns: 2 | 3 | 4 | 5 | 6;
|
|
9
|
-
bodyWIn: number;
|
|
10
|
-
bodyHIn: number;
|
|
11
|
-
gapIn: number;
|
|
12
|
-
targetRowHeightIn: number;
|
|
13
|
-
rows?: "auto" | 1 | 2 | 3 | 4;
|
|
14
|
-
}
|
|
15
|
-
export interface MasonryBox<T extends Sized = Sized> {
|
|
16
|
-
asset: T;
|
|
17
|
-
xIn: number;
|
|
18
|
-
yIn: number;
|
|
19
|
-
wIn: number;
|
|
20
|
-
hIn: number;
|
|
21
|
-
}
|
|
22
|
-
export declare function layoutMasonryPage<T extends Sized>(images: T[], o: MasonryOpts, fits?: ("cover" | "contain")[]): {
|
|
23
|
-
boxes: MasonryBox<T>[];
|
|
24
|
-
used: number;
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=masonry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masonry.d.ts","sourceRoot":"","sources":["../../../src/document/engine/masonry.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7C,MAAM,MAAM,KAAK,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK;IACjD,KAAK,EAAE,CAAC,CAAC;IACT,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AA4HD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,KAAK,EAC/C,MAAM,EAAE,CAAC,EAAE,EACX,CAAC,EAAE,WAAW,EACd,IAAI,GAAE,CAAC,OAAO,GAAG,SAAS,CAAC,EAAO,GACjC;IAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAO1C"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { SectionSettings } from "./settings";
|
|
2
|
-
import type { Chunk, DocImage, TextBlock } from "./types";
|
|
3
|
-
export interface DocGeom {
|
|
4
|
-
bodyWIn: number;
|
|
5
|
-
bodyHIn: number;
|
|
6
|
-
titleBandIn: number;
|
|
7
|
-
gapIn: number;
|
|
8
|
-
leftColWIn: number;
|
|
9
|
-
colGutterIn: number;
|
|
10
|
-
minTextColIn: number;
|
|
11
|
-
minImageRegionIn: number;
|
|
12
|
-
masonryTargetRowIn: number;
|
|
13
|
-
topTextMaxFraction: number;
|
|
14
|
-
}
|
|
15
|
-
export declare const DOC_GEOM: DocGeom;
|
|
16
|
-
export interface Region {
|
|
17
|
-
xIn: number;
|
|
18
|
-
yIn: number;
|
|
19
|
-
wIn: number;
|
|
20
|
-
hIn: number;
|
|
21
|
-
}
|
|
22
|
-
export interface ImageBox {
|
|
23
|
-
image: DocImage;
|
|
24
|
-
xIn: number;
|
|
25
|
-
yIn: number;
|
|
26
|
-
wIn: number;
|
|
27
|
-
hIn: number;
|
|
28
|
-
fit: "cover" | "contain";
|
|
29
|
-
}
|
|
30
|
-
export interface DerivedPage {
|
|
31
|
-
id: string;
|
|
32
|
-
chunkId: string;
|
|
33
|
-
title: string;
|
|
34
|
-
cont: boolean;
|
|
35
|
-
kicker?: string;
|
|
36
|
-
depth?: 1;
|
|
37
|
-
textBlocks: TextBlock[];
|
|
38
|
-
textRegion: Region | null;
|
|
39
|
-
imageBoxes: ImageBox[];
|
|
40
|
-
warnings: string[];
|
|
41
|
-
}
|
|
42
|
-
export declare function paginateChunk(chunk: Chunk, settings: SectionSettings, textHeightsIn: number[], geom?: DocGeom, naturalTextWIn?: number): DerivedPage[];
|
|
43
|
-
//# sourceMappingURL=paginate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginate.d.ts","sourceRoot":"","sources":["../../../src/document/engine/paginate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAGD,eAAO,MAAM,QAAQ,EAAE,OAatB,CAAC;AAIF,MAAM,WAAW,MAAM;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE;AAC/E,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,QAAQ,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IACnD,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC;CAC1B;AACD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAiDD,wBAAgB,aAAa,CAC3B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,aAAa,EAAE,MAAM,EAAE,EACvB,IAAI,GAAE,OAAkB,EACxB,cAAc,CAAC,EAAE,MAAM,GACtB,WAAW,EAAE,CA2Hf"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const sectionSettingsSchema: z.ZodObject<{
|
|
3
|
-
excluded: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
-
textPlacement: z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
top: "top";
|
|
6
|
-
leftColumn: "leftColumn";
|
|
7
|
-
}>>;
|
|
8
|
-
imagePlacement: z.ZodDefault<z.ZodEnum<{
|
|
9
|
-
fullWidth: "fullWidth";
|
|
10
|
-
right: "right";
|
|
11
|
-
}>>;
|
|
12
|
-
dropTextOverflow: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
splitAt: z.ZodDefault<z.ZodEnum<{
|
|
14
|
-
none: "none";
|
|
15
|
-
sub_heading: "sub_heading";
|
|
16
|
-
}>>;
|
|
17
|
-
imageLayout: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
-
mode: z.ZodLiteral<"grid">;
|
|
19
|
-
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
20
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
21
|
-
fit: z.ZodDefault<z.ZodEnum<{
|
|
22
|
-
cover: "cover";
|
|
23
|
-
contain: "contain";
|
|
24
|
-
}>>;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
mode: z.ZodLiteral<"masonry">;
|
|
27
|
-
flow: z.ZodDefault<z.ZodEnum<{
|
|
28
|
-
rows: "rows";
|
|
29
|
-
columns: "columns";
|
|
30
|
-
}>>;
|
|
31
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
|
|
32
|
-
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
33
|
-
}, z.core.$strip>], "mode">>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
export type SectionSettings = z.infer<typeof sectionSettingsSchema>;
|
|
36
|
-
export declare function settingsFor(all: Record<string, unknown> | undefined, chunkId: string): SectionSettings;
|
|
37
|
-
/** Setting names for `chunkId` that failed to parse and were reset to their
|
|
38
|
-
* default. Surfaced as document warnings so a silent reset is visible. */
|
|
39
|
-
export declare function settingsIssuesFor(all: Record<string, unknown> | undefined, chunkId: string): string[];
|
|
40
|
-
export declare const documentOptionsSchema: z.ZodObject<{
|
|
41
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
-
meta: z.ZodDefault<z.ZodObject<{
|
|
43
|
-
client: z.ZodDefault<z.ZodString>;
|
|
44
|
-
project: z.ZodDefault<z.ZodString>;
|
|
45
|
-
dateLabel: z.ZodDefault<z.ZodString>;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
cover: z.ZodDefault<z.ZodObject<{
|
|
48
|
-
bgColor: z.ZodDefault<z.ZodString>;
|
|
49
|
-
accentColor: z.ZodDefault<z.ZodString>;
|
|
50
|
-
title: z.ZodDefault<z.ZodString>;
|
|
51
|
-
label: z.ZodDefault<z.ZodString>;
|
|
52
|
-
date: z.ZodDefault<z.ZodString>;
|
|
53
|
-
imageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
sections: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
|
-
excluded: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
-
textPlacement: z.ZodDefault<z.ZodEnum<{
|
|
58
|
-
top: "top";
|
|
59
|
-
leftColumn: "leftColumn";
|
|
60
|
-
}>>;
|
|
61
|
-
imagePlacement: z.ZodDefault<z.ZodEnum<{
|
|
62
|
-
fullWidth: "fullWidth";
|
|
63
|
-
right: "right";
|
|
64
|
-
}>>;
|
|
65
|
-
dropTextOverflow: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
-
splitAt: z.ZodDefault<z.ZodEnum<{
|
|
67
|
-
none: "none";
|
|
68
|
-
sub_heading: "sub_heading";
|
|
69
|
-
}>>;
|
|
70
|
-
imageLayout: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
71
|
-
mode: z.ZodLiteral<"grid">;
|
|
72
|
-
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
73
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
74
|
-
fit: z.ZodDefault<z.ZodEnum<{
|
|
75
|
-
cover: "cover";
|
|
76
|
-
contain: "contain";
|
|
77
|
-
}>>;
|
|
78
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
-
mode: z.ZodLiteral<"masonry">;
|
|
80
|
-
flow: z.ZodDefault<z.ZodEnum<{
|
|
81
|
-
rows: "rows";
|
|
82
|
-
columns: "columns";
|
|
83
|
-
}>>;
|
|
84
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
|
|
85
|
-
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
86
|
-
}, z.core.$strip>], "mode">>;
|
|
87
|
-
}, z.core.$strip>>>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
export type DocumentOptions = z.infer<typeof documentOptionsSchema>;
|
|
90
|
-
export type DocCover = DocumentOptions["cover"];
|
|
91
|
-
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/document/engine/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoChC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAoCpE,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACxC,OAAO,EAAE,MAAM,GACd,eAAe,CAMjB;AAED;2EAC2E;AAC3E,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACxC,OAAO,EAAE,MAAM,GACd,MAAM,EAAE,CAEV;AAiBD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const PREAMBLE_ID = "__preamble";
|
|
2
|
-
export type SplitAt = "none" | "sub_heading";
|
|
3
|
-
export interface DocMeta {
|
|
4
|
-
client: string;
|
|
5
|
-
project: string;
|
|
6
|
-
dateLabel: string;
|
|
7
|
-
}
|
|
8
|
-
export interface DocSectionInput {
|
|
9
|
-
id: string;
|
|
10
|
-
type: string;
|
|
11
|
-
content: Record<string, unknown>;
|
|
12
|
-
options?: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
export interface DocImage {
|
|
15
|
-
imageId: string;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
alt: string;
|
|
19
|
-
previewFile: string;
|
|
20
|
-
printFile: string;
|
|
21
|
-
}
|
|
22
|
-
export type TextBlock = {
|
|
23
|
-
kind: "heading";
|
|
24
|
-
level: 2 | 3;
|
|
25
|
-
text: string;
|
|
26
|
-
} | {
|
|
27
|
-
kind: "prose";
|
|
28
|
-
html: string;
|
|
29
|
-
};
|
|
30
|
-
export interface Chunk {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
textBlocks: TextBlock[];
|
|
34
|
-
images: DocImage[];
|
|
35
|
-
parentId?: string;
|
|
36
|
-
kicker?: string;
|
|
37
|
-
depth?: 1;
|
|
38
|
-
}
|
|
39
|
-
export interface DocSourceContent {
|
|
40
|
-
pageTitle: string;
|
|
41
|
-
sections: DocSectionInput[];
|
|
42
|
-
images: Record<string, DocImage>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/document/engine/types.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,eAAe,CAAC;AAKxC,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC;AAM7C,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAID,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,GACjB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAIpC,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,MAAM,EAAE,QAAQ,EAAE,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC"}
|
package/dist/document/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from "./engine/types";
|
|
2
|
-
export * from "./engine/settings";
|
|
3
|
-
export { splitProseBlocks } from "./engine/blocks";
|
|
4
|
-
export { harvest } from "./engine/harvest";
|
|
5
|
-
export * from "./engine/paginate";
|
|
6
|
-
export { layoutMasonryPage, type MasonryOpts, type Sized } from "./engine/masonry";
|
|
7
|
-
export { DocPage, type DocMeta } from "./components/DocPage";
|
|
8
|
-
export { DocSectionPage, type DocHost } from "./components/DocSectionPage";
|
|
9
|
-
export { DocCoverPage } from "./components/DocCoverPage";
|
|
10
|
-
export { useDocPages } from "./components/useDocPages";
|
|
11
|
-
export { DocViewer } from "./components/DocViewer";
|
|
12
|
-
export { DocRail, entryId, type RailEntry } from "./components/DocRail";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEnF,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
|