payload-richtext-tiptap 0.0.148 → 0.0.150

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.
Files changed (31) hide show
  1. package/dist/src/body/ArticleBody.d.ts.map +1 -1
  2. package/dist/src/body/ArticleBody.js +2 -1
  3. package/dist/src/body/ArticleBody.js.map +1 -1
  4. package/dist/src/client.d.ts +2 -0
  5. package/dist/src/client.d.ts.map +1 -0
  6. package/dist/src/client.js +3 -0
  7. package/dist/src/client.js.map +1 -0
  8. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/VideoPlayer.d.ts +1 -1
  9. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/VideoPlayer.d.ts.map +1 -1
  10. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/VideoPlayer.js +1 -1
  11. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/VideoPlayer.js.map +1 -1
  12. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/quality-selector/index.d.ts +1 -1
  13. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/quality-selector/index.d.ts.map +1 -1
  14. package/dist/src/fields/TiptapEditor/extensions/VideoBlock/components/videojs/quality-selector/index.js.map +1 -1
  15. package/dist/src/fields/TiptapEditor/extensions/extension-kit.d.ts +1 -1
  16. package/dist/src/fields/TiptapEditor/extensions/serverside/EmbedContentInlineRenderer.d.ts +2 -1
  17. package/dist/src/fields/TiptapEditor/extensions/serverside/EmbedContentInlineRenderer.d.ts.map +1 -1
  18. package/dist/src/fields/TiptapEditor/extensions/serverside/EmbedContentInlineRenderer.js +4 -2
  19. package/dist/src/fields/TiptapEditor/extensions/serverside/EmbedContentInlineRenderer.js.map +1 -1
  20. package/dist/src/fields/TiptapEditor/extensions/serverside/ServersideTiptapBody.js.map +1 -1
  21. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.d.ts +2 -2
  22. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.d.ts.map +1 -1
  23. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.js +22 -21
  24. package/dist/src/fields/TiptapEditor/features/BlockEditor/BlockEditor.js.map +1 -1
  25. package/dist/src/fields/TiptapEditor/lib/tiptapSchema.d.ts +66 -66
  26. package/dist/src/index.d.ts +0 -1
  27. package/dist/src/index.d.ts.map +1 -1
  28. package/dist/src/index.js +0 -1
  29. package/dist/src/index.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +16 -20
@@ -19,21 +19,21 @@ export declare const JSONContentSchema: z.ZodObject<z.objectUtil.extendShape<{
19
19
  attrs?: Record<string, any>;
20
20
  }>, "many">>;
21
21
  }>, "strip", z.ZodTypeAny, {
22
- type?: string;
23
- text?: string;
24
22
  marks?: {
25
23
  type?: string;
26
24
  attrs?: Record<string, any>;
27
25
  }[];
28
- attrs?: Record<string, any>;
29
- }, {
30
26
  type?: string;
27
+ attrs?: Record<string, any>;
31
28
  text?: string;
29
+ }, {
32
30
  marks?: {
33
31
  type?: string;
34
32
  attrs?: Record<string, any>;
35
33
  }[];
34
+ type?: string;
36
35
  attrs?: Record<string, any>;
36
+ text?: string;
37
37
  }>, z.ZodObject<z.objectUtil.extendShape<{
38
38
  type: z.ZodString;
39
39
  attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -54,21 +54,21 @@ export declare const JSONContentSchema: z.ZodObject<z.objectUtil.extendShape<{
54
54
  attrs?: Record<string, any>;
55
55
  }>, "many">>;
56
56
  }>, "strip", z.ZodTypeAny, {
57
- type?: string;
58
- text?: string;
59
57
  marks?: {
60
58
  type?: string;
61
59
  attrs?: Record<string, any>;
62
60
  }[];
63
- attrs?: Record<string, any>;
64
- }, {
65
61
  type?: string;
62
+ attrs?: Record<string, any>;
66
63
  text?: string;
64
+ }, {
67
65
  marks?: {
68
66
  type?: string;
69
67
  attrs?: Record<string, any>;
70
68
  }[];
69
+ type?: string;
71
70
  attrs?: Record<string, any>;
71
+ text?: string;
72
72
  }>, z.ZodObject<{
73
73
  type: z.ZodString;
74
74
  attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -80,89 +80,89 @@ export declare const JSONContentSchema: z.ZodObject<z.objectUtil.extendShape<{
80
80
  attrs?: Record<string, any>;
81
81
  }>]>, "many">>;
