@drawnagency/primitives 0.1.26 → 0.1.27
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-UMSFICAC.js → chunk-DKOUFIP6.js} +0 -1
- package/dist/{chunk-FSVPD7TW.js → chunk-HXXZBTPF.js} +12 -5
- package/dist/{chunk-IP6ODLXX.js → chunk-JHSYLVKI.js} +19 -84
- package/dist/{chunk-P24YUT3O.js → chunk-MNK7XA6S.js} +1 -1
- package/dist/{chunk-EAEX6DS7.js → chunk-V43WVSVS.js} +3 -2
- package/dist/components/editor/SectionOrderingModal.d.ts +10 -0
- package/dist/components/editor/SectionOrderingModal.d.ts.map +1 -0
- package/dist/components/editor/SectionWrapper.d.ts.map +1 -1
- package/dist/components/primitives/EditableRichText.d.ts.map +1 -1
- package/dist/components/sections/Button/index.d.ts.map +1 -1
- package/dist/components/sections/Colors/index.d.ts.map +1 -1
- package/dist/components/sections/DoDontMediaGrid/index.d.ts.map +1 -1
- package/dist/components/sections/IconList/index.d.ts.map +1 -1
- package/dist/components/sections/LinkHeading/index.d.ts.map +1 -1
- package/dist/components/sections/MediaGrid/index.d.ts.map +1 -1
- package/dist/components/sections/Prose/index.d.ts.map +1 -1
- package/dist/components/sections/SplitContent/index.d.ts.map +1 -1
- package/dist/components/sections/SubHeading/index.d.ts.map +1 -1
- package/dist/components/sections/SubSubHeading/index.d.ts.map +1 -1
- package/dist/components/sections/ViewRenderer.d.ts +0 -1
- package/dist/components/sections/ViewRenderer.d.ts.map +1 -1
- package/dist/components/sections/register-schemas.d.ts.map +1 -1
- package/dist/components/sections/register.d.ts.map +1 -1
- package/dist/components/shell/EditorShell.d.ts +0 -1
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/deploy/index.d.ts +2 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/types.d.ts +12 -0
- package/dist/deploy/types.d.ts.map +1 -0
- package/dist/hooks/useEditorPublish.d.ts.map +1 -1
- package/dist/hooks/useMediaPipeline.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -8
- package/dist/lib/dexie.d.ts +4 -1
- package/dist/lib/dexie.d.ts.map +1 -1
- package/dist/lib/dexie.js +319 -0
- package/dist/lib/index.js +3 -3
- package/dist/lib/nav.d.ts +2 -6
- package/dist/lib/nav.d.ts.map +1 -1
- package/dist/lib/registry.d.ts +14 -0
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/lib/text.d.ts +3 -0
- package/dist/lib/text.d.ts.map +1 -0
- package/dist/media/index.d.ts +4 -2
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +8 -6
- package/dist/media/provider.d.ts +7 -0
- package/dist/media/provider.d.ts.map +1 -0
- package/dist/media/resolve.d.ts +3 -2
- package/dist/media/resolve.d.ts.map +1 -1
- package/dist/media/types.d.ts +0 -9
- package/dist/media/types.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -3
- package/dist/schemas/media.d.ts +0 -3
- package/dist/schemas/media.d.ts.map +1 -1
- package/dist/schemas/site-config.d.ts +1 -3
- package/dist/schemas/site-config.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/types.d.ts +21 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/package.json +5 -1
- package/src/components/editor/DragHandle.tsx +1 -1
- package/src/components/editor/SectionOrderingModal.tsx +215 -0
- package/src/components/editor/SectionWrapper.tsx +3 -1
- package/src/components/primitives/EditableRichText.tsx +4 -2
- package/src/components/sections/Button/index.tsx +1 -0
- package/src/components/sections/Colors/index.tsx +8 -0
- package/src/components/sections/DoDontMediaGrid/index.tsx +8 -0
- package/src/components/sections/IconList/index.tsx +4 -0
- package/src/components/sections/LinkHeading/index.tsx +2 -0
- package/src/components/sections/MediaGrid/index.tsx +8 -0
- package/src/components/sections/Prose/index.tsx +2 -0
- package/src/components/sections/SplitContent/index.tsx +16 -2
- package/src/components/sections/SubHeading/index.tsx +2 -0
- package/src/components/sections/SubSubHeading/index.tsx +2 -0
- package/src/components/sections/ViewRenderer.tsx +3 -1
- package/src/components/sections/register-schemas.ts +0 -2
- package/src/components/sections/register.ts +0 -2
- package/src/components/shell/EditorShell.tsx +40 -9
- package/src/deploy/index.ts +1 -0
- package/src/deploy/types.ts +12 -0
- package/src/hooks/useEditorPublish.ts +18 -43
- package/src/hooks/useMediaPipeline.ts +41 -11
- package/src/hooks/useResolvedMedia.ts +3 -3
- package/src/index.ts +2 -0
- package/src/lib/dexie.ts +28 -1
- package/src/lib/nav.ts +16 -9
- package/src/lib/registry.ts +10 -0
- package/src/lib/text.ts +8 -0
- package/src/media/index.ts +13 -4
- package/src/media/provider.ts +7 -0
- package/src/media/resolve.ts +9 -6
- package/src/media/types.ts +0 -9
- package/src/schemas/media.ts +0 -1
- package/src/schemas/site-config.ts +1 -0
- package/src/storage/index.ts +1 -0
- package/src/storage/types.ts +23 -0
- package/dist/components/sections/SplitContent/SplitContentSettings.d.ts +0 -9
- package/dist/components/sections/SplitContent/SplitContentSettings.d.ts.map +0 -1
- package/dist/media/github.d.ts +0 -3
- package/dist/media/github.d.ts.map +0 -1
- package/src/components/sections/SplitContent/SplitContentSettings.d.ts +0 -9
- package/src/components/sections/SplitContent/SplitContentSettings.d.ts.map +0 -1
- package/src/components/sections/SplitContent/SplitContentSettings.tsx +0 -42
- package/src/media/github.ts +0 -72
|
@@ -22,7 +22,6 @@ var ImageManifestSchema = z.object({
|
|
|
22
22
|
images: z.record(z.string(), MediaItemSchema)
|
|
23
23
|
});
|
|
24
24
|
var MediaConfigSchema = z.object({
|
|
25
|
-
adapter: z.enum(["github"]).default("github"),
|
|
26
25
|
sizes: z.array(z.number()).default([640, 1080, 1920]),
|
|
27
26
|
maxFileSize: z.number().default(5242880),
|
|
28
27
|
quality: z.number().min(1).max(100).default(85)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IndexSchema,
|
|
3
3
|
getAllSchemas,
|
|
4
|
+
getSection,
|
|
4
5
|
getSectionSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-V43WVSVS.js";
|
|
6
7
|
import {
|
|
7
8
|
safeNextPath
|
|
8
9
|
} from "./chunk-F3Z6RISI.js";
|
|
@@ -18,14 +19,20 @@ function cn(...inputs) {
|
|
|
18
19
|
function toSectionId(text) {
|
|
19
20
|
return text.toLowerCase().replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-");
|
|
20
21
|
}
|
|
21
|
-
function generateNavLinks(sections) {
|
|
22
|
+
function generateNavLinks(sections, registry) {
|
|
22
23
|
const nav = [];
|
|
23
24
|
let currentParent = null;
|
|
24
25
|
let currentChild = null;
|
|
26
|
+
const lookupRole = (type) => {
|
|
27
|
+
const def = registry ? registry.getSection(type) : getSection(type);
|
|
28
|
+
return def?.navRole;
|
|
29
|
+
};
|
|
25
30
|
for (const { section, meta } of sections) {
|
|
26
31
|
const content = section.content;
|
|
27
32
|
if (!content.heading) continue;
|
|
28
|
-
|
|
33
|
+
const role = lookupRole(section.type);
|
|
34
|
+
if (!role) continue;
|
|
35
|
+
if (role === "h1") {
|
|
29
36
|
currentParent = {
|
|
30
37
|
href: `#${toSectionId(content.heading)}`,
|
|
31
38
|
label: content.heading,
|
|
@@ -34,7 +41,7 @@ function generateNavLinks(sections) {
|
|
|
34
41
|
};
|
|
35
42
|
currentChild = null;
|
|
36
43
|
nav.push(currentParent);
|
|
37
|
-
} else if (
|
|
44
|
+
} else if (role === "h2") {
|
|
38
45
|
if (content.excludeFromNav) continue;
|
|
39
46
|
if (!currentParent) continue;
|
|
40
47
|
currentChild = {
|
|
@@ -44,7 +51,7 @@ function generateNavLinks(sections) {
|
|
|
44
51
|
children: []
|
|
45
52
|
};
|
|
46
53
|
currentParent.children.push(currentChild);
|
|
47
|
-
} else if (
|
|
54
|
+
} else if (role === "h3") {
|
|
48
55
|
if (content.excludeFromNav) continue;
|
|
49
56
|
if (!currentChild) continue;
|
|
50
57
|
currentChild.children.push({
|
|
@@ -45,80 +45,6 @@ function displayFilenameExt(mime) {
|
|
|
45
45
|
return ext ? `.${ext}` : "";
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// src/media/github.ts
|
|
49
|
-
function createGitHubMediaAdapter(manifest) {
|
|
50
|
-
return {
|
|
51
|
-
async hash(file) {
|
|
52
|
-
return hashFileBuffer(file.buffer);
|
|
53
|
-
},
|
|
54
|
-
async exists(hash) {
|
|
55
|
-
return hash in manifest.images;
|
|
56
|
-
},
|
|
57
|
-
async process(file, hash, _sizes) {
|
|
58
|
-
const name = sanitizeMediaName(file.originalName);
|
|
59
|
-
const folder = `${name}-${hash}`;
|
|
60
|
-
return {
|
|
61
|
-
id: hash,
|
|
62
|
-
hash,
|
|
63
|
-
kind: "image",
|
|
64
|
-
originalName: name,
|
|
65
|
-
width: 0,
|
|
66
|
-
height: 0,
|
|
67
|
-
mimeType: "image/webp",
|
|
68
|
-
size: 0,
|
|
69
|
-
folder,
|
|
70
|
-
variants: [],
|
|
71
|
-
alt: ""
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
async delete(id) {
|
|
75
|
-
delete manifest.images[id];
|
|
76
|
-
},
|
|
77
|
-
resolve(id, sizes) {
|
|
78
|
-
const item = manifest.images[id];
|
|
79
|
-
if (!item) return null;
|
|
80
|
-
if (item.kind === "video") {
|
|
81
|
-
return {
|
|
82
|
-
tag: "video",
|
|
83
|
-
src: `/api/media/${id}/original.${mimeToExt(item.mimeType)}`,
|
|
84
|
-
poster: `/api/media/${id}/poster.webp`,
|
|
85
|
-
width: item.width,
|
|
86
|
-
height: item.height,
|
|
87
|
-
autoplay: true,
|
|
88
|
-
loop: true,
|
|
89
|
-
muted: true
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
if (item.kind === "animated") {
|
|
93
|
-
return {
|
|
94
|
-
tag: "img",
|
|
95
|
-
src: `/api/media/${id}/original.${mimeToExt(item.mimeType)}`,
|
|
96
|
-
width: item.width,
|
|
97
|
-
height: item.height
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
const availableVariants = item.variants.filter(
|
|
101
|
-
(v) => sizes.length === 0 || sizes.includes(v.width)
|
|
102
|
-
);
|
|
103
|
-
const sorted = [...availableVariants].sort((a, b) => a.width - b.width);
|
|
104
|
-
const midIndex = Math.floor(sorted.length / 2);
|
|
105
|
-
const defaultVariant = sorted[midIndex] ?? sorted[0];
|
|
106
|
-
if (!defaultVariant) return null;
|
|
107
|
-
const srcSet = sorted.map((v) => `/api/media/${id}/${v.width}.webp ${v.width}w`).join(", ");
|
|
108
|
-
return {
|
|
109
|
-
tag: "img",
|
|
110
|
-
src: `/api/media/${id}/${defaultVariant.width}.webp`,
|
|
111
|
-
srcSet,
|
|
112
|
-
width: item.width,
|
|
113
|
-
height: item.height
|
|
114
|
-
};
|
|
115
|
-
},
|
|
116
|
-
async list() {
|
|
117
|
-
return Object.values(manifest.images);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
|
|
122
48
|
// src/media/queue.ts
|
|
123
49
|
var ProcessingQueue = class {
|
|
124
50
|
items = /* @__PURE__ */ new Map();
|
|
@@ -233,20 +159,21 @@ var ProcessingQueue = class {
|
|
|
233
159
|
};
|
|
234
160
|
|
|
235
161
|
// src/media/resolve.ts
|
|
236
|
-
function resolveMedia(item, manifest, sizes) {
|
|
162
|
+
function resolveMedia(item, manifest, sizes, provider) {
|
|
237
163
|
if (!item.imageId) return null;
|
|
238
|
-
const
|
|
239
|
-
|
|
164
|
+
const mediaItem = manifest.images[item.imageId];
|
|
165
|
+
if (!mediaItem) return null;
|
|
166
|
+
return provider.resolve(mediaItem, sizes);
|
|
240
167
|
}
|
|
241
|
-
function resolveManifestReferences(content, manifest, sizes) {
|
|
168
|
+
function resolveManifestReferences(content, manifest, sizes, provider) {
|
|
242
169
|
if (Array.isArray(content)) {
|
|
243
|
-
return content.map((item) => resolveManifestReferences(item, manifest, sizes));
|
|
170
|
+
return content.map((item) => resolveManifestReferences(item, manifest, sizes, provider));
|
|
244
171
|
}
|
|
245
172
|
if (content !== null && typeof content === "object") {
|
|
246
173
|
const obj = content;
|
|
247
174
|
if (typeof obj.imageId === "string") {
|
|
248
175
|
const manifestItem = manifest.images[obj.imageId];
|
|
249
|
-
const resolved = resolveMedia({ imageId: obj.imageId }, manifest, sizes);
|
|
176
|
+
const resolved = resolveMedia({ imageId: obj.imageId }, manifest, sizes, provider);
|
|
250
177
|
const patch = {
|
|
251
178
|
alt: manifestItem?.alt ?? ""
|
|
252
179
|
};
|
|
@@ -265,7 +192,7 @@ function resolveManifestReferences(content, manifest, sizes) {
|
|
|
265
192
|
}
|
|
266
193
|
const result = {};
|
|
267
194
|
for (const [key, value] of Object.entries(obj)) {
|
|
268
|
-
result[key] = resolveManifestReferences(value, manifest, sizes);
|
|
195
|
+
result[key] = resolveManifestReferences(value, manifest, sizes, provider);
|
|
269
196
|
}
|
|
270
197
|
return result;
|
|
271
198
|
}
|
|
@@ -322,8 +249,15 @@ function generateVideoPoster(blob, quality) {
|
|
|
322
249
|
}
|
|
323
250
|
|
|
324
251
|
// src/media/index.ts
|
|
325
|
-
|
|
326
|
-
|
|
252
|
+
var _provider = null;
|
|
253
|
+
function setMediaProvider(p) {
|
|
254
|
+
_provider = p;
|
|
255
|
+
}
|
|
256
|
+
function getMediaProvider() {
|
|
257
|
+
if (!_provider) {
|
|
258
|
+
throw new Error("No MediaProvider registered. Call setMediaProvider() before using getMediaProvider().");
|
|
259
|
+
}
|
|
260
|
+
return _provider;
|
|
327
261
|
}
|
|
328
262
|
|
|
329
263
|
export {
|
|
@@ -337,5 +271,6 @@ export {
|
|
|
337
271
|
resolveMedia,
|
|
338
272
|
resolveManifestReferences,
|
|
339
273
|
generateVideoPoster,
|
|
340
|
-
|
|
274
|
+
setMediaProvider,
|
|
275
|
+
getMediaProvider
|
|
341
276
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MediaConfigSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DKOUFIP6.js";
|
|
4
4
|
|
|
5
5
|
// src/schemas/shared.ts
|
|
6
6
|
import { z } from "zod";
|
|
@@ -164,7 +164,8 @@ var SectionMetaSchema = z3.object({
|
|
|
164
164
|
var IndexSchema = z3.object({
|
|
165
165
|
siteId: z3.string(),
|
|
166
166
|
order: z3.array(z3.string()),
|
|
167
|
-
sections: z3.record(z3.string(), SectionMetaSchema)
|
|
167
|
+
sections: z3.record(z3.string(), SectionMetaSchema),
|
|
168
|
+
lastModified: z3.string().nullable().optional()
|
|
168
169
|
}).refine(
|
|
169
170
|
(data) => data.order.every((id) => id in data.sections),
|
|
170
171
|
{ message: "All order entries must have a corresponding section in sections" }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LoadedSection } from "../../lib/loader";
|
|
2
|
+
import type { MediaManifest } from "../../media/types";
|
|
3
|
+
interface SectionOrderingModalProps {
|
|
4
|
+
sections: LoadedSection[];
|
|
5
|
+
mediaManifest: MediaManifest;
|
|
6
|
+
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function SectionOrderingModal({ sections, mediaManifest, onReorder, }: SectionOrderingModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SectionOrderingModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionOrderingModal.d.ts","sourceRoot":"","sources":["../../../src/components/editor/SectionOrderingModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,UAAU,yBAAyB;IACjC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAuLD,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,SAAS,GACV,EAAE,yBAAyB,2CAc3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/editor/SectionWrapper.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,MAAM,EACN,cAAc,EACd,cAAc,EACd,eAAe,EACf,SAAS,EACT,eAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,QAAQ,GACT,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"SectionWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/editor/SectionWrapper.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,WAAW,EACX,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,MAAM,EACN,cAAc,EACd,cAAc,EACd,eAAe,EACf,SAAS,EACT,eAAe,EACf,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,QAAQ,GACT,EAAE,YAAY,kDAuSd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableRichText.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/EditableRichText.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"EditableRichText.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/EditableRichText.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAQD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,MAAe,EACf,SAAS,EACT,WAAiC,GAClC,EAAE,qBAAqB,2CAuHvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Button/index.tsx"],"names":[],"mappings":";;;;;;;;;AAcA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Button/index.tsx"],"names":[],"mappings":";;;;;;;;;AAcA,wBAuBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Colors/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Colors/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAgBA,wBAoCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/DoDontMediaGrid/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/DoDontMediaGrid/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,wBA6CG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/IconList/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/IconList/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBA,wBAsBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/LinkHeading/index.tsx"],"names":[],"mappings":";;;;;;AASA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/LinkHeading/index.tsx"],"names":[],"mappings":";;;;;;AASA,wBAgBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/MediaGrid/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/MediaGrid/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,wBAuCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Prose/index.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/Prose/index.tsx"],"names":[],"mappings":";;;;;;AAUA,wBASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SplitContent/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAiBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SplitContent/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAiBA,wBAmCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SubHeading/index.tsx"],"names":[],"mappings":";;;;;;;AASA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SubHeading/index.tsx"],"names":[],"mappings":";;;;;;;AASA,wBAmBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SubSubHeading/index.tsx"],"names":[],"mappings":";;;;;;;AASA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/SubSubHeading/index.tsx"],"names":[],"mappings":";;;;;;;AASA,wBAmBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/sections/ViewRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ViewRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/sections/ViewRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,KAAK;IACb,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAmBvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-schemas.d.ts","sourceRoot":"","sources":["../../../src/components/sections/register-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register-schemas.d.ts","sourceRoot":"","sources":["../../../src/components/sections/register-schemas.ts"],"names":[],"mappings":"AAkBA,wBAAgB,uBAAuB,IAAI,MAAM,CAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/components/sections/register.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/components/sections/register.ts"],"names":[],"mappings":"AAkBA,wBAAgB,wBAAwB,IAAI,MAAM,CAMjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorShell.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorShell.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAoDjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAcxD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,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;CACjE;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,MAAM,EACN,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EACZ,WAAW,GACZ,EAAE,KAAK,2CAsoBP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deploy/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DeployStatus {
|
|
2
|
+
deployId: string;
|
|
3
|
+
state: "building" | "ready" | "error";
|
|
4
|
+
deployUrl: string;
|
|
5
|
+
commitSha: string | null;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeployStatusProvider {
|
|
9
|
+
get(siteId: string): Promise<DeployStatus | null>;
|
|
10
|
+
upsert(siteId: string, data: Omit<DeployStatus, "updatedAt">): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/deploy/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC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C;IACzE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAQD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;AAE7D,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,GAClB,EAAE,WAAW;;;;;;EA+Qb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaPipeline.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaPipeline.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAiC,MAAM,gBAAgB,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"useMediaPipeline.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaPipeline.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AAClF,OAAO,KAAK,EAAE,aAAa,EAAiC,MAAM,gBAAgB,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,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,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
SessionSchema,
|
|
8
8
|
SiteUserSchema,
|
|
9
9
|
slugifyAudienceName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MNK7XA6S.js";
|
|
11
11
|
import {
|
|
12
12
|
buildGoogleFontsUrl,
|
|
13
13
|
cn,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
safeRedirect,
|
|
28
28
|
sanitizeHtml,
|
|
29
29
|
toSectionId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HXXZBTPF.js";
|
|
31
31
|
import {
|
|
32
32
|
ColorItemSchema,
|
|
33
33
|
ColorSpaceSchema,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
getSectionSchema,
|
|
49
49
|
registerSchema,
|
|
50
50
|
registerSection
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-V43WVSVS.js";
|
|
52
52
|
import {
|
|
53
53
|
AUDIENCE_COOKIE,
|
|
54
54
|
LastOwnerError,
|
|
@@ -67,21 +67,22 @@ import {
|
|
|
67
67
|
EXT_TO_MIME,
|
|
68
68
|
MIME_TO_EXT,
|
|
69
69
|
ProcessingQueue,
|
|
70
|
-
createMediaAdapter,
|
|
71
70
|
displayFilenameExt,
|
|
72
71
|
generateVideoPoster,
|
|
72
|
+
getMediaProvider,
|
|
73
73
|
hashFileBuffer,
|
|
74
74
|
mimeToExt,
|
|
75
75
|
resolveManifestReferences,
|
|
76
76
|
resolveMedia,
|
|
77
|
-
sanitizeMediaName
|
|
78
|
-
|
|
77
|
+
sanitizeMediaName,
|
|
78
|
+
setMediaProvider
|
|
79
|
+
} from "./chunk-JHSYLVKI.js";
|
|
79
80
|
import {
|
|
80
81
|
ImageManifestSchema,
|
|
81
82
|
MediaConfigSchema,
|
|
82
83
|
MediaItemSchema,
|
|
83
84
|
VariantSchema
|
|
84
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-DKOUFIP6.js";
|
|
85
86
|
export {
|
|
86
87
|
AUDIENCE_COOKIE,
|
|
87
88
|
AudienceColorSchema,
|
|
@@ -113,7 +114,6 @@ export {
|
|
|
113
114
|
clearRegistry,
|
|
114
115
|
cn,
|
|
115
116
|
createEvent,
|
|
116
|
-
createMediaAdapter,
|
|
117
117
|
createRegistry,
|
|
118
118
|
curatedIcons,
|
|
119
119
|
darkModeEvent,
|
|
@@ -127,6 +127,7 @@ export {
|
|
|
127
127
|
getAllSchemas,
|
|
128
128
|
getAllSections,
|
|
129
129
|
getIcon,
|
|
130
|
+
getMediaProvider,
|
|
130
131
|
getSchema,
|
|
131
132
|
getSection,
|
|
132
133
|
getSectionContentSchema,
|
|
@@ -148,6 +149,7 @@ export {
|
|
|
148
149
|
safeRedirect,
|
|
149
150
|
sanitizeHtml,
|
|
150
151
|
sanitizeMediaName,
|
|
152
|
+
setMediaProvider,
|
|
151
153
|
setSessionCookie,
|
|
152
154
|
signSessionToken,
|
|
153
155
|
slugifyAudienceName,
|
package/dist/lib/dexie.d.ts
CHANGED
|
@@ -39,10 +39,13 @@ export declare function getCachedContent(): Promise<{
|
|
|
39
39
|
} | null>;
|
|
40
40
|
export declare function persistMediaManifest(manifest: MediaManifest): Promise<void>;
|
|
41
41
|
export declare function getMediaManifest(): Promise<MediaManifest | null>;
|
|
42
|
-
export declare function addPendingMediaItem(item: MediaItem, localUrls?: Record<string, string>): Promise<void>;
|
|
42
|
+
export declare function addPendingMediaItem(item: MediaItem, localUrls?: Record<string, string>, blobs?: Record<string, Blob>): Promise<void>;
|
|
43
43
|
export declare function getPendingMediaItems(): Promise<MediaItem[]>;
|
|
44
44
|
export declare function getPendingMediaLocalUrls(id: string): Promise<Record<string, string> | null>;
|
|
45
|
+
export declare function getPendingMediaBlobs(id: string): Promise<Record<string, Blob> | null>;
|
|
46
|
+
export declare function removePendingMediaItem(id: string): Promise<void>;
|
|
45
47
|
export declare function markPendingMediaDeleted(id: string): Promise<void>;
|
|
48
|
+
export declare function removePendingMediaDeletion(id: string): Promise<void>;
|
|
46
49
|
export declare function getPendingMediaDeletions(): Promise<string[]>;
|
|
47
50
|
export declare function clearPendingMedia(): Promise<void>;
|
|
48
51
|
//# sourceMappingURL=dexie.d.ts.map
|
package/dist/lib/dexie.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dexie.d.ts","sourceRoot":"","sources":["../../src/lib/dexie.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"dexie.d.ts","sourceRoot":"","sources":["../../src/lib/dexie.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAmI/D,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IAAE,eAAe,EAAE,M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