@prismicio/types-internal 2.0.0-alpha.8 → 2.0.0-beta.0

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.
@@ -2536,6 +2536,9 @@ declare function encodeToLegacyDocument(document: Document): DocumentLegacy;
2536
2536
  export declare const DocumentLegacy: {
2537
2537
  _codec: (allTypes?: LegacyContentCtx["allTypes"]) => t.Type<{
2538
2538
  [x: string]: {
2539
+ type: string;
2540
+ __TYPE__: "EmptyContent";
2541
+ } | {
2539
2542
  __TYPE__: "BooleanContent";
2540
2543
  value: boolean;
2541
2544
  } | ({
@@ -2685,9 +2688,6 @@ export declare const DocumentLegacy: {
2685
2688
  title?: string;
2686
2689
  } | null | undefined;
2687
2690
  });
2688
- } | {
2689
- type: string;
2690
- __TYPE__: "EmptyContent";
2691
2691
  } | {
2692
2692
  __TYPE__: "StructuredTextContent";
2693
2693
  value: (({
@@ -2806,6 +2806,9 @@ export declare const DocumentLegacy: {
2806
2806
  value: {
2807
2807
  __TYPE__: "GroupItemContent";
2808
2808
  value: [string, {
2809
+ type: string;
2810
+ __TYPE__: "EmptyContent";
2811
+ } | {
2809
2812
  __TYPE__: "BooleanContent";
2810
2813
  value: boolean;
2811
2814
  } | ({
@@ -2955,9 +2958,6 @@ export declare const DocumentLegacy: {
2955
2958
  title?: string;
2956
2959
  } | null | undefined;
2957
2960
  });
2958
- } | {
2959
- type: string;
2960
- __TYPE__: "EmptyContent";
2961
2961
  } | {
2962
2962
  __TYPE__: "StructuredTextContent";
2963
2963
  value: (({
@@ -3080,6 +3080,9 @@ export declare const DocumentLegacy: {
3080
3080
  name: string;
3081
3081
  maybeLabel: string | undefined;
3082
3082
  widget: {
3083
+ type: string;
3084
+ __TYPE__: "EmptyContent";
3085
+ } | {
3083
3086
  __TYPE__: "BooleanContent";
3084
3087
  value: boolean;
3085
3088
  } | ({
@@ -3229,9 +3232,6 @@ export declare const DocumentLegacy: {
3229
3232
  title?: string;
3230
3233
  } | null | undefined;
3231
3234
  });
3232
- } | {
3233
- type: string;
3234
- __TYPE__: "EmptyContent";
3235
3235
  } | {
3236
3236
  __TYPE__: "StructuredTextContent";
3237
3237
  value: (({
@@ -3350,6 +3350,9 @@ export declare const DocumentLegacy: {
3350
3350
  value: {
3351
3351
  __TYPE__: "GroupItemContent";
3352
3352
  value: [string, {
3353
+ type: string;
3354
+ __TYPE__: "EmptyContent";
3355
+ } | {
3353
3356
  __TYPE__: "BooleanContent";
3354
3357
  value: boolean;
3355
3358
  } | ({
@@ -3499,9 +3502,6 @@ export declare const DocumentLegacy: {
3499
3502
  title?: string;
3500
3503
  } | null | undefined;
3501
3504
  });
3502
- } | {
3503
- type: string;
3504
- __TYPE__: "EmptyContent";
3505
3505
  } | {
3506
3506
  __TYPE__: "StructuredTextContent";
3507
3507
  value: (({
@@ -3621,6 +3621,9 @@ export declare const DocumentLegacy: {
3621
3621
  __TYPE__: "CompositeSliceContent";
3622
3622
  nonRepeat: {
3623
3623
  [x: string]: {
3624
+ type: string;
3625
+ __TYPE__: "EmptyContent";
3626
+ } | {
3624
3627
  __TYPE__: "BooleanContent";
3625
3628
  value: boolean;
3626
3629
  } | ({
@@ -3770,9 +3773,6 @@ export declare const DocumentLegacy: {
3770
3773
  title?: string;
3771
3774
  } | null | undefined;
3772
3775
  });
3773
- } | {
3774
- type: string;
3775
- __TYPE__: "EmptyContent";
3776
3776
  } | {
3777
3777
  __TYPE__: "StructuredTextContent";
3778
3778
  value: (({
@@ -3891,6 +3891,9 @@ export declare const DocumentLegacy: {
3891
3891
  repeat: {
3892
3892
  __TYPE__: "GroupItemContent";
3893
3893
  value: [string, {
3894
+ type: string;
3895
+ __TYPE__: "EmptyContent";
3896
+ } | {
3894
3897
  __TYPE__: "BooleanContent";
3895
3898
  value: boolean;
3896
3899
  } | ({
@@ -4040,9 +4043,6 @@ export declare const DocumentLegacy: {
4040
4043
  title?: string;
4041
4044
  } | null | undefined;
4042
4045
  });
4043
- } | {
4044
- type: string;
4045
- __TYPE__: "EmptyContent";
4046
4046
  } | {
4047
4047
  __TYPE__: "StructuredTextContent";
4048
4048
  value: (({
@@ -4163,6 +4163,9 @@ export declare const DocumentLegacy: {
4163
4163
  variation: string;
4164
4164
  primary: {
4165
4165
  [x: string]: {
4166
+ type: string;
4167
+ __TYPE__: "EmptyContent";
4168
+ } | {
4166
4169
  __TYPE__: "BooleanContent";
4167
4170
  value: boolean;
4168
4171
  } | ({
@@ -4312,9 +4315,6 @@ export declare const DocumentLegacy: {
4312
4315
  title?: string;
4313
4316
  } | null | undefined;
4314
4317
  });
4315
- } | {
4316
- type: string;
4317
- __TYPE__: "EmptyContent";
4318
4318
  } | {
4319
4319
  __TYPE__: "StructuredTextContent";
4320
4320
  value: (({
@@ -4433,6 +4433,9 @@ export declare const DocumentLegacy: {
4433
4433
  items: {
4434
4434
  __TYPE__: "GroupItemContent";
4435
4435
  value: [string, {
4436
+ type: string;
4437
+ __TYPE__: "EmptyContent";
4438
+ } | {
4436
4439
  __TYPE__: "BooleanContent";
4437
4440
  value: boolean;
4438
4441
  } | ({
@@ -4582,9 +4585,6 @@ export declare const DocumentLegacy: {
4582
4585
  title?: string;
4583
4586
  } | null | undefined;
4584
4587
  });
4585
- } | {
4586
- type: string;
4587
- __TYPE__: "EmptyContent";
4588
4588
  } | {
4589
4589
  __TYPE__: "StructuredTextContent";
4590
4590
  value: (({
@@ -316,11 +316,14 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
316
316
  }>>]>]>>;
317
317
  }>>;
318
318
  export type GroupItemContent = t.TypeOf<typeof GroupItemContent>;
319
- declare const itemLegacyReader: t.ArrayC<t.TupleC<[t.StringC, t.UnknownC]>>;
319
+ declare const itemLegacyReader: t.RecordC<t.StringC, t.UnknownC>;
320
320
  type GroupItemLegacy = t.TypeOf<typeof itemLegacyReader>;
321
321
  export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
322
322
  __TYPE__: "GroupItemContent";
323
323
  value: [string, {
324
+ type: string;
325
+ __TYPE__: "EmptyContent";
326
+ } | {
324
327
  __TYPE__: "BooleanContent";
325
328
  value: boolean;
326
329
  } | ({
@@ -470,9 +473,6 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
470
473
  title?: string;
471
474
  } | null | undefined;
472
475
  });
473
- } | {
474
- type: string;
475
- __TYPE__: "EmptyContent";
476
476
  } | {
477
477
  __TYPE__: "StructuredTextContent";
478
478
  value: (({
@@ -587,13 +587,18 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
587
587
  } | {
588
588
  __TYPE__: "SeparatorContent";
589
589
  }][];
590
- }, WithTypes<[string, unknown][]>, unknown>;
590
+ }, WithTypes<{
591
+ [x: string]: unknown;
592
+ }>, unknown>;
591
593
  type GroupLegacy = Array<GroupItemLegacy>;
592
594
  export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
593
595
  __TYPE__: "GroupContentType";
594
596
  value: {
595
597
  __TYPE__: "GroupItemContent";
596
598
  value: [string, {
599
+ type: string;
600
+ __TYPE__: "EmptyContent";
601
+ } | {
597
602
  __TYPE__: "BooleanContent";
598
603
  value: boolean;
599
604
  } | ({
@@ -743,9 +748,6 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
743
748
  title?: string;
744
749
  } | null | undefined;
745
750
  });
746
- } | {
747
- type: string;
748
- __TYPE__: "EmptyContent";
749
751
  } | {
750
752
  __TYPE__: "StructuredTextContent";
751
753
  value: (({
@@ -868,6 +870,9 @@ export declare const isGroupContent: (u: unknown) => u is {
868
870
  value: {
869
871
  __TYPE__: "GroupItemContent";
870
872
  value: [string, {
873
+ type: string;
874
+ __TYPE__: "EmptyContent";
875
+ } | {
871
876
  __TYPE__: "BooleanContent";
872
877
  value: boolean;
873
878
  } | ({
@@ -1017,9 +1022,6 @@ export declare const isGroupContent: (u: unknown) => u is {
1017
1022
  title?: string;
1018
1023
  } | null | undefined;
1019
1024
  });
1020
- } | {
1021
- type: string;
1022
- __TYPE__: "EmptyContent";
1023
1025
  } | {
1024
1026
  __TYPE__: "StructuredTextContent";
1025
1027
  value: (({
@@ -14,11 +14,11 @@ exports.GroupItemContent = t.strict({
14
14
  __TYPE__: t.literal(exports.GroupItemContentType),
15
15
  value: t.array(t.tuple([t.string, nestable_1.NestableContent])),
16
16
  });
17
- const itemLegacyReader = t.array(t.tuple([t.string, t.unknown]));
17
+ const itemLegacyReader = t.record(t.string, t.unknown);
18
18
  const GroupItemLegacy = (ctx) => {
19
19
  return new t.Type("GroupItemLegacy", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.GroupItemContentType, (u) => {
20
20
  const parsed = (0, function_1.pipe)(itemLegacyReader.decode(u), fp_ts_1.either.map((items) => {
21
- const parsedItems = items.reduce((acc, [itemKey, itemValue]) => {
21
+ const parsedItems = Object.entries(items).reduce((acc, [itemKey, itemValue]) => {
22
22
  const itemCtx = (0, LegacyContentCtx_1.getFieldCtx)(itemKey, ctx);
23
23
  const result = (0, nestable_1.NestableLegacy)(itemCtx).decode(itemValue);
24
24
  if (!result)
@@ -40,10 +40,10 @@ const GroupItemLegacy = (ctx) => {
40
40
  if (!encoded)
41
41
  return acc;
42
42
  return {
43
- content: [...acc.content, [key, encoded.content]],
43
+ content: { ...acc.content, [key]: encoded.content },
44
44
  types: { ...acc.types, ...encoded.types },
45
45
  };
46
- }, { content: [], types: {} });
46
+ }, { content: {}, types: {} });
47
47
  });
48
48
  };
49
49
  exports.GroupItemLegacy = GroupItemLegacy;
@@ -2520,6 +2520,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2520
2520
  }>>;
2521
2521
  }>]>;
2522
2522
  export declare const isWidgetContent: (u: unknown) => u is {
2523
+ type: string;
2524
+ __TYPE__: "EmptyContent";
2525
+ } | {
2523
2526
  __TYPE__: "BooleanContent";
2524
2527
  value: boolean;
2525
2528
  } | ({
@@ -2669,9 +2672,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
2669
2672
  title?: string;
2670
2673
  } | null | undefined;
2671
2674
  });
2672
- } | {
2673
- type: string;
2674
- __TYPE__: "EmptyContent";
2675
2675
  } | {
2676
2676
  __TYPE__: "StructuredTextContent";
2677
2677
  value: (({
@@ -2790,6 +2790,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
2790
2790
  value: {
2791
2791
  __TYPE__: "GroupItemContent";
2792
2792
  value: [string, {
2793
+ type: string;
2794
+ __TYPE__: "EmptyContent";
2795
+ } | {
2793
2796
  __TYPE__: "BooleanContent";
2794
2797
  value: boolean;
2795
2798
  } | ({
@@ -2939,9 +2942,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
2939
2942
  title?: string;
2940
2943
  } | null | undefined;
2941
2944
  });
2942
- } | {
2943
- type: string;
2944
- __TYPE__: "EmptyContent";
2945
2945
  } | {
2946
2946
  __TYPE__: "StructuredTextContent";
2947
2947
  value: (({
@@ -3064,6 +3064,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
3064
3064
  name: string;
3065
3065
  maybeLabel: string | undefined;
3066
3066
  widget: {
3067
+ type: string;
3068
+ __TYPE__: "EmptyContent";
3069
+ } | {
3067
3070
  __TYPE__: "BooleanContent";
3068
3071
  value: boolean;
3069
3072
  } | ({
@@ -3213,9 +3216,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
3213
3216
  title?: string;
3214
3217
  } | null | undefined;
3215
3218
  });
3216
- } | {
3217
- type: string;
3218
- __TYPE__: "EmptyContent";
3219
3219
  } | {
3220
3220
  __TYPE__: "StructuredTextContent";
3221
3221
  value: (({
@@ -3334,6 +3334,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
3334
3334
  value: {
3335
3335
  __TYPE__: "GroupItemContent";
3336
3336
  value: [string, {
3337
+ type: string;
3338
+ __TYPE__: "EmptyContent";
3339
+ } | {
3337
3340
  __TYPE__: "BooleanContent";
3338
3341
  value: boolean;
3339
3342
  } | ({
@@ -3483,9 +3486,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
3483
3486
  title?: string;
3484
3487
  } | null | undefined;
3485
3488
  });
3486
- } | {
3487
- type: string;
3488
- __TYPE__: "EmptyContent";
3489
3489
  } | {
3490
3490
  __TYPE__: "StructuredTextContent";
3491
3491
  value: (({
@@ -3605,6 +3605,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
3605
3605
  __TYPE__: "CompositeSliceContent";
3606
3606
  nonRepeat: {
3607
3607
  [x: string]: {
3608
+ type: string;
3609
+ __TYPE__: "EmptyContent";
3610
+ } | {
3608
3611
  __TYPE__: "BooleanContent";
3609
3612
  value: boolean;
3610
3613
  } | ({
@@ -3754,9 +3757,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
3754
3757
  title?: string;
3755
3758
  } | null | undefined;
3756
3759
  });
3757
- } | {
3758
- type: string;
3759
- __TYPE__: "EmptyContent";
3760
3760
  } | {
3761
3761
  __TYPE__: "StructuredTextContent";
3762
3762
  value: (({
@@ -3875,6 +3875,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
3875
3875
  repeat: {
3876
3876
  __TYPE__: "GroupItemContent";
3877
3877
  value: [string, {
3878
+ type: string;
3879
+ __TYPE__: "EmptyContent";
3880
+ } | {
3878
3881
  __TYPE__: "BooleanContent";
3879
3882
  value: boolean;
3880
3883
  } | ({
@@ -4024,9 +4027,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
4024
4027
  title?: string;
4025
4028
  } | null | undefined;
4026
4029
  });
4027
- } | {
4028
- type: string;
4029
- __TYPE__: "EmptyContent";
4030
4030
  } | {
4031
4031
  __TYPE__: "StructuredTextContent";
4032
4032
  value: (({
@@ -4147,6 +4147,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
4147
4147
  variation: string;
4148
4148
  primary: {
4149
4149
  [x: string]: {
4150
+ type: string;
4151
+ __TYPE__: "EmptyContent";
4152
+ } | {
4150
4153
  __TYPE__: "BooleanContent";
4151
4154
  value: boolean;
4152
4155
  } | ({
@@ -4296,9 +4299,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
4296
4299
  title?: string;
4297
4300
  } | null | undefined;
4298
4301
  });
4299
- } | {
4300
- type: string;
4301
- __TYPE__: "EmptyContent";
4302
4302
  } | {
4303
4303
  __TYPE__: "StructuredTextContent";
4304
4304
  value: (({
@@ -4417,6 +4417,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
4417
4417
  items: {
4418
4418
  __TYPE__: "GroupItemContent";
4419
4419
  value: [string, {
4420
+ type: string;
4421
+ __TYPE__: "EmptyContent";
4422
+ } | {
4420
4423
  __TYPE__: "BooleanContent";
4421
4424
  value: boolean;
4422
4425
  } | ({
@@ -4566,9 +4569,6 @@ export declare const isWidgetContent: (u: unknown) => u is {
4566
4569
  title?: string;
4567
4570
  } | null | undefined;
4568
4571
  });
4569
- } | {
4570
- type: string;
4571
- __TYPE__: "EmptyContent";
4572
4572
  } | {
4573
4573
  __TYPE__: "StructuredTextContent";
4574
4574
  value: (({
@@ -4694,6 +4694,9 @@ export type WidgetContent = t.TypeOf<typeof WidgetContent>;
4694
4694
  export type ContentType = WidgetContent["__TYPE__"];
4695
4695
  export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
4696
4696
  decode(value: unknown): import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
4697
+ type: string;
4698
+ __TYPE__: "EmptyContent";
4699
+ }> | import("fp-ts/lib/Either").Right<{
4697
4700
  __TYPE__: "BooleanContent";
4698
4701
  value: boolean;
4699
4702
  }> | import("fp-ts/lib/Either").Right<{
@@ -4843,9 +4846,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
4843
4846
  title?: string;
4844
4847
  } | null | undefined;
4845
4848
  });
4846
- }> | import("fp-ts/lib/Either").Right<{
4847
- type: string;
4848
- __TYPE__: "EmptyContent";
4849
4849
  }> | import("fp-ts/lib/Either").Right<{
4850
4850
  __TYPE__: "StructuredTextContent";
4851
4851
  value: (({
@@ -4964,6 +4964,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
4964
4964
  value: {
4965
4965
  __TYPE__: "GroupItemContent";
4966
4966
  value: [string, {
4967
+ type: string;
4968
+ __TYPE__: "EmptyContent";
4969
+ } | {
4967
4970
  __TYPE__: "BooleanContent";
4968
4971
  value: boolean;
4969
4972
  } | ({
@@ -5113,9 +5116,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5113
5116
  title?: string;
5114
5117
  } | null | undefined;
5115
5118
  });
5116
- } | {
5117
- type: string;
5118
- __TYPE__: "EmptyContent";
5119
5119
  } | {
5120
5120
  __TYPE__: "StructuredTextContent";
5121
5121
  value: (({
@@ -5238,6 +5238,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5238
5238
  name: string;
5239
5239
  maybeLabel: string | undefined;
5240
5240
  widget: {
5241
+ type: string;
5242
+ __TYPE__: "EmptyContent";
5243
+ } | {
5241
5244
  __TYPE__: "BooleanContent";
5242
5245
  value: boolean;
5243
5246
  } | ({
@@ -5387,9 +5390,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5387
5390
  title?: string;
5388
5391
  } | null | undefined;
5389
5392
  });
5390
- } | {
5391
- type: string;
5392
- __TYPE__: "EmptyContent";
5393
5393
  } | {
5394
5394
  __TYPE__: "StructuredTextContent";
5395
5395
  value: (({
@@ -5508,6 +5508,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5508
5508
  value: {
5509
5509
  __TYPE__: "GroupItemContent";
5510
5510
  value: [string, {
5511
+ type: string;
5512
+ __TYPE__: "EmptyContent";
5513
+ } | {
5511
5514
  __TYPE__: "BooleanContent";
5512
5515
  value: boolean;
5513
5516
  } | ({
@@ -5657,9 +5660,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5657
5660
  title?: string;
5658
5661
  } | null | undefined;
5659
5662
  });
5660
- } | {
5661
- type: string;
5662
- __TYPE__: "EmptyContent";
5663
5663
  } | {
5664
5664
  __TYPE__: "StructuredTextContent";
5665
5665
  value: (({
@@ -5779,6 +5779,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5779
5779
  __TYPE__: "CompositeSliceContent";
5780
5780
  nonRepeat: {
5781
5781
  [x: string]: {
5782
+ type: string;
5783
+ __TYPE__: "EmptyContent";
5784
+ } | {
5782
5785
  __TYPE__: "BooleanContent";
5783
5786
  value: boolean;
5784
5787
  } | ({
@@ -5928,9 +5931,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5928
5931
  title?: string;
5929
5932
  } | null | undefined;
5930
5933
  });
5931
- } | {
5932
- type: string;
5933
- __TYPE__: "EmptyContent";
5934
5934
  } | {
5935
5935
  __TYPE__: "StructuredTextContent";
5936
5936
  value: (({
@@ -6049,6 +6049,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6049
6049
  repeat: {
6050
6050
  __TYPE__: "GroupItemContent";
6051
6051
  value: [string, {
6052
+ type: string;
6053
+ __TYPE__: "EmptyContent";
6054
+ } | {
6052
6055
  __TYPE__: "BooleanContent";
6053
6056
  value: boolean;
6054
6057
  } | ({
@@ -6198,9 +6201,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6198
6201
  title?: string;
6199
6202
  } | null | undefined;
6200
6203
  });
6201
- } | {
6202
- type: string;
6203
- __TYPE__: "EmptyContent";
6204
6204
  } | {
6205
6205
  __TYPE__: "StructuredTextContent";
6206
6206
  value: (({
@@ -6321,6 +6321,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6321
6321
  variation: string;
6322
6322
  primary: {
6323
6323
  [x: string]: {
6324
+ type: string;
6325
+ __TYPE__: "EmptyContent";
6326
+ } | {
6324
6327
  __TYPE__: "BooleanContent";
6325
6328
  value: boolean;
6326
6329
  } | ({
@@ -6470,9 +6473,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6470
6473
  title?: string;
6471
6474
  } | null | undefined;
6472
6475
  });
6473
- } | {
6474
- type: string;
6475
- __TYPE__: "EmptyContent";
6476
6476
  } | {
6477
6477
  __TYPE__: "StructuredTextContent";
6478
6478
  value: (({
@@ -6591,6 +6591,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6591
6591
  items: {
6592
6592
  __TYPE__: "GroupItemContent";
6593
6593
  value: [string, {
6594
+ type: string;
6595
+ __TYPE__: "EmptyContent";
6596
+ } | {
6594
6597
  __TYPE__: "BooleanContent";
6595
6598
  value: boolean;
6596
6599
  } | ({
@@ -6740,9 +6743,6 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6740
6743
  title?: string;
6741
6744
  } | null | undefined;
6742
6745
  });
6743
- } | {
6744
- type: string;
6745
- __TYPE__: "EmptyContent";
6746
6746
  } | {
6747
6747
  __TYPE__: "StructuredTextContent";
6748
6748
  value: (({
@@ -1,3 +1,4 @@
1
+ export * from "./EmptyContent";
1
2
  export * from "./GroupContent";
2
3
  export * from "./nestable";
3
4
  export * from "./slices";
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./EmptyContent"), exports);
4
5
  tslib_1.__exportStar(require("./GroupContent"), exports);
5
6
  tslib_1.__exportStar(require("./nestable"), exports);
6
7
  tslib_1.__exportStar(require("./slices"), exports);
@@ -314,6 +314,9 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
314
314
  export type NestableContent = t.TypeOf<typeof NestableContent>;
315
315
  export type NestableContentType = NestableContent["__TYPE__"];
316
316
  export declare const isNestableContent: (u: unknown) => u is {
317
+ type: string;
318
+ __TYPE__: "EmptyContent";
319
+ } | {
317
320
  __TYPE__: "BooleanContent";
318
321
  value: boolean;
319
322
  } | ({
@@ -463,9 +466,6 @@ export declare const isNestableContent: (u: unknown) => u is {
463
466
  title?: string;
464
467
  } | null | undefined;
465
468
  });
466
- } | {
467
- type: string;
468
- __TYPE__: "EmptyContent";
469
469
  } | {
470
470
  __TYPE__: "StructuredTextContent";
471
471
  value: (({
@@ -582,6 +582,9 @@ export declare const isNestableContent: (u: unknown) => u is {
582
582
  };
583
583
  export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
584
584
  decode(value: unknown): import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
585
+ type: string;
586
+ __TYPE__: "EmptyContent";
587
+ }> | import("fp-ts/lib/Either").Right<{
585
588
  __TYPE__: "BooleanContent";
586
589
  value: boolean;
587
590
  }> | import("fp-ts/lib/Either").Right<{
@@ -731,9 +734,6 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
731
734
  title?: string;
732
735
  } | null | undefined;
733
736
  });
734
- }> | import("fp-ts/lib/Either").Right<{
735
- type: string;
736
- __TYPE__: "EmptyContent";
737
737
  }> | import("fp-ts/lib/Either").Right<{
738
738
  __TYPE__: "StructuredTextContent";
739
739
  value: (({
@@ -47,7 +47,8 @@ const isNestableContent = (u) => (0, FieldContent_1.isTextContent)(u) ||
47
47
  (0, ImageContent_1.isImageContent)(u) ||
48
48
  (0, IntegrationFieldContent_1.isIntegrationFieldContent)(u) ||
49
49
  (0, LinkContent_1.isLinkContent)(u) ||
50
- (0, SeparatorContent_1.isSeparatorContent)(u);
50
+ (0, SeparatorContent_1.isSeparatorContent)(u) ||
51
+ (0, EmptyContent_1.isEmptyContent)(u);
51
52
  exports.isNestableContent = isNestableContent;
52
53
  const NestableLegacy = (ctx) => {
53
54
  return {