@shadow-garden/bapbong-model 0.11.0 → 0.11.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 +12 -0
- package/dist/index.js +12 -0
- package/dist/lib/model.d.ts +1 -1
- package/dist/lib/model.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -262,6 +262,18 @@ var schema = new import_prosemirror_model.Schema({
|
|
|
262
262
|
parseDOM: [{ tag: "br" }],
|
|
263
263
|
toDOM: () => ["br"]
|
|
264
264
|
},
|
|
265
|
+
// A column break (w:br w:type="column"). Inline, not a paragraph flag:
|
|
266
|
+
// ST_BrType `column` restarts "the next character in the document … in a
|
|
267
|
+
// new text column", so it cuts WHERE IT SITS. A factsheet in the corpus
|
|
268
|
+
// proves the difference — its break has a floating table anchored in the
|
|
269
|
+
// run BEFORE it, which belongs to the column being left behind.
|
|
270
|
+
column_break: {
|
|
271
|
+
inline: true,
|
|
272
|
+
group: "inline",
|
|
273
|
+
selectable: false,
|
|
274
|
+
parseDOM: [{ tag: "br.column-break" }],
|
|
275
|
+
toDOM: () => ["br", { class: "column-break" }]
|
|
276
|
+
},
|
|
265
277
|
// Inline image. `src` is typically a data URL (the importer inlines the
|
|
266
278
|
// embedded media); width/height are CSS pixels, null if unspecified.
|
|
267
279
|
image: {
|
package/dist/index.js
CHANGED
|
@@ -230,6 +230,18 @@ var schema = new Schema({
|
|
|
230
230
|
parseDOM: [{ tag: "br" }],
|
|
231
231
|
toDOM: () => ["br"]
|
|
232
232
|
},
|
|
233
|
+
// A column break (w:br w:type="column"). Inline, not a paragraph flag:
|
|
234
|
+
// ST_BrType `column` restarts "the next character in the document … in a
|
|
235
|
+
// new text column", so it cuts WHERE IT SITS. A factsheet in the corpus
|
|
236
|
+
// proves the difference — its break has a floating table anchored in the
|
|
237
|
+
// run BEFORE it, which belongs to the column being left behind.
|
|
238
|
+
column_break: {
|
|
239
|
+
inline: true,
|
|
240
|
+
group: "inline",
|
|
241
|
+
selectable: false,
|
|
242
|
+
parseDOM: [{ tag: "br.column-break" }],
|
|
243
|
+
toDOM: () => ["br", { class: "column-break" }]
|
|
244
|
+
},
|
|
233
245
|
// Inline image. `src` is typically a data URL (the importer inlines the
|
|
234
246
|
// embedded media); width/height are CSS pixels, null if unspecified.
|
|
235
247
|
image: {
|
package/dist/lib/model.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Schema } from 'prosemirror-model';
|
|
|
8
8
|
* extend THIS schema so the importer, layout engine, and (canvas) painter all
|
|
9
9
|
* agree on one document model.
|
|
10
10
|
*/
|
|
11
|
-
export declare const schema: Schema<"paragraph" | "doc" | "text" | "hard_break" | "image" | "page_field" | "table" | "table_row" | "table_cell", "strong" | "em" | "underline" | "strike" | "dstrike" | "smallCaps" | "textColor" | "fontSize" | "vertAlign" | "letterSpacing" | "kern" | "charScale" | "position" | "highlight" | "fontFamily" | "link" | "footnote" | "carryRPr">;
|
|
11
|
+
export declare const schema: Schema<"paragraph" | "doc" | "text" | "hard_break" | "column_break" | "image" | "page_field" | "table" | "table_row" | "table_cell", "strong" | "em" | "underline" | "strike" | "dstrike" | "smallCaps" | "textColor" | "fontSize" | "vertAlign" | "letterSpacing" | "kern" | "charScale" | "position" | "highlight" | "fontFamily" | "link" | "footnote" | "carryRPr">;
|
|
12
12
|
/** Concrete schema type, handy for typing Node/Mark across packages. */
|
|
13
13
|
export type BapbongSchema = typeof schema;
|
|
14
14
|
/**
|
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":"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