Skip to content

Commit b3fad88

Browse files
committed
chore: incldue built deps
1 parent d1697e4 commit b3fad88

3 files changed

Lines changed: 54 additions & 24 deletions

File tree

patches/@y__prosemirror@2.0.0-2.patch

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -278,33 +278,37 @@ index 0000000000000000000000000000000000000000..2c008bfa4dbf0fe49a4148d6346c5388
278278
\ No newline at end of file
279279
diff --git a/dist/src/positions.d.ts.map b/dist/src/positions.d.ts.map
280280
new file mode 100644
281-
index 0000000000000000000000000000000000000000..27c3de6071c3c8701acad9516390c219483b37e8
281+
index 0000000000000000000000000000000000000000..e4f768c579f11b08055a31cc166e8c34278815a6
282282
--- /dev/null
283283
+++ b/dist/src/positions.d.ts.map
284284
@@ -0,0 +1 @@
285-
+{"version":3,"file":"positions.d.ts","sourceRoot":"","sources":["../../src/positions.js"],"names":[],"mappings":"AAWO,gEALI,OAAO,mBAAmB,EAAE,WAAW,QACvC,CAAC,CAAC,IAAI,OACN,CAAC,CAAC,0BAA0B,GAAG,IAAI,GAClC,CAAC,CAAC,gBAAgB,CA4C7B;AAUM,2DANI,CAAC,CAAC,gBAAgB,gBAClB,CAAC,CAAC,IAAI,SACN,OAAO,mBAAmB,EAAE,IAAI,OAChC,CAAC,CAAC,0BAA0B,GAAG,IAAI,GAClC,IAAI,GAAC,MAAM,CAmDtB;AASM,mDALI,OAAO,mBAAmB,EAAE,WAAW,QACvC,CAAC,CAAC,IAAI,OACN,CAAC,CAAC,0BAA0B,GAC1B,CAAC,GAAG,EAAE,OAAO,mBAAmB,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC,0BAA0B,KAAK,MAAM,CAWvI;AAyBM,mDAHI,CAAC,CAAC,IAAI,GACJ;IAAC,cAAc,EAAE,cAAc,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAC,CAyD5E;mCA5EU,OAAO,mBAAmB,EAAE,IAAI,wFAG9B,OAAO,uBAAuB,EAAE,QAAQ;oCAK1C,CAAC,CAAC,IAAI,SACN,OAAO,mBAAmB,EAAE,IAAI,2DAE9B,OAAO,uBAAuB,EAAE,QAAQ;mBAjJlC,MAAM"}
285+
+{"version":3,"file":"positions.d.ts","sourceRoot":"","sources":["../../src/positions.js"],"names":[],"mappings":"AAWO,gEALI,OAAO,mBAAmB,EAAE,WAAW,QACvC,CAAC,CAAC,IAAI,OACN,CAAC,CAAC,0BAA0B,GAAG,IAAI,GAClC,CAAC,CAAC,gBAAgB,CA6C7B;AAUM,2DANI,CAAC,CAAC,gBAAgB,gBAClB,CAAC,CAAC,IAAI,SACN,OAAO,mBAAmB,EAAE,IAAI,OAChC,CAAC,CAAC,0BAA0B,GAAG,IAAI,GAClC,IAAI,GAAC,MAAM,CAmDtB;AASM,mDALI,OAAO,mBAAmB,EAAE,WAAW,QACvC,CAAC,CAAC,IAAI,OACN,CAAC,CAAC,0BAA0B,GAC1B,CAAC,GAAG,EAAE,OAAO,mBAAmB,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC,0BAA0B,KAAK,MAAM,CAWvI;AAyBM,mDAHI,CAAC,CAAC,IAAI,GACJ;IAAC,cAAc,EAAE,cAAc,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAC,CAyD5E;mCA5EU,OAAO,mBAAmB,EAAE,IAAI,wFAG9B,OAAO,uBAAuB,EAAE,QAAQ;oCAK1C,CAAC,CAAC,IAAI,SACN,OAAO,mBAAmB,EAAE,IAAI,2DAE9B,OAAO,uBAAuB,EAAE,QAAQ;mBAlJlC,MAAM"}
286286
\ No newline at end of file
287287
diff --git a/dist/src/sync-plugin.d.ts b/dist/src/sync-plugin.d.ts
288288
new file mode 100644
289-
index 0000000000000000000000000000000000000000..60f401cf8386f80b2959e804a33329fefb704a1d
289+
index 0000000000000000000000000000000000000000..c1da2aa33b86511936e9b1ba4d2d3c848e0c70da
290290
--- /dev/null
291291
+++ b/dist/src/sync-plugin.d.ts
292-
@@ -0,0 +1,35 @@
292+
@@ -0,0 +1,41 @@
293293
+/**
294294
+ * This Prosemirror {@link Plugin} is responsible for synchronizing the prosemirror {@link EditorState} with a {@link Y.XmlFragment}
295295
+ *
296-
+ * NOTE: register this plugin LAST in your editor's plugin list. Its
297-
+ * `appendTransaction` runs the PM->Y diff/apply pipeline and must
298-
+ * observe the post-keymap, post-other-plugin state.
296+
+ * The PM->Y diff/apply pipeline runs in the plugin's `view().update`
297+
+ * hook (i.e. after the dispatch has been committed to the view), not
298+
+ * in `appendTransaction`. Running it in `appendTransaction` would
299+
+ * cause speculative `state.apply` callers to write to Y as a side
300+
+ * effect.
299301
+ *
300302
+ * @param {object} opts
301303
+ * @param {Y.Doc} [opts.suggestionDoc] A {@link Y.Doc} to use for suggestion tracking
302304
+ * @param {AttributionMapper} [opts.mapAttributionToMark] A function to map the {@link Y.Attribution} to a {@link import('prosemirror-model').Mark} - the mark names *must* be one of: `y-attributed-insert`, `y-attributed-delete`, `y-attributed-format`. No other mark names are permitted
305+
+ * @param {AttributedNodesPredicate} [opts.attributedNodes] Optional predicate `(nodeName, kinds) => boolean`. When it returns `true` for an attributed node *and* a `{nodeName}--attributed` type exists in the schema, that node is rendered under the variant type (the `y-attributed-*` marks are still applied). `kinds` is `{ insert?, delete?, format? }`. The variant is a pure rendering concern - the canonical name is what is stored in the Y document. The predicate must be deterministic in `(nodeName, kinds)`.
303306
+ * @returns {Plugin}
304307
+ */
305308
+export function syncPlugin(opts?: {
306309
+ suggestionDoc?: Y.Doc | undefined;
307310
+ mapAttributionToMark?: AttributionMapper | undefined;
311+
+ attributedNodes?: AttributedNodesPredicate | undefined;
308312
+}): Plugin;
309313
+/**
310314
+ * The y-prosemirror binding is a bi-directional synchronization with the provided Y.Type and the EditorView
@@ -314,11 +318,13 @@ index 0000000000000000000000000000000000000000..60f401cf8386f80b2959e804a33329fe
314318
+ ytype: Y.Type<any> | null;
315319
+ attributionManager: Y.AbstractAttributionManager | null;
316320
+ attributionMapper: AttributionMapper;
321+
+ attributedNodes: AttributedNodesPredicate;
317322
+}>;
318323
+export const $syncPluginStateUpdate: s.Schema<{
319324
+ ytype?: Y.Type<any> | null | undefined;
320325
+ attributionManager?: Y.AbstractAttributionManager | null | undefined;
321326
+ attributionMapper?: AttributionMapper | null | undefined;
327+
+ attributedNodes?: AttributedNodesPredicate | null | undefined;
322328
+ change?: Y.YEvent<any> | null | undefined;
323329
+}>;
324330
+import * as Y from '@y/y';
@@ -328,18 +334,18 @@ index 0000000000000000000000000000000000000000..60f401cf8386f80b2959e804a33329fe
328334
\ No newline at end of file
329335
diff --git a/dist/src/sync-plugin.d.ts.map b/dist/src/sync-plugin.d.ts.map
330336
new file mode 100644
331-
index 0000000000000000000000000000000000000000..1a0e6e62ff6b63a90527fd163641a7c4c49bbb9e
337+
index 0000000000000000000000000000000000000000..df8c9df944fe1c64c46c648d913a0f8b52694bd7
332338
--- /dev/null
333339
+++ b/dist/src/sync-plugin.d.ts.map
334340
@@ -0,0 +1 @@
335-
+{"version":3,"file":"sync-plugin.d.ts","sourceRoot":"","sources":["../../src/sync-plugin.js"],"names":[],"mappings":"AAyFA;;;;;;;;;;;GAWG;AACH,kCAJG;IAAqB,aAAa;IACD,oBAAoB;CACrD,GAAU,MAAM,CAiMlB;AAtRD;;;GAGG;AACH;;;;GAOE;AAEF;;;;;GAKE;mBAhCiB,MAAM;uBACF,mBAAmB;mBAUvB,aAAa"}
341+
+{"version":3,"file":"sync-plugin.d.ts","sourceRoot":"","sources":["../../src/sync-plugin.js"],"names":[],"mappings":"AAgGA;;;;;;;;;;;;;;GAcG;AACH,kCALG;IAAqB,aAAa;IACD,oBAAoB;IACb,eAAe;CACvD,GAAU,MAAM,CA+LlB;AA7RD;;;GAGG;AACH;;;;;GAYE;AAEF;;;;;;GAME;mBAvCiB,MAAM;uBACF,mBAAmB;mBAWvB,aAAa"}
336342
\ No newline at end of file
337343
diff --git a/dist/src/sync-utils.d.ts b/dist/src/sync-utils.d.ts
338344
new file mode 100644
339-
index 0000000000000000000000000000000000000000..91664ef55028d7246da148b789e4c03ab3c795fa
345+
index 0000000000000000000000000000000000000000..83d38f1a99ecb675beff65f50a2082b659d2c36a
340346
--- /dev/null
341347
+++ b/dist/src/sync-utils.d.ts
342-
@@ -0,0 +1,107 @@
348+
@@ -0,0 +1,127 @@
343349
+/**
344350
+ * Transforms a {@link Node} into a {@link Y.XmlFragment}
345351
+ * @param {Node} node
@@ -358,11 +364,13 @@ index 0000000000000000000000000000000000000000..91664ef55028d7246da148b789e4c03a
358364
+ * @param {object} ctx
359365
+ * @param {Y.AbstractAttributionManager} [ctx.attributionManager]
360366
+ * @param {typeof defaultMapAttributionToMark} [ctx.mapAttributionToMark]
367+
+ * @param {AttributedNodesPredicate} [ctx.attributedNodes]
361368
+ * @returns {import('prosemirror-state').Transaction}
362369
+ */
363-
+export function fragmentToTr(fragment: Y.Type, tr: import("prosemirror-state").Transaction, { attributionManager, mapAttributionToMark }?: {
370+
+export function fragmentToTr(fragment: Y.Type, tr: import("prosemirror-state").Transaction, { attributionManager, mapAttributionToMark, attributedNodes }?: {
364371
+ attributionManager?: Y.AbstractAttributionManager | undefined;
365372
+ mapAttributionToMark?: (<T extends import("lib0/delta").Attribution>(format: Record<string, unknown> | null, attribution: T) => Record<string, unknown> | null) | undefined;
373+
+ attributedNodes?: AttributedNodesPredicate | undefined;
366374
+}): import("prosemirror-state").Transaction;
367375
+/**
368376
+ * Transforms a {@link Y.XmlFragment} into a {@link Node}
@@ -405,13 +413,31 @@ index 0000000000000000000000000000000000000000..91664ef55028d7246da148b789e4c03a
405413
+ text: true;
406414
+ recursiveChildren: true;
407415
+}>>;
416+
+/**
417+
+ * Suffix appended to a node name when it is rendered as its "attributed
418+
+ * variant" (see `attributedNodes` on {@link syncPlugin}). The suffix is fixed
419+
+ * so that canonicalizing back (PM -> Y) is a pure string operation and can
420+
+ * never drift from the forward mapping. `--attributed` is a *reserved* suffix:
421+
+ * a real node type literally ending in it would be canonicalized away on the
422+
+ * way to Y.
423+
+ */
424+
+export const ATTRIBUTED_SUFFIX: "--attributed";
425+
+/**
426+
+ * Default `attributedNodes` predicate - the feature is off, so every node keeps
427+
+ * its canonical name.
428+
+ *
429+
+ * @type {AttributedNodesPredicate}
430+
+ */
431+
+export const defaultAttributedNodes: AttributedNodesPredicate;
432+
+export function canonicalNodeName(name: string): string;
433+
+export function attributedVariant(canonicalName: string, format: Record<string, unknown> | null | undefined, attributedNodes: AttributedNodesPredicate, schema: import("prosemirror-model").Schema): string;
408434
+export function defaultMapAttributionToMark<T extends import("lib0/delta").Attribution>(format: Record<string, unknown> | null, attribution: T): Record<string, unknown> | null;
409435
+export function deltaAttributionToFormat(d: delta.DeltaAny, attributionsToFormat: Function): ProsemirrorDelta;
410436
+export function formattingAttributesToMarks(formatting: {
411437
+ [key: string]: any;
412438
+} | null, schema: import("prosemirror-model").Schema): import("prosemirror-model").Mark[];
413439
+export function nodesToDelta(ns: Array<Node>): ProsemirrorDelta;
414-
+export function nodeToDelta(n: Node, nodeName?: string | null): ProsemirrorDelta;
440+
+export function nodeToDelta(n: Node, nodeName?: string | null, canonicalize?: boolean): ProsemirrorDelta;
415441
+export function docToDelta(doc: Node): delta.Delta<{
416442
+ name: string;
417443
+ attrs: {
@@ -422,8 +448,8 @@ index 0000000000000000000000000000000000000000..91664ef55028d7246da148b789e4c03a
422448
+}>;
423449
+export function deltaToPSteps(tr: import("prosemirror-state").Transaction, d: ProsemirrorDelta, pnode?: Node, currPos?: {
424450
+ i: number;
425-
+}): import("prosemirror-state").Transaction;
426-
+export function deltaToPNode(d: ProsemirrorDelta, schema: import("prosemirror-model").Schema, dformat: delta.FormattingAttributes | null): Node;
451+
+}, attributedNodes?: AttributedNodesPredicate): import("prosemirror-state").Transaction;
452+
+export function deltaToPNode(d: ProsemirrorDelta, schema: import("prosemirror-model").Schema, dformat: delta.FormattingAttributes | null, attributedNodes?: AttributedNodesPredicate): Node;
427453
+export function docDiffToDelta(beforeDoc: Node, afterDoc: Node): delta.Delta<{
428454
+ name: string;
429455
+ attrs: {
@@ -450,11 +476,11 @@ index 0000000000000000000000000000000000000000..91664ef55028d7246da148b789e4c03a
450476
\ No newline at end of file
451477
diff --git a/dist/src/sync-utils.d.ts.map b/dist/src/sync-utils.d.ts.map
452478
new file mode 100644
453-
index 0000000000000000000000000000000000000000..f9bbcc89fecc95ec4b426aae483f33a1d475063b
479+
index 0000000000000000000000000000000000000000..5634baccb112adaaf0c61b7879ef71c52d9d41db
454480
--- /dev/null
455481
+++ b/dist/src/sync-utils.d.ts.map
456482
@@ -0,0 +1 @@
457-
+{"version":3,"file":"sync-utils.d.ts","sourceRoot":"","sources":["../../src/sync-utils.js"],"names":[],"mappings":"AA+JA;;;;;;;GAOG;AACH,mCANW,IAAI,YACJ,CAAC,CAAC,IAAI,2BAEd;IAA4C,kBAAkB;CAC9D,GAAU,CAAC,CAAC,IAAI,CAOlB;AAED;;;;;;;;GAQG;AACH,uCAPW,CAAC,CAAC,IAAI,MACN,OAAO,mBAAmB,EAAE,WAAW,iDAE/C;IAA2C,kBAAkB;IACZ,oBAAoB,KAtIxB,CAAC,SAApC,OAAQ,YAAY,EAAE,WAAY,UACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,eAC9B,CAAC,KACC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;CAoIxC,GAAU,OAAO,mBAAmB,EAAE,WAAW,CAgBnD;AAED;;;;;GAKG;AACH,uCAJW,CAAC,CAAC,IAAI,MACN,OAAO,mBAAmB,EAAE,WAAW,GACtC,IAAI,CAIf;AA4QD;;;;;;;;;;;;;;;;;GAiBG;AACH,oCAJW,IAAI,mBACJ,MAAM,GACL,MAAM,EAAE,CAwBnB;AAED;;;;;GAKG;AACH,yCAJW,MAAM,EAAE,QACR,IAAI,GACH,MAAM,CAgCjB;AAthBD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A0BM,wDAHI;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;CAAC,GAAC,IAAI,UACvB,OAAO,mBAAmB,EAAE,MAAM,sCAGwD;AAM9F,iCAHI,KAAK,CAAC,IAAI,CAAC,GACV,gBAAgB,CAW3B;AAgEM,+BAPI,IAAI,aACJ,MAAM,OAAC,iBACP,OAAO,GAGN,gBAAgB,CAS3B;AAKM,gCAFI,IAAI;;;;;;;GAEwC;AAmDhD,kCAPI,OAAO,mBAAmB,EAAE,WAAW,KACvC,gBAAgB,UAChB,IAAI,YACJ;IAAE,CAAC,EAAE,MAAM,CAAA;CAAE,oBACb,wBAAwB,GACvB,OAAO,mBAAmB,EAAE,WAAW,CAkGlD;AASM,gCANI,gBAAgB,UAChB,OAAO,mBAAmB,EAAE,MAAM,WAClC,KAAK,CAAC,oBAAoB,GAAC,IAAI,oBAC/B,wBAAwB,GACvB,IAAI,CA6Bf;AAMM,0CAHI,IAAI,YACJ,IAAI;;;;;;;GAMd;AAKM,8BAFI,WAAW;;;;;;;GAkBrB;AA+CM,kCAJI,OAAO,uBAAuB,EAAE,IAAI,aACpC,OAAO,mBAAmB,EAAE,IAAI,GAC/B,gBAAgB,CAQ3B;AAoGM,wCALI,IAAI,YACJ,MAAM,OACN,CAAC,CAAC,EAAC,KAAK,CAAC,eAAe,KAAG,GAAG,GAC7B,gBAAgB,CAa3B;qBAnpBqC,mBAAmB;mBAPtC,MAAM;uBAEF,YAAY;mBAIhB,aAAa"}
458484
\ No newline at end of file
459485
diff --git a/dist/src/undo-plugin.d.ts b/dist/src/undo-plugin.d.ts
460486
new file mode 100644
@@ -479,11 +505,11 @@ index 0000000000000000000000000000000000000000..86f43ae4291c5baf85948350df8d7d46
479505
\ No newline at end of file
480506
diff --git a/dist/src/undo-plugin.d.ts.map b/dist/src/undo-plugin.d.ts.map
481507
new file mode 100644
482-
index 0000000000000000000000000000000000000000..11c58c0f3f94d2e560408aaccf2b1b418142a0d4
508+
index 0000000000000000000000000000000000000000..665bb84203a88b35e2961e7221a31896485bdcc7
483509
--- /dev/null
484510
+++ b/dist/src/undo-plugin.d.ts.map
485511
@@ -0,0 +1 @@
486-
+{"version":3,"file":"undo-plugin.d.ts","sourceRoot":"","sources":["../../src/undo-plugin.js"],"names":[],"mappings":"AA+JO,yCAFI,OAAO,MAAM,EAAE,WAAW,2BAmFpC;;iBA1Oa,OAAO,MAAM,EAAE,WAAW;aAC1B;QAAE,QAAQ,EAAE,OAAO,mBAAmB,EAAE,iBAAiB,CAAC;QAAC,cAAc,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,gBAAgB,CAAC,CAAA;KAAE,GAAG,IAAI;gBACrJ,OAAO;gBACP,OAAO;kBACP,OAAO;;uBAVE,mBAAmB;6CACG,gBAAgB"}
512+
+{"version":3,"file":"undo-plugin.d.ts","sourceRoot":"","sources":["../../src/undo-plugin.js"],"names":[],"mappings":"AA8JO,yCAFI,OAAO,MAAM,EAAE,WAAW,2BAmFpC;;iBAzOa,OAAO,MAAM,EAAE,WAAW;aAC1B;QAAE,QAAQ,EAAE,OAAO,mBAAmB,EAAE,iBAAiB,CAAC;QAAC,cAAc,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,gBAAgB,CAAC,CAAA;KAAE,GAAG,IAAI;gBACrJ,OAAO;gBACP,OAAO;kBACP,OAAO;;uBAVE,mBAAmB;6CACG,gBAAgB"}
487513
\ No newline at end of file
488514
diff --git a/dist/src/utils.d.ts b/dist/src/utils.d.ts
489515
deleted file mode 100644

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/patch-y-prosemirror.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ fi
2222
echo "==> Using local y-prosemirror at: $LOCAL_YPM"
2323
echo "==> BlockNote root: $BLOCKNOTE_ROOT"
2424

25+
# 0. Build y-prosemirror so dist/ is up to date
26+
echo "==> Building y-prosemirror (npm run dist) ..."
27+
(cd "$LOCAL_YPM" && npm run dist)
28+
2529
PATCH_DIR="$BLOCKNOTE_ROOT/node_modules/.pnpm_patches/@y/prosemirror@2.0.0-2"
2630

2731
# 1. Clean up any leftover patch dir, then start fresh

0 commit comments

Comments
 (0)