@stll/folio-core 0.1.3 → 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.
Files changed (75) hide show
  1. package/dist/docx/index.d.ts +2 -0
  2. package/dist/docx/index.js +2 -0
  3. package/dist/docx/wrapTypes.d.ts +8 -1
  4. package/dist/docx/wrapTypes.js +0 -8
  5. package/dist/i18n/messages/catalogs.gen.d.ts +2776 -0
  6. package/dist/i18n/messages/catalogs.gen.js +2742 -0
  7. package/dist/i18n/messages/messages.gen.d.ts +166 -0
  8. package/dist/i18n/messages/messages.gen.js +0 -0
  9. package/dist/i18n/messages.d.ts +13 -0
  10. package/dist/i18n/messages.js +39 -0
  11. package/dist/layout-bridge/cellSelectionHighlight.d.ts +18 -0
  12. package/dist/layout-bridge/cellSelectionHighlight.js +36 -0
  13. package/dist/layout-bridge/headerFooterLayout.d.ts +50 -0
  14. package/dist/layout-bridge/headerFooterLayout.js +216 -0
  15. package/dist/layout-bridge/measuring/measureBlocksPipeline.d.ts +33 -0
  16. package/dist/layout-bridge/measuring/measureBlocksPipeline.js +0 -0
  17. package/dist/layout-bridge/sectionColumns.d.ts +11 -0
  18. package/dist/layout-bridge/sectionColumns.js +21 -0
  19. package/dist/layout-bridge/tableInsertHover.d.ts +42 -0
  20. package/dist/layout-bridge/tableInsertHover.js +102 -0
  21. package/dist/layout-engine/index.d.ts +2 -1
  22. package/dist/layout-engine/index.js +2 -1
  23. package/dist/layout-engine/measure/measureParagraph.js +40 -5
  24. package/dist/layout-engine/pmPageIndex.d.ts +24 -0
  25. package/dist/layout-engine/pmPageIndex.js +37 -0
  26. package/dist/layout-painter/imageLayout.d.ts +101 -0
  27. package/dist/layout-painter/imageLayout.js +161 -0
  28. package/dist/layout-painter/renderPage.d.ts +16 -1
  29. package/dist/layout-painter/renderPage.js +28 -1
  30. package/dist/layout-painter/renderParagraph.js +1 -1
  31. package/dist/layout-painter/sdtBoundary.d.ts +24 -1
  32. package/dist/layout-painter/sdtBoundary.js +40 -1
  33. package/dist/managers/AutoSaveManager.d.ts +89 -0
  34. package/dist/managers/AutoSaveManager.js +279 -0
  35. package/dist/managers/ClipboardManager.d.ts +31 -0
  36. package/dist/managers/ClipboardManager.js +147 -0
  37. package/dist/paged-layout/rangeProjection.d.ts +23 -1
  38. package/dist/paged-layout/rangeProjection.js +34 -1
  39. package/dist/prosemirror/cellDragSelection.d.ts +34 -0
  40. package/dist/prosemirror/cellDragSelection.js +69 -0
  41. package/dist/prosemirror/commands/sectionBreak.d.ts +15 -0
  42. package/dist/prosemirror/commands/sectionBreak.js +54 -0
  43. package/dist/prosemirror/commentIdAllocator.d.ts +32 -0
  44. package/dist/prosemirror/commentIdAllocator.js +35 -0
  45. package/dist/prosemirror/commentOps.d.ts +35 -0
  46. package/dist/prosemirror/commentOps.js +104 -0
  47. package/dist/prosemirror/conversion/toProseDoc.js +29 -6
  48. package/dist/prosemirror/extensions/index.d.ts +3 -0
  49. package/dist/prosemirror/extensions/index.js +3 -0
  50. package/dist/prosemirror/imageCommit.d.ts +42 -0
  51. package/dist/prosemirror/imageCommit.js +118 -0
  52. package/dist/prosemirror/paraText.d.ts +26 -0
  53. package/dist/prosemirror/paraText.js +73 -0
  54. package/dist/prosemirror/plugins/templateDirectives.d.ts +21 -1
  55. package/dist/prosemirror/plugins/templateDirectives.js +40 -1
  56. package/dist/prosemirror/queries.d.ts +46 -0
  57. package/dist/prosemirror/queries.js +74 -0
  58. package/dist/prosemirror/styles/styleResolver.d.ts +43 -1
  59. package/dist/prosemirror/styles/styleResolver.js +34 -0
  60. package/dist/prosemirror/tableResize.d.ts +49 -0
  61. package/dist/prosemirror/tableResize.js +162 -0
  62. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +106 -0
  63. package/dist/prosemirror/utils/extractTrackedChanges.js +379 -0
  64. package/dist/prosemirror/utils/visualLineNavigation.d.ts +27 -0
  65. package/dist/prosemirror/utils/visualLineNavigation.js +217 -0
  66. package/dist/style-engine/index.d.ts +2 -2
  67. package/dist/style-engine/styleEngine.d.ts +14 -1
  68. package/dist/style-engine/styleEngine.js +15 -0
  69. package/dist/utils/colorResolver.d.ts +8 -1
  70. package/dist/utils/colorResolver.js +12 -1
  71. package/dist/utils/findVerticalScrollParent.d.ts +20 -0
  72. package/dist/utils/findVerticalScrollParent.js +30 -0
  73. package/dist/utils/fontResolver.d.ts +22 -3
  74. package/dist/utils/fontResolver.js +216 -31
  75. package/package.json +9 -1
@@ -0,0 +1,2 @@
1
+ import { getCachedNumberingMap } from "./numberingParser.js";
2
+ export { getCachedNumberingMap };
@@ -0,0 +1,2 @@
1
+ import { getCachedNumberingMap } from "./numberingParser.js";
2
+ export { getCachedNumberingMap };
@@ -7,6 +7,13 @@
7
7
  * which OOXML wrap variants are floating, which paint over body text, and
8
8
  * which wrap around it.
9
9
  */
10
+ /**
11
+ * OOXML text-wrap variants for a drawing anchor (`wp:inline` vs the
12
+ * `wp:wrap*` elements). `inline` keeps the object in the text run; every other
13
+ * variant takes it out of inline flow. Mirrors the eigenpal docx-editor union
14
+ * so adapters share one wrap vocabulary.
15
+ */
16
+ type WrapType = "inline" | "square" | "tight" | "through" | "topAndBottom" | "behind" | "inFront";
10
17
  /**
11
18
  * `true` for any wrap type that takes the object out of inline flow.
12
19
  * Includes `topAndBottom` and the wrapNone variants (`behind`/`inFront`):
@@ -26,4 +33,4 @@ declare function isWrapNone(wrapType: string | undefined): boolean;
26
33
  */
27
34
  declare function wrapsAroundText(wrapType: string | undefined): boolean;
28
35
  //#endregion
29
- export { isFloatingWrapType, isWrapNone, wrapsAroundText };
36
+ export { WrapType, isFloatingWrapType, isWrapNone, wrapsAroundText };
@@ -1,12 +1,4 @@
1
1
  //#region src/docx/wrapTypes.ts
2
- /**
3
- * Wrap-type predicates shared across the layout pipeline.
4
- *
5
- * Mirrors eigenpal docx-editor `wrapTypes` so that the new textBoxFlow
6
- * predicates (eigenpal #474) and the existing image classifiers agree on
7
- * which OOXML wrap variants are floating, which paint over body text, and
8
- * which wrap around it.
9
- */
10
2
  const FLOATING_WRAP_TYPES = /* @__PURE__ */ new Set([
11
3
  "square",
12
4
  "tight",