allyhub 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/render.js +1 -1
- package/dist/commands/sheet.js +7 -7
- package/dist/commands/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
- package/dist/node_modules/@allyhub-next/build/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/check/package.json +1 -1
- package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/package.json +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/export/dist/export.js +4 -4
- package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/export/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +179 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +303 -11
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +135 -3
- package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/package.json +1 -1
- package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
- package/dist/node_modules/@allyhub-next/media/package.json +1 -1
- package/dist/node_modules/@allyhub-next/model/package.json +1 -1
- package/dist/node_modules/@allyhub-next/project/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +2 -11
- package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +1 -9
- package/dist/node_modules/@allyhub-next/render/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/site/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +64 -7
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +37 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +7 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +11 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +10 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +19 -19
- package/dist/node_modules/@allyhub-next/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/editor-web/assets/dist-BW2s9FMO.js +4 -0
- package/editor-web/assets/{dist-CuW84oPe.js → dist-C-6JmebI.js} +22 -22
- package/editor-web/assets/dist-CCYMLMKN.js +6 -0
- package/editor-web/assets/dist-CHzurjMx.js +33 -0
- package/editor-web/assets/{dist-Yi3sy7Ea.js → dist-DF7H1dxw.js} +1 -1
- package/editor-web/assets/dist-Da5AUSKX.js +2 -0
- package/editor-web/assets/index-CovQYWvD.js +69 -0
- package/editor-web/assets/minus-BrvjaJyO.js +1 -0
- package/editor-web/assets/react-DV5fPdiH.js +101 -0
- package/editor-web/assets/{textarea-CvxipnGW.js → textarea-B0vCGdZI.js} +2 -2
- package/editor-web/assets/{trash-2-Bq1Dt8XG.js → trash-2-B0dvc1cZ.js} +1 -1
- package/editor-web/assets/{undo-2-Djhvu4xt.js → undo-2-A1EPubPO.js} +1 -1
- package/editor-web/index.html +2 -2
- package/package.json +2 -2
- package/editor-web/assets/dist-Cg2PdedY.js +0 -6
- package/editor-web/assets/dist-CxAS_vp7.js +0 -2
- package/editor-web/assets/dist-DCVaj9i1.js +0 -4
- package/editor-web/assets/dist-DGVUuVPB.js +0 -33
- package/editor-web/assets/index-pwRfZ2Jv.js +0 -69
- package/editor-web/assets/minus-BizJdinJ.js +0 -1
- package/editor-web/assets/react-D54s6gwK.js +0 -101
|
@@ -10,7 +10,7 @@ export type ThemeColor = (typeof THEME_COLORS)[number];
|
|
|
10
10
|
export declare const TEXT_ALIGNS: readonly ["l", "ctr", "r", "just"];
|
|
11
11
|
export type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
12
12
|
/** The basic shapes a person draws (`a:prstGeom/@prst`). */
|
|
13
|
-
export declare const SHAPE_GEOMETRIES: readonly ["rect", "roundRect", "ellipse", "triangle", "rightArrow", "line"];
|
|
13
|
+
export declare const SHAPE_GEOMETRIES: readonly ["rect", "roundRect", "ellipse", "triangle", "rightArrow", "leftArrow", "upArrow", "downArrow", "leftRightArrow", "diamond", "parallelogram", "trapezoid", "pentagon", "hexagon", "octagon", "chevron", "homePlate", "plus", "star4", "star5", "wedgeRectCallout", "line"];
|
|
14
14
|
export type ShapeGeometry = (typeof SHAPE_GEOMETRIES)[number];
|
|
15
15
|
/** What an animation does: entrances, exits, an emphasis and a motion path, by PowerPoint's effects. */
|
|
16
16
|
export declare const ANIMATION_EFFECTS: readonly ["appear", "fade", "wipe", "fly-in", "zoom", "disappear", "fade-out", "wipe-out", "fly-out", "zoom-out", "pulse", "path"];
|
|
@@ -51,6 +51,9 @@ export declare const ColorFileSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
51
51
|
folHlink: "folHlink";
|
|
52
52
|
}>, z.ZodString]>;
|
|
53
53
|
/** What of a shape's text a person changes: its size (pt), weight, slant, colour, font and alignment. */
|
|
54
|
+
/** How a list counts (`a:buAutoNum`). */
|
|
55
|
+
export declare const NUMBERINGS: readonly ["arabicPeriod", "arabicParenR", "alphaLcPeriod", "alphaUcPeriod", "romanLcPeriod", "romanUcPeriod"];
|
|
56
|
+
export type Numbering = (typeof NUMBERINGS)[number];
|
|
54
57
|
export declare const TextStyleSchema: z.ZodObject<{
|
|
55
58
|
size: z.ZodOptional<z.ZodNumber>;
|
|
56
59
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -76,6 +79,14 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
76
79
|
ctr: "ctr";
|
|
77
80
|
just: "just";
|
|
78
81
|
}>>;
|
|
82
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
83
|
+
arabicPeriod: "arabicPeriod";
|
|
84
|
+
arabicParenR: "arabicParenR";
|
|
85
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
86
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
87
|
+
romanLcPeriod: "romanLcPeriod";
|
|
88
|
+
romanUcPeriod: "romanUcPeriod";
|
|
89
|
+
}>>;
|
|
79
90
|
}, z.core.$strict>;
|
|
80
91
|
/** A value of a component's prop, as YAML holds it. */
|
|
81
92
|
export type PropValue = string | number | boolean | null | PropValue[] | {
|
|
@@ -111,12 +122,16 @@ export declare const ChartSchema: z.ZodObject<{
|
|
|
111
122
|
"area-stacked-100": "area-stacked-100";
|
|
112
123
|
pie: "pie";
|
|
113
124
|
doughnut: "doughnut";
|
|
125
|
+
scatter: "scatter";
|
|
126
|
+
"scatter-lines": "scatter-lines";
|
|
127
|
+
"scatter-smooth": "scatter-smooth";
|
|
114
128
|
}>;
|
|
115
129
|
data: z.ZodOptional<z.ZodString>;
|
|
116
|
-
categories: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]
|
|
130
|
+
categories: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
117
131
|
series: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
118
132
|
name: z.ZodString;
|
|
119
133
|
values: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
134
|
+
x: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
120
135
|
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
121
136
|
dk1: "dk1";
|
|
122
137
|
lt1: "lt1";
|
|
@@ -271,6 +286,49 @@ export declare const ChartSchema: z.ZodObject<{
|
|
|
271
286
|
}>, z.ZodString]>>;
|
|
272
287
|
}, z.core.$strict>;
|
|
273
288
|
export type ChartFile = z.infer<typeof ChartSchema>;
|
|
289
|
+
/** A gradient fill (`a:gradFill`): colours along a line, shares of the way. */
|
|
290
|
+
export declare const GradientSchema: z.ZodObject<{
|
|
291
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
293
|
+
at: z.ZodNumber;
|
|
294
|
+
color: z.ZodUnion<readonly [z.ZodEnum<{
|
|
295
|
+
dk1: "dk1";
|
|
296
|
+
lt1: "lt1";
|
|
297
|
+
dk2: "dk2";
|
|
298
|
+
lt2: "lt2";
|
|
299
|
+
accent1: "accent1";
|
|
300
|
+
accent2: "accent2";
|
|
301
|
+
accent3: "accent3";
|
|
302
|
+
accent4: "accent4";
|
|
303
|
+
accent5: "accent5";
|
|
304
|
+
accent6: "accent6";
|
|
305
|
+
hlink: "hlink";
|
|
306
|
+
folHlink: "folHlink";
|
|
307
|
+
}>, z.ZodString]>;
|
|
308
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
/** A shadow outside a shape (`a:outerShdw`); what it leaves out is SHADOW_DEFAULTS'. */
|
|
312
|
+
export declare const ShadowSchema: z.ZodObject<{
|
|
313
|
+
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
314
|
+
dk1: "dk1";
|
|
315
|
+
lt1: "lt1";
|
|
316
|
+
dk2: "dk2";
|
|
317
|
+
lt2: "lt2";
|
|
318
|
+
accent1: "accent1";
|
|
319
|
+
accent2: "accent2";
|
|
320
|
+
accent3: "accent3";
|
|
321
|
+
accent4: "accent4";
|
|
322
|
+
accent5: "accent5";
|
|
323
|
+
accent6: "accent6";
|
|
324
|
+
hlink: "hlink";
|
|
325
|
+
folHlink: "folHlink";
|
|
326
|
+
}>, z.ZodString]>>;
|
|
327
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
}, z.core.$strict>;
|
|
274
332
|
/**
|
|
275
333
|
* A shape on a slide, by its name. Without a kind it changes a shape the
|
|
276
334
|
* slide has already (a layout's placeholder, a generator's shape); with
|
|
@@ -299,6 +357,48 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
299
357
|
hlink: "hlink";
|
|
300
358
|
folHlink: "folHlink";
|
|
301
359
|
}>, z.ZodString]>>;
|
|
360
|
+
fill_transparency: z.ZodOptional<z.ZodNumber>;
|
|
361
|
+
gradient: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
364
|
+
at: z.ZodNumber;
|
|
365
|
+
color: z.ZodUnion<readonly [z.ZodEnum<{
|
|
366
|
+
dk1: "dk1";
|
|
367
|
+
lt1: "lt1";
|
|
368
|
+
dk2: "dk2";
|
|
369
|
+
lt2: "lt2";
|
|
370
|
+
accent1: "accent1";
|
|
371
|
+
accent2: "accent2";
|
|
372
|
+
accent3: "accent3";
|
|
373
|
+
accent4: "accent4";
|
|
374
|
+
accent5: "accent5";
|
|
375
|
+
accent6: "accent6";
|
|
376
|
+
hlink: "hlink";
|
|
377
|
+
folHlink: "folHlink";
|
|
378
|
+
}>, z.ZodString]>;
|
|
379
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
}, z.core.$strict>>;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
383
|
+
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
384
|
+
dk1: "dk1";
|
|
385
|
+
lt1: "lt1";
|
|
386
|
+
dk2: "dk2";
|
|
387
|
+
lt2: "lt2";
|
|
388
|
+
accent1: "accent1";
|
|
389
|
+
accent2: "accent2";
|
|
390
|
+
accent3: "accent3";
|
|
391
|
+
accent4: "accent4";
|
|
392
|
+
accent5: "accent5";
|
|
393
|
+
accent6: "accent6";
|
|
394
|
+
hlink: "hlink";
|
|
395
|
+
folHlink: "folHlink";
|
|
396
|
+
}>, z.ZodString]>>;
|
|
397
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
398
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
399
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
400
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
401
|
+
}, z.core.$strict>>;
|
|
302
402
|
line: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
303
403
|
dk1: "dk1";
|
|
304
404
|
lt1: "lt1";
|
|
@@ -327,17 +427,17 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
327
427
|
line_begin: z.ZodOptional<z.ZodEnum<{
|
|
328
428
|
arrow: "arrow";
|
|
329
429
|
triangle: "triangle";
|
|
430
|
+
diamond: "diamond";
|
|
330
431
|
none: "none";
|
|
331
432
|
stealth: "stealth";
|
|
332
|
-
diamond: "diamond";
|
|
333
433
|
oval: "oval";
|
|
334
434
|
}>>;
|
|
335
435
|
line_end: z.ZodOptional<z.ZodEnum<{
|
|
336
436
|
arrow: "arrow";
|
|
337
437
|
triangle: "triangle";
|
|
438
|
+
diamond: "diamond";
|
|
338
439
|
none: "none";
|
|
339
440
|
stealth: "stealth";
|
|
340
|
-
diamond: "diamond";
|
|
341
441
|
oval: "oval";
|
|
342
442
|
}>>;
|
|
343
443
|
text: z.ZodOptional<z.ZodObject<{
|
|
@@ -365,6 +465,14 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
365
465
|
ctr: "ctr";
|
|
366
466
|
just: "just";
|
|
367
467
|
}>>;
|
|
468
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
469
|
+
arabicPeriod: "arabicPeriod";
|
|
470
|
+
arabicParenR: "arabicParenR";
|
|
471
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
472
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
473
|
+
romanLcPeriod: "romanLcPeriod";
|
|
474
|
+
romanUcPeriod: "romanUcPeriod";
|
|
475
|
+
}>>;
|
|
368
476
|
}, z.core.$strict>>;
|
|
369
477
|
textbox: z.ZodOptional<z.ZodLiteral<true>>;
|
|
370
478
|
picture: z.ZodOptional<z.ZodString>;
|
|
@@ -383,6 +491,22 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
383
491
|
ellipse: "ellipse";
|
|
384
492
|
triangle: "triangle";
|
|
385
493
|
rightArrow: "rightArrow";
|
|
494
|
+
leftArrow: "leftArrow";
|
|
495
|
+
upArrow: "upArrow";
|
|
496
|
+
downArrow: "downArrow";
|
|
497
|
+
leftRightArrow: "leftRightArrow";
|
|
498
|
+
diamond: "diamond";
|
|
499
|
+
parallelogram: "parallelogram";
|
|
500
|
+
trapezoid: "trapezoid";
|
|
501
|
+
pentagon: "pentagon";
|
|
502
|
+
hexagon: "hexagon";
|
|
503
|
+
octagon: "octagon";
|
|
504
|
+
chevron: "chevron";
|
|
505
|
+
homePlate: "homePlate";
|
|
506
|
+
plus: "plus";
|
|
507
|
+
star4: "star4";
|
|
508
|
+
star5: "star5";
|
|
509
|
+
wedgeRectCallout: "wedgeRectCallout";
|
|
386
510
|
}>>;
|
|
387
511
|
path: z.ZodOptional<z.ZodObject<{
|
|
388
512
|
w: z.ZodNumber;
|
|
@@ -432,6 +556,14 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
432
556
|
ctr: "ctr";
|
|
433
557
|
just: "just";
|
|
434
558
|
}>>;
|
|
559
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
560
|
+
arabicPeriod: "arabicPeriod";
|
|
561
|
+
arabicParenR: "arabicParenR";
|
|
562
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
563
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
564
|
+
romanLcPeriod: "romanLcPeriod";
|
|
565
|
+
romanUcPeriod: "romanUcPeriod";
|
|
566
|
+
}>>;
|
|
435
567
|
}, z.core.$strict>>;
|
|
436
568
|
line: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
437
569
|
dk1: "dk1";
|
|
@@ -464,12 +596,16 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
464
596
|
"area-stacked-100": "area-stacked-100";
|
|
465
597
|
pie: "pie";
|
|
466
598
|
doughnut: "doughnut";
|
|
599
|
+
scatter: "scatter";
|
|
600
|
+
"scatter-lines": "scatter-lines";
|
|
601
|
+
"scatter-smooth": "scatter-smooth";
|
|
467
602
|
}>;
|
|
468
603
|
data: z.ZodOptional<z.ZodString>;
|
|
469
|
-
categories: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]
|
|
604
|
+
categories: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
470
605
|
series: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
471
606
|
name: z.ZodString;
|
|
472
607
|
values: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
608
|
+
x: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
473
609
|
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
474
610
|
dk1: "dk1";
|
|
475
611
|
lt1: "lt1";
|
|
@@ -711,6 +847,48 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
711
847
|
hlink: "hlink";
|
|
712
848
|
folHlink: "folHlink";
|
|
713
849
|
}>, z.ZodString]>>;
|
|
850
|
+
fill_transparency: z.ZodOptional<z.ZodNumber>;
|
|
851
|
+
gradient: z.ZodOptional<z.ZodObject<{
|
|
852
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
854
|
+
at: z.ZodNumber;
|
|
855
|
+
color: z.ZodUnion<readonly [z.ZodEnum<{
|
|
856
|
+
dk1: "dk1";
|
|
857
|
+
lt1: "lt1";
|
|
858
|
+
dk2: "dk2";
|
|
859
|
+
lt2: "lt2";
|
|
860
|
+
accent1: "accent1";
|
|
861
|
+
accent2: "accent2";
|
|
862
|
+
accent3: "accent3";
|
|
863
|
+
accent4: "accent4";
|
|
864
|
+
accent5: "accent5";
|
|
865
|
+
accent6: "accent6";
|
|
866
|
+
hlink: "hlink";
|
|
867
|
+
folHlink: "folHlink";
|
|
868
|
+
}>, z.ZodString]>;
|
|
869
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
}, z.core.$strict>>;
|
|
871
|
+
}, z.core.$strict>>;
|
|
872
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
873
|
+
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
874
|
+
dk1: "dk1";
|
|
875
|
+
lt1: "lt1";
|
|
876
|
+
dk2: "dk2";
|
|
877
|
+
lt2: "lt2";
|
|
878
|
+
accent1: "accent1";
|
|
879
|
+
accent2: "accent2";
|
|
880
|
+
accent3: "accent3";
|
|
881
|
+
accent4: "accent4";
|
|
882
|
+
accent5: "accent5";
|
|
883
|
+
accent6: "accent6";
|
|
884
|
+
hlink: "hlink";
|
|
885
|
+
folHlink: "folHlink";
|
|
886
|
+
}>, z.ZodString]>>;
|
|
887
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
888
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
889
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
890
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
891
|
+
}, z.core.$strict>>;
|
|
714
892
|
line: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
715
893
|
dk1: "dk1";
|
|
716
894
|
lt1: "lt1";
|
|
@@ -739,17 +917,17 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
739
917
|
line_begin: z.ZodOptional<z.ZodEnum<{
|
|
740
918
|
arrow: "arrow";
|
|
741
919
|
triangle: "triangle";
|
|
920
|
+
diamond: "diamond";
|
|
742
921
|
none: "none";
|
|
743
922
|
stealth: "stealth";
|
|
744
|
-
diamond: "diamond";
|
|
745
923
|
oval: "oval";
|
|
746
924
|
}>>;
|
|
747
925
|
line_end: z.ZodOptional<z.ZodEnum<{
|
|
748
926
|
arrow: "arrow";
|
|
749
927
|
triangle: "triangle";
|
|
928
|
+
diamond: "diamond";
|
|
750
929
|
none: "none";
|
|
751
930
|
stealth: "stealth";
|
|
752
|
-
diamond: "diamond";
|
|
753
931
|
oval: "oval";
|
|
754
932
|
}>>;
|
|
755
933
|
text: z.ZodOptional<z.ZodObject<{
|
|
@@ -777,6 +955,14 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
777
955
|
ctr: "ctr";
|
|
778
956
|
just: "just";
|
|
779
957
|
}>>;
|
|
958
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
959
|
+
arabicPeriod: "arabicPeriod";
|
|
960
|
+
arabicParenR: "arabicParenR";
|
|
961
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
962
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
963
|
+
romanLcPeriod: "romanLcPeriod";
|
|
964
|
+
romanUcPeriod: "romanUcPeriod";
|
|
965
|
+
}>>;
|
|
780
966
|
}, z.core.$strict>>;
|
|
781
967
|
textbox: z.ZodOptional<z.ZodLiteral<true>>;
|
|
782
968
|
picture: z.ZodOptional<z.ZodString>;
|
|
@@ -795,6 +981,22 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
795
981
|
ellipse: "ellipse";
|
|
796
982
|
triangle: "triangle";
|
|
797
983
|
rightArrow: "rightArrow";
|
|
984
|
+
leftArrow: "leftArrow";
|
|
985
|
+
upArrow: "upArrow";
|
|
986
|
+
downArrow: "downArrow";
|
|
987
|
+
leftRightArrow: "leftRightArrow";
|
|
988
|
+
diamond: "diamond";
|
|
989
|
+
parallelogram: "parallelogram";
|
|
990
|
+
trapezoid: "trapezoid";
|
|
991
|
+
pentagon: "pentagon";
|
|
992
|
+
hexagon: "hexagon";
|
|
993
|
+
octagon: "octagon";
|
|
994
|
+
chevron: "chevron";
|
|
995
|
+
homePlate: "homePlate";
|
|
996
|
+
plus: "plus";
|
|
997
|
+
star4: "star4";
|
|
998
|
+
star5: "star5";
|
|
999
|
+
wedgeRectCallout: "wedgeRectCallout";
|
|
798
1000
|
}>>;
|
|
799
1001
|
path: z.ZodOptional<z.ZodObject<{
|
|
800
1002
|
w: z.ZodNumber;
|
|
@@ -844,6 +1046,14 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
844
1046
|
ctr: "ctr";
|
|
845
1047
|
just: "just";
|
|
846
1048
|
}>>;
|
|
1049
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
1050
|
+
arabicPeriod: "arabicPeriod";
|
|
1051
|
+
arabicParenR: "arabicParenR";
|
|
1052
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
1053
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
1054
|
+
romanLcPeriod: "romanLcPeriod";
|
|
1055
|
+
romanUcPeriod: "romanUcPeriod";
|
|
1056
|
+
}>>;
|
|
847
1057
|
}, z.core.$strict>>;
|
|
848
1058
|
line: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
849
1059
|
dk1: "dk1";
|
|
@@ -876,12 +1086,16 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
876
1086
|
"area-stacked-100": "area-stacked-100";
|
|
877
1087
|
pie: "pie";
|
|
878
1088
|
doughnut: "doughnut";
|
|
1089
|
+
scatter: "scatter";
|
|
1090
|
+
"scatter-lines": "scatter-lines";
|
|
1091
|
+
"scatter-smooth": "scatter-smooth";
|
|
879
1092
|
}>;
|
|
880
1093
|
data: z.ZodOptional<z.ZodString>;
|
|
881
|
-
categories: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]
|
|
1094
|
+
categories: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
882
1095
|
series: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
883
1096
|
name: z.ZodString;
|
|
884
1097
|
values: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
1098
|
+
x: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
885
1099
|
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
886
1100
|
dk1: "dk1";
|
|
887
1101
|
lt1: "lt1";
|
|
@@ -1116,6 +1330,48 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1116
1330
|
hlink: "hlink";
|
|
1117
1331
|
folHlink: "folHlink";
|
|
1118
1332
|
}>, z.ZodString]>>;
|
|
1333
|
+
fill_transparency: z.ZodOptional<z.ZodNumber>;
|
|
1334
|
+
gradient: z.ZodOptional<z.ZodObject<{
|
|
1335
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
1336
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
1337
|
+
at: z.ZodNumber;
|
|
1338
|
+
color: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1339
|
+
dk1: "dk1";
|
|
1340
|
+
lt1: "lt1";
|
|
1341
|
+
dk2: "dk2";
|
|
1342
|
+
lt2: "lt2";
|
|
1343
|
+
accent1: "accent1";
|
|
1344
|
+
accent2: "accent2";
|
|
1345
|
+
accent3: "accent3";
|
|
1346
|
+
accent4: "accent4";
|
|
1347
|
+
accent5: "accent5";
|
|
1348
|
+
accent6: "accent6";
|
|
1349
|
+
hlink: "hlink";
|
|
1350
|
+
folHlink: "folHlink";
|
|
1351
|
+
}>, z.ZodString]>;
|
|
1352
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
1353
|
+
}, z.core.$strict>>;
|
|
1354
|
+
}, z.core.$strict>>;
|
|
1355
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
1356
|
+
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1357
|
+
dk1: "dk1";
|
|
1358
|
+
lt1: "lt1";
|
|
1359
|
+
dk2: "dk2";
|
|
1360
|
+
lt2: "lt2";
|
|
1361
|
+
accent1: "accent1";
|
|
1362
|
+
accent2: "accent2";
|
|
1363
|
+
accent3: "accent3";
|
|
1364
|
+
accent4: "accent4";
|
|
1365
|
+
accent5: "accent5";
|
|
1366
|
+
accent6: "accent6";
|
|
1367
|
+
hlink: "hlink";
|
|
1368
|
+
folHlink: "folHlink";
|
|
1369
|
+
}>, z.ZodString]>>;
|
|
1370
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
1371
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
1372
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
1373
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
1374
|
+
}, z.core.$strict>>;
|
|
1119
1375
|
line: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
1120
1376
|
dk1: "dk1";
|
|
1121
1377
|
lt1: "lt1";
|
|
@@ -1144,17 +1400,17 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1144
1400
|
line_begin: z.ZodOptional<z.ZodEnum<{
|
|
1145
1401
|
arrow: "arrow";
|
|
1146
1402
|
triangle: "triangle";
|
|
1403
|
+
diamond: "diamond";
|
|
1147
1404
|
none: "none";
|
|
1148
1405
|
stealth: "stealth";
|
|
1149
|
-
diamond: "diamond";
|
|
1150
1406
|
oval: "oval";
|
|
1151
1407
|
}>>;
|
|
1152
1408
|
line_end: z.ZodOptional<z.ZodEnum<{
|
|
1153
1409
|
arrow: "arrow";
|
|
1154
1410
|
triangle: "triangle";
|
|
1411
|
+
diamond: "diamond";
|
|
1155
1412
|
none: "none";
|
|
1156
1413
|
stealth: "stealth";
|
|
1157
|
-
diamond: "diamond";
|
|
1158
1414
|
oval: "oval";
|
|
1159
1415
|
}>>;
|
|
1160
1416
|
text: z.ZodOptional<z.ZodObject<{
|
|
@@ -1182,6 +1438,14 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1182
1438
|
ctr: "ctr";
|
|
1183
1439
|
just: "just";
|
|
1184
1440
|
}>>;
|
|
1441
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
1442
|
+
arabicPeriod: "arabicPeriod";
|
|
1443
|
+
arabicParenR: "arabicParenR";
|
|
1444
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
1445
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
1446
|
+
romanLcPeriod: "romanLcPeriod";
|
|
1447
|
+
romanUcPeriod: "romanUcPeriod";
|
|
1448
|
+
}>>;
|
|
1185
1449
|
}, z.core.$strict>>;
|
|
1186
1450
|
textbox: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1187
1451
|
picture: z.ZodOptional<z.ZodString>;
|
|
@@ -1200,6 +1464,22 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1200
1464
|
ellipse: "ellipse";
|
|
1201
1465
|
triangle: "triangle";
|
|
1202
1466
|
rightArrow: "rightArrow";
|
|
1467
|
+
leftArrow: "leftArrow";
|
|
1468
|
+
upArrow: "upArrow";
|
|
1469
|
+
downArrow: "downArrow";
|
|
1470
|
+
leftRightArrow: "leftRightArrow";
|
|
1471
|
+
diamond: "diamond";
|
|
1472
|
+
parallelogram: "parallelogram";
|
|
1473
|
+
trapezoid: "trapezoid";
|
|
1474
|
+
pentagon: "pentagon";
|
|
1475
|
+
hexagon: "hexagon";
|
|
1476
|
+
octagon: "octagon";
|
|
1477
|
+
chevron: "chevron";
|
|
1478
|
+
homePlate: "homePlate";
|
|
1479
|
+
plus: "plus";
|
|
1480
|
+
star4: "star4";
|
|
1481
|
+
star5: "star5";
|
|
1482
|
+
wedgeRectCallout: "wedgeRectCallout";
|
|
1203
1483
|
}>>;
|
|
1204
1484
|
path: z.ZodOptional<z.ZodObject<{
|
|
1205
1485
|
w: z.ZodNumber;
|
|
@@ -1249,6 +1529,14 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1249
1529
|
ctr: "ctr";
|
|
1250
1530
|
just: "just";
|
|
1251
1531
|
}>>;
|
|
1532
|
+
numbered: z.ZodOptional<z.ZodEnum<{
|
|
1533
|
+
arabicPeriod: "arabicPeriod";
|
|
1534
|
+
arabicParenR: "arabicParenR";
|
|
1535
|
+
alphaLcPeriod: "alphaLcPeriod";
|
|
1536
|
+
alphaUcPeriod: "alphaUcPeriod";
|
|
1537
|
+
romanLcPeriod: "romanLcPeriod";
|
|
1538
|
+
romanUcPeriod: "romanUcPeriod";
|
|
1539
|
+
}>>;
|
|
1252
1540
|
}, z.core.$strict>>;
|
|
1253
1541
|
line: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1254
1542
|
dk1: "dk1";
|
|
@@ -1281,12 +1569,16 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1281
1569
|
"area-stacked-100": "area-stacked-100";
|
|
1282
1570
|
pie: "pie";
|
|
1283
1571
|
doughnut: "doughnut";
|
|
1572
|
+
scatter: "scatter";
|
|
1573
|
+
"scatter-lines": "scatter-lines";
|
|
1574
|
+
"scatter-smooth": "scatter-smooth";
|
|
1284
1575
|
}>;
|
|
1285
1576
|
data: z.ZodOptional<z.ZodString>;
|
|
1286
|
-
categories: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]
|
|
1577
|
+
categories: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1287
1578
|
series: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1288
1579
|
name: z.ZodString;
|
|
1289
1580
|
values: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
1581
|
+
x: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>>>;
|
|
1290
1582
|
color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1291
1583
|
dk1: "dk1";
|
|
1292
1584
|
lt1: "lt1";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as o}from"zod";import{SCRIPT_NAME as u}from"./script.js";export const SLIDES_FILE="slides.yaml",slidesFileFor=
|
|
2
|
+
import{z as o}from"zod";import{SCRIPT_NAME as u}from"./script.js";export const SLIDES_FILE="slides.yaml",slidesFileFor=l=>`${l}/${SLIDES_FILE}`;const i=o.string().regex(u,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=["rect","roundRect","ellipse","triangle","rightArrow","leftArrow","upArrow","downArrow","leftRightArrow","diamond","parallelogram","trapezoid","pentagon","hexagon","octagon","chevron","homePlate","plus","star4","star5","wedgeRectCallout","line"],ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()}),ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(/^#[0-9A-Fa-f]{6}$/u,"a theme colour or #RRGGBB")]),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),numbered:o.enum(NUMBERINGS).optional()});const g=o.strictObject({left:o.number().min(0).max(1).optional(),top:o.number().min(0).max(1).optional(),right:o.number().min(0).max(1).optional(),bottom:o.number().min(0).max(1).optional()}),m=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(m),o.record(o.string(),m)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const b=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:b.optional(),category_axis:b.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const r=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:r,color:ColorFileSchema,transparency:r.optional()})).min(2).max(10)}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:r.optional()}),ShapeSchema=o.strictObject({frame:FrameSchema.optional(),z:o.int().optional(),fill:ColorFileSchema.optional(),fill_transparency:r.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:g.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:i.optional(),component:i.optional(),props:o.record(o.string(),m).optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:i,layout:o.string().min(1).optional(),generate:i.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((l,n)=>{const c=new Set;l.slides.forEach((t,a)=>{c.has(t.id)&&n.addIssue({code:"custom",path:["slides",a,"id"],message:`Two slides are "${t.id}".`}),c.add(t.id),(t.layout===void 0?0:1)+(t.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",a],message:`Slide ${t.id} has a layout or a generator: one of them.`}),t.hidden!==void 0&&t.generate===void 0&&t.hidden!==!0&&n.addIssue({code:"custom",path:["slides",a,"hidden"],message:`Slide ${t.id} is hidden (true); a list of ids is a generated block's.`});for(const[e,h]of Object.entries(t.shapes??{})){const d=SHAPE_KINDS.filter(p=>h[p]!==void 0);d.length>1&&n.addIssue({code:"custom",path:["slides",a,"shapes",e],message:`Shape ${e} is one kind of shape, not ${d.join(" and ")}.`});const s=e.includes("/")?e.split("/"):[e];(!(s.length<=2&&s.every(p=>u.test(p)))||s.length===2&&t.generate===void 0)&&n.addIssue({code:"custom",path:["slides",a,"shapes",e],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./schemas.js";export*from"./strict.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/comments.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";
|
|
2
|
+
export*from"./layout.js";export*from"./note-shape.js";export*from"./items.js";export*from"./schemas.js";export*from"./strict.js";export*from"./data/file.js";export*from"./data/words.js";export*from"./data/edits.js";export*from"./data/elements.js";export*from"./data/gen.js";export*from"./data/comments.js";export*from"./data/messages.js";export*from"./data/script.js";export*from"./data/sheet.js";export*from"./data/slides.js";export*from"./data/config.js";export*from"./data/faces.js";export*from"./data/reference.js";export*from"./zip.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{baseOf as f,dirOf as l,unscanned as u,within as m}from"./layout.js";export const CODE_EXTENSIONS=["ts","tsx","mts","js","jsx","mjs"];const d=e=>CODE_EXTENSIONS.map(o=>`${e}.${o}`);export const EDITORS=["video","slides","doc","sheet","scenery","website"],ITEM_KINDS={video:{entries:d("video"),editor:"video",name:"video"},slides:{entries:d("slides"),editor:"slides",name:"slides"},doc:{entries:["doc.mdx"],editor:"doc",name:"doc"},sheet:{entries:["sheet.yaml"],editor:"sheet",name:"sheet"},scenery:{entries:d("scenery"),editor:"scenery",name:"3D scenery"},model:{entries:d("model"),editor:"scenery",name:"3D model"},website:{entries:["astro.config.mjs","astro.config.ts","astro.config.mts","astro.config.js"],editor:"website",name:"website"}},EXPORT_OFFER={video:{types:["mp4","mov","gif"],extras:["srt","cover"]},slides:{types:["pptx","pdf","png"],extras:["cover"],options:[{name:"pptx",only:["pptx"],values:["native","
|
|
2
|
+
import{baseOf as f,dirOf as l,unscanned as u,within as m}from"./layout.js";export const CODE_EXTENSIONS=["ts","tsx","mts","js","jsx","mjs"];const d=e=>CODE_EXTENSIONS.map(o=>`${e}.${o}`);export const EDITORS=["video","slides","doc","sheet","scenery","website"],ITEM_KINDS={video:{entries:d("video"),editor:"video",name:"video"},slides:{entries:d("slides"),editor:"slides",name:"slides"},doc:{entries:["doc.mdx"],editor:"doc",name:"doc"},sheet:{entries:["sheet.yaml"],editor:"sheet",name:"sheet"},scenery:{entries:d("scenery"),editor:"scenery",name:"3D scenery"},model:{entries:d("model"),editor:"scenery",name:"3D model"},website:{entries:["astro.config.mjs","astro.config.ts","astro.config.mts","astro.config.js"],editor:"website",name:"website"}},EXPORT_OFFER={video:{types:["mp4","mov","gif"],extras:["srt","cover"]},slides:{types:["pptx","pdf","png"],extras:["cover"],options:[{name:"pptx",only:["pptx"],values:["native","picture"]},{name:"steps",only:["pdf","png"]}]},doc:{types:["pdf","docx","png","md"],extras:[]},sheet:{types:["xlsx","pdf","png","csv","md","json"],extras:[]},model:{types:["glb"],extras:[]}},KINDS=Object.keys(ITEM_KINDS);const x=new Map(KINDS.flatMap(e=>ITEM_KINDS[e].entries.map(o=>[o,e])));export function entryKind(e){return x.get(f(e))}export function scanItems(e){const o=[...e].filter(t=>!u(t)).sort(),n=[],r=new Map;for(const t of o){if(entryKind(t)===void 0)continue;const s=l(t);if(s===""){n.push({code:"at-root",entry:t});continue}r.set(s,[...r.get(s)??[],t])}const c=[];for(const[t,s]of r){const[i]=s;if(s.length>1||i===void 0){n.push({code:"two-entries",dir:t,entries:s});continue}const a=entryKind(i);a&&c.push({kind:a,dir:t,entry:i})}c.sort((t,s)=>t.dir.localeCompare(s.dir));const p=[];for(const t of c){const s=p.find(i=>m(t.dir,i.dir));s?n.push({code:"nested",dir:t.dir,inside:s.dir}):p.push(t)}return{items:p,problems:n}}export function itemFor(e,o){let n;for(const r of o)m(e,r.dir)&&(!n||r.dir.length>n.dir.length)&&(n=r);return n}export function itemManifest(){return{version:1,kinds:KINDS.map(e=>({kind:e,name:ITEM_KINDS[e].name,editor:ITEM_KINDS[e].editor,patterns:ITEM_KINDS[e].entries.map(o=>`**/${o}`)})),ignore:["**/.*/**","**/node_modules/**"]}}
|