@json-to-office/core-pptx 1.0.0 → 1.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/core/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAGV,+BAA+B,EAC/B,qBAAqB,EAGtB,MAAM,UAAU,CAAC;AAQlB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAmCrD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,+BAA+B,EACzC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,qBAAqB,CAwJvB"}
1
+ {"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/core/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAGV,+BAA+B,EAC/B,qBAAqB,EAItB,MAAM,UAAU,CAAC;AAQlB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAmCrD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,+BAA+B,EACzC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,qBAAqB,CA8JvB"}
package/dist/index.js CHANGED
@@ -4416,15 +4416,16 @@ function processPresentation(document, options) {
4416
4416
  slideComponents,
4417
4417
  theme
4418
4418
  ).map((component) => remapHyperlinkSlideRefs(component, slideIndexMap));
4419
- const placeholders = child.props.placeholders;
4419
+ const slideProps = child.props ?? {};
4420
+ const placeholders = slideProps.placeholders;
4420
4421
  slides.push({
4421
4422
  components: resolvedComponents,
4422
- background: child.props.background,
4423
- transition: child.props.transition,
4424
- notes: child.props.notes,
4425
- layout: child.props.layout,
4426
- hidden: child.props.hidden,
4427
- template: child.props.template,
4423
+ background: slideProps.background,
4424
+ transition: slideProps.transition,
4425
+ notes: slideProps.notes,
4426
+ layout: slideProps.layout,
4427
+ hidden: slideProps.hidden,
4428
+ template: slideProps.template,
4428
4429
  placeholders: placeholders ? Object.fromEntries(
4429
4430
  Object.entries(placeholders).map(([name, component]) => [
4430
4431
  name,