@office-kit/pptx-editor 0.1.1 → 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.
@@ -1,7 +1,8 @@
1
+ import { a as availableOperands, c as selectedSlideIndices, l as topLevelShapes, o as selectedShapeId, r as selectionShapeRefs, s as selectedShapeIds, t as reconcileSelection } from "./shape-ref-B5iNfYWh.js";
1
2
  import { n as createAnimationPlayer } from "./animation-player-D2mt2MI8.js";
2
- import { i as sameDeck, r as mergeDecks } from "./deck-merge-B_Damj97.js";
3
+ import { i as sameDeck, r as mergeDecks } from "./deck-merge-Dj_XHQQM.js";
3
4
  import * as pptx from "@office-kit/pptx";
4
- import { BUILTIN_PICTURE_STYLES, BUILTIN_TABLE_STYLES, SLIDE_SIZE_16_10, SLIDE_SIZE_16_9, SLIDE_SIZE_4_3, addBlankSlide, addSlide, addSlideAt, addSlideChart, addSlideComment, addSlideImage, addSlideLine, addSlideMedia, addSlidePlaceholder, addSlideShape, addSlideTable, addSlideTextBox, addTitleSlide, asColor, clearAllSlideComments, clearShapeEffects, clearShapeFill, clearShapeStroke, clearSlideBackground, clearSlideComments, clearSlideTransition, clearTableCellFill, cm, compactPackage, copyShape, copySlideBackground, createPresentation, emu, findShapeById, findSlideByPartName, findSlideLayout, findSlideLayoutByPartName, findSlidePlaceholder, findSlidesByLayoutPartName, getCollapsedOutlineSlides, getCommentAuthor, getCommentParent, getCommentStatus, getCommentText, getCustomShows, getDrawingGuides, getDrawingGuidesVisible, getEffectiveColorMap, getGridSpacing, getGroupChildren, getGroupTransform, getHandoutMasterPlaceholders, getHandoutSlidesPerPage, getMaxShapeId, getNotesMasterPlaceholders, getNotesPageSize, getParagraphBulletStyle, getParagraphElementLanguages, getParagraphEndFormat, getParagraphLevel, getParagraphPropertiesEffective, getPresentationFonts, getPresentationTheme, getShape3D, getShapeBodyPrEffective, getShapeBounds, getShapeBoundsResolved, getShapeChartSpec, getShapeClickAction, getShapeCustomGeometry, getShapeDescription, getShapeEffects, getShapeFill, getShapeFillColorResolved, getShapeFillEffective, getShapeFillOpacity, getShapeFlip, getShapeGradientFill, getShapeGradientFillEffective, getShapeHyperlink, getShapeHyperlinkTooltip, getShapeId, getShapeImageArtisticEffect, getShapeImageBiLevelThreshold, getShapeImageBrightness, getShapeImageBytes, getShapeImageContrast, getShapeImageCrop, getShapeImageDuotone, getShapeImageFillBytes, getShapeImageFillLayout, getShapeImageFormat, getShapeImageIntrinsicSize, getShapeImageOpacity, getShapeKind, getShapeMedia, getShapeMediaPlayback, getShapeName, getShapeParagraphCount, getShapeParagraphElements, getShapePatternFill, getShapePictureStyle, getShapePlaceholderType, getShapePreset, getShapeRotation, getShapeRunClickAction, getShapeRunFormatEffective, getShapeRunHyperlinkTooltip, getShapeSlide, getShapeStroke, getShapeStrokeArrow, getShapeStrokeCap, getShapeStrokeColorResolved, getShapeStrokeCompound, getShapeStrokeDash, getShapeStrokeEffective, getShapeStrokeGradient, getShapeStrokeJoin, getShapeStrokeOpacity, getShapeStrokeSketch, getShapeStrokeWidth, getShapeText, getShapeText3D, getShapeTextAnchor, getShapeTextBodyRotationDeg, getShapeTextDirection, getShapeTextFlat, getShapeTextLanguage, getShapeXmlString, getSlideAnimations, getSlideBackground, getSlideBackgroundGradientFill, getSlideBackgroundImageFillLayout, getSlideBackgroundImageOpacity, getSlideBackgroundPatternFill, getSlideCharts, getSlideComments, getSlideIndex, getSlideLayout, getSlideLayoutBackground, getSlideLayoutBackgroundGradientFill, getSlideLayoutBackgroundPatternFill, getSlideLayoutName, getSlideLayoutPartName, getSlideLayoutPlaceholders, getSlideLayoutType, getSlideLayouts, getSlideMasterBackground, getSlideMasterBackgroundGradientFill, getSlideMasterBackgroundPatternFill, getSlideMasterBackgroundStyles, getSlideMasterLayouts, getSlideMasterPartName, getSlideMasterPartNames, getSlideMasterPlaceholders, getSlideMasterUsageCounts, getSlideNotes, getSlideNotesLineBreaks, getSlideNotesParagraphEndFormat, getSlideNotesTextFormats, getSlidePartName, getSlideSections, getSlideShapes, getSlideShowProperties, getSlideSize, getSlideTitle, getSlideTransition, getSlideTransitionSound, getSlides, getSnapToGrid, getTableCell, getTableCellAlignment, getTableCellAnchor, getTableCellAppearanceEffective, getTableCellFill, getTableCellMargins, getTableCellParagraphs, getTableCellPosition, getTableCellRunFormatEffective, getTableCellSpan, getTableCellText, getTableCellTextDirection, getTableCells, getTableColumnWidths, getTableRowHeights, getTableSize, getTableStyleFlags, getTableStyleId, groupShapes, hasShapeText, importSlide, inches, insertTableColumn, insertTableRow, isChartSpec, isShapeAspectRatioLocked, isShapeHidden, isShapeImageGrayscale, isShapeLocked, isShapePlaceholder, isShapeTextBox, isSlideBackgroundGraphicsHidden, isSlideHidden, isSlideLayoutBackgroundGraphicsHidden, isSlideMasterPreserved, isTableShape, loadPresentation, mergeTableCells, moveSlide, moveSlideAnimation, pt, removeShape, removeSlide, removeSlideAnimation, removeSlideComment, removeTableColumn, removeTableRow, renameShape, replaceTextInPresentation, replaceTextInSlide, resetShapeImageColorEffects, resetShapeVideoFormatting, resolveDrawingColor, resolveSlideNotesTextColor, savePresentation, setChartSpec, setCommentStatus, setCommentText, setCustomShows, setDrawingGuides, setGridSpacing, setParagraphAlignment, setParagraphBullet, setParagraphIndent, setParagraphLevel, setParagraphLineSpacing, setParagraphSpacing, setParagraphTabs, setParagraphTypography, setPresentationFonts, setPresentationTheme, setShape3D, setShapeAlignment, setShapeAnimation, setShapeAspectRatioLocked, setShapeBounds, setShapeClickAction, setShapeCustomGeometry, setShapeFill, setShapeFlip, setShapeGlow, setShapeGradientFill, setShapeHidden, setShapeHyperlink, setShapeImage, setShapeImageBrightness, setShapeImageCompressionState, setShapeImageContrast, setShapeImageCrop, setShapeImageFill, setShapeImageFillLayout, setShapeImageOpacity, setShapeImageRecolor, setShapeInnerShadow, setShapeLocked, setShapeMediaPlayback, setShapeNoFill, setShapeNoStroke, setShapeParagraphs, setShapePatternFill, setShapePictureStyle, setShapePreset, setShapeReflection, setShapeRotation, setShapeShadow, setShapeSlideBackgroundFill, setShapeSoftEdge, setShapeStroke, setShapeStrokeArrow, setShapeStrokeCap, setShapeStrokeCompound, setShapeStrokeDash, setShapeStrokeJoin, setShapeStrokeSketch, setShapeStyle, setShapeText, setShapeText3D, setShapeTextAnchor, setShapeTextAutoFit, setShapeTextColumns, setShapeTextDirection, setShapeTextField, setShapeTextFlat, setShapeTextFormat, setShapeTextLanguage, setShapeTextMargins, setShapeTextWrap, setShapeZIndex, setSlideBackground, setSlideBackgroundGradientFill, setSlideBackgroundGraphicsHidden, setSlideBackgroundImage, setSlideBackgroundImageFillLayout, setSlideBackgroundImageOpacity, setSlideBackgroundPatternFill, setSlideHidden, setSlideLayout, setSlideMasterBackgroundStyle, setSlideMasterPlaceholderIncluded, setSlideNotes, setSlideNotesFormat, setSlideOutlineCollapsed, setSlideSections, setSlideShowProperties, setSlideSize, setSlideTransition, setSlideTransitionSound, setSnapToGrid, setTableCellAlignment, setTableCellAnchor, setTableCellBorders, setTableCellClickAction, setTableCellFill, setTableCellMargins, setTableCellText, setTableCellTextDirection, setTableCellTextFormat, setTableColumnWidth, setTableRowHeight, setTableStyleFlags, setTableStyleId, splitTableCell, toWritableTextFormat, transformSlideNotesCase, updateSlideAnimation } from "@office-kit/pptx";
5
+ import { BUILTIN_PICTURE_STYLES, BUILTIN_TABLE_STYLES, SLIDE_SIZE_16_10, SLIDE_SIZE_16_9, SLIDE_SIZE_4_3, addBlankSlide, addSlide, addSlideAt, addSlideChart, addSlideComment, addSlideImage, addSlideLine, addSlideMedia, addSlidePlaceholder, addSlideShape, addSlideTable, addSlideTextBox, addTitleSlide, asColor, clearAllSlideComments, clearShapeEffects, clearShapeFill, clearShapeStroke, clearSlideBackground, clearSlideComments, clearSlideTransition, clearTableCellFill, cm, compactPackage, copyShape, copySlideBackground, createPresentation, emu, findShapeById, findSlideLayout, findSlideLayoutByPartName, findSlidePlaceholder, findSlidesByLayoutPartName, getCollapsedOutlineSlides, getCommentAuthor, getCommentParent, getCommentStatus, getCommentText, getCustomShows, getDrawingGuides, getDrawingGuidesVisible, getEffectiveColorMap, getGridSpacing, getGroupChildren, getGroupTransform, getHandoutMasterPlaceholders, getHandoutSlidesPerPage, getMaxShapeId, getNotesMasterPlaceholders, getNotesPageSize, getParagraphBulletStyle, getParagraphElementLanguages, getParagraphEndFormat, getParagraphLevel, getParagraphPropertiesEffective, getPresentationFonts, getPresentationTheme, getShape3D, getShapeBodyPrEffective, getShapeBounds, getShapeBoundsResolved, getShapeChartSpec, getShapeClickAction, getShapeCustomGeometry, getShapeDescription, getShapeEffects, getShapeFill, getShapeFillColorResolved, getShapeFillEffective, getShapeFillOpacity, getShapeFlip, getShapeGradientFill, getShapeGradientFillEffective, getShapeHyperlink, getShapeHyperlinkTooltip, getShapeId, getShapeImageArtisticEffect, getShapeImageBiLevelThreshold, getShapeImageBrightness, getShapeImageBytes, getShapeImageContrast, getShapeImageCrop, getShapeImageDuotone, getShapeImageFillBytes, getShapeImageFillLayout, getShapeImageFormat, getShapeImageIntrinsicSize, getShapeImageOpacity, getShapeKind, getShapeMedia, getShapeMediaPlayback, getShapeName, getShapeParagraphCount, getShapeParagraphElements, getShapePatternFill, getShapePictureStyle, getShapePlaceholderType, getShapePreset, getShapeRotation, getShapeRunClickAction, getShapeRunFormatEffective, getShapeRunHyperlinkTooltip, getShapeSlide, getShapeStroke, getShapeStrokeArrow, getShapeStrokeCap, getShapeStrokeColorResolved, getShapeStrokeCompound, getShapeStrokeDash, getShapeStrokeEffective, getShapeStrokeGradient, getShapeStrokeJoin, getShapeStrokeOpacity, getShapeStrokeSketch, getShapeStrokeWidth, getShapeText, getShapeText3D, getShapeTextAnchor, getShapeTextBodyRotationDeg, getShapeTextDirection, getShapeTextFlat, getShapeTextLanguage, getShapeXmlString, getSlideAnimations, getSlideBackground, getSlideBackgroundGradientFill, getSlideBackgroundImageFillLayout, getSlideBackgroundImageOpacity, getSlideBackgroundPatternFill, getSlideCharts, getSlideComments, getSlideIndex, getSlideLayout, getSlideLayoutBackground, getSlideLayoutBackgroundGradientFill, getSlideLayoutBackgroundPatternFill, getSlideLayoutName, getSlideLayoutPartName, getSlideLayoutPlaceholders, getSlideLayoutType, getSlideLayouts, getSlideMasterBackground, getSlideMasterBackgroundGradientFill, getSlideMasterBackgroundPatternFill, getSlideMasterBackgroundStyles, getSlideMasterLayouts, getSlideMasterPartName, getSlideMasterPartNames, getSlideMasterPlaceholders, getSlideMasterUsageCounts, getSlideNotes, getSlideNotesLineBreaks, getSlideNotesParagraphEndFormat, getSlideNotesTextFormats, getSlidePartName, getSlideSections, getSlideShapes, getSlideShowProperties, getSlideSize, getSlideTitle, getSlideTransition, getSlideTransitionSound, getSlides, getSnapToGrid, getTableCell, getTableCellAlignment, getTableCellAnchor, getTableCellAppearanceEffective, getTableCellFill, getTableCellMargins, getTableCellParagraphs, getTableCellPosition, getTableCellRunFormatEffective, getTableCellSpan, getTableCellText, getTableCellTextDirection, getTableCells, getTableColumnWidths, getTableRowHeights, getTableSize, getTableStyleFlags, getTableStyleId, groupShapes, hasShapeText, importSlide, inches, insertTableColumn, insertTableRow, isChartSpec, isShapeAspectRatioLocked, isShapeHidden, isShapeImageGrayscale, isShapeLocked, isShapePlaceholder, isShapeTextBox, isSlideBackgroundGraphicsHidden, isSlideHidden, isSlideLayoutBackgroundGraphicsHidden, isSlideMasterPreserved, isTableShape, loadPresentation, mergeTableCells, moveSlide, moveSlideAnimation, pt, removeShape, removeSlide, removeSlideAnimation, removeSlideComment, removeTableColumn, removeTableRow, renameShape, replaceTextInPresentation, replaceTextInSlide, resetShapeImageColorEffects, resetShapeVideoFormatting, resolveDrawingColor, resolveSlideNotesTextColor, savePresentation, setChartSpec, setCommentStatus, setCommentText, setCustomShows, setDrawingGuides, setGridSpacing, setParagraphAlignment, setParagraphBullet, setParagraphIndent, setParagraphLevel, setParagraphLineSpacing, setParagraphSpacing, setParagraphTabs, setParagraphTypography, setPresentationFonts, setPresentationTheme, setShape3D, setShapeAlignment, setShapeAnimation, setShapeAspectRatioLocked, setShapeBounds, setShapeClickAction, setShapeCustomGeometry, setShapeFill, setShapeFlip, setShapeGlow, setShapeGradientFill, setShapeHidden, setShapeHyperlink, setShapeImage, setShapeImageBrightness, setShapeImageCompressionState, setShapeImageContrast, setShapeImageCrop, setShapeImageFill, setShapeImageFillLayout, setShapeImageOpacity, setShapeImageRecolor, setShapeInnerShadow, setShapeLocked, setShapeMediaPlayback, setShapeNoFill, setShapeNoStroke, setShapeParagraphs, setShapePatternFill, setShapePictureStyle, setShapePreset, setShapeReflection, setShapeRotation, setShapeShadow, setShapeSlideBackgroundFill, setShapeSoftEdge, setShapeStroke, setShapeStrokeArrow, setShapeStrokeCap, setShapeStrokeCompound, setShapeStrokeDash, setShapeStrokeJoin, setShapeStrokeSketch, setShapeStyle, setShapeText, setShapeText3D, setShapeTextAnchor, setShapeTextAutoFit, setShapeTextColumns, setShapeTextDirection, setShapeTextField, setShapeTextFlat, setShapeTextFormat, setShapeTextLanguage, setShapeTextMargins, setShapeTextWrap, setShapeZIndex, setSlideBackground, setSlideBackgroundGradientFill, setSlideBackgroundGraphicsHidden, setSlideBackgroundImage, setSlideBackgroundImageFillLayout, setSlideBackgroundImageOpacity, setSlideBackgroundPatternFill, setSlideHidden, setSlideLayout, setSlideMasterBackgroundStyle, setSlideMasterPlaceholderIncluded, setSlideNotes, setSlideNotesFormat, setSlideOutlineCollapsed, setSlideSections, setSlideShowProperties, setSlideSize, setSlideTransition, setSlideTransitionSound, setSnapToGrid, setTableCellAlignment, setTableCellAnchor, setTableCellBorders, setTableCellClickAction, setTableCellFill, setTableCellMargins, setTableCellText, setTableCellTextDirection, setTableCellTextFormat, setTableColumnWidth, setTableRowHeight, setTableStyleFlags, setTableStyleId, splitTableCell, toWritableTextFormat, transformSlideNotesCase, updateSlideAnimation } from "@office-kit/pptx";
5
6
  import { ARIAL, MONO, SANS, SERIF, TIMES, decimalSeparatorOf, paragraphNumberLabels, renderSlideLayoutToSvg, renderSlideToSvg, renderTextEffectsSvg, resolveTextBodyRect, shapeAutoFitScale, shapeTextAnchorOffset, shapeTextRect, textColumnsStyle, textUnderlineStyle, verticalTextStyle } from "@office-kit/pptx-preview";
