@supernova-studio/model 0.55.27 → 0.55.29
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 +335 -1
- package/dist/index.d.ts +335 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/assets/asset.ts +1 -0
- package/src/dsm/data-sources/data-source.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v1.ts +2 -0
- package/src/utils/common.ts +8 -0
package/package.json
CHANGED
package/src/dsm/assets/asset.ts
CHANGED
|
@@ -106,6 +106,7 @@ export const DataSourceUploadRemote = z.object({
|
|
|
106
106
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
107
107
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
108
108
|
warnings: nullishToOptional(ImportWarning.array()),
|
|
109
|
+
isTokenTypeSplitEnabled: z.boolean(),
|
|
109
110
|
});
|
|
110
111
|
|
|
111
112
|
export type DataSourceUploadImportMetadata = z.infer<typeof DataSourceUploadImportMetadata>;
|
|
@@ -293,7 +293,9 @@ export const PageBlockBaseV1 = z.object({
|
|
|
293
293
|
persistentId: z.string(),
|
|
294
294
|
type: PageBlockTypeV1,
|
|
295
295
|
|
|
296
|
+
// V2 generic attributes
|
|
296
297
|
numberOfColumns: nullishToOptional(z.number()),
|
|
298
|
+
itemBackgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
297
299
|
|
|
298
300
|
// Element linking
|
|
299
301
|
designObjectId: nullishToOptional(z.string()),
|
package/src/utils/common.ts
CHANGED
|
@@ -150,6 +150,14 @@ export function areShallowObjectsEqual<T extends object>(lhs: T | undefined, rhs
|
|
|
150
150
|
return true;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
export function isNotNullish<T>(value: T | null | undefined): value is T {
|
|
154
|
+
return !isNullish(value);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function isNullish<T>(value: T | null | undefined): value is null | undefined {
|
|
158
|
+
return value === null || value === undefined;
|
|
159
|
+
}
|
|
160
|
+
|
|
153
161
|
export type Pagination = {
|
|
154
162
|
skip?: number;
|
|
155
163
|
take?: number;
|