@shadow-garden/bapbong-model 0.2.0 → 0.2.1

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
@@ -98,7 +98,10 @@ var schema = new import_prosemirror_model.Schema({
98
98
  // w:spacing — { before?, after?, line?, lineRule? }, or null.
99
99
  spacing: { default: null },
100
100
  // w:pageBreakBefore — start this paragraph on a new page.
101
- pageBreakBefore: { default: false }
101
+ pageBreakBefore: { default: false },
102
+ // w:pBdr — { top?, bottom?, left?, right? } of BorderSide, or null.
103
+ // Importer-set; painted as a box around the paragraph's lines.
104
+ borders: { default: null }
102
105
  },
103
106
  // HTML paste path: recover heading level from h1–h6 and alignment from
104
107
  // inline style. Other attrs (list/indent/tabs/spacing) stay importer-only
@@ -233,8 +236,10 @@ var schema = new import_prosemirror_model.Schema({
233
236
  // w:shd w:fill — cell fill "#RRGGBB"
234
237
  vAlign: { default: null },
235
238
  // w:vAlign — 'center' | 'bottom' (top default)
236
- borders: { default: null }
239
+ borders: { default: null },
237
240
  // w:tcBorders per-side visibility override
241
+ padding: { default: null }
242
+ // w:tcMar per-side margin override (px)
238
243
  },
239
244
  parseDOM: [{ tag: "td" }, { tag: "th" }],
240
245
  toDOM(node) {
package/dist/index.js CHANGED
@@ -70,7 +70,10 @@ var schema = new Schema({
70
70
  // w:spacing — { before?, after?, line?, lineRule? }, or null.
71
71
  spacing: { default: null },
72
72
  // w:pageBreakBefore — start this paragraph on a new page.
73
- pageBreakBefore: { default: false }
73
+ pageBreakBefore: { default: false },
74
+ // w:pBdr — { top?, bottom?, left?, right? } of BorderSide, or null.
75
+ // Importer-set; painted as a box around the paragraph's lines.
76
+ borders: { default: null }
74
77
  },
75
78
  // HTML paste path: recover heading level from h1–h6 and alignment from
76
79
  // inline style. Other attrs (list/indent/tabs/spacing) stay importer-only
@@ -205,8 +208,10 @@ var schema = new Schema({
205
208
  // w:shd w:fill — cell fill "#RRGGBB"
206
209
  vAlign: { default: null },
207
210
  // w:vAlign — 'center' | 'bottom' (top default)
208
- borders: { default: null }
211
+ borders: { default: null },
209
212
  // w:tcBorders per-side visibility override
213
+ padding: { default: null }
214
+ // w:tcMar per-side margin override (px)
210
215
  },
211
216
  parseDOM: [{ tag: "td" }, { tag: "th" }],
212
217
  toDOM(node) {
@@ -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;AA0C3C;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,2PA8VjB,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,cAAc;IAC7B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,C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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.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "bapbong — ProseMirror document model / schema",
5
5
  "license": "MIT",
6
6
  "repository": {