deckjsx 0.8.0 → 0.8.2

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.
@@ -1,5 +1,4 @@
1
1
  import { a as isPptxRelationshipsPart, n as isPptxMediaPart, o as isPptxSlidePart, s as isPptxSupportPart, t as isPptxContentTypesPart } from "./model-DIuh51qh.mjs";
2
- import { deflateSync, strToU8 } from "fflate";
3
2
  //#region src/diagnostics/format.ts
4
3
  function formatSpan(path) {
5
4
  return ` at ${path}`;
@@ -64,8 +63,15 @@ const EMU_PER_INCH = 914400;
64
63
  const POINTS_PER_INCH = 72;
65
64
  const DEFAULT_FONT_SIZE_PT = 16 / 96 * 72;
66
65
  const CH_WIDTH_RATIO = .5;
67
- const DECK_LENGTH_PATTERN = /^[-+]?(?:\d+|\d*\.\d+)(?:in|pt|px|%|em|rem|vh|vw|ch)$/i;
68
- const DECK_POINT_LENGTH_PATTERN = /^[-+]?(?:\d+|\d*\.\d+)(?:pt|in|px|em|rem|vh|vw|ch)$/i;
66
+ const DECK_LENGTH_PATTERN = /^[-+]?(?:\d+|\d*\.\d+)(?:in|cm|mm|q|pt|pc|px|%|em|rem|vh|vw|vmin|vmax|ch)$/i;
67
+ const DECK_POINT_LENGTH_PATTERN = /^[-+]?(?:\d+|\d*\.\d+)(?:in|cm|mm|q|pt|pc|px|em|rem|vh|vw|vmin|vmax|ch)$/i;
68
+ const CSS_WIDE_KEYWORDS = new Set([
69
+ "initial",
70
+ "inherit",
71
+ "unset",
72
+ "revert",
73
+ "revert-layer"
74
+ ]);
69
75
  function pointsToEmu(value) {
70
76
  return value / 72 * EMU_PER_INCH;
71
77
  }
@@ -77,86 +83,103 @@ function parsePercentage(value) {
77
83
  function resolvePointUnitBase(context) {
78
84
  return context?.fontSizePt ?? DEFAULT_FONT_SIZE_PT;
79
85
  }
86
+ function absoluteLengthInInches(normalized) {
87
+ if (normalized.endsWith("vmin") || normalized.endsWith("vmax")) return;
88
+ if (normalized.endsWith("in")) return Number.parseFloat(normalized.slice(0, -2));
89
+ if (normalized.endsWith("cm")) return Number.parseFloat(normalized.slice(0, -2)) / 2.54;
90
+ if (normalized.endsWith("mm")) return Number.parseFloat(normalized.slice(0, -2)) / 25.4;
91
+ if (normalized.endsWith("q")) return Number.parseFloat(normalized.slice(0, -1)) / 101.6;
92
+ if (normalized.endsWith("pt")) return Number.parseFloat(normalized.slice(0, -2)) / 72;
93
+ if (normalized.endsWith("pc")) return Number.parseFloat(normalized.slice(0, -2)) / 6;
94
+ if (normalized.endsWith("px")) return Number.parseFloat(normalized.slice(0, -2)) / 96;
95
+ }
96
+ function resolveViewportEmu(normalized, context, errorContext) {
97
+ if (normalized.endsWith("vw")) {
98
+ const viewportWidthEmu = context?.viewportWidthEmu;
99
+ if (viewportWidthEmu === void 0) throw new Error(`Unsupported viewport ${errorContext} without viewport context: ${normalized}`);
100
+ return viewportWidthEmu * Number.parseFloat(normalized.slice(0, -2)) / 100;
101
+ }
102
+ if (normalized.endsWith("vh")) {
103
+ const viewportHeightEmu = context?.viewportHeightEmu;
104
+ if (viewportHeightEmu === void 0) throw new Error(`Unsupported viewport ${errorContext} without viewport context: ${normalized}`);
105
+ return viewportHeightEmu * Number.parseFloat(normalized.slice(0, -2)) / 100;
106
+ }
107
+ if (normalized.endsWith("vmin") || normalized.endsWith("vmax")) {
108
+ const viewportWidthEmu = context?.viewportWidthEmu;
109
+ const viewportHeightEmu = context?.viewportHeightEmu;
110
+ if (viewportWidthEmu === void 0 || viewportHeightEmu === void 0) throw new Error(`Unsupported viewport ${errorContext} without viewport context: ${normalized}`);
111
+ const base = normalized.endsWith("vmin") ? Math.min(viewportWidthEmu, viewportHeightEmu) : Math.max(viewportWidthEmu, viewportHeightEmu);
112
+ const suffixLength = normalized.endsWith("vmin") ? 4 : 4;
113
+ return base * Number.parseFloat(normalized.slice(0, -suffixLength)) / 100;
114
+ }
115
+ }
80
116
  function isDeckLengthString(value) {
81
117
  return DECK_LENGTH_PATTERN.test(value.trim());
82
118
  }
83
119
  function isDeckPointLengthString(value) {
84
120
  return DECK_POINT_LENGTH_PATTERN.test(value.trim());
85
121
  }
122
+ function isCssWideKeyword(value) {
123
+ return typeof value === "string" && CSS_WIDE_KEYWORDS.has(value.trim().toLowerCase());
124
+ }
86
125
  function parseLengthToken(value, baseEmu, fallback = 0, context) {
87
126
  const trimmed = value.trim();
88
127
  if (trimmed === "0") return 0;
128
+ if (isCssWideKeyword(trimmed)) return fallback;
89
129
  if (!isDeckLengthString(trimmed)) throw new Error(`Unsupported length value: ${value}`);
90
130
  return parseLength(trimmed, baseEmu, fallback, context);
91
131
  }
92
132
  function parsePointToken(value, fallback = 0, context) {
93
133
  const trimmed = value.trim();
94
134
  if (trimmed === "0") return 0;
135
+ if (isCssWideKeyword(trimmed)) return fallback;
95
136
  if (!isDeckPointLengthString(trimmed)) throw new Error(`Unsupported point value: ${value}`);
96
137
  return parsePointValue(trimmed, fallback, context);
97
138
  }
98
139
  function parsePointValue(value, fallback = 0, context) {
99
140
  if (value === void 0) return fallback;
100
141
  if (typeof value === "number") return value;
101
- if (value.endsWith("pt")) return Number.parseFloat(value.slice(0, -2));
102
- if (value.endsWith("in")) return Number.parseFloat(value.slice(0, -2)) * 72;
103
- if (value.endsWith("px")) return Number.parseFloat(value.slice(0, -2)) / 96 * 72;
104
- if (value.endsWith("rem")) return Number.parseFloat(value.slice(0, -3)) * DEFAULT_FONT_SIZE_PT;
105
- if (value.endsWith("em")) return Number.parseFloat(value.slice(0, -2)) * resolvePointUnitBase(context);
106
- if (value.endsWith("ch")) return Number.parseFloat(value.slice(0, -2)) * resolvePointUnitBase(context) * CH_WIDTH_RATIO;
107
- if (value.endsWith("vw")) {
108
- const viewportWidthEmu = context?.viewportWidthEmu;
109
- if (viewportWidthEmu === void 0) throw new Error(`Unsupported viewport point value without viewport context: ${value}`);
110
- return viewportWidthEmu * Number.parseFloat(value.slice(0, -2)) / 100 / EMU_PER_INCH * 72;
111
- }
112
- if (value.endsWith("vh")) {
113
- const viewportHeightEmu = context?.viewportHeightEmu;
114
- if (viewportHeightEmu === void 0) throw new Error(`Unsupported viewport point value without viewport context: ${value}`);
115
- return viewportHeightEmu * Number.parseFloat(value.slice(0, -2)) / 100 / EMU_PER_INCH * 72;
116
- }
142
+ const normalized = value.trim().toLowerCase();
143
+ if (normalized === "0") return 0;
144
+ if (isCssWideKeyword(normalized)) return fallback;
145
+ const absoluteInches = absoluteLengthInInches(normalized);
146
+ if (absoluteInches !== void 0) return absoluteInches * 72;
147
+ if (normalized.endsWith("rem")) return Number.parseFloat(normalized.slice(0, -3)) * DEFAULT_FONT_SIZE_PT;
148
+ if (normalized.endsWith("em")) return Number.parseFloat(normalized.slice(0, -2)) * resolvePointUnitBase(context);
149
+ if (normalized.endsWith("ch")) return Number.parseFloat(normalized.slice(0, -2)) * resolvePointUnitBase(context) * CH_WIDTH_RATIO;
150
+ const viewportEmu = resolveViewportEmu(normalized, context, "point value");
151
+ if (viewportEmu !== void 0) return viewportEmu / EMU_PER_INCH * 72;
117
152
  throw new Error(`Unsupported point value: ${value}`);
118
153
  }
119
154
  function parseStrokeWidth(value, fallback = 0, context) {
120
155
  if (value === void 0) return fallback;
121
156
  if (typeof value === "number") return value;
122
- if (value.endsWith("pt")) return Number.parseFloat(value.slice(0, -2));
123
- if (value.endsWith("in")) return Number.parseFloat(value.slice(0, -2)) * 72;
124
- if (value.endsWith("px")) return Number.parseFloat(value.slice(0, -2)) / 96 * 72;
125
- if (value.endsWith("rem")) return Number.parseFloat(value.slice(0, -3)) * DEFAULT_FONT_SIZE_PT;
126
- if (value.endsWith("em")) return Number.parseFloat(value.slice(0, -2)) * resolvePointUnitBase(context);
127
- if (value.endsWith("ch")) return Number.parseFloat(value.slice(0, -2)) * resolvePointUnitBase(context) * CH_WIDTH_RATIO;
128
- if (value.endsWith("vw")) {
129
- const viewportWidthEmu = context?.viewportWidthEmu;
130
- if (viewportWidthEmu === void 0) throw new Error(`Unsupported viewport stroke width without viewport context: ${value}`);
131
- return viewportWidthEmu * Number.parseFloat(value.slice(0, -2)) / 100 / EMU_PER_INCH * 72;
132
- }
133
- if (value.endsWith("vh")) {
134
- const viewportHeightEmu = context?.viewportHeightEmu;
135
- if (viewportHeightEmu === void 0) throw new Error(`Unsupported viewport stroke width without viewport context: ${value}`);
136
- return viewportHeightEmu * Number.parseFloat(value.slice(0, -2)) / 100 / EMU_PER_INCH * 72;
137
- }
157
+ const normalized = value.trim().toLowerCase();
158
+ if (normalized === "0") return 0;
159
+ if (isCssWideKeyword(normalized)) return fallback;
160
+ const absoluteInches = absoluteLengthInInches(normalized);
161
+ if (absoluteInches !== void 0) return absoluteInches * 72;
162
+ if (normalized.endsWith("rem")) return Number.parseFloat(normalized.slice(0, -3)) * DEFAULT_FONT_SIZE_PT;
163
+ if (normalized.endsWith("em")) return Number.parseFloat(normalized.slice(0, -2)) * resolvePointUnitBase(context);
164
+ if (normalized.endsWith("ch")) return Number.parseFloat(normalized.slice(0, -2)) * resolvePointUnitBase(context) * CH_WIDTH_RATIO;
165
+ const viewportEmu = resolveViewportEmu(normalized, context, "stroke width");
166
+ if (viewportEmu !== void 0) return viewportEmu / EMU_PER_INCH * 72;
138
167
  throw new Error(`Unsupported stroke width: ${value}`);
139
168
  }
140
169
  function parseLength(value, baseEmu, fallback = 0, context) {
141
170
  if (value === void 0) return fallback;
142
171
  if (typeof value === "number") return value * EMU_PER_INCH;
143
- if (value.endsWith("%")) return baseEmu * Number.parseFloat(value.slice(0, -1)) / 100;
144
- if (value.endsWith("in")) return Number.parseFloat(value.slice(0, -2)) * EMU_PER_INCH;
145
- if (value.endsWith("pt")) return Number.parseFloat(value.slice(0, -2)) / 72 * EMU_PER_INCH;
146
- if (value.endsWith("px")) return Number.parseFloat(value.slice(0, -2)) / 96 * EMU_PER_INCH;
147
- if (value.endsWith("rem")) return Number.parseFloat(value.slice(0, -3)) * DEFAULT_FONT_SIZE_PT * EMU_PER_INCH / 72;
148
- if (value.endsWith("em")) return Number.parseFloat(value.slice(0, -2)) * resolvePointUnitBase(context) * EMU_PER_INCH / 72;
149
- if (value.endsWith("ch")) return Number.parseFloat(value.slice(0, -2)) * resolvePointUnitBase(context) * CH_WIDTH_RATIO * EMU_PER_INCH / 72;
150
- if (value.endsWith("vw")) {
151
- const viewportWidthEmu = context?.viewportWidthEmu;
152
- if (viewportWidthEmu === void 0) throw new Error(`Unsupported viewport length without viewport context: ${value}`);
153
- return viewportWidthEmu * Number.parseFloat(value.slice(0, -2)) / 100;
154
- }
155
- if (value.endsWith("vh")) {
156
- const viewportHeightEmu = context?.viewportHeightEmu;
157
- if (viewportHeightEmu === void 0) throw new Error(`Unsupported viewport length without viewport context: ${value}`);
158
- return viewportHeightEmu * Number.parseFloat(value.slice(0, -2)) / 100;
159
- }
172
+ const normalized = value.trim().toLowerCase();
173
+ if (normalized === "0") return 0;
174
+ if (isCssWideKeyword(normalized)) return fallback;
175
+ if (normalized.endsWith("%")) return baseEmu * Number.parseFloat(normalized.slice(0, -1)) / 100;
176
+ const absoluteInches = absoluteLengthInInches(normalized);
177
+ if (absoluteInches !== void 0) return absoluteInches * EMU_PER_INCH;
178
+ if (normalized.endsWith("rem")) return Number.parseFloat(normalized.slice(0, -3)) * DEFAULT_FONT_SIZE_PT * EMU_PER_INCH / 72;
179
+ if (normalized.endsWith("em")) return Number.parseFloat(normalized.slice(0, -2)) * resolvePointUnitBase(context) * EMU_PER_INCH / 72;
180
+ if (normalized.endsWith("ch")) return Number.parseFloat(normalized.slice(0, -2)) * resolvePointUnitBase(context) * CH_WIDTH_RATIO * EMU_PER_INCH / 72;
181
+ const viewportEmu = resolveViewportEmu(normalized, context, "length");
182
+ if (viewportEmu !== void 0) return viewportEmu;
160
183
  throw new Error(`Unsupported length value: ${value}`);
161
184
  }
162
185
  //#endregion
@@ -459,7 +482,9 @@ const UNSUPPORTED_SEMANTIC_FEATURES = [
459
482
  "border",
460
483
  "clipping",
461
484
  "filter",
485
+ "image",
462
486
  "isolation",
487
+ "layout",
463
488
  "outline",
464
489
  "opacity",
465
490
  "shadow",
@@ -1025,6 +1050,29 @@ function validateDrawingFrame(input) {
1025
1050
  });
1026
1051
  return issues;
1027
1052
  }
1053
+ function validateDrawingFrameExtent(input) {
1054
+ const frame = input.element.frame;
1055
+ if (typeof frame !== "object" || frame === null) return [];
1056
+ const { widthEmu, heightEmu } = frame;
1057
+ if (typeof widthEmu !== "number" || typeof heightEmu !== "number" || !Number.isFinite(widthEmu) || !Number.isFinite(heightEmu)) return [];
1058
+ if (input.element.kind === "shape" && input.element.shape === "line") return widthEmu === 0 && heightEmu === 0 ? [drawingMetadataDiagnostic({
1059
+ path: `${input.path}.frame`,
1060
+ message: "line shape frame must have a non-zero axis",
1061
+ title: "pptx drawing frame is degenerate"
1062
+ })] : [];
1063
+ const issues = [];
1064
+ if (widthEmu === 0) issues.push(drawingMetadataDiagnostic({
1065
+ path: `${input.path}.frame.widthEmu`,
1066
+ message: "drawing frame width must be greater than zero",
1067
+ title: "pptx drawing frame is degenerate"
1068
+ }));
1069
+ if (heightEmu === 0) issues.push(drawingMetadataDiagnostic({
1070
+ path: `${input.path}.frame.heightEmu`,
1071
+ message: "drawing frame height must be greater than zero",
1072
+ title: "pptx drawing frame is degenerate"
1073
+ }));
1074
+ return issues;
1075
+ }
1028
1076
  function validateSlideLayoutAnchor(input) {
1029
1077
  const issues = [];
1030
1078
  if (typeof input.anchor.template !== "string" || input.anchor.template.length === 0) issues.push(diagnostic({
@@ -3267,6 +3315,10 @@ function validateDrawingMetadata(input) {
3267
3315
  frame: input.element.frame,
3268
3316
  path: `${input.path}.frame`
3269
3317
  }),
3318
+ ...validateDrawingFrameExtent({
3319
+ element: input.element,
3320
+ path: input.path
3321
+ }),
3270
3322
  ...element.opacity === void 0 || typeof element.opacity === "number" && Number.isFinite(element.opacity) && element.opacity >= 0 && element.opacity <= 1 ? [] : [drawingMetadataDiagnostic({
3271
3323
  path: `${input.path}.opacity`,
3272
3324
  message: "invalid opacity"
@@ -6400,8 +6452,7 @@ function expectedAssemblyEntryForPart(part) {
6400
6452
  required: requirement.required,
6401
6453
  ...requirement.requirementCondition ? { requirementCondition: requirement.requirementCondition } : {},
6402
6454
  ...requirement.requirementDependencies ? { requirementDependencies: requirement.requirementDependencies } : {},
6403
- ...requirement.reason ? { requirementReason: requirement.reason } : {},
6404
- compression: part.kind === "media" ? "store" : "default"
6455
+ ...requirement.reason ? { requirementReason: requirement.reason } : {}
6405
6456
  };
6406
6457
  }
6407
6458
  function assemblyPlanEntry(input) {
@@ -6427,7 +6478,6 @@ function assemblyPlanEntry(input) {
6427
6478
  ...input.expected.requirementCondition ? { requirementCondition: input.expected.requirementCondition } : {},
6428
6479
  ...input.expected.requirementDependencies ? { requirementDependencies: input.expected.requirementDependencies } : {},
6429
6480
  ...input.expected.requirementReason ? { requirementReason: input.expected.requirementReason } : {},
6430
- compression: input.expected.compression,
6431
6481
  status: input.final.status,
6432
6482
  ...input.final.byteLength !== void 0 ? { byteLength: input.final.byteLength } : {},
6433
6483
  ...input.final.reason ? { reason: input.final.reason } : {},
@@ -6441,8 +6491,7 @@ function assemblyPlanEntry(input) {
6441
6491
  required: input.expected.required,
6442
6492
  ...input.expected.requirementCondition ? { requirementCondition: input.expected.requirementCondition } : {},
6443
6493
  ...input.expected.requirementDependencies ? { requirementDependencies: input.expected.requirementDependencies } : {},
6444
- ...input.expected.requirementReason ? { requirementReason: input.expected.requirementReason } : {},
6445
- compression: input.expected.compression
6494
+ ...input.expected.requirementReason ? { requirementReason: input.expected.requirementReason } : {}
6446
6495
  },
6447
6496
  final,
6448
6497
  ...build ? { build } : {},
@@ -6463,7 +6512,6 @@ function assemblySummary(plan) {
6463
6512
  ...entry.requirementCondition ? { requirementCondition: entry.requirementCondition } : {},
6464
6513
  ...entry.requirementDependencies ? { requirementDependencies: entry.requirementDependencies } : {},
6465
6514
  ...entry.requirementReason ? { requirementReason: entry.requirementReason } : {},
6466
- compression: entry.compression,
6467
6515
  ...entry.byteLength !== void 0 ? { byteLength: entry.byteLength } : {},
6468
6516
  ...entry.reason ? { reason: entry.reason } : {},
6469
6517
  ...entry.reasonDetails ? { reasonDetails: entry.reasonDetails } : {},
@@ -6514,8 +6562,7 @@ function zipEntriesFromAssemblyPlan(plan) {
6514
6562
  if (entry.status === "missing" || entry.status === "failed" || !entry.bytes) continue;
6515
6563
  entries.push({
6516
6564
  path: entry.path,
6517
- bytes: entry.bytes,
6518
- compression: entry.compression
6565
+ bytes: entry.bytes
6519
6566
  });
6520
6567
  }
6521
6568
  return entries;
@@ -8280,18 +8327,10 @@ const FIXED_DOS_TIME = 0;
8280
8327
  const FIXED_DOS_DATE = 33;
8281
8328
  const ZIP_VERSION = 20;
8282
8329
  const UTF8_FLAG = 2048;
8283
- const DEFLATE_METHOD = 8;
8284
8330
  const STORE_METHOD = 0;
8285
8331
  const UINT32_MAX = 4294967295;
8286
8332
  const CRC32_TABLE = createCrc32Table();
8287
- function zipLevel(compression) {
8288
- switch (compression) {
8289
- case "store": return 0;
8290
- case "balanced": return 6;
8291
- case "small": return 9;
8292
- default: return 1;
8293
- }
8294
- }
8333
+ const PATH_ENCODER = new TextEncoder();
8295
8334
  function createCrc32Table() {
8296
8335
  const table = new Uint32Array(256);
8297
8336
  for (let index = 0; index < table.length; index += 1) {
@@ -8320,23 +8359,13 @@ function assertZip32Size(name, value) {
8320
8359
  if (!Number.isSafeInteger(value) || value < 0 || value > UINT32_MAX) throw new Error(`PPTX ZIP ${name} exceeds ZIP32 limits.`);
8321
8360
  }
8322
8361
  function encodedPath(path) {
8323
- const bytes = strToU8(path);
8362
+ const bytes = PATH_ENCODER.encode(path);
8324
8363
  if (bytes.byteLength > 65535) throw new Error(`PPTX ZIP entry path is too long: ${path}`);
8325
8364
  return {
8326
8365
  bytes,
8327
8366
  flags: bytes.byteLength === path.length ? 0 : UTF8_FLAG
8328
8367
  };
8329
8368
  }
8330
- function compressedBytesForEntry(entry, options) {
8331
- if (entry.compression === "store" || options.compression === "store") return {
8332
- bytes: entry.bytes,
8333
- method: STORE_METHOD
8334
- };
8335
- return {
8336
- bytes: deflateSync(entry.bytes, { level: zipLevel(options.compression) }),
8337
- method: DEFLATE_METHOD
8338
- };
8339
- }
8340
8369
  function localHeader(entry) {
8341
8370
  const header = new Uint8Array(30 + entry.pathBytes.byteLength);
8342
8371
  writeUint32(header, 0, 67324752);
@@ -8390,7 +8419,7 @@ function endOfCentralDirectory(entryCount, centralSize, centralOffset) {
8390
8419
  writeUint16(header, 20, 0);
8391
8420
  return header;
8392
8421
  }
8393
- function writePptxZipEntriesToSink(entries, sink, options = {}) {
8422
+ function writePptxZipEntriesToSink(entries, sink) {
8394
8423
  const centralEntries = [];
8395
8424
  let offset = 0;
8396
8425
  const write = (chunk) => {
@@ -8401,21 +8430,20 @@ function writePptxZipEntriesToSink(entries, sink, options = {}) {
8401
8430
  try {
8402
8431
  for (const entry of entries) {
8403
8432
  const path = encodedPath(entry.path);
8404
- const compressed = compressedBytesForEntry(entry, options);
8405
- assertZip32Size("compressed entry size", compressed.bytes.byteLength);
8433
+ assertZip32Size("compressed entry size", entry.bytes.byteLength);
8406
8434
  assertZip32Size("uncompressed entry size", entry.bytes.byteLength);
8407
8435
  const centralEntry = {
8408
8436
  pathBytes: path.bytes,
8409
8437
  flags: path.flags,
8410
- method: compressed.method,
8438
+ method: STORE_METHOD,
8411
8439
  crc: crc32(entry.bytes),
8412
- compressedSize: compressed.bytes.byteLength,
8440
+ compressedSize: entry.bytes.byteLength,
8413
8441
  uncompressedSize: entry.bytes.byteLength,
8414
8442
  localHeaderOffset: offset
8415
8443
  };
8416
8444
  centralEntries.push(centralEntry);
8417
8445
  write(localHeader(centralEntry));
8418
- write(compressed.bytes);
8446
+ write(entry.bytes);
8419
8447
  }
8420
8448
  const centralOffset = offset;
8421
8449
  for (const entry of centralEntries) write(centralDirectoryHeader(entry));
@@ -8582,7 +8610,7 @@ async function renderPptxPackage(projection, options = {}, context) {
8582
8610
  const sink = sideEffectSink ?? createCollectingPptxZipSink();
8583
8611
  let outputSideEffectError;
8584
8612
  try {
8585
- writePptxZipEntriesToSink(zipEntriesFromAssemblyPlan(plan), sink, { compression: options.compression });
8613
+ writePptxZipEntriesToSink(zipEntriesFromAssemblyPlan(plan), sink);
8586
8614
  outputSideEffectError = sideEffectSink?.sideEffectError();
8587
8615
  } catch (error) {
8588
8616
  return {
@@ -8595,7 +8623,7 @@ async function renderPptxPackage(projection, options = {}, context) {
8595
8623
  path: "render.assembly.zip",
8596
8624
  message: error instanceof Error ? error.message : String(error)
8597
8625
  }],
8598
- notes: [`reason=zipSourceFailed compression=${options.compression ?? "fast"}`],
8626
+ notes: ["reason=zipSourceFailed"],
8599
8627
  help: ["Inspect render.summary.assembly.entries to confirm every required package entry was available before ZIP emission."]
8600
8628
  })]),
8601
8629
  summary: assemblySummary(plan)
@@ -8635,4 +8663,4 @@ function pptx(options = {}) {
8635
8663
  };
8636
8664
  }
8637
8665
  //#endregion
8638
- export { CompositionDiagnosticError as A, parsePointValue as C, POINTS_PER_INCH as D, EMU_PER_INCH as E, formatDiagnostics as F, SemanticGraphDiagnosticError as M, StyleDiagnosticError as N, createDiagnostics as O, formatDiagnostic as P, parsePointToken as S, pointsToEmu as T, isDeckLengthString as _, isInspectableThemePayload as a, parseLengthToken as b, fingerprintString as c, createWriterRenderContext as d, createTemplateHandle as f, DEFAULT_FONT_SIZE_PT as g, validateSlideTemplates as h, isContentTypesPayload as i, DeckDiagnosticError as j, diagnostic as k, stableJson$1 as l, templateRefValue as m, pptxMediaAssetLoadRequirements as n, isRecord as o, isTemplateAreaRef as p, validatePptxPackageModel as r, projectedRelationshipTarget as s, pptx as t, withPackagePartFingerprints as u, isDeckPointLengthString as v, parseStrokeWidth as w, parsePercentage as x, parseLength as y };
8666
+ export { diagnostic as A, parsePointToken as C, EMU_PER_INCH as D, pointsToEmu as E, formatDiagnostic as F, formatDiagnostics as I, DeckDiagnosticError as M, SemanticGraphDiagnosticError as N, POINTS_PER_INCH as O, StyleDiagnosticError as P, parsePercentage as S, parseStrokeWidth as T, isCssWideKeyword as _, isInspectableThemePayload as a, parseLength as b, fingerprintString as c, createWriterRenderContext as d, createTemplateHandle as f, DEFAULT_FONT_SIZE_PT as g, validateSlideTemplates as h, isContentTypesPayload as i, CompositionDiagnosticError as j, createDiagnostics as k, stableJson$1 as l, templateRefValue as m, pptxMediaAssetLoadRequirements as n, isRecord as o, isTemplateAreaRef as p, validatePptxPackageModel as r, projectedRelationshipTarget as s, pptx as t, withPackagePartFingerprints as u, isDeckLengthString as v, parsePointValue as w, parseLengthToken as x, isDeckPointLengthString as y };
@@ -1,2 +1,2 @@
1
- import { a as WriterRenderContext, i as WriterAdapterResult, n as RenderOptions, o as pptx, r as WriterAdapter, s as PptxCompressionMode, t as PptxRenderOptions } from "./adapter-C2AHiDGa.mjs";
2
- export { PptxCompressionMode, PptxRenderOptions, RenderOptions, WriterAdapter, WriterAdapterResult, WriterRenderContext, pptx };
1
+ import { a as WriterRenderContext, i as WriterAdapterResult, n as RenderOptions, o as pptx, r as WriterAdapter, t as PptxRenderOptions } from "./adapter-B0PALTZN.mjs";
2
+ export { PptxRenderOptions, RenderOptions, WriterAdapter, WriterAdapterResult, WriterRenderContext, pptx };
package/dist/adapter.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as pptx } from "./adapter-BamaV2yi.mjs";
1
+ import { t as pptx } from "./adapter-B3Efckbf.mjs";
2
2
  export { pptx };
@@ -3,11 +3,14 @@ type AuthoredTag = "article" | "aside" | "div" | "figure" | "footer" | "h1" | "h
3
3
  type SectioningTag = "article" | "aside" | "footer" | "header" | "main" | "nav" | "section";
4
4
  //#endregion
5
5
  //#region src/style/types.d.ts
6
- type DeckLength = number | `${number}${"in" | "pt" | "px" | "%" | "em" | "rem" | "vh" | "vw" | "ch"}`;
7
- type DeckPointLength = number | `${number}${"pt" | "in" | "px" | "em" | "rem" | "vh" | "vw" | "ch"}`;
8
- type CssAspectRatio = number | `${number}/${number}` | `${number} / ${number}`;
6
+ type CssWideKeyword = "initial" | "inherit" | "unset" | "revert" | "revert-layer";
7
+ type DeckLength = number | CssWideKeyword | `${number}${"in" | "cm" | "mm" | "q" | "pt" | "pc" | "px" | "%" | "em" | "rem" | "vh" | "vw" | "vmin" | "vmax" | "ch"}`;
8
+ type DeckPointLength = number | CssWideKeyword | `${number}${"in" | "cm" | "mm" | "q" | "pt" | "pc" | "px" | "em" | "rem" | "vh" | "vw" | "vmin" | "vmax" | "ch"}`;
9
+ type CssLetterSpacing = DeckPointLength | "normal";
10
+ type CssAspectRatio = number | "auto" | `${number}` | `${number}/${number}` | `${number} / ${number}`;
9
11
  type CssBoxSizing = "border-box" | "content-box";
10
- type Spacing = DeckLength | readonly [DeckLength, DeckLength, DeckLength, DeckLength];
12
+ type CssSpacingShorthand = `${string} ${string}`;
13
+ type Spacing = DeckLength | CssSpacingShorthand | readonly [DeckLength, DeckLength, DeckLength, DeckLength];
11
14
  type StackAxis = "horizontal" | "vertical";
12
15
  type StackAlignment = "start" | "center" | "end";
13
16
  type LayoutMode = "absolute" | "stack" | "grid";
@@ -18,7 +21,7 @@ type StrokeLineJoin = "miter" | "round" | "bevel";
18
21
  type VerticalAlign = "top" | "middle" | "bottom";
19
22
  type TextFit = "none" | "shrink" | "resize";
20
23
  type CssDisplay = "flex" | "block" | "grid" | "none";
21
- type CssPosition = "absolute" | "relative";
24
+ type CssPosition = "static" | "absolute" | "relative";
22
25
  type CssVisibility = "visible" | "hidden";
23
26
  type CssOverflow = "visible" | "hidden";
24
27
  type CssFlexDirection = "row" | "column";
@@ -205,12 +208,12 @@ type TextStyle = FrameAuthorProps & BoxStyleAuthorProps & {
205
208
  lineSpacing?: number;
206
209
  lineSpacingMultiple?: number;
207
210
  lineHeight?: DeckPointLength | "normal";
208
- paragraphSpacingBefore?: number;
209
- paragraphSpacingAfter?: number;
211
+ paragraphSpacingBefore?: DeckPointLength;
212
+ paragraphSpacingAfter?: DeckPointLength;
210
213
  textIndent?: DeckPointLength;
211
214
  tabStops?: readonly TextTabStopAuthoring[];
212
- charSpacing?: number;
213
- letterSpacing?: number;
215
+ charSpacing?: DeckPointLength;
216
+ letterSpacing?: CssLetterSpacing;
214
217
  whiteSpace?: "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line";
215
218
  wordBreak?: "normal" | "break-all" | "keep-all" | "break-word";
216
219
  overflowWrap?: "normal" | "break-word" | "anywhere";
@@ -225,9 +228,10 @@ type TextStyle = FrameAuthorProps & BoxStyleAuthorProps & {
225
228
  fit?: TextFit;
226
229
  wrap?: boolean;
227
230
  };
231
+ type ImageFit = "contain" | "cover" | "stretch" | "fill";
228
232
  type ImageStyle = FrameAuthorProps & {
229
- fit?: "contain" | "cover" | "stretch";
230
- objectFit?: "contain" | "cover" | "stretch";
233
+ fit?: ImageFit;
234
+ objectFit?: ImageFit;
231
235
  objectPosition?: CssObjectPosition;
232
236
  crop?: ImageCropAuthoring;
233
237
  href?: string;
@@ -332,16 +336,16 @@ type TemplateAreaAuthorProps = {
332
336
  };
333
337
  type ViewNodeProps = {
334
338
  style?: ViewStyle;
335
- } & ClassNameAuthorProps & TemplateAreaAuthorProps & ViewStyle;
339
+ } & ClassNameAuthorProps & TemplateAreaAuthorProps;
336
340
  type TextNodeProps = {
337
341
  style?: TextStyle;
338
- } & ClassNameAuthorProps & TemplateAreaAuthorProps & TextStyle;
342
+ } & ClassNameAuthorProps & TemplateAreaAuthorProps;
339
343
  type TextRunNodeProps = {
340
344
  style?: TextRunStyle;
341
- } & ClassNameAuthorProps & TextRunStyle;
345
+ } & ClassNameAuthorProps;
342
346
  type ImageNodeProps = {
343
347
  style?: ImageStyle;
344
- } & ClassNameAuthorProps & TemplateAreaAuthorProps & ImageStyle & ({
348
+ } & ClassNameAuthorProps & TemplateAreaAuthorProps & ({
345
349
  src: string;
346
350
  data?: string;
347
351
  } | {
@@ -350,8 +354,8 @@ type ImageNodeProps = {
350
354
  });
351
355
  type ShapeNodeProps = {
352
356
  style?: ShapeStyle;
353
- shape: "rect" | "ellipse" | "line";
354
- } & ClassNameAuthorProps & TemplateAreaAuthorProps & ShapeStyle;
357
+ shape?: "rect" | "ellipse" | "line";
358
+ } & ClassNameAuthorProps & TemplateAreaAuthorProps;
355
359
  //#endregion
356
360
  //#region src/authoring/tree.d.ts
357
361
  type JsxKey = string | number | bigint;
@@ -707,7 +711,7 @@ type CompositionSource<TSourceContext extends SourceContextValue | void = void,
707
711
  //#endregion
708
712
  //#region src/authoring/index.d.ts
709
713
  type DeckJsxElement = {
710
- readonly $$typeof: "deckjsx.author-tree" | "deckjsx.author-node";
714
+ readonly $$typeof: "deckjsx.author-tree";
711
715
  };
712
716
  interface TextJsxChildArray extends ReadonlyArray<TextJsxChild> {}
713
717
  type TextJsxChild = DeckJsxElement | string | number | boolean | null | undefined | TextJsxChildArray;
@@ -762,4 +766,4 @@ type DeckJsxIntrinsicElements = {
762
766
  span: IntrinsicSpanProps;
763
767
  } & { [Tag in IntrinsicViewTag]: IntrinsicDivProps } & { [Tag in IntrinsicTextTag]: IntrinsicPProps };
764
768
  //#endregion
765
- export { Diagnostics as $, StackAlignment as $t, BaseSemanticNode as A, CssGridAutoFlow as At, SemanticRole as B, CssObjectPosition as Bt, SourceContextValue as C, CssAlignSelf as Ct, StyleSheet as D, CssFlexBasis as Dt, ThemeDefaults as E, CssDisplay as Et, SemanticDocumentNode as F, CssGridTemplateAreas as Ft, SourceIdentity as G, DeckPointLength as Gt, SemanticSlideNode as H, CssPosition as Ht, SemanticImageNode as I, CssGridTemplateShorthand as It, StyleEntity as J, ImageStyle as Jt, SourceOrigin as K, ImageCropAuthoring as Kt, SemanticNode as L, CssGridTrack as Lt, GraphNodeId as M, CssGridPlacement as Mt, SemanticAuthorGraph as N, CssGridShorthand as Nt, AssetEntity as O, CssFlexDirection as Ot, SemanticContainerNode as P, CssGridTemplate as Pt, DiagnosticSeverity as Q, Spacing as Qt, SemanticNodeKind as R, CssJustifyContent as Rt, SourceContextMapper as S, CssAlignItems as St, ThemeInput as T, CssBoxSizing as Tt, SemanticTextNode as U, CssVisibility as Ut, SemanticShapeNode as V, CssOverflow as Vt, SemanticTextRunNode as W, DeckLength as Wt, Diagnostic as X, ShapeStyle as Xt, StyleEntityId as Y, LayoutMode as Yt, DiagnosticLabel as Z, SlideStyle as Zt, SlideFactory as _, TemplateFrame as _t, IntrinsicDivProps as a, StyleDeclarationValue as an, StyleDiagnosticError as at, SlideOptions as b, BorderStyle as bt, IntrinsicShapeProps as c, TextStyle as cn, ClassNameObject as ct, JsxNode as d, TextTabStopLength as dn, EmptySlideTemplateSet as dt, StackAxis as en, formatDiagnostic as et, TextJsxChild as f, VerticalAlign as fn, SlideTemplate as ft, CompositionSourceInternals as g, TemplateAreaRef as gt, CompositionSource as h, TemplateAreaKind as ht, DeckOptions as i, StyleDeclaration as in, SemanticGraphDiagnosticError as it, Brand as j, CssGridLine as jt, AssetEntityId as k, CssFlexWrap as kt, IntrinsicTextTag as l, TextTabStopAlignment as ln, ClassNameValue as lt, CompositionContext as m, TemplateArea as mt, DeckJsxElement as n, StrokeLineCap as nn, CompositionDiagnosticError as nt, IntrinsicImgProps as o, TextFit as on, JsxKey as ot, COMPOSITION_SOURCE as p, ViewStyle as pn, SlideTemplateSet as pt, StyleClassRef as q, ImageCropValue as qt, DeckJsxIntrinsicElements as r, StrokeLineJoin as rn, DeckDiagnosticError as rt, IntrinsicPProps as s, TextRunStyle as sn, SourceSpan as st, ContentJsxChild as t, StrokeDashType as tn, formatDiagnostics as tt, IntrinsicViewTag as u, TextTabStopAuthoring as un, ClassNameValueArray as ut, SlideFactoryInput as v, TemplateHandle as vt, Theme as w, CssAspectRatio as wt, SourceContextInput as x, CssAlignContent as xt, SlideFactoryInputWithTemplate as y, TemplateName as yt, SemanticOrigin as z, CssJustifySelf as zt };
769
+ export { Diagnostics as $, Spacing as $t, BaseSemanticNode as A, CssGridAutoFlow as At, SemanticRole as B, CssLetterSpacing as Bt, SourceContextValue as C, CssAlignSelf as Ct, StyleSheet as D, CssFlexBasis as Dt, ThemeDefaults as E, CssDisplay as Et, SemanticDocumentNode as F, CssGridTemplateAreas as Ft, SourceIdentity as G, DeckLength as Gt, SemanticSlideNode as H, CssOverflow as Ht, SemanticImageNode as I, CssGridTemplateShorthand as It, StyleEntity as J, ImageCropValue as Jt, SourceOrigin as K, DeckPointLength as Kt, SemanticNode as L, CssGridTrack as Lt, GraphNodeId as M, CssGridPlacement as Mt, SemanticAuthorGraph as N, CssGridShorthand as Nt, AssetEntity as O, CssFlexDirection as Ot, SemanticContainerNode as P, CssGridTemplate as Pt, DiagnosticSeverity as Q, SlideStyle as Qt, SemanticNodeKind as R, CssJustifyContent as Rt, SourceContextMapper as S, CssAlignItems as St, ThemeInput as T, CssBoxSizing as Tt, SemanticTextNode as U, CssPosition as Ut, SemanticShapeNode as V, CssObjectPosition as Vt, SemanticTextRunNode as W, CssVisibility as Wt, Diagnostic as X, LayoutMode as Xt, StyleEntityId as Y, ImageStyle as Yt, DiagnosticLabel as Z, ShapeStyle as Zt, SlideFactory as _, TemplateFrame as _t, IntrinsicDivProps as a, StyleDeclaration as an, StyleDiagnosticError as at, SlideOptions as b, BorderStyle as bt, IntrinsicShapeProps as c, TextRunStyle as cn, ClassNameObject as ct, JsxNode as d, TextTabStopAuthoring as dn, EmptySlideTemplateSet as dt, StackAlignment as en, formatDiagnostic as et, TextJsxChild as f, TextTabStopLength as fn, SlideTemplate as ft, CompositionSourceInternals as g, TemplateAreaRef as gt, CompositionSource as h, TemplateAreaKind as ht, DeckOptions as i, StrokeLineJoin as in, SemanticGraphDiagnosticError as it, Brand as j, CssGridLine as jt, AssetEntityId as k, CssFlexWrap as kt, IntrinsicTextTag as l, TextStyle as ln, ClassNameValue as lt, CompositionContext as m, ViewStyle as mn, TemplateArea as mt, DeckJsxElement as n, StrokeDashType as nn, CompositionDiagnosticError as nt, IntrinsicImgProps as o, StyleDeclarationValue as on, JsxKey as ot, COMPOSITION_SOURCE as p, VerticalAlign as pn, SlideTemplateSet as pt, StyleClassRef as q, ImageCropAuthoring as qt, DeckJsxIntrinsicElements as r, StrokeLineCap as rn, DeckDiagnosticError as rt, IntrinsicPProps as s, TextFit as sn, SourceSpan as st, ContentJsxChild as t, StackAxis as tn, formatDiagnostics as tt, IntrinsicViewTag as u, TextTabStopAlignment as un, ClassNameValueArray as ut, SlideFactoryInput as v, TemplateHandle as vt, Theme as w, CssAspectRatio as wt, SourceContextInput as x, CssAlignContent as xt, SlideFactoryInputWithTemplate as y, TemplateName as yt, SemanticOrigin as z, CssJustifySelf as zt };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { $ as Diagnostics, $t as StackAlignment, At as CssGridAutoFlow, Bt as CssObjectPosition, C as SourceContextValue, Ct as CssAlignSelf, D as StyleSheet, Dt as CssFlexBasis, E as ThemeDefaults, Et as CssDisplay, Ft as CssGridTemplateAreas, Gt as DeckPointLength, Ht as CssPosition, It as CssGridTemplateShorthand, Jt as ImageStyle, Kt as ImageCropAuthoring, Lt as CssGridTrack, Mt as CssGridPlacement, N as SemanticAuthorGraph, Nt as CssGridShorthand, Ot as CssFlexDirection, Pt as CssGridTemplate, Q as DiagnosticSeverity, Qt as Spacing, Rt as CssJustifyContent, S as SourceContextMapper, St as CssAlignItems, T as ThemeInput, Tt as CssBoxSizing, Ut as CssVisibility, Vt as CssOverflow, Wt as DeckLength, X as Diagnostic, Xt as ShapeStyle, Yt as LayoutMode, Z as DiagnosticLabel, Zt as SlideStyle, _ as SlideFactory, _t as TemplateFrame, a as IntrinsicDivProps, at as StyleDiagnosticError, b as SlideOptions, bt as BorderStyle, c as IntrinsicShapeProps, cn as TextStyle, ct as ClassNameObject, dn as TextTabStopLength, dt as EmptySlideTemplateSet, en as StackAxis, et as formatDiagnostic, f as TextJsxChild, fn as VerticalAlign, ft as SlideTemplate, g as CompositionSourceInternals, gt as TemplateAreaRef, h as CompositionSource, ht as TemplateAreaKind, i as DeckOptions, it as SemanticGraphDiagnosticError, jt as CssGridLine, kt as CssFlexWrap, l as IntrinsicTextTag, ln as TextTabStopAlignment, lt as ClassNameValue, m as CompositionContext, mt as TemplateArea, n as DeckJsxElement, nn as StrokeLineCap, nt as CompositionDiagnosticError, o as IntrinsicImgProps, on as TextFit, ot as JsxKey, p as COMPOSITION_SOURCE, pn as ViewStyle, pt as SlideTemplateSet, qt as ImageCropValue, r as DeckJsxIntrinsicElements, rn as StrokeLineJoin, rt as DeckDiagnosticError, s as IntrinsicPProps, sn as TextRunStyle, st as SourceSpan, t as ContentJsxChild, tn as StrokeDashType, tt as formatDiagnostics, u as IntrinsicViewTag, un as TextTabStopAuthoring, ut as ClassNameValueArray, v as SlideFactoryInput, vt as TemplateHandle, w as Theme, wt as CssAspectRatio, x as SourceContextInput, xt as CssAlignContent, y as SlideFactoryInputWithTemplate, yt as TemplateName, zt as CssJustifySelf } from "./index-dx2ZSBgF.mjs";
2
- import { An as AssetSource, Cn as StageSummary, Dn as AssetLoaderContext, En as AssetLoader, Gt as ProjectInspectionSummary, On as AssetMediaType, Sn as StageName, T as PptxPackageModelCandidate, Tn as AssetLoadResult, _n as RenderOutputSideEffectStatus, an as ProjectOptions, bn as RenderedArtifact, cn as RenderAssemblyBuildSummary, dn as RenderAssemblyFingerprintDelta, fn as RenderAssemblyPlanEntrySummary, gn as RenderOutputSideEffectReason, hn as RenderInspectionSummary, in as OutputFormat, kn as AssetProbeResult, ln as RenderAssemblyExpectedEntrySummary, mn as RenderAssemblyReasonDetails, nn as CompileStages, on as ProjectStages, pn as RenderAssemblyPlanSummary, rn as InspectionDetailLevel, sn as ProjectionFormat, un as RenderAssemblyFinalEntrySummary, vn as RenderOutputSideEffectSummary, w as PptxPackageModel, wn as WrittenOutput, xn as StageArtifactStatus, yn as RenderStages } from "./model-BVkO8qGK.mjs";
3
- import { n as RenderOptions, r as WriterAdapter } from "./adapter-C2AHiDGa.mjs";
4
- import { r as ResolvedStyleMap } from "./resolve-BD1dHxZd.mjs";
1
+ import { $ as Diagnostics, $t as Spacing, At as CssGridAutoFlow, Bt as CssLetterSpacing, C as SourceContextValue, Ct as CssAlignSelf, D as StyleSheet, Dt as CssFlexBasis, E as ThemeDefaults, Et as CssDisplay, Ft as CssGridTemplateAreas, Gt as DeckLength, Ht as CssOverflow, It as CssGridTemplateShorthand, Jt as ImageCropValue, Kt as DeckPointLength, Lt as CssGridTrack, Mt as CssGridPlacement, N as SemanticAuthorGraph, Nt as CssGridShorthand, Ot as CssFlexDirection, Pt as CssGridTemplate, Q as DiagnosticSeverity, Qt as SlideStyle, Rt as CssJustifyContent, S as SourceContextMapper, St as CssAlignItems, T as ThemeInput, Tt as CssBoxSizing, Ut as CssPosition, Vt as CssObjectPosition, Wt as CssVisibility, X as Diagnostic, Xt as LayoutMode, Yt as ImageStyle, Z as DiagnosticLabel, Zt as ShapeStyle, _ as SlideFactory, _t as TemplateFrame, a as IntrinsicDivProps, at as StyleDiagnosticError, b as SlideOptions, bt as BorderStyle, c as IntrinsicShapeProps, cn as TextRunStyle, ct as ClassNameObject, dn as TextTabStopAuthoring, dt as EmptySlideTemplateSet, en as StackAlignment, et as formatDiagnostic, f as TextJsxChild, fn as TextTabStopLength, ft as SlideTemplate, g as CompositionSourceInternals, gt as TemplateAreaRef, h as CompositionSource, ht as TemplateAreaKind, i as DeckOptions, in as StrokeLineJoin, it as SemanticGraphDiagnosticError, jt as CssGridLine, kt as CssFlexWrap, l as IntrinsicTextTag, ln as TextStyle, lt as ClassNameValue, m as CompositionContext, mn as ViewStyle, mt as TemplateArea, n as DeckJsxElement, nn as StrokeDashType, nt as CompositionDiagnosticError, o as IntrinsicImgProps, ot as JsxKey, p as COMPOSITION_SOURCE, pn as VerticalAlign, pt as SlideTemplateSet, qt as ImageCropAuthoring, r as DeckJsxIntrinsicElements, rn as StrokeLineCap, rt as DeckDiagnosticError, s as IntrinsicPProps, sn as TextFit, st as SourceSpan, t as ContentJsxChild, tn as StackAxis, tt as formatDiagnostics, u as IntrinsicViewTag, un as TextTabStopAlignment, ut as ClassNameValueArray, v as SlideFactoryInput, vt as TemplateHandle, w as Theme, wt as CssAspectRatio, x as SourceContextInput, xt as CssAlignContent, y as SlideFactoryInputWithTemplate, yt as TemplateName, zt as CssJustifySelf } from "./index-DOxigSfK.mjs";
2
+ import { An as AssetSource, Cn as StageSummary, Dn as AssetLoaderContext, En as AssetLoader, Gt as ProjectInspectionSummary, On as AssetMediaType, Sn as StageName, T as PptxPackageModelCandidate, Tn as AssetLoadResult, _n as RenderOutputSideEffectStatus, an as ProjectOptions, bn as RenderedArtifact, cn as RenderAssemblyBuildSummary, dn as RenderAssemblyFingerprintDelta, fn as RenderAssemblyPlanEntrySummary, gn as RenderOutputSideEffectReason, hn as RenderInspectionSummary, in as OutputFormat, kn as AssetProbeResult, ln as RenderAssemblyExpectedEntrySummary, mn as RenderAssemblyReasonDetails, nn as CompileStages, on as ProjectStages, pn as RenderAssemblyPlanSummary, rn as InspectionDetailLevel, sn as ProjectionFormat, un as RenderAssemblyFinalEntrySummary, vn as RenderOutputSideEffectSummary, w as PptxPackageModel, wn as WrittenOutput, xn as StageArtifactStatus, yn as RenderStages } from "./model-C82_FI4k.mjs";
3
+ import { n as RenderOptions, r as WriterAdapter } from "./adapter-B0PALTZN.mjs";
4
+ import { r as ResolvedStyleMap } from "./resolve-DH0cI2C3.mjs";
5
5
 
6
6
  //#region src/pipeline-runner.d.ts
7
7
  type PresentStageArtifactStatus = Exclude<StageArtifactStatus, "missing">;
@@ -243,4 +243,4 @@ declare global {
243
243
  }
244
244
  }
245
245
  //#endregion
246
- export { type AssetLoadResult, type AssetLoader, type AssetLoaderContext, type AssetMediaType, type AssetProbeResult, type AssetSource, type BorderStyle, type BoundSource, type ClassNameObject, type ClassNameValue, type ClassNameValueArray, type CompileResult, type CompositionContext, CompositionDiagnosticError, type ContentJsxChild, type CssAlignContent, type CssAlignItems, type CssAlignSelf, type CssAspectRatio, type CssBoxSizing, type CssDisplay, type CssFlexBasis, type CssFlexDirection, type CssFlexWrap, type CssGridAutoFlow, type CssGridLine, type CssGridPlacement, type CssGridShorthand, type CssGridTemplate, type CssGridTemplateAreas, type CssGridTemplateShorthand, type CssGridTrack, type CssJustifyContent, type CssJustifySelf, type CssObjectPosition, type CssOverflow, type CssPosition, type CssVisibility, Deck, DeckDiagnosticError, type DeckJsxElement, type DeckJsxIntrinsicElements, type DeckLength, type DeckOptions, type DeckPointLength, type Diagnostic, type DiagnosticLabel, type DiagnosticSeverity, type Diagnostics, EMU_PER_INCH, type ImageCropAuthoring, type ImageCropValue, type ImageStyle, type InspectionDetailLevel, type IntrinsicDivProps, type IntrinsicImgProps, type IntrinsicPProps, type IntrinsicShapeProps, type IntrinsicTextTag, type IntrinsicViewTag, type JsxKey, type LayoutMode, type OutputFormat, POINTS_PER_INCH, type ProjectOptions, type ProjectResult, type ProjectionFormat, type RenderAssemblyBuildSummary, type RenderAssemblyExpectedEntrySummary, type RenderAssemblyFinalEntrySummary, type RenderAssemblyFingerprintDelta, type RenderAssemblyPlanEntrySummary, type RenderAssemblyPlanSummary, type RenderAssemblyReasonDetails, type RenderInspectionSummary, type RenderOutputSideEffectReason, type RenderOutputSideEffectStatus, type RenderOutputSideEffectSummary, type RenderResult, type RenderedArtifact, SemanticGraphDiagnosticError, type ShapeStyle, type SlideFactory, type SlideFactoryInput, type SlideFactoryInputWithTemplate, type SlideOptions, type SlideStyle, type SlideTemplate, type SlideTemplateSet, type SourceContextMapper, type SourceSpan, type Spacing, type StackAlignment, type StackAxis, type StageArtifactStatus, type StageName, type StageSummary, type StrokeDashType, type StrokeLineCap, type StrokeLineJoin, StyleDiagnosticError, StyleSheet, type TemplateArea, type TemplateAreaKind, type TemplateAreaRef, type TemplateFrame, type TemplateHandle, type TextFit, type TextJsxChild, type TextRunStyle, type TextStyle, type TextTabStopAlignment, type TextTabStopAuthoring, type TextTabStopLength, Theme, type ThemeDefaults, type ThemeInput, type VerticalAlign, type ViewStyle, type WrittenOutput, formatDiagnostic, formatDiagnostics };
246
+ export { type AssetLoadResult, type AssetLoader, type AssetLoaderContext, type AssetMediaType, type AssetProbeResult, type AssetSource, type BorderStyle, type BoundSource, type ClassNameObject, type ClassNameValue, type ClassNameValueArray, type CompileResult, type CompositionContext, CompositionDiagnosticError, type ContentJsxChild, type CssAlignContent, type CssAlignItems, type CssAlignSelf, type CssAspectRatio, type CssBoxSizing, type CssDisplay, type CssFlexBasis, type CssFlexDirection, type CssFlexWrap, type CssGridAutoFlow, type CssGridLine, type CssGridPlacement, type CssGridShorthand, type CssGridTemplate, type CssGridTemplateAreas, type CssGridTemplateShorthand, type CssGridTrack, type CssJustifyContent, type CssJustifySelf, type CssLetterSpacing, type CssObjectPosition, type CssOverflow, type CssPosition, type CssVisibility, Deck, DeckDiagnosticError, type DeckJsxElement, type DeckJsxIntrinsicElements, type DeckLength, type DeckOptions, type DeckPointLength, type Diagnostic, type DiagnosticLabel, type DiagnosticSeverity, type Diagnostics, EMU_PER_INCH, type ImageCropAuthoring, type ImageCropValue, type ImageStyle, type InspectionDetailLevel, type IntrinsicDivProps, type IntrinsicImgProps, type IntrinsicPProps, type IntrinsicShapeProps, type IntrinsicTextTag, type IntrinsicViewTag, type JsxKey, type LayoutMode, type OutputFormat, POINTS_PER_INCH, type ProjectOptions, type ProjectResult, type ProjectionFormat, type RenderAssemblyBuildSummary, type RenderAssemblyExpectedEntrySummary, type RenderAssemblyFinalEntrySummary, type RenderAssemblyFingerprintDelta, type RenderAssemblyPlanEntrySummary, type RenderAssemblyPlanSummary, type RenderAssemblyReasonDetails, type RenderInspectionSummary, type RenderOutputSideEffectReason, type RenderOutputSideEffectStatus, type RenderOutputSideEffectSummary, type RenderResult, type RenderedArtifact, SemanticGraphDiagnosticError, type ShapeStyle, type SlideFactory, type SlideFactoryInput, type SlideFactoryInputWithTemplate, type SlideOptions, type SlideStyle, type SlideTemplate, type SlideTemplateSet, type SourceContextMapper, type SourceSpan, type Spacing, type StackAlignment, type StackAxis, type StageArtifactStatus, type StageName, type StageSummary, type StrokeDashType, type StrokeLineCap, type StrokeLineJoin, StyleDiagnosticError, StyleSheet, type TemplateArea, type TemplateAreaKind, type TemplateAreaRef, type TemplateFrame, type TemplateHandle, type TextFit, type TextJsxChild, type TextRunStyle, type TextStyle, type TextTabStopAlignment, type TextTabStopAuthoring, type TextTabStopLength, Theme, type ThemeDefaults, type ThemeInput, type VerticalAlign, type ViewStyle, type WrittenOutput, formatDiagnostic, formatDiagnostics };