@officedk/pptxdk 0.0.0-stage → 0.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.
- package/LICENSE +21 -0
- package/dist/build-zrZuX4fK.d.ts +3 -0
- package/dist/build.d.ts +35 -0
- package/dist/build.js +128 -0
- package/dist/capabilities/dist/all.js +34 -0
- package/dist/capabilities/dist/box/box-codegen.js +84 -0
- package/dist/capabilities/dist/box/box-declaration.js +32 -0
- package/dist/capabilities/dist/box/box-elements.js +17 -0
- package/dist/capabilities/dist/box/box.js +142 -0
- package/dist/capabilities/dist/chart/chart-codegen.js +79 -0
- package/dist/capabilities/dist/chart/chart-declaration.js +7 -0
- package/dist/capabilities/dist/chart/chart-elements.js +12 -0
- package/dist/capabilities/dist/chart/chart-import.js +2403 -0
- package/dist/capabilities/dist/chart/chart-labels.js +86 -0
- package/dist/capabilities/dist/chart/chart-model.js +9 -0
- package/dist/capabilities/dist/chart/chart-schemas.js +1088 -0
- package/dist/capabilities/dist/chart/chart-xml.js +788 -0
- package/dist/capabilities/dist/chart/chart.js +1119 -0
- package/dist/capabilities/dist/chart/preview/axes-and-grid.js +311 -0
- package/dist/capabilities/dist/chart/preview/bar-column.js +143 -0
- package/dist/capabilities/dist/chart/preview/data-labels.js +334 -0
- package/dist/capabilities/dist/chart/preview/error-bars.js +213 -0
- package/dist/capabilities/dist/chart/preview/index.js +192 -0
- package/dist/capabilities/dist/chart/preview/layout.js +592 -0
- package/dist/capabilities/dist/chart/preview/legend.js +273 -0
- package/dist/capabilities/dist/chart/preview/line-area.js +404 -0
- package/dist/capabilities/dist/chart/preview/markers.js +100 -0
- package/dist/capabilities/dist/chart/preview/number-format.js +247 -0
- package/dist/capabilities/dist/chart/preview/pie-doughnut.js +159 -0
- package/dist/capabilities/dist/chart/preview/scales.js +365 -0
- package/dist/capabilities/dist/chart/preview/scatter.js +131 -0
- package/dist/capabilities/dist/chart/preview/style.js +60 -0
- package/dist/capabilities/dist/chart/preview/text-render.js +116 -0
- package/dist/capabilities/dist/chart/preview/trendlines.js +537 -0
- package/dist/capabilities/dist/chart/preview/types.js +5 -0
- package/dist/capabilities/dist/document.js +168 -0
- package/dist/capabilities/dist/font/font-embedding.js +119 -0
- package/dist/capabilities/dist/font/font-engine.js +834 -0
- package/dist/capabilities/dist/font/font-import.js +766 -0
- package/dist/capabilities/dist/font/font-subset.js +55 -0
- package/dist/capabilities/dist/font/font.js +72 -0
- package/dist/capabilities/dist/group/group-codegen.js +74 -0
- package/dist/capabilities/dist/group/group-declaration.js +41 -0
- package/dist/capabilities/dist/group/group-elements.js +12 -0
- package/dist/capabilities/dist/group/group-import.js +649 -0
- package/dist/capabilities/dist/group/group-xml.js +8 -0
- package/dist/capabilities/dist/group/group.js +260 -0
- package/dist/capabilities/dist/image/gif-decoder.js +244 -0
- package/dist/capabilities/dist/image/image-codegen.js +164 -0
- package/dist/capabilities/dist/image/image-declaration.js +8 -0
- package/dist/capabilities/dist/image/image-decode.js +244 -0
- package/dist/capabilities/dist/image/image-elements.js +12 -0
- package/dist/capabilities/dist/image/image-import.js +984 -0
- package/dist/capabilities/dist/image/image-schemas.js +147 -0
- package/dist/capabilities/dist/image/image-xml.js +12 -0
- package/dist/capabilities/dist/image/image.js +552 -0
- package/dist/capabilities/dist/line/line-codegen.js +89 -0
- package/dist/capabilities/dist/line/line-declaration.js +72 -0
- package/dist/capabilities/dist/line/line-elements.js +12 -0
- package/dist/capabilities/dist/line/line-import.js +504 -0
- package/dist/capabilities/dist/line/line-xml.js +9 -0
- package/dist/capabilities/dist/line/line.js +331 -0
- package/dist/capabilities/dist/masters/footer-placeholder.js +683 -0
- package/dist/capabilities/dist/masters/masters-codegen.js +69 -0
- package/dist/capabilities/dist/masters/masters.js +250 -0
- package/dist/capabilities/dist/motion/motion-api.js +757 -0
- package/dist/capabilities/dist/motion/motion-codegen.js +406 -0
- package/dist/capabilities/dist/motion/motion-elements.js +43 -0
- package/dist/capabilities/dist/motion/motion-import.js +1568 -0
- package/dist/capabilities/dist/motion/motion-plan.js +2340 -0
- package/dist/capabilities/dist/motion/motion-query.js +423 -0
- package/dist/capabilities/dist/motion/motion-schemas.js +339 -0
- package/dist/capabilities/dist/motion/motion.js +1617 -0
- package/dist/capabilities/dist/notes/notes-codegen.js +19 -0
- package/dist/capabilities/dist/notes/notes-declaration.js +8 -0
- package/dist/capabilities/dist/notes/notes-elements.js +12 -0
- package/dist/capabilities/dist/notes/notes-import.js +292 -0
- package/dist/capabilities/dist/notes/notes-schemas.js +38 -0
- package/dist/capabilities/dist/notes/notes-xml.js +38 -0
- package/dist/capabilities/dist/notes/notes.js +194 -0
- package/dist/capabilities/dist/placeholder/placeholder-codegen.js +54 -0
- package/dist/capabilities/dist/placeholder/placeholder-elements.js +13 -0
- package/dist/capabilities/dist/placeholder/placeholder-schemas.js +33 -0
- package/dist/capabilities/dist/placeholder/placeholder.js +451 -0
- package/dist/capabilities/dist/shape/shape-codegen.js +236 -0
- package/dist/capabilities/dist/shape/shape-declaration.js +45 -0
- package/dist/capabilities/dist/shape/shape-elements.js +12 -0
- package/dist/capabilities/dist/shape/shape-import.js +628 -0
- package/dist/capabilities/dist/shape/shape-xml.js +6 -0
- package/dist/capabilities/dist/shape/shape.js +320 -0
- package/dist/capabilities/dist/shared/geometry.js +1681 -0
- package/dist/capabilities/dist/shared/identity.js +205 -0
- package/dist/capabilities/dist/shared/morph-api.js +11 -0
- package/dist/capabilities/dist/shared/placeholder-import.js +238 -0
- package/dist/capabilities/dist/shared/preset-definitions.js +22423 -0
- package/dist/capabilities/dist/shared/style-inheritance.js +161 -0
- package/dist/capabilities/dist/shared/text-schemas.js +241 -0
- package/dist/capabilities/dist/shared/text-service.js +2252 -0
- package/dist/capabilities/dist/shared/visual.js +1197 -0
- package/dist/capabilities/dist/slide-background/slide-background-codegen.js +44 -0
- package/dist/capabilities/dist/slide-background/slide-background-import.js +166 -0
- package/dist/capabilities/dist/slide-background/slide-background-xml.js +34 -0
- package/dist/capabilities/dist/slide-background/slide-background.js +238 -0
- package/dist/capabilities/dist/table/table-codegen.js +125 -0
- package/dist/capabilities/dist/table/table-declaration.js +15 -0
- package/dist/capabilities/dist/table/table-elements.js +27 -0
- package/dist/capabilities/dist/table/table-import.js +606 -0
- package/dist/capabilities/dist/table/table-schemas.js +334 -0
- package/dist/capabilities/dist/table/table-xml.js +30 -0
- package/dist/capabilities/dist/table/table.js +739 -0
- package/dist/capabilities/dist/text/text-codegen.js +198 -0
- package/dist/capabilities/dist/text/text-declaration.js +27 -0
- package/dist/capabilities/dist/text/text-elements.js +54 -0
- package/dist/capabilities/dist/text/text-import.js +1224 -0
- package/dist/capabilities/dist/text/text-xml.js +9 -0
- package/dist/capabilities/dist/text/text.js +320 -0
- package/dist/capabilities/dist/transition/transition-api.js +136 -0
- package/dist/capabilities/dist/transition/transition-codegen.js +45 -0
- package/dist/capabilities/dist/transition/transition-import.js +477 -0
- package/dist/capabilities/dist/transition/transition.js +260 -0
- package/dist/capability-BbKW9w4O.d.ts +2131 -0
- package/dist/cli.js +20 -0
- package/dist/codegen/dist/assets.js +79 -0
- package/dist/codegen/dist/codegen.js +691 -0
- package/dist/codegen/dist/identifiers.js +203 -0
- package/dist/codegen/dist/index.js +3 -0
- package/dist/codegen/dist/printer.js +143 -0
- package/dist/codegen/dist/types.js +77 -0
- package/dist/core/dist/author-ids.js +51 -0
- package/dist/core/dist/author-schemas.js +330 -0
- package/dist/core/dist/block-flex-layout.js +801 -0
- package/dist/core/dist/build.js +4 -0
- package/dist/core/dist/capability.js +15 -0
- package/dist/core/dist/declaration.js +16 -0
- package/dist/core/dist/diagnostics.js +353 -0
- package/dist/core/dist/document-internals.js +26 -0
- package/dist/core/dist/document.js +417 -0
- package/dist/core/dist/font-seal.js +204 -0
- package/dist/core/dist/geometry-schemas.js +256 -0
- package/dist/core/dist/grid-layout.js +449 -0
- package/dist/core/dist/host.js +40 -0
- package/dist/core/dist/index.js +15 -0
- package/dist/core/dist/input-values.js +61 -0
- package/dist/core/dist/layout-protocol.js +61 -0
- package/dist/core/dist/layout-schemas.js +201 -0
- package/dist/core/dist/layout.js +340 -0
- package/dist/core/dist/masters.js +194 -0
- package/dist/core/dist/morph.js +30 -0
- package/dist/core/dist/placeholders.js +275 -0
- package/dist/core/dist/query.js +190 -0
- package/dist/core/dist/resolution.js +12 -0
- package/dist/core/dist/resolve.js +2246 -0
- package/dist/core/dist/stage-options.js +300 -0
- package/dist/core/dist/theme.js +1023 -0
- package/dist/core/dist/transform-geometry.js +72 -0
- package/dist/document-41spD7bq.d.ts +1350 -0
- package/dist/emit/dist/emit.js +957 -0
- package/dist/emit/dist/index.js +5 -0
- package/dist/emit/dist/ooxml.js +661 -0
- package/dist/emit/dist/shape-tree.js +12 -0
- package/dist/import/dist/alternate-content.js +54 -0
- package/dist/import/dist/diagnostics.js +157 -0
- package/dist/import/dist/fonts.js +309 -0
- package/dist/import/dist/import.js +513 -0
- package/dist/import/dist/index.js +16 -0
- package/dist/import/dist/masters.js +1293 -0
- package/dist/import/dist/mechanism.js +10 -0
- package/dist/import/dist/namespaces.js +61 -0
- package/dist/import/dist/notes-masters.js +300 -0
- package/dist/import/dist/opc.js +233 -0
- package/dist/import/dist/resources.js +166 -0
- package/dist/import/dist/sections.js +139 -0
- package/dist/import/dist/themes.js +777 -0
- package/dist/import/dist/visual.js +821 -0
- package/dist/import/dist/xml-fragments.js +277 -0
- package/dist/import/dist/xml-reader.js +267 -0
- package/dist/index-1ag7U9Jt.d.ts +63 -0
- package/dist/index-BEwhk7c8.d.ts +72 -0
- package/dist/index-cK2KtukZ.d.ts +161 -0
- package/dist/index-v77CTJev.d.ts +55 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +82 -0
- package/dist/node.d.ts +53 -0
- package/dist/node.js +225 -0
- package/dist/pptxdk/src/cli-commands.js +907 -0
- package/dist/pptxdk/src/compose.js +53 -0
- package/dist/pptxdk/src/slide.js +9 -0
- package/dist/preview/dist/index.js +342 -0
- package/dist/preview/dist/options.js +40 -0
- package/dist/preview/dist/svg-guard.js +1089 -0
- package/dist/preview.d.ts +12 -0
- package/dist/preview.js +29 -0
- package/dist/react/dist/append.js +66 -0
- package/dist/react/dist/document-adapter.js +404 -0
- package/dist/react/dist/elements.js +82 -0
- package/dist/react/dist/from-vanilla.js +57 -0
- package/dist/react/dist/index.js +89 -0
- package/dist/react/dist/mount.js +34 -0
- package/dist/react/dist/reconciler.js +290 -0
- package/dist/react.d.ts +235 -0
- package/dist/react.js +31 -0
- package/dist/transition-6n8GZxSg.d.ts +9 -0
- package/dist/vanilla.d.ts +4 -0
- package/dist/vanilla.js +15 -0
- package/package.json +79 -3
- package/README.md +0 -3
package/dist/react.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
|
|
2
|
+
import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, isThemeFontSlot, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots, themeFontSlots } from "./core/dist/theme.js";
|
|
3
|
+
import { isSlideLayoutDefinition } from "./core/dist/masters.js";
|
|
4
|
+
import { buildDiagnosticSchema } from "./core/dist/stage-options.js";
|
|
5
|
+
import { appendJSX, expandDocument, expandFragment } from "./react/dist/index.js";
|
|
6
|
+
import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/document.js";
|
|
7
|
+
import { after, appear, breathe, collapse, createMotionScopeHandle, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, onStep, repeat, spin, spinIn, spinOut, stretch, wipe, wipeOut, zoom, zoomOut } from "./capabilities/dist/motion/motion-api.js";
|
|
8
|
+
import { Slide, SlideLayout, SlideMaster } from "./pptxdk/src/slide.js";
|
|
9
|
+
import { blockArc, path, preset } from "./capabilities/dist/shared/geometry.js";
|
|
10
|
+
import { linearGradient, radialGradient } from "./capabilities/dist/shared/visual.js";
|
|
11
|
+
import { motionSchedule } from "./capabilities/dist/motion/motion-query.js";
|
|
12
|
+
import { font, fromFontCollection } from "./capabilities/dist/font/font.js";
|
|
13
|
+
import { transitions } from "./capabilities/dist/transition/transition-api.js";
|
|
14
|
+
import { Box } from "./capabilities/dist/box/box-elements.js";
|
|
15
|
+
import { Mount } from "./react/dist/mount.js";
|
|
16
|
+
import { Deck, Section } from "./react/dist/elements.js";
|
|
17
|
+
import { fromVanilla } from "./react/dist/from-vanilla.js";
|
|
18
|
+
import { Chart } from "./capabilities/dist/chart/chart-elements.js";
|
|
19
|
+
import { Group } from "./capabilities/dist/group/group-elements.js";
|
|
20
|
+
import { Image } from "./capabilities/dist/image/image-elements.js";
|
|
21
|
+
import { Line } from "./capabilities/dist/line/line-elements.js";
|
|
22
|
+
import { MotionScope, Step, useMotionScope } from "./capabilities/dist/motion/motion-elements.js";
|
|
23
|
+
import { Notes } from "./capabilities/dist/notes/notes-elements.js";
|
|
24
|
+
import { Placeholder } from "./capabilities/dist/placeholder/placeholder-elements.js";
|
|
25
|
+
import { Shape } from "./capabilities/dist/shape/shape-elements.js";
|
|
26
|
+
import { Cell, Row, Table } from "./capabilities/dist/table/table-elements.js";
|
|
27
|
+
import { P, SlideNumber, Span, Sub, Sup, Text } from "./capabilities/dist/text/text-elements.js";
|
|
28
|
+
import "./core/dist/index.js";
|
|
29
|
+
import "./core/dist/capability.js";
|
|
30
|
+
import { defineSlideLayout } from "./capabilities/dist/document.js";
|
|
31
|
+
export { AuthorQuery, AuthorQueryError, Box, Cell, Chart, CommonContainer, CommonNode, Deck, DeckContainer, Group, Image, Line, MotionScope, Mount, Notes, P, Placeholder, RichTextContainer, Row, Section, Shape, Slide, SlideContainer, SlideLayout, SlideLayoutContainer, SlideMaster, SlideMasterContainer, SlideNumber, Span, Step, Sub, Sup, Table, Text, after, appear, appendJSX, blockArc, breathe, buildDiagnosticSchema, collapse, createMorphScope, createMotionScopeHandle, darker, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, expandDocument, expandFragment, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, fromVanilla, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, linearGradient, motionSchedule, nativeColorSlots, onStep, path, preset, radialGradient, repeat, schemeColorNames, schemeColorSlots, spin, spinIn, spinOut, stretch, themeFontSlots, transitions, useMotionScope, wipe, wipeOut, zoom, zoomOut };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./document-41spD7bq.js";
|
|
2
|
+
import "./index-cK2KtukZ.js";
|
|
3
|
+
import { Ct as SealedShowMechanism, mt as SlideCapabilityModule, z as BoundSlideCapability } from "./capability-BbKW9w4O.js";
|
|
4
|
+
/**
|
|
5
|
+
* Bound transition module: validates transition & advanceAfter once per slide, layout, or master
|
|
6
|
+
* during bind, submits generic continuity matching collaboration for Morph, and leaves static preview untouched.
|
|
7
|
+
*/
|
|
8
|
+
declare const transitionCapability: SlideCapabilityModule<BoundSlideCapability, readonly [SealedShowMechanism<"transition-fade">, SealedShowMechanism<"transition-strips">, SealedShowMechanism<"transition-push">, SealedShowMechanism<"transition-flip">, SealedShowMechanism<"transition-morph">]>;
|
|
9
|
+
export { transitionCapability as t };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { r as ArrowType } from "./index-cK2KtukZ.js";
|
|
2
|
+
import { $r as lighter, A as isSlideLayoutDefinition, An as CustomGeometry, Bn as PaddingStyle, Br as defineTheme, C as SlideLayoutDefinition, Cn as PlaceholderMap, Cr as ThemeColor, Dn as TextList, Dr as ThemeOverride, En as PlaceholderStyle, Er as ThemeInput, Et as BuildDiagnostic, Fn as PresetGeometryName, G as FontUsage, In as LayoutLength, Jr as isNativeColorSlot, Ln as LayoutSpacing, Lr as darker, Mn as GeometryPath, Nn as PathCommand, On as TextPlaceholderRole, Or as ThemeShade, Pn as PresetGeometry, Q as Rect, Qn as ColorValue, Qr as isThemeFontSlot, Rn as LayoutStyle, Rr as defaultColorMap, S as SlideLayoutDataProps, Sn as PlaceholderListStyles, Sr as Theme, T as SlideLayoutType, Tn as PlaceholderSize, Tr as ThemeFontSlot, W as FontStyleDescriptor, X as ObjectTransform, Xn as ColorMap, Xr as isSchemeColorSlot, Yr as isSchemeColorName, Zn as ColorMapOverride, Zr as isTheme, _ as FooterPlaceholders, _n as MasterPlaceholderMap, _r as SchemeColorName, _t as UnmeasuredFontIssue, a as CommonNode, ar as FontSize, b as ResolvedPlaceholder, bn as NativePlaceholderRef, br as TextAlignment, bt as createMorphScope, c as DocumentStyle, cr as HexColor, d as RichTextItem, dt as ResolvedTableCell, ei as nativeColorSlots, en as LinkTarget, er as Font, f as SlideContainer, ft as ResolvedTableRow, g as FooterPlaceholderSpec, gn as LayoutPlaceholderSpec, gr as RadialGradient, gt as TextMetrics, h as StyleUpdate, hn as EmptyPlaceholderMap, hr as NativeColorSlot, ht as SlideLocator, i as CommonContainer, in as SlideNumberValue, ir as FontReference, it as ResolvedFooterSlot, jn as Geometry, kr as VisualStyle, l as DocumentUpdate, lt as ResolvedSlide, m as SlideMasterContainer, mn as ContentPlaceholderRole, mr as LinearGradient, n as AuthorQuery, ni as schemeColorSlots, nn as SlideBackground, nr as FontFaceStyle, o as DeckContainer, oi as themeFontSlots, or as FormatScheme, ot as ResolvedLayout, p as SlideLayoutContainer, pr as LineHeight, pt as ScreenPoint, r as AuthorQueryError, rn as SlideFooterValue, rr as FontOptions, rt as ResolvedFooter, s as DocumentProps, sr as GradientStop, st as ResolvedObject, t as AuthorNodeGuard, ti as schemeColorNames, tr as FontFace, u as RichTextContainer, ui as AuthorId, ut as ResolvedTable, v as HeaderFooter, vn as MasterPlaceholderSpec, vr as SchemeColorSlot, vt as MorphKey, wn as PlaceholderOrient, wr as ThemeData, x as ResolvedSlideLayout, xn as PlaceholderLevelStyle, xr as TextStyle, xt as isMorphKey, y as ResolvedMaster, yn as MasterTextStyles, yr as Shadow, yt as MorphScope, zr as defaultTheme, zt as buildDiagnosticSchema } from "./capability-BbKW9w4O.js";
|
|
3
|
+
import { $ as defineSlideLayout, $n as ChartTitle, $r as floatUp, $t as MotionDependency, A as SlideLayoutAuthorProps, Ai as InstantEffectOptions, An as ChartAxisReferences, At as ShapeTextStyle, B as SpanNode, Bi as MotionStepAuthorProps, Bn as ChartGroup, Br as ResolvedMotionStep, Bt as TableSpacing, C as PlaceholderAuthorProps, Ci as EmphasisEffectDeclaration, Cn as ImageSource, Cr as PathOptions, Ct as StandardTransition, D as ShapeAuthorProps, Di as ExitEffectDeclaration, Dn as ChartAxis, Dt as TransitionDuration, E as SectionNode, Ei as ExitEffect, En as ChartNode, Er as preset, Et as TransitionDirection, F as SlideNode, Fi as MotionMomentOffset, Fn as ChartDataLabels, Fr as MotionNativeProjection, G as TableAuthorProps, Gi as OwnerMotionStep, Gn as ChartMarker, Gr as collapse, H as SubNode, Hi as MotionTiming, Hn as ChartKind, Hr as after, Ht as TableTextStyle, I as SlideNumberAuthorProps, Ii as MotionProps, In as ChartDisplayBlanksAs, It as TableCellStyle, J as TextNode, Ji as RepeatedEffect, Jr as fade, Jt as NotesDeclarationProps, K as TextAuthorProps, Ki as OwnerMotionTarget, Kn as ChartMarkerSymbol, Kr as createMotionScopeHandle, L as SlideNumberNode, Li as MotionScopeAuthorProps, Ln as ChartErrorBarInclude, Lr as MotionStartDependency, Lt as TableColumn, M as SlideLayoutSource, Mi as MotionDirection, Mn as ChartCategoryAxisReferences, Mt as RowNode, N as SlideMasterAuthorProps, Ni as MotionGranularity, Nn as ChartCustomErrorBars, Nt as TableNode, O as ShapeNode, Oi as ExitPreset, On as ChartAxisCrossing, Or as ParagraphStyle, Ot as TransitionSpeed, P as SlideMasterNode, Pi as MotionMoment, Pn as ChartDataLabelOverride, Q as deck, Qn as ChartTickMark, Qr as floatOut, Qt as MotionDecision, R as SpanAuthorProps, Ri as MotionScopeHandle, Rn as ChartErrorBarValues, Rr as ResolvedMotionEffect, S as ParagraphNode, Si as EmphasisEffect, Sr as radialGradient, St as MorphTransition, T as SectionAuthorProps, Ti as EntranceEffectDeclaration, Tr as path, Tt as Transition, U as SupAuthorProps, Ui as OwnerMotion, Un as ChartLine, Ur as appear, Ut as TableVerticalAlign, V as SubAuthorProps, Vi as MotionTargetRange, Vn as ChartGroupData, Vt as TableStyle, W as SupNode, Wi as OwnerMotionEffect, Wn as ChartLineDash, Wr as breathe, X as cell, Xi as SteppedEffect, Xn as ChartSeriesDataLabelOverride, Xr as fillColor, Xt as MotionCue, Y as box, Yi as SpinOptions, Yn as ChartSeries, Yr as fadeOut, Yt as EffectInstance, Z as chart, Zn as ChartTickLabelPosition, Zr as floatDown, Zt as MotionCueRef, _ as MotionStepNode, _i as BreatheOptions, _n as LineLayoutStyle, _r as ScatterLine, _t as sup, a as DeckAuthorProps, ai as spinIn, an as MotionSchedule, ar as DoughnutChartGroup, at as paragraph, b as ParagraphAuthorProps, bi as EffectOptions, bn as LineStyle, br as LineStrokeValue, c as GroupNode, ci as wipe, cn as MotionScopeSchedule, cr as LineOrAreaChartGroup, ct as section, d as ImperativePlaceholders, di as zoomOut, dn as MotionTime, dr as ScatterChartPoint, dt as slideLayout, ei as fly, en as MotionDifference, er as ChartTrendline, et as group, f as InferPlaceholderMap, fi as font, fn as ResolvedMotionMoment, fr as ScatterChartSeries, ft as slideMaster, g as MotionScopeNode, gi as BreatheEffect, gn as LineEndpoint, gr as ScatterErrorBars, gt as sub, h as LineNode, hi as MorphProps, hr as ScatterDataLabels, ht as step, i as ChartAuthorProps, ii as spin, in as MotionMomentRef, ir as ColumnOrBarChartGroup, it as notes, j as SlideLayoutNode, ji as MotionCompletionState, jn as ChartCategoryAxis, jt as CellNode, k as SlideAuthorProps, ki as FillColorOptions, kn as ChartAxisPosition, kr as RunTextStyle, kt as transitions, l as ImageAuthorProps, li as wipeOut, ln as MotionStepQuery, lr as PieChartGroup, lt as shape, m as LineAuthorProps, mn as LineAdjust, mr as ScatterDataLabelOverride, mt as span, n as BoxNode, ni as onStep, nn as MotionIntervalRef, nr as ChartValueAxis, nt as line, o as DeckNode, oi as spinOut, on as MotionScopeQueryMember, or as IndependentCategoryData, ot as placeholder, pi as fromFontCollection, pn as motionSchedule, pr as ScatterData, pt as slideNumber, q as TextContent, qi as RepeatCount, qn as ChartPoint, qr as disappear, qt as PlaceholderNode, r as CellAuthorProps, ri as repeat, rn as MotionMembership, rr as ChartXYAxisReferences, rt as motionScope, s as GroupAuthorProps, si as stretch, sn as MotionScopeRef, sr as IndependentCategorySeries, st as row, t as BoxAuthorProps, ti as flyOut, tn as MotionEffectRef, tr as ChartTrendlineType, tt as image, u as ImageNode, ui as zoom, un as MotionStepRef, ur as ScatterChartGroup, ut as slide, v as NotesAuthorProps, vi as Easing, vn as LinePort, vr as SharedCategoryData, vt as table, w as RowAuthorProps, wi as EntranceEffect, wn as ImageVisualStyle, wr as blockArc, wt as StripsDirection, x as ParagraphContent, xi as EffectPreset, xn as LineVisualStyle, xr as linearGradient, xt as FlipTransition, y as NotesNode, yi as Effect, yn as LineRouting, yr as LineStroke, yt as text, z as SpanContent, zi as MotionScopeMode, zn as ChartErrorBars, zr as ResolvedMotionScope, zt as TableRowStyle } from "./document-41spD7bq.js";
|
|
4
|
+
export { type ArrowType, type AuthorId, type AuthorNodeGuard, AuthorQuery, AuthorQueryError, type BoxAuthorProps, type BoxNode, type BreatheEffect, type BreatheOptions, type BuildDiagnostic, type CellAuthorProps, type CellNode, type ChartAuthorProps, type ChartAxis, type ChartAxisCrossing, type ChartAxisPosition, type ChartAxisReferences, type ChartCategoryAxis, type ChartCategoryAxisReferences, type ChartCustomErrorBars, type ChartDataLabelOverride, type ChartDataLabels, type ChartDisplayBlanksAs, type ChartErrorBarInclude, type ChartErrorBarValues, type ChartErrorBars, type ChartGroup, type ChartGroupData, type ChartKind, type ChartLine, type ChartLineDash, type ChartMarker, type ChartMarkerSymbol, type ChartNode, type ChartPoint, type ChartSeries, type ChartSeriesDataLabelOverride, type ChartTickLabelPosition, type ChartTickMark, type ChartTitle, type ChartTrendline, type ChartTrendlineType, type ChartValueAxis, type ChartXYAxisReferences, type ColorMap, type ColorMapOverride, type ColorValue, type ColumnOrBarChartGroup, CommonContainer, CommonNode, type ContentPlaceholderRole, type CustomGeometry, type DeckAuthorProps, DeckContainer, type DeckNode, type DocumentProps, type DocumentStyle, type DocumentUpdate, type DoughnutChartGroup, type Easing, type Effect, type EffectInstance, type EffectOptions, type EffectPreset, type EmphasisEffect, type EmphasisEffectDeclaration, type EmptyPlaceholderMap, type EntranceEffect, type EntranceEffectDeclaration, type ExitEffect, type ExitEffectDeclaration, type ExitPreset, type FillColorOptions, type FlipTransition, type Font, type FontFace, type FontFaceStyle, type FontOptions, type FontReference, type FontSize, type FontStyleDescriptor, type FontUsage, type FooterPlaceholderSpec, type FooterPlaceholders, type FormatScheme, type Geometry, type GeometryPath, type GradientStop, type GroupAuthorProps, type GroupNode, type HeaderFooter, type HexColor, type ImageAuthorProps, type ImageNode, type ImageSource, type ImageVisualStyle, type ImperativePlaceholders, type IndependentCategoryData, type IndependentCategorySeries, type InferPlaceholderMap, type InstantEffectOptions, type LayoutLength, type LayoutPlaceholderSpec, type LayoutSpacing, type LayoutStyle, type LineAdjust, type LineAuthorProps, type LineEndpoint, type LineHeight, type LineLayoutStyle, type LineNode, type LineOrAreaChartGroup, type LinePort, type LineRouting, type LineStroke, type LineStrokeValue, type LineStyle, type LineVisualStyle, type LinearGradient, type LinkTarget, type MasterPlaceholderMap, type MasterPlaceholderSpec, type MasterTextStyles, type MorphKey, type MorphProps, type MorphScope, type MorphTransition, type MotionCompletionState, type MotionCue, type MotionCueRef, type MotionDecision, type MotionDependency, type MotionDifference, type MotionDirection, type MotionEffectRef, type MotionGranularity, type MotionIntervalRef, type MotionMembership, type MotionMoment, type MotionMomentOffset, type MotionMomentRef, type MotionNativeProjection, type MotionProps, type MotionSchedule, type MotionScopeAuthorProps, type MotionScopeHandle, type MotionScopeMode, type MotionScopeNode, type MotionScopeQueryMember, type MotionScopeRef, type MotionScopeSchedule, type MotionStartDependency, type MotionStepAuthorProps, type MotionStepNode, type MotionStepQuery, type MotionStepRef, type MotionTargetRange, type MotionTime, type MotionTiming, type NativeColorSlot, type NativePlaceholderRef, type NotesAuthorProps, type NotesDeclarationProps, type NotesNode, type ObjectTransform, type OwnerMotion, type OwnerMotionEffect, type OwnerMotionStep, type OwnerMotionTarget, type PaddingStyle, type ParagraphAuthorProps, type ParagraphContent, type ParagraphNode, type ParagraphStyle, type PathCommand, type PathOptions, type PieChartGroup, type PlaceholderAuthorProps, type PlaceholderLevelStyle, type PlaceholderListStyles, type PlaceholderMap, type PlaceholderNode, type PlaceholderOrient, type PlaceholderSize, type PlaceholderStyle, type PresetGeometry, type PresetGeometryName, type RadialGradient, type Rect, type RepeatCount, type RepeatedEffect, type ResolvedFooter, type ResolvedFooterSlot, type ResolvedLayout, type ResolvedMaster, type ResolvedMotionEffect, type ResolvedMotionMoment, type ResolvedMotionScope, type ResolvedMotionStep, type ResolvedObject, type ResolvedPlaceholder, type ResolvedSlide, type ResolvedSlideLayout, type ResolvedTable, type ResolvedTableCell, type ResolvedTableRow, RichTextContainer, type RichTextItem, type RowAuthorProps, type RowNode, type RunTextStyle, type ScatterChartGroup, type ScatterChartPoint, type ScatterChartSeries, type ScatterData, type ScatterDataLabelOverride, type ScatterDataLabels, type ScatterErrorBars, type ScatterLine, type SchemeColorName, type SchemeColorSlot, type ScreenPoint, type SectionAuthorProps, type SectionNode, type Shadow, type ShapeAuthorProps, type ShapeNode, type ShapeTextStyle, type SharedCategoryData, type SlideAuthorProps, type SlideBackground, SlideContainer, type SlideFooterValue, type SlideLayoutAuthorProps, SlideLayoutContainer, type SlideLayoutDataProps, type SlideLayoutDefinition, type SlideLayoutNode, type SlideLayoutSource, type SlideLayoutType, type SlideLocator, type SlideMasterAuthorProps, SlideMasterContainer, type SlideMasterNode, type SlideNode, type SlideNumberAuthorProps, type SlideNumberNode, type SlideNumberValue, type SpanAuthorProps, type SpanContent, type SpanNode, type SpinOptions, type StandardTransition, type SteppedEffect, type StripsDirection, type StyleUpdate, type SubAuthorProps, type SubNode, type SupAuthorProps, type SupNode, type TableAuthorProps, type TableCellStyle, type TableColumn, type TableNode, type TableRowStyle, type TableSpacing, type TableStyle, type TableTextStyle, type TableVerticalAlign, type TextAlignment, type TextAuthorProps, type TextContent, type TextList, type TextMetrics, type TextNode, type TextPlaceholderRole, type TextStyle, type Theme, type ThemeColor, type ThemeData, type ThemeFontSlot, type ThemeInput, type ThemeOverride, type ThemeShade, type Transition, type TransitionDirection, type TransitionDuration, type TransitionSpeed, type UnmeasuredFontIssue, type VisualStyle, after, appear, blockArc, box, breathe, buildDiagnosticSchema, cell, chart, collapse, createMorphScope, createMotionScopeHandle, darker, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, line, linearGradient, motionSchedule, motionScope, nativeColorSlots, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, schemeColorNames, schemeColorSlots, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, themeFontSlots, transitions, wipe, wipeOut, zoom, zoomOut };
|
package/dist/vanilla.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createMorphScope, isMorphKey } from "./core/dist/morph.js";
|
|
2
|
+
import { darker, defaultColorMap, defaultTheme, defineTheme, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isTheme, isThemeFontSlot, lighter, nativeColorSlots, schemeColorNames, schemeColorSlots, themeFontSlots } from "./core/dist/theme.js";
|
|
3
|
+
import { isSlideLayoutDefinition } from "./core/dist/masters.js";
|
|
4
|
+
import { buildDiagnosticSchema } from "./core/dist/stage-options.js";
|
|
5
|
+
import "./core/dist/index.js";
|
|
6
|
+
import { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer } from "./core/dist/document.js";
|
|
7
|
+
import { after, appear, breathe, collapse, createMotionScopeHandle, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, onStep, repeat, spin, spinIn, spinOut, stretch, wipe, wipeOut, zoom, zoomOut } from "./capabilities/dist/motion/motion-api.js";
|
|
8
|
+
import "./core/dist/capability.js";
|
|
9
|
+
import { blockArc, path, preset } from "./capabilities/dist/shared/geometry.js";
|
|
10
|
+
import { linearGradient, radialGradient } from "./capabilities/dist/shared/visual.js";
|
|
11
|
+
import { motionSchedule } from "./capabilities/dist/motion/motion-query.js";
|
|
12
|
+
import { font, fromFontCollection } from "./capabilities/dist/font/font.js";
|
|
13
|
+
import { transitions } from "./capabilities/dist/transition/transition-api.js";
|
|
14
|
+
import { box, cell, chart, deck, defineSlideLayout, group, image, line, motionScope, notes, paragraph, placeholder, row, section, shape, slide, slideLayout, slideMaster, slideNumber, span, step, sub, sup, table, text } from "./capabilities/dist/document.js";
|
|
15
|
+
export { AuthorQuery, AuthorQueryError, CommonContainer, CommonNode, DeckContainer, RichTextContainer, SlideContainer, SlideLayoutContainer, SlideMasterContainer, after, appear, blockArc, box, breathe, buildDiagnosticSchema, cell, chart, collapse, createMorphScope, createMotionScopeHandle, darker, deck, defaultColorMap, defaultTheme, defineSlideLayout, defineTheme, disappear, fade, fadeOut, fillColor, floatDown, floatOut, floatUp, fly, flyOut, font, fromFontCollection, group, image, isMorphKey, isNativeColorSlot, isSchemeColorName, isSchemeColorSlot, isSlideLayoutDefinition, isTheme, isThemeFontSlot, lighter, line, linearGradient, motionSchedule, motionScope, nativeColorSlots, notes, onStep, paragraph, path, placeholder, preset, radialGradient, repeat, row, schemeColorNames, schemeColorSlots, section, shape, slide, slideLayout, slideMaster, slideNumber, span, spin, spinIn, spinOut, step, stretch, sub, sup, table, text, themeFontSlots, transitions, wipe, wipeOut, zoom, zoomOut };
|
package/package.json
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@officedk/pptxdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "From TypeScript to PowerPoint and back.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/officedk/pptxdk.git",
|
|
9
|
+
"directory": "packages/pptxdk"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"pptxdk": "./dist/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./dist/index.js",
|
|
20
|
+
"./build": "./dist/build.js",
|
|
21
|
+
"./react": "./dist/react.js",
|
|
22
|
+
"./vanilla": "./dist/vanilla.js",
|
|
23
|
+
"./node": "./dist/node.js",
|
|
24
|
+
"./preview": "./dist/preview.js"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@boringparts/cli-contract": "0.7.0",
|
|
31
|
+
"@resvg/resvg-js": "2.6.2",
|
|
32
|
+
"@types/fontkit": "^2.0.9",
|
|
33
|
+
"@types/node": "^26.0.0",
|
|
34
|
+
"@types/react": "19.3.0",
|
|
35
|
+
"@xmldom/xmldom": "^0.9.12",
|
|
36
|
+
"esbuild": "^0.28.2",
|
|
37
|
+
"fflate": "^0.8.3",
|
|
38
|
+
"fontkit": "^2.0.4",
|
|
39
|
+
"harfbuzzjs": "^1.6.4",
|
|
40
|
+
"jpeg-js": "0.4.4",
|
|
41
|
+
"linebreak": "^1.1.0",
|
|
42
|
+
"pngjs": "7.0.0",
|
|
43
|
+
"react": "19.3.1",
|
|
44
|
+
"react-reconciler": "0.34.0",
|
|
45
|
+
"yoga-layout": "^3.2.1",
|
|
46
|
+
"zod": "^4.6.7"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@pptxdk/capabilities": "0.0.0",
|
|
50
|
+
"@pptxdk/codegen": "0.0.0",
|
|
51
|
+
"@pptxdk/core": "0.0.0",
|
|
52
|
+
"@pptxdk/emit": "0.0.0",
|
|
53
|
+
"@pptxdk/import": "0.0.0",
|
|
54
|
+
"@pptxdk/preview": "0.0.0",
|
|
55
|
+
"@pptxdk/react": "0.0.0",
|
|
56
|
+
"@pptxdk/tooling-config": "0.0.0",
|
|
57
|
+
"@pptxdk/validation": "0.0.0",
|
|
58
|
+
"@types/emscripten": "^1.41.6",
|
|
59
|
+
"@types/pngjs": "6.0.5",
|
|
60
|
+
"oxfmt": "^0.74.0",
|
|
61
|
+
"oxlint": "^1.89.0",
|
|
62
|
+
"oxlint-tsgolint": "^7.0.2001",
|
|
63
|
+
"rolldown": "1.2.16",
|
|
64
|
+
"rolldown-plugin-dts": "0.30.2",
|
|
65
|
+
"typescript-7": "npm:typescript@^7.0.2",
|
|
66
|
+
"vite": "8.3.5",
|
|
67
|
+
"vitest": "5.0.5"
|
|
68
|
+
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": "^26.13.0"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"format:check": "oxfmt --list-different .",
|
|
74
|
+
"format:write": "oxfmt --write .",
|
|
75
|
+
"lint": "oxlint --quiet --format=unix --ignore-pattern node_modules .",
|
|
76
|
+
"lint:fix": "oxlint --format=unix . --fix",
|
|
77
|
+
"typecheck": "tsc -p tsconfig.node.json --noEmit --pretty false",
|
|
78
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json --pretty false && rolldown -c && rm -rf dist/.declarations && chmod +x dist/cli.js",
|
|
79
|
+
"test": "vitest run",
|
|
80
|
+
"check:conditional": "node --conditions=source scripts/check-external-corpus.ts"
|
|
81
|
+
}
|
|
6
82
|
}
|
package/README.md
DELETED