82
82
  }>, "strip", z.ZodTypeAny, {
83
- type?: string;
84
83
  content?: ({
85
84
  type?: string;
86
85
  attrs?: Record<string, any>;
87
86
  } | {
88
- type?: string;
89
- text?: string;
90
87
  marks?: {
91
88
  type?: string;
92
89
  attrs?: Record<string, any>;
93
90
  }[];
91
+ type?: string;
94
92
  attrs?: Record<string, any>;
93
+ text?: string;
95
94
  })[];
95
+ type?: string;
96
96
  attrs?: Record<string, any>;
97
97
  }, {
98
- type?: string;
99
98
  content?: ({
100
99
  type?: string;
101
100
  attrs?: Record<string, any>;
102
101
  } | {
103
- type?: string;
104
- text?: string;
105
102
  marks?: {
106
103
  type?: string;
107
104
  attrs?: Record<string, any>;
108
105
  }[];
106
+ type?: string;
109
107
  attrs?: Record<string, any>;
108
+ text?: string;
110
109
  })[];
110
+ type?: string;
111
111
  attrs?: Record<string, any>;
112
112
  }>]>, "many">>;
113
113
  }>, "strip", z.ZodTypeAny, {
114
- type?: string;
115
114
  content?: ({
116
- type?: string;
117
- text?: string;
118
115
  marks?: {
119
116
  type?: string;
120
117
  attrs?: Record<string, any>;
121
118
  }[];
119
+ type?: string;
122
120
  attrs?: Record<string, any>;
121
+ text?: string;
123
122
  } | {
124
- type?: string;
125
123
  content?: ({
126
124
  type?: string;
127
125
  attrs?: Record<string, any>;
128
126
  } | {
129
- type?: string;
130
- text?: string;
131
127
  marks?: {
132
128
  type?: string;
133
129
  attrs?: Record<string, any>;
134
130
  }[];
131
+ type?: string;
135
132
  attrs?: Record<string, any>;
133
+ text?: string;
136
134
  })[];
135
+ type?: string;
137
136
  attrs?: Record<string, any>;
138
137
  })[];
138
+ type?: string;
139
139
  attrs?: Record<string, any>;
140
140
  }, {
141
- type?: string;
142
141
  content?: ({
143
- type?: string;
144
- text?: string;
145
142
  marks?: {
146
143
  type?: string;
147
144
  attrs?: Record<string, any>;
148
145
  }[];
146
+ type?: string;
149
147
  attrs?: Record<string, any>;
148
+ text?: string;
150
149
  } | {
151
- type?: string;
152
150
  content?: ({
153
151
  type?: string;
154
152
  attrs?: Record<string, any>;
155
153
  } | {
156
- type?: string;
157
- text?: string;
158
154
  marks?: {
159
155
  type?: string;
160
156
  attrs?: Record<string, any>;
161
157
  }[];
158
+ type?: string;
162
159
  attrs?: Record<string, any>;
160
+ text?: string;
163
161
  })[];
162
+ type?: string;
164
163
  attrs?: Record<string, any>;
165
164
  })[];
165
+ type?: string;
166
166
  attrs?: Record<string, any>;
167
167
  }>;
