@web-ppt/edit-core 0.6.0 → 0.8.0-beta.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +8 -0
  3. package/dist/agent/base64.d.ts +2 -0
  4. package/dist/agent/errors.d.ts +9 -0
  5. package/dist/agent/generated-schema.d.ts +6038 -0
  6. package/dist/agent/generated-validator.d.ts +6 -0
  7. package/dist/agent/index.d.ts +6 -0
  8. package/dist/agent/query.d.ts +3 -0
  9. package/dist/agent/session.d.ts +33 -0
  10. package/dist/agent/targets.d.ts +5 -0
  11. package/dist/agent/tools.d.ts +2 -0
  12. package/dist/agent/types.d.ts +126 -0
  13. package/dist/agent/validation.d.ts +2 -0
  14. package/dist/agent.js +46364 -0
  15. package/dist/commands/types.d.ts +23 -23
  16. package/dist/fill/api.d.ts +29 -0
  17. package/dist/fill/chart-seed-chart.d.ts +7 -0
  18. package/dist/fill/chart-seed-workbook.d.ts +12 -0
  19. package/dist/fill/chart-seed-xml.d.ts +12 -0
  20. package/dist/fill/chart-seed.d.ts +17 -0
  21. package/dist/fill/content.d.ts +16 -0
  22. package/dist/fill/errors.d.ts +10 -0
  23. package/dist/fill/generated-schema.d.ts +291 -0
  24. package/dist/fill/generated-validator.d.ts +6 -0
  25. package/dist/fill/index.d.ts +10 -0
  26. package/dist/fill/layouts.d.ts +24 -0
  27. package/dist/fill/package.d.ts +2 -0
  28. package/dist/fill/repair.d.ts +32 -0
  29. package/dist/fill/text-validation.d.ts +3 -0
  30. package/dist/fill/types.d.ts +60 -0
  31. package/dist/fill/validation.d.ts +10 -0
  32. package/dist/fill.js +12 -0
  33. package/dist/generate.js +53 -53
  34. package/dist/index-2ti1e4_F.js +411 -0
  35. package/dist/index-BbsPmmoy.js +4046 -0
  36. package/dist/save/notes-master.d.ts +12 -0
  37. package/dist/save.js +650 -484
  38. package/dist/{slide-parts-D0o_DDhi.js → slide-parts-zyOP9lia.js} +5 -5
  39. package/dist/types.d.ts +4 -4
  40. package/package.json +13 -3
  41. package/schemas/agent-tools.schema.json +7999 -0
  42. package/schemas/template-fill.schema.json +371 -0
@@ -1303,12 +1303,12 @@ function wn(e, t, n = /* @__PURE__ */ new Set()) {
1303
1303
  return k(a);
1304
1304
  }