6
7
  //#region ../../node_modules/.pnpm/svelte@5.56.3/node_modules/svelte/src/constants.js
7
8
  const HYDRATION_ERROR = {};
@@ -12277,42 +12278,6 @@ function removeAllSections(pres) {
12277
12278
  setSlideSections(pres, []);
12278
12279
  }
12279
12280
  //#endregion
12280
- //#region src/core/selection.ts
12281
- /** Ordered slide selection; older single-slide snapshots remain compatible. */
12282
- function selectedSlideIndices(sel) {
12283
- return sel.kind === "slide" ? [...new Set(sel.slideIndices ?? [sel.slideIndex])].sort((a, b) => a - b) : [sel.slideIndex];
12284
- }
12285
- /** The primary (first) selected shape id, if any. */
12286
- function selectedShapeId(sel) {
12287
- if (sel.kind === "shape") return sel.shapeIds[0] ?? null;
12288
- if (sel.kind === "cell") return sel.shapeId;
12289
- return null;
12290
- }
12291
- /** All selected shape ids (empty unless a shape/cell selection). */
12292
- function selectedShapeIds(sel) {
12293
- if (sel.kind === "shape") return [...sel.shapeIds];
12294
- if (sel.kind === "cell") return [sel.shapeId];
12295
- return [];
12296
- }
12297
- /** Which operands the current selection can satisfy. Used to enable/disable
12298
- * commands and to route a command to the right target object. */
12299
- function availableOperands(sel) {
12300
- const set = new Set(["presentation"]);
12301
- set.add("slide");
12302
- if (sel.kind === "shape" && sel.shapeIds.length > 0) set.add("shape");
12303
- if (sel.kind === "cell") {
12304
- set.add("shape");
12305
- set.add("cell");
12306
- }
12307
- return set;
12308
- }
12309
- /** The library flattens groups; the canvas selects and transforms their outer frame. */
12310
- function topLevelShapes(slide) {
12311
- const shapes = getSlideShapes(slide);
12312
- const nestedIds = new Set(shapes.flatMap((shape) => getGroupChildren(shape).map(getShapeId)));
12313
- return shapes.filter((shape) => !nestedIds.has(getShapeId(shape)));
12314
- }
12315
- //#endregion
12316
12281
  //#region src/ribbon/arrange-actions.ts
