@shadow-garden/bapbong-model 0.3.0 → 0.5.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/dist/index.cjs CHANGED
@@ -94,6 +94,10 @@ var schema = new import_prosemirror_model.Schema({
94
94
  // SectionConfig[] (contracts) — per-section column flow, delimited by
95
95
  // w:sectPr breaks. null/absent → one implicit single-column section.
96
96
  sections: { default: null },
97
+ // PageConfig (contracts) — page size + margins in CSS px, from the
98
+ // body w:sectPr. Edited via setDocAttribute (page-setup commands) so
99
+ // orientation/paper-size changes undo cleanly. null → A4 default.
100
+ page: { default: null },
97
101
  // CommentNode[] (contracts) — comment threads keyed to `comment` marks.
98
102
  // Edited via setDocAttribute so add/reply/resolve/delete undo cleanly.
99
103
  comments: { default: null }
@@ -178,7 +182,8 @@ var schema = new import_prosemirror_model.Schema({
178
182
  height: { default: null },
179
183
  // wp:anchor (floating image): { wrap: 'square'|'topAndBottom'|'none',
180
184
  // hAlign?, hOffset?, hRel?, vOffset?, vRel?, distL?, distR?, distT?,
181
- // distB? } in px, or null for inline images. Importer-set.
185
+ // distB?, behind? } in px (behind = behindDoc: paint under the text),
186
+ // or null for inline images. Importer-set.
182
187
  float: { default: null },
183
188
  // Drawn vector shape (wps rect / straight connector) riding this box:
184
189
  // { kind: 'rect'|'line', stroke?, strokeWidth?, fill?, flipV? } — src
package/dist/index.js CHANGED
@@ -66,6 +66,10 @@ var schema = new Schema({
66
66
  // SectionConfig[] (contracts) — per-section column flow, delimited by
67
67
  // w:sectPr breaks. null/absent → one implicit single-column section.
68
68
  sections: { default: null },
69
+ // PageConfig (contracts) — page size + margins in CSS px, from the
70
+ // body w:sectPr. Edited via setDocAttribute (page-setup commands) so
71
+ // orientation/paper-size changes undo cleanly. null → A4 default.
72
+ page: { default: null },
69
73
  // CommentNode[] (contracts) — comment threads keyed to `comment` marks.
70
74
  // Edited via setDocAttribute so add/reply/resolve/delete undo cleanly.
71
75
  comments: { default: null }
@@ -150,7 +154,8 @@ var schema = new Schema({
150
154
  height: { default: null },
151
155
  // wp:anchor (floating image): { wrap: 'square'|'topAndBottom'|'none',
152
156
  // hAlign?, hOffset?, hRel?, vOffset?, vRel?, distL?, distR?, distT?,
153
- // distB? } in px, or null for inline images. Importer-set.
157
+ // distB?, behind? } in px (behind = behindDoc: paint under the text),
158
+ // or null for inline images. Importer-set.
154
159
  float: { default: null },
155
160
  // Drawn vector shape (wps rect / straight connector) riding this box:
156
161
  // { kind: 'rect'|'line', stroke?, strokeWidth?, fill?, flipV? } — src
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAgF3C;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,2PA4YjB,CAAC;AAEH,wEAAwE;AACxE,MAAM,MAAM,aAAa,GAAG,OAAO,MAAM,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,yDA0CxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AAEjD,qDAAqD;AACrD,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAE5D;+EAC+E;AAC/E,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,2EAA2E;AAC3E,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,cAA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AAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;CACvC;AA0BD;;;4EAG4E;AAC5E,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shadow-garden/bapbong-model",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "bapbong — ProseMirror document model / schema",
5
5
  "license": "MIT",
6
6
  "repository": {