@shadow-garden/bapbong-model 0.10.0 → 0.11.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 +3 -1
- package/dist/index.js +3 -1
- package/dist/lib/model.d.ts +6 -0
- package/dist/lib/model.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -186,7 +186,9 @@ var schema = new import_prosemirror_model.Schema({
|
|
|
186
186
|
// w:tabs — [{ pos, val: 'left'|'right'|'center'|'decimal', leader? }]
|
|
187
187
|
// in px from the paragraph's content left edge, or null. Importer-set.
|
|
188
188
|
tabs: { default: null },
|
|
189
|
-
// w:spacing — { before?, after?, line?, lineRule
|
|
189
|
+
// w:spacing — { before?, after?, line?, lineRule?, beforeAuto?,
|
|
190
|
+
// afterAuto? }, or null. The two *Auto flags record that Word computes
|
|
191
|
+
// the gap itself; before/after hold what it works out to here.
|
|
190
192
|
spacing: { default: null },
|
|
191
193
|
// w:bookmarkStart names anchored in this paragraph (["_Toc89595219"]),
|
|
192
194
|
// or null. Link hrefs of the form "#name" resolve against these —
|
package/dist/index.js
CHANGED
|
@@ -154,7 +154,9 @@ var schema = new Schema({
|
|
|
154
154
|
// w:tabs — [{ pos, val: 'left'|'right'|'center'|'decimal', leader? }]
|
|
155
155
|
// in px from the paragraph's content left edge, or null. Importer-set.
|
|
156
156
|
tabs: { default: null },
|
|
157
|
-
// w:spacing — { before?, after?, line?, lineRule
|
|
157
|
+
// w:spacing — { before?, after?, line?, lineRule?, beforeAuto?,
|
|
158
|
+
// afterAuto? }, or null. The two *Auto flags record that Word computes
|
|
159
|
+
// the gap itself; before/after hold what it works out to here.
|
|
158
160
|
spacing: { default: null },
|
|
159
161
|
// w:bookmarkStart names anchored in this paragraph (["_Toc89595219"]),
|
|
160
162
|
// or null. Link hrefs of the form "#name" resolve against these —
|
package/dist/lib/model.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ export interface Spacing {
|
|
|
35
35
|
after?: number;
|
|
36
36
|
line?: number;
|
|
37
37
|
lineRule?: 'auto' | 'exact' | 'atLeast';
|
|
38
|
+
/** w:beforeAutospacing / w:afterAutospacing — "determine the spacing
|
|
39
|
+
* automatically, matching an HTML document". `before`/`after` then hold the
|
|
40
|
+
* amount the importer resolved for this paragraph's position (0 where Word
|
|
41
|
+
* suppresses it), and these flags are what the exporter writes back. */
|
|
42
|
+
beforeAuto?: boolean;
|
|
43
|
+
afterAuto?: boolean;
|
|
38
44
|
}
|
|
39
45
|
export interface ParagraphAttrs {
|
|
40
46
|
list: ListInfo | null;
|
package/dist/lib/model.d.ts.map
CHANGED
|
@@ -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;AAwF3C;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAwF3C;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,wVAinBjB,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,C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