168
168
  export declare const TiptapSchema: z.ZodObject<{
@@ -187,21 +187,21 @@ export declare const TiptapSchema: z.ZodObject<{
187
187
  attrs?: Record<string, any>;
188
188
  }>, "many">>;
189
189
  }>, "strip", z.ZodTypeAny, {
190
- type?: string;
191
- text?: string;
192
190
  marks?: {
193
191
  type?: string;
194
192
  attrs?: Record<string, any>;
195
193
  }[];
196
- attrs?: Record<string, any>;
197
- }, {
198
194
  type?: string;
195
+ attrs?: Record<string, any>;
199
196
  text?: string;
197
+ }, {
200
198
  marks?: {
201
199
  type?: string;
202
200
  attrs?: Record<string, any>;
203
201
  }[];
202
+ type?: string;
204
203
  attrs?: Record<string, any>;
204
+ text?: string;
205
205
  }>, z.ZodObject<z.objectUtil.extendShape<{
206
206
  type: z.ZodString;
207
207
  attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -222,21 +222,21 @@ export declare const TiptapSchema: z.ZodObject<{
222
222
  attrs?: Record<string, any>;
223
223
  }>, "many">>;
224
224
  }>, "strip", z.ZodTypeAny, {
225
- type?: string;
226
- text?: string;
227
225
  marks?: {
228
226
  type?: string;
229
227
  attrs?: Record<string, any>;
230
228
  }[];
231
- attrs?: Record<string, any>;
232
- }, {
233
229
  type?: string;
230
+ attrs?: Record<string, any>;
234
231
  text?: string;
232
+ }, {
235
233
  marks?: {
236
234
  type?: string;
237
235
  attrs?: Record<string, any>;
238
236
  }[];
237
+ type?: string;
239
238
  attrs?: Record<string, any>;
239
+ text?: string;
240
240
  }>, z.ZodObject<{
241
241
  type: z.ZodString;
242
242
  attrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -248,150 +248,150 @@ export declare const TiptapSchema: z.ZodObject<{
248
248
  attrs?: Record<string, any>;
249
249
  }>]>, "many">>;
250
250
  }>, "strip", z.ZodTypeAny, {
251
- type?: string;
252
251
  content?: ({
253
252
  type?: string;
254
253
  attrs?: Record<string, any>;
255
254
  } | {
256
- type?: string;
257
- text?: string;
258
255
  marks?: {
259
256
  type?: string;
260
257
  attrs?: Record<string, any>;
261
258
  }[];
259
+ type?: string;
262
260
  attrs?: Record<string, any>;
261
+ text?: string;
263
262
  })[];
263
+ type?: string;
264
264
  attrs?: Record<string, any>;
265
265
  }, {
266
- type?: string;
267
266
  content?: ({
268
267
  type?: string;
269
268
  attrs?: Record<string, any>;
270
269
  } | {
271
- type?: string;
272
- text?: string;
273
270
  marks?: {
274
271
  type?: string;
275
272
  attrs?: Record<string, any>;
276
273
  }[];
274
+ type?: string;
277
275
  attrs?: Record<string, any>;
276
+ text?: string;
278
277
  })[];
278
+ type?: string;
279
279
  attrs?: Record<string, any>;
280
280
  }>]>, "many">>;