1305
1305
  export {
1306
- cn as a,
1307
- pn as b,
1306
+ ht as a,
1307
+ cn as b,
1308
1308
  de as c,
1309
- vn as d,
1309
+ pn as d,
1310
1310
  gn as e,
1311
- D as f,
1311
+ vn as f,
1312
1312
  Zt as g,
1313
1313
  sn as h,
1314
1314
  an as i,
@@ -1318,7 +1318,7 @@ export {
1318
1318
  on as m,
1319
1319
  Nn as n,
1320
1320
  Tn as o,
1321
- ht as p,
1321
+ D as p,
1322
1322
  Sn as q,
1323
1323
  fn as r,
1324
1324
  dn as s,
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CellBorders, CustomGeometry, Effects, ElementBase, Fill, GeomSpec, ImageElement, OpcPackage, Paragraph, PlaceholderDirectFlags, Presentation, ShapeCreationDefaults, ShapeElement, Slide, Stroke, Transition, TableCreationDefaults, SlideElement, TableStyleDefinition, TableStyleSettings, TextBody, TextRun, TextCapsStyle, TextStrikeStyle, TextUnderlineStyle, ThemeColorScheme, ThemeColorSlot, ThemeFontScheme } from '@web-ppt/core';
1
+ import type { CellBorders, CustomGeometry, Effects, ElementBase, Fill, GeomSpec, ImageElement, OpcPackage, Paragraph, PlaceholderDirectFlags, TableCell, Presentation, ShapeCreationDefaults, ShapeElement, Slide, Stroke, Transition, TableCreationDefaults, SlideElement, TableStyleDefinition, TableStyleSettings, TextBody, TextRun, TextCapsStyle, TextStrikeStyle, TextUnderlineStyle, ThemeColorScheme, ThemeColorSlot, ThemeFontScheme, TextFontSlots, TextRunEditInfo } from '@web-ppt/core';
2
2
  import type { EmphasisAnimationEffect, EntranceExitAnimationEffect } from './animation-catalog';
3
3
  import type { ElementId, FractionalIndex, SlideId } from './identities';
4
4
  import type { ElementAltTextOverrides, SectionState } from './common-object-slide-types';
@@ -257,7 +257,7 @@ export interface TableCellOverrides {
257
257
  borders?: CellBorders;
258
258
  margins?: [number, number, number, number];
259
259
  vAlign?: 'top' | 'middle' | 'bottom';
260
- vert?: NonNullable<import('@web-ppt/core').TableCell['vert']>;
260
+ vert?: NonNullable<TableCell['vert']>;
261
261
  }
262
262
  export interface TableRowInsertion {
263
263
  readonly order: FractionalIndex;
@@ -292,11 +292,11 @@ export interface TextMark {
292
292
  /** 删除直接格式后用于恢复继承所得的有效值;只含字符格式 P0 字段。 */
293
293
  readonly inheritedProps?: RunProperties;
294
294
  /** 完整继承字符元数据;改级后不能继续沿用旧层级的非面板字段。 */
295
- readonly inheritedRunProps?: import('@web-ppt/core').TextRunEditInfo['inheritedRunProps'];
295
+ readonly inheritedRunProps?: TextRunEditInfo['inheritedRunProps'];
296
296
  /** 继承字体可能分别含 latin/ea/cs,不能为面板的单字体值而丢掉回退栈。 */
297
297
  readonly inheritedFonts?: readonly string[];
298
298
  /** 去重字体栈不足以还原脚本槽;清除 font 直设与换级重基必须保留槽位身份。 */
299
- readonly inheritedFontSlots?: import('@web-ppt/core').TextFontSlots;
299
+ readonly inheritedFontSlots?: TextFontSlots;
300
300
  /** 只说明来源链接不可安全编辑,不携带原始 action 或危险 URL。 */
301
301
  readonly sourceLinkReadonly?: true;
302
302
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-ppt/edit-core",
3
- "version": "0.6.0",
3
+ "version": "0.8.0-beta.2",
4
4
  "description": "Headless, framework-agnostic editing document model and render projection for Web-PPT.",
5
5
  "keywords": [
6
6
  "pptx",
@@ -113,6 +113,16 @@
113
113
  "types": "./dist/lint/sampler.d.ts",
114
114
  "import": "./dist/lint-sampler.js"
115
115
  },
116
+ "./agent": {
117
+ "types": "./dist/agent/index.d.ts",
118
+ "import": "./dist/agent.js"
119
+ },
120
+ "./agent/schema.json": "./schemas/agent-tools.schema.json",
121
+ "./fill": {
122
+ "types": "./dist/fill/index.d.ts",
123
+ "import": "./dist/fill.js"
124
+ },
125
+ "./fill/schema.json": "./schemas/template-fill.schema.json",
116
126
  "./ppt": {
117
127
  "types": "./dist/ppt/index.d.ts",
118
128
  "import": "./dist/ppt.js"
@@ -126,13 +136,13 @@
126
136
  "LICENSE"
127
137
  ],
128
138
  "scripts": {
129
- "postbuild": "node ../../tooling/build-agent-describe.mjs && vite build --config vite.lint.config.ts",
139
+ "postbuild": "node ../../tooling/build-agent-describe.mjs && vite build --config vite.lint.config.ts && node ../../tooling/build-agent-tools.mjs && node ../../tooling/build-template-fill.mjs",
130
140
  "build": "vite build && vite build --config vite.templates.config.ts && vite build --config vite.chart.config.ts && vite build --config vite.media.config.ts && vite build --config vite.appearance.config.ts && vite build --config vite.resize.config.ts && node ../../tooling/check-preset-handles-boundary.mjs edit-core && tsc -p tsconfig.build.json && vite build --config vite.comments.config.ts && vite build --config vite.chart-design.config.ts && vite build --config vite.chart-ex.config.ts && vite build --config vite.smartart.config.ts && vite build --config vite.cfb.config.ts && vite build --config vite.ole.config.ts && vite build --config vite.ink.config.ts && vite build --config vite.ppt.config.ts",
131
141
  "prepublishOnly": "npm run build",
132
142
  "prepack": "node ../../tooling/sync-package-docs.mjs"
133
143
  },
134
144
  "peerDependencies": {
135
- "@web-ppt/core": "^0.6.0"
145
+ "@web-ppt/core": "^0.8.0-beta.2"
136
146
  },
137
147
  "dependencies": {
138
148
  "culori": "^4.0.2",