@supernova-studio/model 0.5.0 → 0.6.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 +264 -190
- package/dist/index.d.ts +264 -190
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/data-sources/data-source.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v1.ts +2 -0
- package/src/dsm/elements/data/documentation.ts +6 -1
- package/src/workspace/npm-registry-settings.ts +7 -2
package/dist/index.mjs
CHANGED
|
@@ -293,7 +293,8 @@ var DataSourceFigmaRemote = z14.object({
|
|
|
293
293
|
scope: DataSourceFigmaScope,
|
|
294
294
|
state: DataSourceFigmaState,
|
|
295
295
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
296
|
-
downloadChunkSize: z14.number().optional()
|
|
296
|
+
downloadChunkSize: z14.number().optional(),
|
|
297
|
+
figmaRenderChunkSize: z14.number().optional()
|
|
297
298
|
});
|
|
298
299
|
var DataSourceTokenStudioRemote = z14.object({
|
|
299
300
|
type: z14.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
@@ -1117,6 +1118,10 @@ var DocumentationItemConfiguration = z37.object({
|
|
|
1117
1118
|
showSidebar: z37.boolean(),
|
|
1118
1119
|
header: DocumentationItemHeader
|
|
1119
1120
|
});
|
|
1121
|
+
var defaultDocumentationItemConfiguration = {
|
|
1122
|
+
header: defaultDocumentationItemHeader,
|
|
1123
|
+
showSidebar: true
|
|
1124
|
+
};
|
|
1120
1125
|
|
|
1121
1126
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1122
1127
|
var DocumentationPageDataV1 = z38.object({
|
|
@@ -2228,20 +2233,26 @@ import { z as z98 } from "zod";
|
|
|
2228
2233
|
// src/workspace/npm-registry-settings.ts
|
|
2229
2234
|
import { z as z89 } from "zod";
|
|
2230
2235
|
var NpmRegistryAuthType = z89.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2231
|
-
var
|
|
2236
|
+
var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
|
|
2237
|
+
var NpmRegistryType = z89.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
|
|
2238
|
+
var NpmRegistryTypeWithoutAzure = z89.enum(registryTypesWithoutAzure);
|
|
2232
2239
|
var NpmRegistryBasicAuthConfig = z89.object({
|
|
2240
|
+
registryType: NpmRegistryType,
|
|
2233
2241
|
authType: z89.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2234
2242
|
username: z89.string(),
|
|
2235
2243
|
password: z89.string()
|
|
2236
2244
|
});
|
|
2237
2245
|
var NpmRegistryBearerAuthConfig = z89.object({
|
|
2246
|
+
registryType: NpmRegistryTypeWithoutAzure,
|
|
2238
2247
|
authType: z89.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2239
2248
|
accessToken: z89.string()
|
|
2240
2249
|
});
|
|
2241
2250
|
var NpmRegistryNoAuthConfig = z89.object({
|
|
2251
|
+
registryType: NpmRegistryTypeWithoutAzure,
|
|
2242
2252
|
authType: z89.literal(NpmRegistryAuthType.Enum.None)
|
|
2243
2253
|
});
|
|
2244
2254
|
var NpmRegistrCustomAuthConfig = z89.object({
|
|
2255
|
+
registryType: NpmRegistryTypeWithoutAzure,
|
|
2245
2256
|
authType: z89.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2246
2257
|
authHeaderName: z89.string(),
|
|
2247
2258
|
authHeaderValue: z89.string()
|
|
@@ -2253,7 +2264,6 @@ var NpmRegistryAuthConfig = z89.discriminatedUnion("authType", [
|
|
|
2253
2264
|
NpmRegistrCustomAuthConfig
|
|
2254
2265
|
]);
|
|
2255
2266
|
var NpmRegistryConfigBase = z89.object({
|
|
2256
|
-
registryType: NpmRegistryType,
|
|
2257
2267
|
enabledScopes: z89.array(z89.string()),
|
|
2258
2268
|
customRegistryUrl: z89.string().optional(),
|
|
2259
2269
|
bypassProxy: z89.boolean().default(false),
|
|
@@ -3072,6 +3082,7 @@ export {
|
|
|
3072
3082
|
NpmRegistryConfig,
|
|
3073
3083
|
NpmRegistryNoAuthConfig,
|
|
3074
3084
|
NpmRegistryType,
|
|
3085
|
+
NpmRegistryTypeWithoutAzure,
|
|
3075
3086
|
OAuthProvider,
|
|
3076
3087
|
OAuthProviderNames,
|
|
3077
3088
|
OAuthProviderSchema,
|
|
@@ -3284,6 +3295,7 @@ export {
|
|
|
3284
3295
|
addImportModelCollections,
|
|
3285
3296
|
colorValueFormatDescription,
|
|
3286
3297
|
colorValueRegex,
|
|
3298
|
+
defaultDocumentationItemConfiguration,
|
|
3287
3299
|
defaultDocumentationItemHeader,
|
|
3288
3300
|
designTokenImportModelTypeFilter,
|
|
3289
3301
|
designTokenTypeFilter,
|