12317
12282
  const ROTATE_ITEMS = [
12318
12283
  {
@@ -14867,6 +14832,26 @@ var capabilities$1 = [
14867
14832
  "canvas": true,
14868
14833
  "params": []
14869
14834
  },
14835
+ {
14836
+ "id": "setChartData",
14837
+ "operand": "presentation",
14838
+ "takesOperand": false,
14839
+ "category": "chart",
14840
+ "file": "api/fn/charts.ts",
14841
+ "returns": "void",
14842
+ "canvas": true,
14843
+ "params": [{
14844
+ "name": "chart",
14845
+ "type": "SlideChartData",
14846
+ "kind": "object",
14847
+ "optional": false
14848
+ }, {
14849
+ "name": "data",
14850
+ "type": "ChartData",
14851
+ "kind": "object",
14852
+ "optional": false
14853
+ }]
14854
+ },
14870
14855
  {
14871
14856
  "id": "setChartSpec",
14872
14857
  "operand": "presentation",
@@ -19848,6 +19833,7 @@ const handOverrides = {
19848
19833
  replaceTextInSlide: { labelJa: "スライド内のテキストを置換" },
19849
19834
  replaceTextInSlideNotes: { labelJa: "スライドのノート内のテキストを置換" },
19850
19835
  reverseSlides: { labelJa: "スライドの順序を反転" },
19836
+ setChartData: { labelJa: "グラフのデータの置換" },
19851
19837
  setChartSpec: { labelJa: "グラフのデータと設定" },
19852
19838
  setCoreProperties: { labelJa: "文書の基本情報" },
19853
19839
  setExtendedProperties: { labelJa: "文書の詳細情報" },
@@ -77390,75 +77376,6 @@ function EditorApp($$anchor, $$props) {
77390
77376
  /** The dev-host options of each internal mount, keyed by its `EditorOptions`. */
77391
77377
  const devHostOptions = /* @__PURE__ */ new WeakMap();
77392
77378
  //#endregion
77393
- //#region src/core/shape-ref.ts
77394
- /** The ref for `shape`, which is on a slide of `presentation`. */
77395
- function shapeRef(presentation, shape) {
77396
- const slide = getShapeSlide(shape);
77397
- return {
77398
- slideIndex: getSlides(presentation).indexOf(slide),
77399
- slide: getSlidePartName(slide),
77400
- shapeId: getShapeId(shape),
77401
- name: getShapeName(shape)
77402
- };
77403
- }
77404
- /** Refs for the shapes `selection` names (the table, for a cell selection). */
77405
- function selectionShapeRefs(presentation, selection) {
77406
- const slide = getSlides(presentation)[selection.slideIndex];
77407
- if (!slide) return [];
77408
- const partName = getSlidePartName(slide);
77409
- return selectedShapeIds(selection).flatMap((shapeId) => {
77410
- const shape = findShapeById(slide, shapeId);
77411
- return shape ? [{
77412
- slideIndex: selection.slideIndex,
77413
- slide: partName,
77414
- shapeId,
77415
- name: getShapeName(shape)
77416
- }] : [];
77417
- });
77418
- }
77419
- /**
77420
- * The shape `ref` names in `presentation`. Throws when its slide or the shape
77421
- * no longer exists, so an agent acting on an old selection fails instead of
77422
- * editing something else.
77423
- */
77424
- function resolveShape(presentation, ref) {
77425
- const slide = findSlideByPartName(presentation, ref.slide);
77426
- if (!slide) throw new Error(`Shape "${ref.name}" (id ${ref.shapeId}) is gone: its slide was deleted.`);
77427
- const shape = findShapeById(slide, ref.shapeId);
77428
- if (!shape) throw new Error(`Shape "${ref.name}" (id ${ref.shapeId}) is gone: it was deleted from slide ${ref.slide}.`);
77429
- return shape;
77430
- }
77431
- /**
77432
- * `selection` without the shapes and slides an edit removed. Selections are
77433
- * kept by index and id, so after an agent's edit they may name things that are
77434
- * gone, while the canvas, panes and ribbon expect them to exist.
77435
- */
77436
- function reconcileSelection(presentation, selection) {
77437
- const slides = getSlides(presentation);
77438
- const slide = slides[selection.slideIndex];
77439
- if (!slide) return {
77440
- kind: "none",
77441
- slideIndex: Math.max(0, slides.length - 1)
77442
- };
77443
- if (selection.kind === "none") return selection;
77444
- if (selection.kind === "slide") return (selection.slideIndices ?? [selection.slideIndex]).every((index) => index < slides.length) ? selection : {
77445
- kind: "slide",
77446
- slideIndex: selection.slideIndex
77447
- };
77448
- const live = new Set(getSlideShapes(slide).map(getShapeId));
77449
- const none = {
77450
- kind: "none",
77451
- slideIndex: selection.slideIndex
77452
- };
77453
- if (selection.kind === "cell") return live.has(selection.shapeId) ? selection : none;
77454
- const shapeIds = selection.shapeIds.filter((id) => live.has(id));
77455
- if (shapeIds.length === selection.shapeIds.length) return selection;
77456
- return shapeIds.length > 0 ? {
77457
- ...selection,
77458
- shapeIds
77459
- } : none;
77460
- }
77461
- //#endregion
77462
77379
  //#region src/core/propose.svelte.ts
77463
77380
  function idle(doc) {
77464
77381
  if (!doc.liveEditing) return Promise.resolve();
@@ -77679,7 +77596,7 @@ function mountEditor(target, options = {}) {
77679
77596
  if (destroyed) throw new Error("The editor has been destroyed.");
77680
77597
  if (!opened) throw new Error("The editor is not ready yet; await `ready` first.");
77681
77598
  }
77682
- const agentTools = () => import("./agent-tools-CEZAOXNe.js");
77599
+ const agentTools = () => import("./agent-tools-EU7Eb-FV.js").then((n) => n.t);
77683
77600
  const handle = {
77684
77601
  ready,
77685
77602
  get dirty() {
@@ -77757,6 +77674,6 @@ function mountEditor(target, options = {}) {
77757
77674
  return handle;
77758
77675
  }
77759
77676
  //#endregion
77760
- export { devHostOptions as i, resolveShape as n, shapeRef as r, mountEditor as t };
77677
+ export { devHostOptions as n, mountEditor as t };
77761
77678
 
77762
- //# sourceMappingURL=src-BrBOgen_.js.map
77679
+ //# sourceMappingURL=src-CJWOpCx6.js.map