@supernova-studio/client 0.11.0 → 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 +18 -324
- package/dist/index.d.ts +18 -324
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -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
|
};
|
|
@@ -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
|
};
|
package/dist/index.js
CHANGED
|
@@ -882,8 +882,9 @@ 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.string();
|
|
885
886
|
var PageBlockAppearanceV2 = _zod.z.object({
|
|
886
|
-
itemBackgroundColor:
|
|
887
|
+
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
887
888
|
numberOfColumns: _zod.z.number().optional()
|
|
888
889
|
});
|
|
889
890
|
var PageBlockItemUntypedValue = _zod.z.object({
|
|
@@ -927,7 +928,7 @@ var PageBlockItemAssetValue = _zod.z.object({
|
|
|
927
928
|
selectedPropertyIds: _zod.z.array(_zod.z.string()).optional(),
|
|
928
929
|
showSearch: _zod.z.boolean().optional(),
|
|
929
930
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
930
|
-
backgroundColor:
|
|
931
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
931
932
|
value: _zod.z.array(
|
|
932
933
|
_zod.z.object({
|
|
933
934
|
entityId: _zod.z.string(),
|
|
@@ -1095,12 +1096,12 @@ var SafeIdSchema = _zod.z.string().refine(
|
|
|
1095
1096
|
var DocumentationPageAssetType = _zod.z.enum(["image", "figmaFrame"]);
|
|
1096
1097
|
var DocumentationPageImageAsset = _zod.z.object({
|
|
1097
1098
|
type: _zod.z.literal(DocumentationPageAssetType.Enum.image),
|
|
1098
|
-
url: _zod.z.string().
|
|
1099
|
+
url: _zod.z.string().optional(),
|
|
1099
1100
|
id: SafeIdSchema
|
|
1100
1101
|
});
|
|
1101
1102
|
var DocumentationPageFrameAsset = _zod.z.object({
|
|
1102
1103
|
type: _zod.z.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1103
|
-
url: _zod.z.string().
|
|
1104
|
+
url: _zod.z.string().optional(),
|
|
1104
1105
|
figmaFrame: PageBlockFrame
|
|
1105
1106
|
});
|
|
1106
1107
|
var DocumentationPageAsset = _zod.z.discriminatedUnion("type", [
|
|
@@ -6853,7 +6854,7 @@ function parseAppearance(prosemirrorNode) {
|
|
|
6853
6854
|
}
|
|
6854
6855
|
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", _zod.z.string().optional());
|
|
6855
6856
|
if (backgroundColor) {
|
|
6856
|
-
const parsedColor =
|
|
6857
|
+
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
6857
6858
|
if (parsedColor.success) {
|
|
6858
6859
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
6859
6860
|
}
|