@supernova-studio/client 0.11.0 → 0.13.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 +42 -288
- package/dist/index.d.ts +42 -288
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/prosemirror-to-blocks.ts +2 -1
package/dist/index.d.ts
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
|
};
|
|
@@ -6922,99 +6922,26 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
6922
6922
|
indentLevel: z.ZodNumber;
|
|
6923
6923
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
6924
6924
|
itemBackgroundColor: z.ZodOptional<z.ZodObject<{
|
|
6925
|
-
|
|
6926
|
-
|
|
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
|
-
}>]>;
|
|
6925
|
+
value: z.ZodString;
|
|
6926
|
+
referencedTokenId: z.ZodOptional<z.ZodString>;
|
|
6960
6927
|
}, "strip", z.ZodTypeAny, {
|
|
6961
|
-
|
|
6962
|
-
|
|
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);
|
|
6928
|
+
value: string;
|
|
6929
|
+
referencedTokenId?: string | undefined;
|
|
6973
6930
|
}, {
|
|
6974
|
-
|
|
6975
|
-
|
|
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);
|
|
6931
|
+
value: string;
|
|
6932
|
+
referencedTokenId?: string | undefined;
|
|
6986
6933
|
}>>;
|
|
6987
6934
|
numberOfColumns: z.ZodOptional<z.ZodNumber>;
|
|
6988
6935
|
}, "strip", z.ZodTypeAny, {
|
|
6989
6936
|
itemBackgroundColor?: {
|
|
6990
|
-
|
|
6991
|
-
|
|
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);
|
|
6937
|
+
value: string;
|
|
6938
|
+
referencedTokenId?: string | undefined;
|
|
7002
6939
|
} | undefined;
|
|
7003
6940
|
numberOfColumns?: number | undefined;
|
|
7004
6941
|
}, {
|
|
7005
6942
|
itemBackgroundColor?: {
|
|
7006
|
-
|
|
7007
|
-
|
|
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);
|
|
6943
|
+
value: string;
|
|
6944
|
+
referencedTokenId?: string | undefined;
|
|
7018
6945
|
} | undefined;
|
|
7019
6946
|
numberOfColumns?: number | undefined;
|
|
7020
6947
|
}>>;
|
|
@@ -7090,18 +7017,8 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7090
7017
|
variantId?: string | undefined;
|
|
7091
7018
|
appearance?: {
|
|
7092
7019
|
itemBackgroundColor?: {
|
|
7093
|
-
|
|
7094
|
-
|
|
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);
|
|
7020
|
+
value: string;
|
|
7021
|
+
referencedTokenId?: string | undefined;
|
|
7105
7022
|
} | undefined;
|
|
7106
7023
|
numberOfColumns?: number | undefined;
|
|
7107
7024
|
} | undefined;
|
|
@@ -7124,18 +7041,8 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7124
7041
|
variantId?: string | undefined;
|
|
7125
7042
|
appearance?: {
|
|
7126
7043
|
itemBackgroundColor?: {
|
|
7127
|
-
|
|
7128
|
-
|
|
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);
|
|
7044
|
+
value: string;
|
|
7045
|
+
referencedTokenId?: string | undefined;
|
|
7139
7046
|
} | undefined;
|
|
7140
7047
|
numberOfColumns?: number | undefined;
|
|
7141
7048
|
} | undefined;
|
|
@@ -7161,18 +7068,8 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7161
7068
|
variantId?: string | undefined;
|
|
7162
7069
|
appearance?: {
|
|
7163
7070
|
itemBackgroundColor?: {
|
|
7164
|
-
|
|
7165
|
-
|
|
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);
|
|
7071
|
+
value: string;
|
|
7072
|
+
referencedTokenId?: string | undefined;
|
|
7176
7073
|
} | undefined;
|
|
7177
7074
|
numberOfColumns?: number | undefined;
|
|
7178
7075
|
} | undefined;
|
|
@@ -7198,18 +7095,8 @@ declare const PageBlockEditorModel: z.ZodObject<{
|
|
|
7198
7095
|
variantId?: string | undefined;
|
|
7199
7096
|
appearance?: {
|
|
7200
7097
|
itemBackgroundColor?: {
|
|
7201
|
-
|
|
7202
|
-
|
|
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);
|
|
7098
|
+
value: string;
|
|
7099
|
+
referencedTokenId?: string | undefined;
|
|
7213
7100
|
} | undefined;
|
|
7214
7101
|
numberOfColumns?: number | undefined;
|
|
7215
7102
|
} | undefined;
|
|
@@ -7226,99 +7113,26 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7226
7113
|
indentLevel: z.ZodNumber;
|
|
7227
7114
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
7228
7115
|
itemBackgroundColor: z.ZodOptional<z.ZodObject<{
|
|
7229
|
-
|
|
7230
|
-
|
|
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
|
-
}>]>;
|
|
7116
|
+
value: z.ZodString;
|
|
7117
|
+
referencedTokenId: z.ZodOptional<z.ZodString>;
|
|
7264
7118
|
}, "strip", z.ZodTypeAny, {
|
|
7265
|
-
|
|
7266
|
-
|
|
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);
|
|
7119
|
+
value: string;
|
|
7120
|
+
referencedTokenId?: string | undefined;
|
|
7277
7121
|
}, {
|
|
7278
|
-
|
|
7279
|
-
|
|
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);
|
|
7122
|
+
value: string;
|
|
7123
|
+
referencedTokenId?: string | undefined;
|
|
7290
7124
|
}>>;
|
|
7291
7125
|
numberOfColumns: z.ZodOptional<z.ZodNumber>;
|
|
7292
7126
|
}, "strip", z.ZodTypeAny, {
|
|
7293
7127
|
itemBackgroundColor?: {
|
|
7294
|
-
|
|
7295
|
-
|
|
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);
|
|
7128
|
+
value: string;
|
|
7129
|
+
referencedTokenId?: string | undefined;
|
|
7306
7130
|
} | undefined;
|
|
7307
7131
|
numberOfColumns?: number | undefined;
|
|
7308
7132
|
}, {
|
|
7309
7133
|
itemBackgroundColor?: {
|
|
7310
|
-
|
|
7311
|
-
|
|
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);
|
|
7134
|
+
value: string;
|
|
7135
|
+
referencedTokenId?: string | undefined;
|
|
7322
7136
|
} | undefined;
|
|
7323
7137
|
numberOfColumns?: number | undefined;
|
|
7324
7138
|
}>>;
|
|
@@ -7394,18 +7208,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7394
7208
|
variantId?: string | undefined;
|
|
7395
7209
|
appearance?: {
|
|
7396
7210
|
itemBackgroundColor?: {
|
|
7397
|
-
|
|
7398
|
-
|
|
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);
|
|
7211
|
+
value: string;
|
|
7212
|
+
referencedTokenId?: string | undefined;
|
|
7409
7213
|
} | undefined;
|
|
7410
7214
|
numberOfColumns?: number | undefined;
|
|
7411
7215
|
} | undefined;
|
|
@@ -7428,18 +7232,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7428
7232
|
variantId?: string | undefined;
|
|
7429
7233
|
appearance?: {
|
|
7430
7234
|
itemBackgroundColor?: {
|
|
7431
|
-
|
|
7432
|
-
|
|
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);
|
|
7235
|
+
value: string;
|
|
7236
|
+
referencedTokenId?: string | undefined;
|
|
7443
7237
|
} | undefined;
|
|
7444
7238
|
numberOfColumns?: number | undefined;
|
|
7445
7239
|
} | undefined;
|
|
@@ -7465,18 +7259,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7465
7259
|
variantId?: string | undefined;
|
|
7466
7260
|
appearance?: {
|
|
7467
7261
|
itemBackgroundColor?: {
|
|
7468
|
-
|
|
7469
|
-
|
|
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);
|
|
7262
|
+
value: string;
|
|
7263
|
+
referencedTokenId?: string | undefined;
|
|
7480
7264
|
} | undefined;
|
|
7481
7265
|
numberOfColumns?: number | undefined;
|
|
7482
7266
|
} | undefined;
|
|
@@ -7502,18 +7286,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7502
7286
|
variantId?: string | undefined;
|
|
7503
7287
|
appearance?: {
|
|
7504
7288
|
itemBackgroundColor?: {
|
|
7505
|
-
|
|
7506
|
-
|
|
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);
|
|
7289
|
+
value: string;
|
|
7290
|
+
referencedTokenId?: string | undefined;
|
|
7517
7291
|
} | undefined;
|
|
7518
7292
|
numberOfColumns?: number | undefined;
|
|
7519
7293
|
} | undefined;
|
|
@@ -7541,18 +7315,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7541
7315
|
variantId?: string | undefined;
|
|
7542
7316
|
appearance?: {
|
|
7543
7317
|
itemBackgroundColor?: {
|
|
7544
|
-
|
|
7545
|
-
|
|
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);
|
|
7318
|
+
value: string;
|
|
7319
|
+
referencedTokenId?: string | undefined;
|
|
7556
7320
|
} | undefined;
|
|
7557
7321
|
numberOfColumns?: number | undefined;
|
|
7558
7322
|
} | undefined;
|
|
@@ -7580,18 +7344,8 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
|
|
|
7580
7344
|
variantId?: string | undefined;
|
|
7581
7345
|
appearance?: {
|
|
7582
7346
|
itemBackgroundColor?: {
|
|
7583
|
-
|
|
7584
|
-
|
|
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);
|
|
7347
|
+
value: string;
|
|
7348
|
+
referencedTokenId?: string | undefined;
|
|
7595
7349
|
} | undefined;
|
|
7596
7350
|
numberOfColumns?: number | undefined;
|
|
7597
7351
|
} | undefined;
|
package/dist/index.js
CHANGED
|
@@ -882,8 +882,12 @@ var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
|
882
882
|
var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
|
|
883
883
|
var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
|
|
884
884
|
var PageBlockThemeDisplayMode = _zod.z.enum(["Split", "Override"]);
|
|
885
|
+
var PageBlockColorV2 = _zod.z.object({
|
|
886
|
+
value: _zod.z.string(),
|
|
887
|
+
referencedTokenId: _zod.z.string().optional()
|
|
888
|
+
});
|
|
885
889
|
var PageBlockAppearanceV2 = _zod.z.object({
|
|
886
|
-
itemBackgroundColor:
|
|
890
|
+
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
887
891
|
numberOfColumns: _zod.z.number().optional()
|
|
888
892
|
});
|
|
889
893
|
var PageBlockItemUntypedValue = _zod.z.object({
|
|
@@ -927,7 +931,7 @@ var PageBlockItemAssetValue = _zod.z.object({
|
|
|
927
931
|
selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
|
|
928
932
|
showSearch: _zod.z.boolean().optional(),
|
|
929
933
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
930
|
-
backgroundColor:
|
|
934
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
931
935
|
value: _zod.z.array(
|
|
932
936
|
_zod.z.object({
|
|
933
937
|
entityId: _zod.z.string(),
|
|
@@ -1095,12 +1099,12 @@ var SafeIdSchema = _zod.z.string().refine(
|
|
|
1095
1099
|
var DocumentationPageAssetType = _zod.z.enum(["image", "figmaFrame"]);
|
|
1096
1100
|
var DocumentationPageImageAsset = _zod.z.object({
|
|
1097
1101
|
type: _zod.z.literal(DocumentationPageAssetType.Enum.image),
|
|
1098
|
-
url: _zod.z.string().
|
|
1102
|
+
url: _zod.z.string().optional(),
|
|
1099
1103
|
id: SafeIdSchema
|
|
1100
1104
|
});
|
|
1101
1105
|
var DocumentationPageFrameAsset = _zod.z.object({
|
|
1102
1106
|
type: _zod.z.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1103
|
-
url: _zod.z.string().
|
|
1107
|
+
url: _zod.z.string().optional(),
|
|
1104
1108
|
figmaFrame: PageBlockFrame
|
|
1105
1109
|
});
|
|
1106
1110
|
var DocumentationPageAsset = _zod.z.discriminatedUnion("type", [
|
|
@@ -6853,7 +6857,7 @@ function parseAppearance(prosemirrorNode) {
|
|
|
6853
6857
|
}
|
|
6854
6858
|
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", _zod.z.string().optional());
|
|
6855
6859
|
if (backgroundColor) {
|
|
6856
|
-
const parsedColor =
|
|
6860
|
+
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
6857
6861
|
if (parsedColor.success) {
|
|
6858
6862
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
6859
6863
|
}
|