@supernova-studio/model 1.96.1 → 1.96.3
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.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5879,6 +5879,11 @@ var Brand = _zod.z.object({
|
|
|
5879
5879
|
// src/dsm/design-system.ts
|
|
5880
5880
|
|
|
5881
5881
|
var DesignSystemAccessMode = _zod.z.enum(["Open", "InviteOnly"]);
|
|
5882
|
+
var DOC_USER_SLUG_REGEX = /^[a-z0-9](?:[a-z0-9-]{0,30}[a-z0-9])?$/;
|
|
5883
|
+
var DocUserSlugSchema = _zod.z.string().min(1).max(32).regex(
|
|
5884
|
+
DOC_USER_SLUG_REGEX,
|
|
5885
|
+
"Documentation slug can only contain lowercase letters, digits, and hyphens, and cannot start or end with a hyphen."
|
|
5886
|
+
);
|
|
5882
5887
|
var DesignSystemSwitcher = _zod.z.object({
|
|
5883
5888
|
isEnabled: _zod.z.boolean(),
|
|
5884
5889
|
designSystemIds: _zod.z.array(_zod.z.string())
|
|
@@ -5890,7 +5895,7 @@ var DesignSystem = _zod.z.object({
|
|
|
5890
5895
|
description: _zod.z.string(),
|
|
5891
5896
|
docExporterId: nullishToOptional(_zod.z.string()),
|
|
5892
5897
|
docSlug: _zod.z.string(),
|
|
5893
|
-
docUserSlug: nullishToOptional(
|
|
5898
|
+
docUserSlug: nullishToOptional(DocUserSlugSchema),
|
|
5894
5899
|
docSlugDeprecated: _zod.z.string(),
|
|
5895
5900
|
isMultibrand: _zod.z.boolean(),
|
|
5896
5901
|
docViewUrl: nullishToOptional(_zod.z.string()),
|