wordinweb 0.2.4 → 0.3.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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # WordInWeb
2
2
 
3
+ For a local page that a human and an AI agent edit together, use
4
+ `useAgentDocumentSession` with `LocalDocumentSession` from
5
+ `@wordinweb/agent`. The agent package README contains the complete example.
6
+
3
7
  [**Live demo →**](https://word-in-web.com/)
4
8
 
5
9
  A Word/.docx viewer and editor for the web, embeddable as a single React component.
@@ -142,7 +146,7 @@ The object passed to `onReady`. Every command operates on the current selection
142
146
  - `insertEquation(linear)`, `insertSymbol(symbol)` — native editable OMML equations and arbitrary Unicode symbols.
143
147
  - `insertShape(preset, text?)` — floating editable DrawingML lines, rectangles, rounded rectangles, ellipses, diamonds, and text boxes. Selected objects expose exact page position, size, outline, wrapping, and layer controls.
144
148
  - `insertWordArt(text, preset?)` — editable DrawingML WordArt with plain, arch, wave, and chevron presets.
145
- - `insertChart(data)`, `updateSelectedChart(data)` — native editable ChartML with its embedded workbook.
149
+ - `insertChart(data)`, `updateSelectedChart(data)` — native editable ChartML with its embedded workbook, in column, bar, line, pie, doughnut, area, and scatter. Word-authored charts of those kinds render from their own `c:chartSpace`: series colors from the theme, axes with their number formats, gridlines, legend, data labels, and title. A 3-D, radar, surface, stock, or bubble plot renders a labeled placeholder at the chart's exact size, and `updateSelectedChart` refuses it rather than flattening it to two dimensions.
146
150
  - `insertSmartArt(data)`, `updateSelectedSmartArt(data)` — native editable SmartArt data, layout, style, colors, and cached drawing parts.
147
151
  - `setDrawingTool({ kind: "pen", color, width } | { kind: "eraser", size } | { kind: "lasso" } | null)`, `getDrawingTool()` — draw, erase, or lasso-select movable DrawingML ink.
148
152
  - `arrangeObject(action)` — align the selected image, shape, or ink group to the page; rotate it 90°; or bring it to the front/send it to the back. Arrow keys nudge selected floating objects by 1px (`Shift` = 10px).