@supernova-studio/client 0.10.2 → 0.12.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.
- package/dist/index.d.mts +77 -383
- package/dist/index.d.ts +77 -383
- package/dist/index.js +290 -958
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +290 -958
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/requests/post-bulk-doc-page-elements.ts +13 -17
- package/src/api/requests/post-liveblocks-auth.ts +0 -2
- package/src/docs-editor/blocks-to-prosemirror.ts +5 -54
- package/src/docs-editor/prosemirror/schema.ts +270 -869
- package/src/docs-editor/prosemirror-to-blocks.ts +5 -50
package/dist/index.d.mts
CHANGED
|
@@ -259,7 +259,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
259
259
|
width: {
|
|
260
260
|
aliasTo?: string | null | undefined;
|
|
261
261
|
value?: {
|
|
262
|
-
unit: "Pixels" | "
|
|
262
|
+
unit: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
|
|
263
263
|
measure: number;
|
|
264
264
|
} | null | undefined;
|
|
265
265
|
};
|
|
@@ -829,7 +829,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
829
829
|
width: {
|
|
830
830
|
aliasTo?: string | null | undefined;
|
|
831
831
|
value?: {
|
|
832
|
-
unit: "Pixels" | "
|
|
832
|
+
unit: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
|
|
833
833
|
measure: number;
|
|
834
834
|
} | null | undefined;
|
|
835
835
|
};
|
|
@@ -2442,9 +2442,10 @@ declare const DocumentationGroupDTO: z.ZodObject<{
|
|
|
2442
2442
|
type DocumentationGroupDTO = z.infer<typeof DocumentationGroupDTO>;
|
|
2443
2443
|
|
|
2444
2444
|
declare const CreateBulkElementsInput: z.ZodObject<{
|
|
2445
|
+
parentPersistentId: z.ZodString;
|
|
2445
2446
|
persistentId: z.ZodString;
|
|
2446
2447
|
title: z.ZodString;
|
|
2447
|
-
configuration: z.ZodObject<{
|
|
2448
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
2448
2449
|
showSidebar: z.ZodBoolean;
|
|
2449
2450
|
header: z.ZodObject<{
|
|
2450
2451
|
description: z.ZodString;
|
|
@@ -3077,12 +3078,13 @@ declare const CreateBulkElementsInput: z.ZodObject<{
|
|
|
3077
3078
|
} | null | undefined;
|
|
3078
3079
|
minHeight?: number | null | undefined;
|
|
3079
3080
|
};
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
|
-
afterPersistentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3081
|
+
}>>;
|
|
3082
|
+
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
3083
3083
|
}, "strip", z.ZodTypeAny, {
|
|
3084
3084
|
persistentId: string;
|
|
3085
|
-
|
|
3085
|
+
parentPersistentId: string;
|
|
3086
|
+
title: string;
|
|
3087
|
+
configuration?: {
|
|
3086
3088
|
showSidebar: boolean;
|
|
3087
3089
|
header: {
|
|
3088
3090
|
description: string;
|
|
@@ -3155,13 +3157,13 @@ declare const CreateBulkElementsInput: z.ZodObject<{
|
|
|
3155
3157
|
} | null | undefined;
|
|
3156
3158
|
minHeight?: number | null | undefined;
|
|
3157
3159
|
};
|
|
3158
|
-
};
|
|
3159
|
-
|
|
3160
|
-
parentPersistentId?: string | null | undefined;
|
|
3161
|
-
afterPersistentId?: string | null | undefined;
|
|
3160
|
+
} | undefined;
|
|
3161
|
+
afterPersistentId?: string | undefined;
|
|
3162
3162
|
}, {
|
|
3163
3163
|
persistentId: string;
|
|
3164
|
-
|
|
3164
|
+
parentPersistentId: string;
|
|
3165
|
+
title: string;
|
|
3166
|
+
configuration?: {
|
|
3165
3167
|
showSidebar: boolean;
|
|
3166
3168
|
header: {
|
|
3167
3169
|
description: string;
|
|
@@ -3234,10 +3236,8 @@ declare const CreateBulkElementsInput: z.ZodObject<{
|
|
|
3234
3236
|
} | null | undefined;
|
|
3235
3237
|
minHeight?: number | null | undefined;
|
|
3236
3238
|
};
|
|
3237
|
-
};
|
|
3238
|
-
|
|
3239
|
-
parentPersistentId?: string | null | undefined;
|
|
3240
|
-
afterPersistentId?: string | null | undefined;
|
|
3239
|
+
} | undefined;
|
|
3240
|
+
afterPersistentId?: string | undefined;
|
|
3241
3241
|
}>;
|
|
3242
3242
|
type CreateBulkElementsInput = z.infer<typeof CreateBulkElementsInput>;
|
|
3243
3243
|
declare const UpdateBulkElementsInput: z.ZodObject<{
|
|
@@ -4045,25 +4045,26 @@ declare const DuplicateBulkElementsInput: z.ZodObject<{
|
|
|
4045
4045
|
id: z.ZodString;
|
|
4046
4046
|
persistentId: z.ZodString;
|
|
4047
4047
|
parentPersistentId: z.ZodString;
|
|
4048
|
-
afterPersistentId: z.ZodOptional<z.
|
|
4048
|
+
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
4049
4049
|
}, "strip", z.ZodTypeAny, {
|
|
4050
4050
|
id: string;
|
|
4051
4051
|
persistentId: string;
|
|
4052
4052
|
parentPersistentId: string;
|
|
4053
|
-
afterPersistentId?: string |
|
|
4053
|
+
afterPersistentId?: string | undefined;
|
|
4054
4054
|
}, {
|
|
4055
4055
|
id: string;
|
|
4056
4056
|
persistentId: string;
|
|
4057
4057
|
parentPersistentId: string;
|
|
4058
|
-
afterPersistentId?: string |
|
|
4058
|
+
afterPersistentId?: string | undefined;
|
|
4059
4059
|
}>;
|
|
4060
4060
|
type DuplicateBulkElementsInput = z.infer<typeof DuplicateBulkElementsInput>;
|
|
4061
4061
|
declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
4062
4062
|
documentationPages: z.ZodObject<{
|
|
4063
4063
|
create: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4064
|
+
parentPersistentId: z.ZodString;
|
|
4064
4065
|
persistentId: z.ZodString;
|
|
4065
4066
|
title: z.ZodString;
|
|
4066
|
-
configuration: z.ZodObject<{
|
|
4067
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
4067
4068
|
showSidebar: z.ZodBoolean;
|
|
4068
4069
|
header: z.ZodObject<{
|
|
4069
4070
|
description: z.ZodString;
|
|
@@ -4696,12 +4697,13 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
4696
4697
|
} | null | undefined;
|
|
4697
4698
|
minHeight?: number | null | undefined;
|
|
4698
4699
|
};
|
|
4699
|
-
}
|
|
4700
|
-
|
|
4701
|
-
afterPersistentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4700
|
+
}>>;
|
|
4701
|
+
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
4702
4702
|
}, "strip", z.ZodTypeAny, {
|
|
4703
4703
|
persistentId: string;
|
|
4704
|
-
|
|
4704
|
+
parentPersistentId: string;
|
|
4705
|
+
title: string;
|
|
4706
|
+
configuration?: {
|
|
4705
4707
|
showSidebar: boolean;
|
|
4706
4708
|
header: {
|
|
4707
4709
|
description: string;
|
|
@@ -4774,13 +4776,13 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
4774
4776
|
} | null | undefined;
|
|
4775
4777
|
minHeight?: number | null | undefined;
|
|
4776
4778
|
};
|
|
4777
|
-
};
|
|
4778
|
-
|
|
4779
|
-
parentPersistentId?: string | null | undefined;
|
|
4780
|
-
afterPersistentId?: string | null | undefined;
|
|
4779
|
+
} | undefined;
|
|
4780
|
+
afterPersistentId?: string | undefined;
|
|
4781
4781
|
}, {
|
|
4782
4782
|
persistentId: string;
|
|
4783
|
-
|
|
4783
|
+
parentPersistentId: string;
|
|
4784
|
+
title: string;
|
|
4785
|
+
configuration?: {
|
|
4784
4786
|
showSidebar: boolean;
|
|
4785
4787
|
header: {
|
|
4786
4788
|
description: string;
|
|
@@ -4853,10 +4855,8 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
4853
4855
|
} | null | undefined;
|
|
4854
4856
|
minHeight?: number | null | undefined;
|
|
4855
4857
|
};
|
|
4856
|
-
};
|
|
4857
|
-
|
|
4858
|
-
parentPersistentId?: string | null | undefined;
|
|
4859
|
-
afterPersistentId?: string | null | undefined;
|
|
4858
|
+
} | undefined;
|
|
4859
|
+
afterPersistentId?: string | undefined;
|
|
4860
4860
|
}>, "many">>;
|
|
4861
4861
|
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4862
4862
|
id: z.ZodString;
|
|
@@ -5661,22 +5661,24 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
5661
5661
|
id: z.ZodString;
|
|
5662
5662
|
persistentId: z.ZodString;
|
|
5663
5663
|
parentPersistentId: z.ZodString;
|
|
5664
|
-
afterPersistentId: z.ZodOptional<z.
|
|
5664
|
+
afterPersistentId: z.ZodOptional<z.ZodString>;
|
|
5665
5665
|
}, "strip", z.ZodTypeAny, {
|
|
5666
5666
|
id: string;
|
|
5667
5667
|
persistentId: string;
|
|
5668
5668
|
parentPersistentId: string;
|
|
5669
|
-
afterPersistentId?: string |
|
|
5669
|
+
afterPersistentId?: string | undefined;
|
|
5670
5670
|
}, {
|
|
5671
5671
|
id: string;
|
|
5672
5672
|
persistentId: string;
|
|
5673
5673
|
parentPersistentId: string;
|
|
5674
|
-
afterPersistentId?: string |
|
|
5674
|
+
afterPersistentId?: string | undefined;
|
|
5675
5675
|
}>, "many">>;
|
|
5676
5676
|
}, "strip", z.ZodTypeAny, {
|
|
5677
5677
|
create?: {
|
|
5678
5678
|
persistentId: string;
|
|
5679
|
-
|
|
5679
|
+
parentPersistentId: string;
|
|
5680
|
+
title: string;
|
|
5681
|
+
configuration?: {
|
|
5680
5682
|
showSidebar: boolean;
|
|
5681
5683
|
header: {
|
|
5682
5684
|
description: string;
|
|
@@ -5749,10 +5751,8 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
5749
5751
|
} | null | undefined;
|
|
5750
5752
|
minHeight?: number | null | undefined;
|
|
5751
5753
|
};
|
|
5752
|
-
};
|
|
5753
|
-
|
|
5754
|
-
parentPersistentId?: string | null | undefined;
|
|
5755
|
-
afterPersistentId?: string | null | undefined;
|
|
5754
|
+
} | undefined;
|
|
5755
|
+
afterPersistentId?: string | undefined;
|
|
5756
5756
|
}[] | undefined;
|
|
5757
5757
|
update?: {
|
|
5758
5758
|
id: string;
|
|
@@ -5839,12 +5839,14 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
5839
5839
|
id: string;
|
|
5840
5840
|
persistentId: string;
|
|
5841
5841
|
parentPersistentId: string;
|
|
5842
|
-
afterPersistentId?: string |
|
|
5842
|
+
afterPersistentId?: string | undefined;
|
|
5843
5843
|
}[] | undefined;
|
|
5844
5844
|
}, {
|
|
5845
5845
|
create?: {
|
|
5846
5846
|
persistentId: string;
|
|
5847
|
-
|
|
5847
|
+
parentPersistentId: string;
|
|
5848
|
+
title: string;
|
|
5849
|
+
configuration?: {
|
|
5848
5850
|
showSidebar: boolean;
|
|
5849
5851
|
header: {
|
|
5850
5852
|
description: string;
|
|
@@ -5917,10 +5919,8 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
5917
5919
|
} | null | undefined;
|
|
5918
5920
|
minHeight?: number | null | undefined;
|
|
5919
5921
|
};
|
|
5920
|
-
};
|
|
5921
|
-
|
|
5922
|
-
parentPersistentId?: string | null | undefined;
|
|
5923
|
-
afterPersistentId?: string | null | undefined;
|
|
5922
|
+
} | undefined;
|
|
5923
|
+
afterPersistentId?: string | undefined;
|
|
5924
5924
|
}[] | undefined;
|
|
5925
5925
|
update?: {
|
|
5926
5926
|
id: string;
|
|
@@ -6007,14 +6007,16 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
6007
6007
|
id: string;
|
|
6008
6008
|
persistentId: string;
|
|
6009
6009
|
parentPersistentId: string;
|
|
6010
|
-
afterPersistentId?: string |
|
|
6010
|
+
afterPersistentId?: string | undefined;
|
|
6011
6011
|
}[] | undefined;
|
|
6012
6012
|
}>;
|
|
6013
6013
|
}, "strip", z.ZodTypeAny, {
|
|
6014
6014
|
documentationPages: {
|
|
6015
6015
|
create?: {
|
|
6016
6016
|
persistentId: string;
|
|
6017
|
-
|
|
6017
|
+
parentPersistentId: string;
|
|
6018
|
+
title: string;
|
|
6019
|
+
configuration?: {
|
|
6018
6020
|
showSidebar: boolean;
|
|
6019
6021
|
header: {
|
|
6020
6022
|
description: string;
|
|
@@ -6087,10 +6089,8 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
6087
6089
|
} | null | undefined;
|
|
6088
6090
|
minHeight?: number | null | undefined;
|
|
6089
6091
|
};
|
|
6090
|
-
};
|
|
6091
|
-
|
|
6092
|
-
parentPersistentId?: string | null | undefined;
|
|
6093
|
-
afterPersistentId?: string | null | undefined;
|
|
6092
|
+
} | undefined;
|
|
6093
|
+
afterPersistentId?: string | undefined;
|
|
6094
6094
|
}[] | undefined;
|
|
6095
6095
|
update?: {
|
|
6096
6096
|
id: string;
|
|
@@ -6177,14 +6177,16 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
6177
6177
|
id: string;
|
|
6178
6178
|
persistentId: string;
|
|
6179
6179
|
parentPersistentId: string;
|
|
6180
|
-
afterPersistentId?: string |
|
|
6180
|
+
afterPersistentId?: string | undefined;
|
|
6181
6181
|
}[] | undefined;
|
|
6182
6182
|
};
|
|
6183
6183
|
}, {
|
|
6184
6184
|
documentationPages: {
|
|
6185
6185
|
create?: {
|
|
6186
6186
|
persistentId: string;
|
|
6187
|
-
|
|
6187
|
+
parentPersistentId: string;
|
|
6188
|
+
title: string;
|
|
6189
|
+
configuration?: {
|
|
6188
6190
|
showSidebar: boolean;
|
|
6189
6191
|
header: {
|
|
6190
6192
|
description: string;
|
|
@@ -6257,10 +6259,8 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
6257
6259
|
} | null | undefined;
|
|
6258
6260
|
minHeight?: number | null | undefined;
|
|
6259
6261
|
};
|
|
6260
|
-
};
|
|
6261
|
-
|
|
6262
|
-
parentPersistentId?: string | null | undefined;
|
|
6263
|
-
afterPersistentId?: string | null | undefined;
|
|
6262
|
+
} | undefined;
|
|
6263
|
+
afterPersistentId?: string | undefined;
|
|
6264
6264
|
}[] | undefined;
|
|
6265
6265
|
update?: {
|
|
6266
6266
|
id: string;
|
|
@@ -6347,7 +6347,7 @@ declare const BulkEditDocPageElementsInput: z.ZodObject<{
|
|
|
6347
6347
|
id: string;
|
|
6348
6348
|
persistentId: string;
|
|
6349
6349
|
parentPersistentId: string;
|
|
6350
|
-
afterPersistentId?: string |
|
|
6350
|
+
afterPersistentId?: string | undefined;
|
|
6351
6351
|
}[] | undefined;
|
|
6352
6352
|
};
|
|
6353
6353
|
}>;
|
|
@@ -6921,101 +6921,13 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
6921
6921
|
variantId: z.ZodOptional<z.ZodString>;
|
|
6922
6922
|
indentLevel: z.ZodNumber;
|
|
6923
6923
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
6924
|
-
itemBackgroundColor: z.ZodOptional<z.
|
|
6925
|
-
opacity: z.ZodObject<{
|
|
6926
|
-
aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
6927
|
-
value: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodType<{
|
|
6928
|
-
unit: "Pixels" | "Raw";
|
|
6929
|
-
measure: number;
|
|
6930
|
-
}, z.ZodTypeDef, {
|
|
6931
|
-
unit: "Pixels" | "Raw";
|
|
6932
|
-
measure: number;
|
|
6933
|
-
}>>>, {
|
|
6934
|
-
unit: "Pixels" | "Raw";
|
|
6935
|
-
measure: number;
|
|
6936
|
-
} | undefined, {
|
|
6937
|
-
unit: "Pixels" | "Raw";
|
|
6938
|
-
measure: number;
|
|
6939
|
-
} | null | undefined>;
|
|
6940
|
-
}, "strip", z.ZodTypeAny, {
|
|
6941
|
-
aliasTo?: string | undefined;
|
|
6942
|
-
value?: {
|
|
6943
|
-
unit: "Pixels" | "Raw";
|
|
6944
|
-
measure: number;
|
|
6945
|
-
} | undefined;
|
|
6946
|
-
}, {
|
|
6947
|
-
aliasTo?: string | null | undefined;
|
|
6948
|
-
value?: {
|
|
6949
|
-
unit: "Pixels" | "Raw";
|
|
6950
|
-
measure: number;
|
|
6951
|
-
} | null | undefined;
|
|
6952
|
-
}>;
|
|
6953
|
-
color: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
6954
|
-
aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
6955
|
-
}, "strip", z.ZodTypeAny, {
|
|
6956
|
-
aliasTo?: string | undefined;
|
|
6957
|
-
}, {
|
|
6958
|
-
aliasTo?: string | null | undefined;
|
|
6959
|
-
}>]>;
|
|
6960
|
-
}, "strip", z.ZodTypeAny, {
|
|
6961
|
-
opacity: {
|
|
6962
|
-
aliasTo?: string | undefined;
|
|
6963
|
-
value?: {
|
|
6964
|
-
unit: "Pixels" | "Raw";
|
|
6965
|
-
measure: number;
|
|
6966
|
-
} | undefined;
|
|
6967
|
-
};
|
|
6968
|
-
color: (string | {
|
|
6969
|
-
aliasTo?: string | undefined;
|
|
6970
|
-
}) & (string | {
|
|
6971
|
-
aliasTo?: string | undefined;
|
|
6972
|
-
} | undefined);
|
|
6973
|
-
}, {
|
|
6974
|
-
opacity: {
|
|
6975
|
-
aliasTo?: string | null | undefined;
|
|
6976
|
-
value?: {
|
|
6977
|
-
unit: "Pixels" | "Raw";
|
|
6978
|
-
measure: number;
|
|
6979
|
-
} | null | undefined;
|
|
6980
|
-
};
|
|
6981
|
-
color: (string | {
|
|
6982
|
-
aliasTo?: string | null | undefined;
|
|
6983
|
-
}) & (string | {
|
|
6984
|
-
aliasTo?: string | null | undefined;
|
|
6985
|
-
} | undefined);
|
|
6986
|
-
}>>;
|
|
6924
|
+
itemBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
6987
6925
|
numberOfColumns: z.ZodOptional<z.ZodNumber>;
|
|
6988
6926
|
}, "strip", z.ZodTypeAny, {
|
|
6989
|
-
itemBackgroundColor?:
|
|
6990
|
-
opacity: {
|
|
6991
|
-
aliasTo?: string | undefined;
|
|
6992
|
-
value?: {
|
|
6993
|
-
unit: "Pixels" | "Raw";
|
|
6994
|
-
measure: number;
|
|
6995
|
-
} | undefined;
|
|
6996
|
-
};
|
|
6997
|
-
color: (string | {
|
|
6998
|
-
aliasTo?: string | undefined;
|
|
6999
|
-
}) & (string | {
|
|
7000
|
-
aliasTo?: string | undefined;
|
|
7001
|
-
} | undefined);
|
|
7002
|
-
} | undefined;
|
|
6927
|
+
itemBackgroundColor?: string | undefined;
|
|
7003
6928
|
numberOfColumns?: number | undefined;
|
|
7004
6929
|
}, {
|
|
7005
|
-
itemBackgroundColor?:
|
|
7006
|
-
opacity: {
|
|
7007
|
-
aliasTo?: string | null | undefined;
|
|
7008
|
-
value?: {
|
|
7009
|
-
unit: "Pixels" | "Raw";
|
|
7010
|
-
measure: number;
|
|
7011
|
-
} | null | undefined;
|
|
7012
|
-
};
|
|
7013
|
-
color: (string | {
|
|
7014
|
-
aliasTo?: string | null | undefined;
|
|
7015
|
-
}) & (string | {
|
|
7016
|
-
aliasTo?: string | null | undefined;
|
|
7017
|
-
} | undefined);
|
|
7018
|
-
} | undefined;
|
|
6930
|
+
itemBackgroundColor?: string | undefined;
|
|
7019
6931
|
numberOfColumns?: number | undefined;
|
|
7020
6932
|
}>>;
|
|
7021
6933
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -7089,20 +7001,7 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7089
7001
|
}[];
|
|
7090
7002
|
variantId?: string | undefined;
|
|
7091
7003
|
appearance?: {
|
|
7092
|
-
itemBackgroundColor?:
|
|
7093
|
-
opacity: {
|
|
7094
|
-
aliasTo?: string | undefined;
|
|
7095
|
-
value?: {
|
|
7096
|
-
unit: "Pixels" | "Raw";
|
|
7097
|
-
measure: number;
|
|
7098
|
-
} | undefined;
|
|
7099
|
-
};
|
|
7100
|
-
color: (string | {
|
|
7101
|
-
aliasTo?: string | undefined;
|
|
7102
|
-
}) & (string | {
|
|
7103
|
-
aliasTo?: string | undefined;
|
|
7104
|
-
} | undefined);
|
|
7105
|
-
} | undefined;
|
|
7004
|
+
itemBackgroundColor?: string | undefined;
|
|
7106
7005
|
numberOfColumns?: number | undefined;
|
|
7107
7006
|
} | undefined;
|
|
7108
7007
|
}, {
|
|
@@ -7123,20 +7022,7 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7123
7022
|
}[];
|
|
7124
7023
|
variantId?: string | undefined;
|
|
7125
7024
|
appearance?: {
|
|
7126
|
-
itemBackgroundColor?:
|
|
7127
|
-
opacity: {
|
|
7128
|
-
aliasTo?: string | null | undefined;
|
|
7129
|
-
value?: {
|
|
7130
|
-
unit: "Pixels" | "Raw";
|
|
7131
|
-
measure: number;
|
|
7132
|
-
} | null | undefined;
|
|
7133
|
-
};
|
|
7134
|
-
color: (string | {
|
|
7135
|
-
aliasTo?: string | null | undefined;
|
|
7136
|
-
}) & (string | {
|
|
7137
|
-
aliasTo?: string | null | undefined;
|
|
7138
|
-
} | undefined);
|
|
7139
|
-
} | undefined;
|
|
7025
|
+
itemBackgroundColor?: string | undefined;
|
|
7140
7026
|
numberOfColumns?: number | undefined;
|
|
7141
7027
|
} | undefined;
|
|
7142
7028
|
}>;
|
|
@@ -7160,20 +7046,7 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7160
7046
|
}[];
|
|
7161
7047
|
variantId?: string | undefined;
|
|
7162
7048
|
appearance?: {
|
|
7163
|
-
itemBackgroundColor?:
|
|
7164
|
-
opacity: {
|
|
7165
|
-
aliasTo?: string | undefined;
|
|
7166
|
-
value?: {
|
|
7167
|
-
unit: "Pixels" | "Raw";
|
|
7168
|
-
measure: number;
|
|
7169
|
-
} | undefined;
|
|
7170
|
-
};
|
|
7171
|
-
color: (string | {
|
|
7172
|
-
aliasTo?: string | undefined;
|
|
7173
|
-
}) & (string | {
|
|
7174
|
-
aliasTo?: string | undefined;
|
|
7175
|
-
} | undefined);
|
|
7176
|
-
} | undefined;
|
|
7049
|
+
itemBackgroundColor?: string | undefined;
|
|
7177
7050
|
numberOfColumns?: number | undefined;
|
|
7178
7051
|
} | undefined;
|
|
7179
7052
|
};
|
|
@@ -7197,20 +7070,7 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7197
7070
|
}[];
|
|
7198
7071
|
variantId?: string | undefined;
|
|
7199
7072
|
appearance?: {
|
|
7200
|
-
itemBackgroundColor?:
|
|
7201
|
-
opacity: {
|
|
7202
|
-
aliasTo?: string | null | undefined;
|
|
7203
|
-
value?: {
|
|
7204
|
-
unit: "Pixels" | "Raw";
|
|
7205
|
-
measure: number;
|
|
7206
|
-
} | null | undefined;
|
|
7207
|
-
};
|
|
7208
|
-
color: (string | {
|
|
7209
|
-
aliasTo?: string | null | undefined;
|
|
7210
|
-
}) & (string | {
|
|
7211
|
-
aliasTo?: string | null | undefined;
|
|
7212
|
-
} | undefined);
|
|
7213
|
-
} | undefined;
|
|
7073
|
+
itemBackgroundColor?: string | undefined;
|
|
7214
7074
|
numberOfColumns?: number | undefined;
|
|
7215
7075
|
} | undefined;
|
|
7216
7076
|
};
|
|
@@ -7225,101 +7085,13 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7225
7085
|
variantId: z.ZodOptional<z.ZodString>;
|
|
7226
7086
|
indentLevel: z.ZodNumber;
|
|
7227
7087
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
7228
|
-
itemBackgroundColor: z.ZodOptional<z.
|
|
7229
|
-
opacity: z.ZodObject<{
|
|
7230
|
-
aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
7231
|
-
value: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodType<{
|
|
7232
|
-
unit: "Pixels" | "Raw";
|
|
7233
|
-
measure: number;
|
|
7234
|
-
}, z.ZodTypeDef, {
|
|
7235
|
-
unit: "Pixels" | "Raw";
|
|
7236
|
-
measure: number;
|
|
7237
|
-
}>>>, {
|
|
7238
|
-
unit: "Pixels" | "Raw";
|
|
7239
|
-
measure: number;
|
|
7240
|
-
} | undefined, {
|
|
7241
|
-
unit: "Pixels" | "Raw";
|
|
7242
|
-
measure: number;
|
|
7243
|
-
} | null | undefined>;
|
|
7244
|
-
}, "strip", z.ZodTypeAny, {
|
|
7245
|
-
aliasTo?: string | undefined;
|
|
7246
|
-
value?: {
|
|
7247
|
-
unit: "Pixels" | "Raw";
|
|
7248
|
-
measure: number;
|
|
7249
|
-
} | undefined;
|
|
7250
|
-
}, {
|
|
7251
|
-
aliasTo?: string | null | undefined;
|
|
7252
|
-
value?: {
|
|
7253
|
-
unit: "Pixels" | "Raw";
|
|
7254
|
-
measure: number;
|
|
7255
|
-
} | null | undefined;
|
|
7256
|
-
}>;
|
|
7257
|
-
color: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
7258
|
-
aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
7259
|
-
}, "strip", z.ZodTypeAny, {
|
|
7260
|
-
aliasTo?: string | undefined;
|
|
7261
|
-
}, {
|
|
7262
|
-
aliasTo?: string | null | undefined;
|
|
7263
|
-
}>]>;
|
|
7264
|
-
}, "strip", z.ZodTypeAny, {
|
|
7265
|
-
opacity: {
|
|
7266
|
-
aliasTo?: string | undefined;
|
|
7267
|
-
value?: {
|
|
7268
|
-
unit: "Pixels" | "Raw";
|
|
7269
|
-
measure: number;
|
|
7270
|
-
} | undefined;
|
|
7271
|
-
};
|
|
7272
|
-
color: (string | {
|
|
7273
|
-
aliasTo?: string | undefined;
|
|
7274
|
-
}) & (string | {
|
|
7275
|
-
aliasTo?: string | undefined;
|
|
7276
|
-
} | undefined);
|
|
7277
|
-
}, {
|
|
7278
|
-
opacity: {
|
|
7279
|
-
aliasTo?: string | null | undefined;
|
|
7280
|
-
value?: {
|
|
7281
|
-
unit: "Pixels" | "Raw";
|
|
7282
|
-
measure: number;
|
|
7283
|
-
} | null | undefined;
|
|
7284
|
-
};
|
|
7285
|
-
color: (string | {
|
|
7286
|
-
aliasTo?: string | null | undefined;
|
|
7287
|
-
}) & (string | {
|
|
7288
|
-
aliasTo?: string | null | undefined;
|
|
7289
|
-
} | undefined);
|
|
7290
|
-
}>>;
|
|
7088
|
+
itemBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
7291
7089
|
numberOfColumns: z.ZodOptional<z.ZodNumber>;
|
|
7292
7090
|
}, "strip", z.ZodTypeAny, {
|
|
7293
|
-
itemBackgroundColor?:
|
|
7294
|
-
opacity: {
|
|
7295
|
-
aliasTo?: string | undefined;
|
|
7296
|
-
value?: {
|
|
7297
|
-
unit: "Pixels" | "Raw";
|
|
7298
|
-
measure: number;
|
|
7299
|
-
} | undefined;
|
|
7300
|
-
};
|
|
7301
|
-
color: (string | {
|
|
7302
|
-
aliasTo?: string | undefined;
|
|
7303
|
-
}) & (string | {
|
|
7304
|
-
aliasTo?: string | undefined;
|
|
7305
|
-
} | undefined);
|
|
7306
|
-
} | undefined;
|
|
7091
|
+
itemBackgroundColor?: string | undefined;
|
|
7307
7092
|
numberOfColumns?: number | undefined;
|
|
7308
7093
|
}, {
|
|
7309
|
-
itemBackgroundColor?:
|
|
7310
|
-
opacity: {
|
|
7311
|
-
aliasTo?: string | null | undefined;
|
|
7312
|
-
value?: {
|
|
7313
|
-
unit: "Pixels" | "Raw";
|
|
7314
|
-
measure: number;
|
|
7315
|
-
} | null | undefined;
|
|
7316
|
-
};
|
|
7317
|
-
color: (string | {
|
|
7318
|
-
aliasTo?: string | null | undefined;
|
|
7319
|
-
}) & (string | {
|
|
7320
|
-
aliasTo?: string | null | undefined;
|
|
7321
|
-
} | undefined);
|
|
7322
|
-
} | undefined;
|
|
7094
|
+
itemBackgroundColor?: string | undefined;
|
|
7323
7095
|
numberOfColumns?: number | undefined;
|
|
7324
7096
|
}>>;
|
|
7325
7097
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -7393,20 +7165,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7393
7165
|
}[];
|
|
7394
7166
|
variantId?: string | undefined;
|
|
7395
7167
|
appearance?: {
|
|
7396
|
-
itemBackgroundColor?:
|
|
7397
|
-
opacity: {
|
|
7398
|
-
aliasTo?: string | undefined;
|
|
7399
|
-
value?: {
|
|
7400
|
-
unit: "Pixels" | "Raw";
|
|
7401
|
-
measure: number;
|
|
7402
|
-
} | undefined;
|
|
7403
|
-
};
|
|
7404
|
-
color: (string | {
|
|
7405
|
-
aliasTo?: string | undefined;
|
|
7406
|
-
}) & (string | {
|
|
7407
|
-
aliasTo?: string | undefined;
|
|
7408
|
-
} | undefined);
|
|
7409
|
-
} | undefined;
|
|
7168
|
+
itemBackgroundColor?: string | undefined;
|
|
7410
7169
|
numberOfColumns?: number | undefined;
|
|
7411
7170
|
} | undefined;
|
|
7412
7171
|
}, {
|
|
@@ -7427,20 +7186,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7427
7186
|
}[];
|
|
7428
7187
|
variantId?: string | undefined;
|
|
7429
7188
|
appearance?: {
|
|
7430
|
-
itemBackgroundColor?:
|
|
7431
|
-
opacity: {
|
|
7432
|
-
aliasTo?: string | null | undefined;
|
|
7433
|
-
value?: {
|
|
7434
|
-
unit: "Pixels" | "Raw";
|
|
7435
|
-
measure: number;
|
|
7436
|
-
} | null | undefined;
|
|
7437
|
-
};
|
|
7438
|
-
color: (string | {
|
|
7439
|
-
aliasTo?: string | null | undefined;
|
|
7440
|
-
}) & (string | {
|
|
7441
|
-
aliasTo?: string | null | undefined;
|
|
7442
|
-
} | undefined);
|
|
7443
|
-
} | undefined;
|
|
7189
|
+
itemBackgroundColor?: string | undefined;
|
|
7444
7190
|
numberOfColumns?: number | undefined;
|
|
7445
7191
|
} | undefined;
|
|
7446
7192
|
}>;
|
|
@@ -7464,20 +7210,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7464
7210
|
}[];
|
|
7465
7211
|
variantId?: string | undefined;
|
|
7466
7212
|
appearance?: {
|
|
7467
|
-
itemBackgroundColor?:
|
|
7468
|
-
opacity: {
|
|
7469
|
-
aliasTo?: string | undefined;
|
|
7470
|
-
value?: {
|
|
7471
|
-
unit: "Pixels" | "Raw";
|
|
7472
|
-
measure: number;
|
|
7473
|
-
} | undefined;
|
|
7474
|
-
};
|
|
7475
|
-
color: (string | {
|
|
7476
|
-
aliasTo?: string | undefined;
|
|
7477
|
-
}) & (string | {
|
|
7478
|
-
aliasTo?: string | undefined;
|
|
7479
|
-
} | undefined);
|
|
7480
|
-
} | undefined;
|
|
7213
|
+
itemBackgroundColor?: string | undefined;
|
|
7481
7214
|
numberOfColumns?: number | undefined;
|
|
7482
7215
|
} | undefined;
|
|
7483
7216
|
};
|
|
@@ -7501,20 +7234,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7501
7234
|
}[];
|
|
7502
7235
|
variantId?: string | undefined;
|
|
7503
7236
|
appearance?: {
|
|
7504
|
-
itemBackgroundColor?:
|
|
7505
|
-
opacity: {
|
|
7506
|
-
aliasTo?: string | null | undefined;
|
|
7507
|
-
value?: {
|
|
7508
|
-
unit: "Pixels" | "Raw";
|
|
7509
|
-
measure: number;
|
|
7510
|
-
} | null | undefined;
|
|
7511
|
-
};
|
|
7512
|
-
color: (string | {
|
|
7513
|
-
aliasTo?: string | null | undefined;
|
|
7514
|
-
}) & (string | {
|
|
7515
|
-
aliasTo?: string | null | undefined;
|
|
7516
|
-
} | undefined);
|
|
7517
|
-
} | undefined;
|
|
7237
|
+
itemBackgroundColor?: string | undefined;
|
|
7518
7238
|
numberOfColumns?: number | undefined;
|
|
7519
7239
|
} | undefined;
|
|
7520
7240
|
};
|
|
@@ -7540,20 +7260,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7540
7260
|
}[];
|
|
7541
7261
|
variantId?: string | undefined;
|
|
7542
7262
|
appearance?: {
|
|
7543
|
-
itemBackgroundColor?:
|
|
7544
|
-
opacity: {
|
|
7545
|
-
aliasTo?: string | undefined;
|
|
7546
|
-
value?: {
|
|
7547
|
-
unit: "Pixels" | "Raw";
|
|
7548
|
-
measure: number;
|
|
7549
|
-
} | undefined;
|
|
7550
|
-
};
|
|
7551
|
-
color: (string | {
|
|
7552
|
-
aliasTo?: string | undefined;
|
|
7553
|
-
}) & (string | {
|
|
7554
|
-
aliasTo?: string | undefined;
|
|
7555
|
-
} | undefined);
|
|
7556
|
-
} | undefined;
|
|
7263
|
+
itemBackgroundColor?: string | undefined;
|
|
7557
7264
|
numberOfColumns?: number | undefined;
|
|
7558
7265
|
} | undefined;
|
|
7559
7266
|
};
|
|
@@ -7579,20 +7286,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7579
7286
|
}[];
|
|
7580
7287
|
variantId?: string | undefined;
|
|
7581
7288
|
appearance?: {
|
|
7582
|
-
itemBackgroundColor?:
|
|
7583
|
-
opacity: {
|
|
7584
|
-
aliasTo?: string | null | undefined;
|
|
7585
|
-
value?: {
|
|
7586
|
-
unit: "Pixels" | "Raw";
|
|
7587
|
-
measure: number;
|
|
7588
|
-
} | null | undefined;
|
|
7589
|
-
};
|
|
7590
|
-
color: (string | {
|
|
7591
|
-
aliasTo?: string | null | undefined;
|
|
7592
|
-
}) & (string | {
|
|
7593
|
-
aliasTo?: string | null | undefined;
|
|
7594
|
-
} | undefined);
|
|
7595
|
-
} | undefined;
|
|
7289
|
+
itemBackgroundColor?: string | undefined;
|
|
7596
7290
|
numberOfColumns?: number | undefined;
|
|
7597
7291
|
} | undefined;
|
|
7598
7292
|
};
|
|
@@ -7600,7 +7294,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7600
7294
|
}>;
|
|
7601
7295
|
type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
|
|
7602
7296
|
|
|
7603
|
-
declare const pmSchema: Schema<"
|
|
7297
|
+
declare const pmSchema: Schema<"table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "image" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "link" | "bold" | "italic" | "strike">;
|
|
7604
7298
|
|
|
7605
7299
|
type ProsemirrorNode = {
|
|
7606
7300
|
type: string;
|