281
281
  }>, "strip", z.ZodTypeAny, {
282
- type?: string;
283
282
  content?: ({
284
- type?: string;
285
- text?: string;
286
283
  marks?: {
287
284
  type?: string;
288
285
  attrs?: Record<string, any>;
289
286
  }[];
287
+ type?: string;
290
288
  attrs?: Record<string, any>;
289
+ text?: string;
291
290
  } | {
292
- type?: string;
293
291
  content?: ({
294
292
  type?: string;
295
293
  attrs?: Record<string, any>;
296
294
  } | {
297
- type?: string;
298
- text?: string;
299
295
  marks?: {
300
296
  type?: string;
301
297
  attrs?: Record<string, any>;
302
298
  }[];
299
+ type?: string;
303
300
  attrs?: Record<string, any>;
301
+ text?: string;
304
302
  })[];
303
+ type?: string;
305
304
  attrs?: Record<string, any>;
306
305
  })[];
306
+ type?: string;
307
307
  attrs?: Record<string, any>;
308
308
  }, {
309
- type?: string;
310
309
  content?: ({
311
- type?: string;
312
- text?: string;
313
310
  marks?: {
314
311
  type?: string;
315
312
  attrs?: Record<string, any>;
316
313
  }[];
314
+ type?: string;
317
315
  attrs?: Record<string, any>;
316
+ text?: string;
318
317
  } | {
319
- type?: string;
320
318
  content?: ({
321
319
  type?: string;
322
320
  attrs?: Record<string, any>;
323
321
  } | {
324
- type?: string;
325
- text?: string;
326
322
  marks?: {
327
323
  type?: string;
328
324
  attrs?: Record<string, any>;
329
325
  }[];
326
+ type?: string;
330
327
  attrs?: Record<string, any>;
328
+ text?: string;
331
329
  })[];
330
+ type?: string;
332
331
  attrs?: Record<string, any>;
333
332
  })[];
333
+ type?: string;
334
334
  attrs?: Record<string, any>;
335
335
  }>, "many">;
336
336
  }, "strip", z.ZodTypeAny, {
337
- type?: "doc";
338
337
  content?: {
339
- type?: string;
340
338
  content?: ({
341
- type?: string;
342
- text?: string;
343
339
  marks?: {
344
340
  type?: string;
345
341
  attrs?: Record<string, any>;
346
342
  }[];
343
+ type?: string;
347
344
  attrs?: Record<string, any>;
345
+ text?: string;
348
346
  } | {
349
- type?: string;
350
347
  content?: ({
351
348
  type?: string;
352
349
  attrs?: Record<string, any>;
353
350
  } | {
354
- type?: string;
355
- text?: string;
356
351
  marks?: {
357
352
  type?: string;
358
353
  attrs?: Record<string, any>;
359
354
  }[];
355
+ type?: string;
360
356
  attrs?: Record<string, any>;
357
+ text?: string;
361
358
  })[];
359
+ type?: string;
362
360
  attrs?: Record<string, any>;
363
361
  })[];
362
+ type?: string;
364
363
  attrs?: Record<string, any>;
365
364
  }[];
366
- }, {
367
365
  type?: "doc";
366
+ }, {
368
367
  content?: {
369
- type?: string;
370
368
  content?: ({
371
- type?: string;
372
- text?: string;
373
369
  marks?: {
374
370
  type?: string;
375
371
  attrs?: Record<string, any>;
376
372
  }[];
373
+ type?: string;
377
374
  attrs?: Record<string, any>;
375
+ text?: string;
378
376
  } | {
379
- type?: string;
380
377
  content?: ({
381
378
  type?: string;
382
379
  attrs?: Record<string, any>;
383
380
  } | {
384
- type?: string;
385
- text?: string;
386
381
  marks?: {
387
382
  type?: string;
388
383
  attrs?: Record<string, any>;
389
384
  }[];
385
+ type?: string;
390
386
  attrs?: Record<string, any>;
387
+ text?: string;
391
388
  })[];
389
+ type?: string;
392
390
  attrs?: Record<string, any>;
393
391
  })[];
392
+ type?: string;
394
393
  attrs?: Record<string, any>;
395
394
  }[];
395
+ type?: "doc";
396
396
  }>;
397
397
  //# sourceMappingURL=tiptapSchema.d.ts.map
@@ -4,5 +4,4 @@ export { OneLineEditor } from "./fields/TiptapEditor/features/BlockEditor/OneLin
4
4
  export { BlockEditor } from "./fields/TiptapEditor/features/BlockEditor/BlockEditor.js";
5
5
  export { extractMarkdown, extractTiptapJson, extractTiptapJsonFromHTML, getHtml, } from "./fields/TiptapEditor/lib/extract.js";
