@prismicio/editor-fields 0.4.62-alpha.jp-table-render-default-layout.0 → 0.4.62

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.
@@ -291,7 +291,7 @@ export declare function maybeResetSliceWidget(args: MaybeResetSliceWidgetArgs):
291
291
  label?: string | null | undefined;
292
292
  direction?: string | null | undefined;
293
293
  }) | ({
294
- type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
294
+ type: "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
295
295
  content: {
296
296
  text: string;
297
297
  } & {
@@ -357,78 +357,102 @@ export declare function maybeResetSliceWidget(args: MaybeResetSliceWidgetArgs):
357
357
  __TYPE__: "TableContent";
358
358
  content: {
359
359
  type: "tableRow";
360
- content: ({
361
- type: "tableHeader";
360
+ content: {
361
+ type: "tableCell" | "tableHeader";
362
362
  content: {
363
363
  __TYPE__: "StructuredTextContent";
364
- value: ({
365
- type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
366
- content: {
367
- text: string;
364
+ value: (({
365
+ type: "image";
366
+ data: {
367
+ origin: {
368
+ id: string;
369
+ url: string;
370
+ width: number;
371
+ height: number;
372
+ };
373
+ width: number;
374
+ height: number;
375
+ edit: {
376
+ zoom: number;
377
+ crop: {
378
+ x: number;
379
+ y: number;
380
+ };
381
+ background: string;
382
+ };
368
383
  } & {
369
- spans?: ({
370
- data: ({
371
- __TYPE__: "ImageLink";
372
- } & {
373
- kind: "image";
374
- id: string;
375
- url: string;
376
- height: string;
377
- width: string;
378
- size: string;
379
- name: string;
380
- } & {
381
- date?: string | null | undefined;
382
- }) | ({
383
- __TYPE__: "FileLink";
384
- } & {
385
- kind: "file";
386
- id: string;
387
- url: string;
388
- name: string;
389
- size: string;
390
- } & {
391
- date?: string | null | undefined;
392
- }) | ({
393
- __TYPE__: "DocumentLink";
394
- } & {
395
- id: string;
396
- }) | ({
397
- __TYPE__: "ExternalLink";
398
- } & {
399
- url: string;
400
- } & {
401
- kind?: "web" | undefined;
402
- target?: string | null | undefined;
403
- preview?: {
404
- title?: string | undefined;
405
- } | null | undefined;
406
- });
407
- start: number;
408
- end: number;
409
- type: "hyperlink";
410
- } | {
411
- data: string;
412
- start: number;
413
- end: number;
414
- type: "label";
415
- } | {
416
- start: number;
417
- end: number;
418
- type: "strong" | "em" | "list-item";
419
- })[] | undefined;
384
+ url?: string | undefined;
385
+ credits?: string | null | undefined;
386
+ alt?: string | null | undefined;
387
+ provider?: string | null | undefined;
388
+ } & {
389
+ linkTo?: ({
390
+ __TYPE__: "ImageLink";
391
+ } & {
392
+ kind: "image";
393
+ id: string;
394
+ url: string;
395
+ height: string;
396
+ width: string;
397
+ size: string;
398
+ name: string;
399
+ } & {
400
+ date?: string | null | undefined;
401
+ }) | ({
402
+ __TYPE__: "FileLink";
403
+ } & {
404
+ kind: "file";
405
+ id: string;
406
+ url: string;
407
+ name: string;
408
+ size: string;
409
+ } & {
410
+ date?: string | null | undefined;
411
+ }) | ({
412
+ __TYPE__: "DocumentLink";
413
+ } & {
414
+ id: string;
415
+ }) | ({
416
+ __TYPE__: "ExternalLink";
417
+ } & {
418
+ url: string;
419
+ } & {
420
+ kind?: "web" | undefined;
421
+ target?: string | null | undefined;
422
+ preview?: {
423
+ title?: string | undefined;
424
+ } | null | undefined;
425
+ }) | null | undefined;
420
426
  };
421
427
  } & {
422
- label?: string | undefined;
423
- direction?: string | undefined;
424
- })[];
425
- };
426
- } | {
427
- type: "tableCell";
428
- content: {
429
- __TYPE__: "StructuredTextContent";
430
- value: ({
431
- type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
428
+ label?: string | null | undefined;
429
+ direction?: string | null | undefined;
430
+ }) | ({
431
+ type: "embed";
432
+ data: {
433
+ embed_url: string;
434
+ type: string;
435
+ } & {
436
+ version?: string | number | null | undefined;
437
+ title?: string | null | undefined;
438
+ author_name?: string | null | undefined;
439
+ author_url?: string | null | undefined;
440
+ provider_name?: string | null | undefined;
441
+ provider_url?: string | null | undefined;
442
+ cache_age?: string | number | null | undefined;
443
+ thumbnail_url?: string | null | undefined;
444
+ thumbnail_width?: number | null | undefined;
445
+ thumbnail_height?: number | null | undefined;
446
+ html?: string | null | undefined;
447
+ } & {
448
+ __TYPE__: "EmbedContent";
449
+ all: unknown;
450
+ };
451
+ } & {
452
+ label?: string | null | undefined;
453
+ direction?: string | null | undefined;
454
+ }) | ({
455
+ type: "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
432
456
  content: {
433
457
  text: string;
434
458
  } & {
@@ -487,9 +511,9 @@ export declare function maybeResetSliceWidget(args: MaybeResetSliceWidgetArgs):
487
511
  } & {
488
512
  label?: string | undefined;
489
513
  direction?: string | undefined;
490
- })[];
514
+ }))[];
491
515
  };
492
- })[];
516
+ }[];
493
517
  }[];
494
518
  } | {
495
519
  __TYPE__: "RepeatableContent";
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "dependencies": {
3
3
  "@aws-sdk/client-bedrock-runtime": "3.709.0",
4
4
  "@floating-ui/react-dom-interactions": "0.9.3",
5
- "@prismicio/editor-support": "0.4.62-alpha.jp-table-render-default-layout.0",
5
+ "@prismicio/editor-support": "0.4.62",
6
6
  "@prismicio/richtext": "2.1.1",
7
- "@prismicio/types-internal": "3.4.0-alpha.16",
7
+ "@prismicio/types-internal": "3.6.0",
8
8
  "@tanstack/react-query": "5.55.4",
9
9
  "@tiptap/core": "2.10.2",
10
10
  "@tiptap/extension-bold": "2.10.2",
@@ -39,7 +39,7 @@
39
39
  "zod": "3.23.8"
40
40
  },
41
41
  "devDependencies": {
42
- "@prismicio/editor-ui": "^0.4.62-alpha.jp-table-render-default-layout.0",
42
+ "@prismicio/editor-ui": "^0.4.62",
43
43
  "@testing-library/react": "15.0.7",
44
44
  "@types/react": "18.0.18",
45
45
  "@types/react-dom": "18.3.0",
@@ -73,7 +73,7 @@
73
73
  "module": "./dist/index.es.js",
74
74
  "name": "@prismicio/editor-fields",
75
75
  "peerDependencies": {
76
- "@prismicio/editor-ui": "^0.4.62-alpha.jp-table-render-default-layout.0",
76
+ "@prismicio/editor-ui": "^0.4.62",
77
77
  "react": "18",
78
78
  "react-dom": "18"
79
79
  },
@@ -90,5 +90,5 @@
90
90
  "sideEffects": false,
91
91
  "stableVersion": "0.0.0",
92
92
  "types": "./dist/index.d.ts",
93
- "version": "0.4.62-alpha.jp-table-render-default-layout.0"
93
+ "version": "0.4.62"
94
94
  }