@supernova-studio/client 0.48.33 → 0.48.34

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.d.mts CHANGED
@@ -42344,7 +42344,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
42344
42344
  }>;
42345
42345
  type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
42346
42346
 
42347
- declare const pmSchema: Schema<"image" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "bold" | "link" | "strike" | "commentHighlight" | "italic">;
42347
+ declare const pmSchema: Schema<"image" | "doc" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "blockNode", "code" | "bold" | "link" | "strike" | "commentHighlight" | "italic">;
42348
42348
 
42349
42349
  type ProsemirrorNode = {
42350
42350
  type: string;
package/dist/index.d.ts CHANGED
@@ -42344,7 +42344,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
42344
42344
  }>;
42345
42345
  type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
42346
42346
 
42347
- declare const pmSchema: Schema<"image" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "bold" | "link" | "strike" | "commentHighlight" | "italic">;
42347
+ declare const pmSchema: Schema<"image" | "doc" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "blockNode", "code" | "bold" | "link" | "strike" | "commentHighlight" | "italic">;
42348
42348
 
42349
42349
  type ProsemirrorNode = {
42350
42350
  type: string;
package/dist/index.js CHANGED
@@ -6361,7 +6361,7 @@ var VersionRoomBaseYDoc = class {
6361
6361
  // src/yjs/version-room/utils.ts
6362
6362
  function generatePageContentHash(content, definitions, debug = false) {
6363
6363
  let sanitizedContent = structuredClone(content);
6364
- sanitizedContent = removeCommentSpansFromPage(content, definitions);
6364
+ sanitizedContent = removeCommentSpansFromPage(sanitizedContent, definitions);
6365
6365
  if (isPageContentEmpty(sanitizedContent)) {
6366
6366
  sanitizedContent = { blocks: [] };
6367
6367
  }
@@ -6761,6 +6761,7 @@ var DocumentationPageEditorModel = _zod.z.object({
6761
6761
  // src/yjs/docs-editor/prosemirror/schema.ts
6762
6762
  var _prosemirrormodel = require('prosemirror-model');
6763
6763
  var newSchema = {
6764
+ topNode: "doc",
6764
6765
  nodes: {
6765
6766
  paragraph: {
6766
6767
  content: "inline*",
@@ -6819,7 +6820,7 @@ var newSchema = {
6819
6820
  },
6820
6821
  tableCell: {
6821
6822
  tableRole: "cell",
6822
- content: "block+",
6823
+ content: "(paragraph|image)+",
6823
6824
  isolating: true,
6824
6825
  attrs: {
6825
6826
  id: {
@@ -6846,7 +6847,7 @@ var newSchema = {
6846
6847
  },
6847
6848
  tableHeader: {
6848
6849
  tableRole: "header_cell",
6849
- content: "block+",
6850
+ content: "(paragraph|image)+",
6850
6851
  isolating: true,
6851
6852
  attrs: {
6852
6853
  id: {
@@ -7103,7 +7104,7 @@ var newSchema = {
7103
7104
  default: null
7104
7105
  },
7105
7106
  variantId: {
7106
- default: null
7107
+ default: "Tabs"
7107
7108
  }
7108
7109
  },
7109
7110
  parseDOM: [
@@ -7179,10 +7180,10 @@ var newSchema = {
7179
7180
  }
7180
7181
  ]
7181
7182
  },
7182
- blockNode: {
7183
- group: "block",
7183
+ image: {
7184
+ group: "block customBlock",
7184
7185
  atom: true,
7185
- draggable: true,
7186
+ draggable: false,
7186
7187
  attrs: {
7187
7188
  id: {
7188
7189
  default: null
@@ -7209,35 +7210,10 @@ var newSchema = {
7209
7210
  }
7210
7211
  ]
7211
7212
  },
7212
- embed: {
7213
- group: "block",
7214
- draggable: true,
7215
- defining: true,
7216
- attrs: {
7217
- id: {
7218
- default: null
7219
- },
7220
- definitionId: {
7221
- default: null
7222
- },
7223
- variantId: {
7224
- default: null
7225
- },
7226
- type: {
7227
- default: "youtube"
7228
- },
7229
- url: {
7230
- default: null
7231
- },
7232
- height: {
7233
- default: null
7234
- }
7235
- }
7236
- },
7237
- image: {
7238
- group: "block",
7213
+ blockNode: {
7214
+ group: "block customBlock",
7239
7215
  atom: true,
7240
- draggable: true,
7216
+ draggable: false,
7241
7217
  attrs: {
7242
7218
  id: {
7243
7219
  default: null
@@ -7267,177 +7243,93 @@ var newSchema = {
7267
7243
  },
7268
7244
  marks: {
7269
7245
  link: {
7270
- name: "link",
7271
- rank: 0,
7272
- spec: {
7273
- inclusive: false,
7274
- attrs: {
7275
- href: {
7276
- default: null
7277
- },
7278
- target: {
7279
- default: "_blank"
7280
- },
7281
- rel: {
7282
- default: "noopener noreferrer nofollow"
7283
- },
7284
- class: {
7285
- default: "tiptap-link"
7286
- }
7287
- },
7288
- parseDOM: [
7289
- {
7290
- tag: 'a[href]:not([href *= "javascript:" i])'
7291
- }
7292
- ]
7293
- },
7246
+ inclusive: false,
7294
7247
  attrs: {
7295
7248
  href: {
7296
- hasDefault: true,
7297
7249
  default: null
7298
7250
  },
7299
7251
  target: {
7300
- hasDefault: true,
7301
7252
  default: "_blank"
7302
7253
  },
7303
7254
  rel: {
7304
- hasDefault: true,
7305
7255
  default: "noopener noreferrer nofollow"
7306
7256
  },
7307
7257
  class: {
7308
- hasDefault: true,
7309
7258
  default: "tiptap-link"
7310
7259
  }
7311
7260
  },
7312
- instance: {
7313
- type: "link",
7314
- attrs: {
7315
- href: null,
7316
- target: "_blank",
7317
- rel: "noopener noreferrer nofollow",
7318
- class: "tiptap-link"
7261
+ parseDOM: [
7262
+ {
7263
+ tag: 'a[href]:not([href *= "javascript:" i])'
7319
7264
  }
7320
- }
7265
+ ]
7321
7266
  },
7322
7267
  commentHighlight: {
7323
- name: "commentHighlight",
7324
- rank: 1,
7325
- spec: {
7326
- attrs: {
7327
- highlightId: {
7328
- default: null
7329
- },
7330
- resolved: {
7331
- default: false
7332
- }
7333
- },
7334
- parseDOM: [
7335
- {
7336
- tag: "commenthighlight"
7337
- }
7338
- ]
7339
- },
7340
7268
  attrs: {
7341
7269
  highlightId: {
7342
- hasDefault: true,
7343
7270
  default: null
7344
7271
  },
7345
7272
  resolved: {
7346
- hasDefault: true,
7347
7273
  default: false
7348
7274
  }
7349
7275
  },
7350
- instance: {
7351
- type: "commentHighlight",
7352
- attrs: {
7353
- highlightId: null,
7354
- resolved: false
7276
+ parseDOM: [
7277
+ {
7278
+ tag: "commenthighlight"
7355
7279
  }
7356
- }
7280
+ ]
7357
7281
  },
7358
7282
  bold: {
7359
- name: "bold",
7360
- rank: 2,
7361
- spec: {
7362
- parseDOM: [
7363
- {
7364
- tag: "strong"
7365
- },
7366
- {
7367
- tag: "b"
7368
- },
7369
- {
7370
- style: "font-weight"
7371
- }
7372
- ]
7373
- },
7374
- attrs: {},
7375
- instance: {
7376
- type: "bold"
7377
- }
7283
+ parseDOM: [
7284
+ {
7285
+ tag: "strong"
7286
+ },
7287
+ {
7288
+ tag: "b"
7289
+ },
7290
+ {
7291
+ style: "font-weight"
7292
+ }
7293
+ ]
7378
7294
  },
7379
7295
  italic: {
7380
- name: "italic",
7381
- rank: 3,
7382
- spec: {
7383
- parseDOM: [
7384
- {
7385
- tag: "em"
7386
- },
7387
- {
7388
- tag: "i"
7389
- },
7390
- {
7391
- style: "font-style=italic"
7392
- }
7393
- ]
7394
- },
7395
- attrs: {},
7396
- instance: {
7397
- type: "italic"
7398
- }
7296
+ parseDOM: [
7297
+ {
7298
+ tag: "em"
7299
+ },
7300
+ {
7301
+ tag: "i"
7302
+ },
7303
+ {
7304
+ style: "font-style=italic"
7305
+ }
7306
+ ]
7399
7307
  },
7400
7308
  strike: {
7401
- name: "strike",
7402
- rank: 4,
7403
- spec: {
7404
- parseDOM: [
7405
- {
7406
- tag: "s"
7407
- },
7408
- {
7409
- tag: "del"
7410
- },
7411
- {
7412
- tag: "strike"
7413
- },
7414
- {
7415
- style: "text-decoration",
7416
- consuming: false
7417
- }
7418
- ]
7419
- },
7420
- attrs: {},
7421
- instance: {
7422
- type: "strike"
7423
- }
7309
+ parseDOM: [
7310
+ {
7311
+ tag: "s"
7312
+ },
7313
+ {
7314
+ tag: "del"
7315
+ },
7316
+ {
7317
+ tag: "strike"
7318
+ },
7319
+ {
7320
+ style: "text-decoration",
7321
+ consuming: false
7322
+ }
7323
+ ]
7424
7324
  },
7425
7325
  code: {
7426
- name: "code",
7427
- rank: 5,
7428
- spec: {
7429
- excludes: "bold code italic strike link",
7430
- code: true,
7431
- parseDOM: [
7432
- {
7433
- tag: "code"
7434
- }
7435
- ]
7436
- },
7437
- attrs: {},
7438
- instance: {
7439
- type: "code"
7440
- }
7326
+ excludes: "bold code italic strike link",
7327
+ code: true,
7328
+ parseDOM: [
7329
+ {
7330
+ tag: "code"
7331
+ }
7332
+ ]
7441
7333
  }
7442
7334
  }
7443
7335
  };