6
6
  export { StandardArticle } from './body/StandardArticle.js';
7
- export * from "./fields/TiptapEditor/extensions/serverside/index.js";
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,6DAA6D,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACxF,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,OAAO,GACR,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAElC,cAAc,sDAAsD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,6DAA6D,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACxF,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,OAAO,GACR,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,eAAe,EAChB,MAAM,2BAA2B,CAAA"}
package/dist/src/index.js CHANGED
@@ -4,6 +4,5 @@ export { OneLineEditor } from "./fields/TiptapEditor/features/BlockEditor/OneLin
4
4
  export { BlockEditor } from "./fields/TiptapEditor/features/BlockEditor/BlockEditor.js";
5
5
  export { extractMarkdown, extractTiptapJson, extractTiptapJsonFromHTML, getHtml } from "./fields/TiptapEditor/lib/extract.js";
6
6
  export { StandardArticle } from './body/StandardArticle.js';
7
- export * from "./fields/TiptapEditor/extensions/serverside/index.js";
8
7
 
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { TipTapEditor } from \"./fields/TiptapEditor/index.js\";\nexport { EditorComponent } from \"./fields/TiptapEditor/Components.js\";\nexport { OneLineEditor } from \"./fields/TiptapEditor/features/BlockEditor/OneLineEditor.js\";\nexport { BlockEditor } from \"./fields/TiptapEditor/features/BlockEditor/BlockEditor.js\";\nexport {\n extractMarkdown,\n extractTiptapJson,\n extractTiptapJsonFromHTML,\n getHtml,\n} from \"./fields/TiptapEditor/lib/extract.js\";\n\nexport {\n StandardArticle\n} from './body/StandardArticle.js'\n\nexport * from \"./fields/TiptapEditor/extensions/serverside/index.js\";\n"],"names":["TipTapEditor","EditorComponent","OneLineEditor","BlockEditor","extractMarkdown","extractTiptapJson","extractTiptapJsonFromHTML","getHtml","StandardArticle"],"mappings":"AAAA,SAASA,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,eAAe,QAAQ,sCAAsC;AACtE,SAASC,aAAa,QAAQ,8DAA8D;AAC5F,SAASC,WAAW,QAAQ,4DAA4D;AACxF,SACEC,eAAe,EACfC,iBAAiB,EACjBC,yBAAyB,EACzBC,OAAO,QACF,uCAAuC;AAE9C,SACEC,eAAe,QACV,4BAA2B;AAElC,cAAc,uDAAuD"}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { TipTapEditor } from \"./fields/TiptapEditor/index.js\";\nexport { EditorComponent } from \"./fields/TiptapEditor/Components.js\";\nexport { OneLineEditor } from \"./fields/TiptapEditor/features/BlockEditor/OneLineEditor.js\";\nexport { BlockEditor } from \"./fields/TiptapEditor/features/BlockEditor/BlockEditor.js\";\nexport {\n extractMarkdown,\n extractTiptapJson,\n extractTiptapJsonFromHTML,\n getHtml,\n} from \"./fields/TiptapEditor/lib/extract.js\";\n\nexport {\n StandardArticle\n} from './body/StandardArticle.js'\n\n"],"names":["TipTapEditor","EditorComponent","OneLineEditor","BlockEditor","extractMarkdown","extractTiptapJson","extractTiptapJsonFromHTML","getHtml","StandardArticle"],"mappings":"AAAA,SAASA,YAAY,QAAQ,iCAAiC;AAC9D,SAASC,eAAe,QAAQ,sCAAsC;AACtE,SAASC,aAAa,QAAQ,8DAA8D;AAC5F,SAASC,WAAW,QAAQ,4DAA4D;AACxF,SACEC,eAAe,EACfC,iBAAiB,EACjBC,yBAAyB,EACzBC,OAAO,QACF,uCAAuC;AAE9C,SACEC,eAAe,QACV,4BAA2B"}