@supernova-studio/model 0.16.0 → 0.17.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 +4105 -649
- package/dist/index.d.ts +4105 -649
- package/dist/index.js +800 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +795 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/assets/asset.ts +1 -1
- package/src/dsm/data-sources/data-source.ts +2 -1
- package/src/dsm/data-sources/import-job.ts +2 -1
- package/src/dsm/elements/component.ts +2 -1
- package/src/dsm/elements/documentation-page-v1.ts +2 -1
- package/src/dsm/elements/documentation-page-v2.ts +2 -1
- package/src/dsm/elements/figma-file-structures.ts +2 -1
- package/src/dsm/elements/figma-node-reference.ts +2 -1
- package/src/dsm/elements/group.ts +8 -4
- package/src/dsm/elements/raw-element.ts +2 -1
- package/src/dsm/elements/theme.ts +2 -1
- package/src/dsm/elements/tokens.ts +2 -1
- package/src/dsm/properties/property-value.ts +2 -1
- package/src/dsm/published-doc-page.ts +2 -1
- package/src/dsm/views/column.ts +2 -1
- package/src/helpers/index.ts +0 -1
- package/src/multiplayer/design-system-version-room.ts +36 -0
- package/src/utils/common.ts +111 -0
- package/src/utils/errors.ts +94 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/slugify.ts +636 -0
- package/src/helpers/common.ts +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2971,6 +2971,24 @@ var DesignSystemVersionRoom = Entity.extend({
|
|
|
2971
2971
|
designSystemVersionId: z119.string(),
|
|
2972
2972
|
liveblocksId: z119.string()
|
|
2973
2973
|
});
|
|
2974
|
+
var DesignSystemVersionRoomInitialState = z119.object({
|
|
2975
|
+
pages: z119.array(DocumentationPageV2),
|
|
2976
|
+
groups: z119.array(ElementGroup),
|
|
2977
|
+
deletedPagePersistentIds: z119.array(z119.string()),
|
|
2978
|
+
deletedGroupPersistentIds: z119.array(z119.string())
|
|
2979
|
+
});
|
|
2980
|
+
var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
|
|
2981
|
+
deletedPagePersistentIds: z119.array(z119.string()),
|
|
2982
|
+
deletedGroupPersistentIds: z119.array(z119.string())
|
|
2983
|
+
});
|
|
2984
|
+
function mergeDesignSystemVersionRoomUpdates(lhs, rhs) {
|
|
2985
|
+
return {
|
|
2986
|
+
pages: [...lhs.pages, ...rhs.pages],
|
|
2987
|
+
groups: [...lhs.groups, ...rhs.groups],
|
|
2988
|
+
deletedPagePersistentIds: [...lhs.deletedPagePersistentIds, ...rhs.deletedPagePersistentIds],
|
|
2989
|
+
deletedGroupPersistentIds: [...lhs.deletedGroupPersistentIds, ...rhs.deletedGroupPersistentIds]
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2974
2992
|
|
|
2975
2993
|
// src/multiplayer/documentation-page-room.ts
|
|
2976
2994
|
import { z as z120 } from "zod";
|
|
@@ -3035,6 +3053,131 @@ var PersonalAccessToken = z124.object({
|
|
|
3035
3053
|
scope: z124.string().optional()
|
|
3036
3054
|
});
|
|
3037
3055
|
|
|
3056
|
+
// src/utils/errors.ts
|
|
3057
|
+
var SupernovaException = class _SupernovaException extends Error {
|
|
3058
|
+
//
|
|
3059
|
+
// Properties
|
|
3060
|
+
//
|
|
3061
|
+
constructor(type, message) {
|
|
3062
|
+
super(`${type}: ${message}`);
|
|
3063
|
+
this.type = type;
|
|
3064
|
+
}
|
|
3065
|
+
static wrongFormat(message) {
|
|
3066
|
+
return new _SupernovaException("WrongFormat", message);
|
|
3067
|
+
}
|
|
3068
|
+
static accessDenied(message) {
|
|
3069
|
+
return new _SupernovaException("AccessDenied", message);
|
|
3070
|
+
}
|
|
3071
|
+
static notFound(message) {
|
|
3072
|
+
return new _SupernovaException("ResourceNotFound", message);
|
|
3073
|
+
}
|
|
3074
|
+
static timeout(message) {
|
|
3075
|
+
return new _SupernovaException("Timeout", message);
|
|
3076
|
+
}
|
|
3077
|
+
static conflict(message) {
|
|
3078
|
+
return new _SupernovaException("Conflict", message);
|
|
3079
|
+
}
|
|
3080
|
+
static notImplemented(message) {
|
|
3081
|
+
return new _SupernovaException("NotImplemented", message);
|
|
3082
|
+
}
|
|
3083
|
+
static wrongActionOrder(message) {
|
|
3084
|
+
return new _SupernovaException("WrongActionOrder", message);
|
|
3085
|
+
}
|
|
3086
|
+
static invalidOperation(message) {
|
|
3087
|
+
return new _SupernovaException("InvalidOperation", message);
|
|
3088
|
+
}
|
|
3089
|
+
static shouldNotHappen(message) {
|
|
3090
|
+
return new _SupernovaException("UnexpectedError", message);
|
|
3091
|
+
}
|
|
3092
|
+
static ipRestricted(message) {
|
|
3093
|
+
return new _SupernovaException("IPRestricted", message);
|
|
3094
|
+
}
|
|
3095
|
+
static planRestricted(message) {
|
|
3096
|
+
return new _SupernovaException("PlanRestricted", message);
|
|
3097
|
+
}
|
|
3098
|
+
static missingWorkspacePermission(message) {
|
|
3099
|
+
return new _SupernovaException("MissingWorkspacePermission", message);
|
|
3100
|
+
}
|
|
3101
|
+
static missingExporterPermission(message) {
|
|
3102
|
+
return new _SupernovaException("MissingExporterPermission", message);
|
|
3103
|
+
}
|
|
3104
|
+
static missingIntegration(message) {
|
|
3105
|
+
return new _SupernovaException("AccessDenied", message);
|
|
3106
|
+
}
|
|
3107
|
+
static noAccess(message) {
|
|
3108
|
+
return new _SupernovaException("NoAccess", message);
|
|
3109
|
+
}
|
|
3110
|
+
//
|
|
3111
|
+
// To refactor
|
|
3112
|
+
//
|
|
3113
|
+
static badRequest(message) {
|
|
3114
|
+
return new _SupernovaException("BadRequest", message);
|
|
3115
|
+
}
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
// src/utils/common.ts
|
|
3119
|
+
function forceUnwrapNullish(value) {
|
|
3120
|
+
if (value === null)
|
|
3121
|
+
throw new Error("Illegal null");
|
|
3122
|
+
if (value === void 0)
|
|
3123
|
+
throw new Error("Illegal undefined");
|
|
3124
|
+
return value;
|
|
3125
|
+
}
|
|
3126
|
+
function trimLeadingSlash(string) {
|
|
3127
|
+
return string.startsWith("/") ? string.substring(1) : string;
|
|
3128
|
+
}
|
|
3129
|
+
function trimTrailingSlash(string) {
|
|
3130
|
+
return string.endsWith("/") ? string.substring(0, string.length - 1) : string;
|
|
3131
|
+
}
|
|
3132
|
+
function parseUrl(url) {
|
|
3133
|
+
return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
|
|
3134
|
+
}
|
|
3135
|
+
function mapByUnique(items, keyFn) {
|
|
3136
|
+
const result = /* @__PURE__ */ new Map();
|
|
3137
|
+
for (const item of items) {
|
|
3138
|
+
result.set(keyFn(item), item);
|
|
3139
|
+
}
|
|
3140
|
+
return result;
|
|
3141
|
+
}
|
|
3142
|
+
function groupBy(items, keyFn) {
|
|
3143
|
+
const result = /* @__PURE__ */ new Map();
|
|
3144
|
+
for (const item of items) {
|
|
3145
|
+
const key = keyFn(item);
|
|
3146
|
+
const array = result.get(key);
|
|
3147
|
+
if (array) {
|
|
3148
|
+
array.push(item);
|
|
3149
|
+
} else {
|
|
3150
|
+
result.set(key, [item]);
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
return result;
|
|
3154
|
+
}
|
|
3155
|
+
function filterNonNullish(items) {
|
|
3156
|
+
return items.filter(Boolean);
|
|
3157
|
+
}
|
|
3158
|
+
function nonNullishFilter(item) {
|
|
3159
|
+
return !!item;
|
|
3160
|
+
}
|
|
3161
|
+
function nonNullFilter(item) {
|
|
3162
|
+
return item !== null;
|
|
3163
|
+
}
|
|
3164
|
+
function buildConstantEnum(values) {
|
|
3165
|
+
const constMap = values.reduce((acc, code) => ({ ...acc, [code]: code }), {});
|
|
3166
|
+
return constMap;
|
|
3167
|
+
}
|
|
3168
|
+
async function promiseWithTimeout(timeoutMs, promise) {
|
|
3169
|
+
let timeoutHandle;
|
|
3170
|
+
const timeoutPromise = new Promise((_, reject) => {
|
|
3171
|
+
timeoutHandle = setTimeout(() => reject(SupernovaException.timeout()), timeoutMs);
|
|
3172
|
+
});
|
|
3173
|
+
const result = await Promise.race([promise(), timeoutPromise]);
|
|
3174
|
+
clearTimeout(timeoutHandle);
|
|
3175
|
+
return result;
|
|
3176
|
+
}
|
|
3177
|
+
async function sleep(ms) {
|
|
3178
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3038
3181
|
// src/utils/content-loader-instruction.ts
|
|
3039
3182
|
import { z as z125 } from "zod";
|
|
3040
3183
|
var ContentLoadInstruction = z125.object({
|
|
@@ -3058,6 +3201,638 @@ var ContentLoaderPayload = z125.object({
|
|
|
3058
3201
|
location: z125.string()
|
|
3059
3202
|
})
|
|
3060
3203
|
);
|
|
3204
|
+
|
|
3205
|
+
// src/utils/slugify.ts
|
|
3206
|
+
import slugifyImplementation from "@sindresorhus/slugify";
|
|
3207
|
+
function slugify(str, options) {
|
|
3208
|
+
const slug = slugifyImplementation(str ?? "", options);
|
|
3209
|
+
return slug?.length > 0 ? slug : "item";
|
|
3210
|
+
}
|
|
3211
|
+
var RESERVED_SLUGS = [
|
|
3212
|
+
"workspaces",
|
|
3213
|
+
"workspace",
|
|
3214
|
+
"api0",
|
|
3215
|
+
"api1",
|
|
3216
|
+
"api2",
|
|
3217
|
+
"custom",
|
|
3218
|
+
"x-sn-reserved",
|
|
3219
|
+
// further elements copied from https://github.com/shouldbee/reserved-usernames/blob/master/reserved-usernames.json
|
|
3220
|
+
"0",
|
|
3221
|
+
"about",
|
|
3222
|
+
"access",
|
|
3223
|
+
"account",
|
|
3224
|
+
"accounts",
|
|
3225
|
+
"activate",
|
|
3226
|
+
"activities",
|
|
3227
|
+
"activity",
|
|
3228
|
+
"ad",
|
|
3229
|
+
"add",
|
|
3230
|
+
"address",
|
|
3231
|
+
"adm",
|
|
3232
|
+
"admin",
|
|
3233
|
+
"administration",
|
|
3234
|
+
"administrator",
|
|
3235
|
+
"ads",
|
|
3236
|
+
"adult",
|
|
3237
|
+
"advertising",
|
|
3238
|
+
"affiliate",
|
|
3239
|
+
"affiliates",
|
|
3240
|
+
"ajax",
|
|
3241
|
+
"all",
|
|
3242
|
+
"alpha",
|
|
3243
|
+
"analysis",
|
|
3244
|
+
"analytics",
|
|
3245
|
+
"android",
|
|
3246
|
+
"anon",
|
|
3247
|
+
"anonymous",
|
|
3248
|
+
"api",
|
|
3249
|
+
"app",
|
|
3250
|
+
"apps",
|
|
3251
|
+
"archive",
|
|
3252
|
+
"archives",
|
|
3253
|
+
"article",
|
|
3254
|
+
"asct",
|
|
3255
|
+
"asset",
|
|
3256
|
+
"assets",
|
|
3257
|
+
"atom",
|
|
3258
|
+
"auth",
|
|
3259
|
+
"authentication",
|
|
3260
|
+
"avatar",
|
|
3261
|
+
"backup",
|
|
3262
|
+
"balancer-manager",
|
|
3263
|
+
"banner",
|
|
3264
|
+
"banners",
|
|
3265
|
+
"beta",
|
|
3266
|
+
"billing",
|
|
3267
|
+
"bin",
|
|
3268
|
+
"blog",
|
|
3269
|
+
"blogs",
|
|
3270
|
+
"board",
|
|
3271
|
+
"book",
|
|
3272
|
+
"bookmark",
|
|
3273
|
+
"bot",
|
|
3274
|
+
"bots",
|
|
3275
|
+
"bug",
|
|
3276
|
+
"business",
|
|
3277
|
+
"cache",
|
|
3278
|
+
"cadastro",
|
|
3279
|
+
"calendar",
|
|
3280
|
+
"call",
|
|
3281
|
+
"campaign",
|
|
3282
|
+
"cancel",
|
|
3283
|
+
"captcha",
|
|
3284
|
+
"career",
|
|
3285
|
+
"careers",
|
|
3286
|
+
"cart",
|
|
3287
|
+
"categories",
|
|
3288
|
+
"category",
|
|
3289
|
+
"cgi",
|
|
3290
|
+
"cgi-bin",
|
|
3291
|
+
"changelog",
|
|
3292
|
+
"chat",
|
|
3293
|
+
"check",
|
|
3294
|
+
"checking",
|
|
3295
|
+
"checkout",
|
|
3296
|
+
"client",
|
|
3297
|
+
"cliente",
|
|
3298
|
+
"clients",
|
|
3299
|
+
"code",
|
|
3300
|
+
"codereview",
|
|
3301
|
+
"comercial",
|
|
3302
|
+
"comment",
|
|
3303
|
+
"comments",
|
|
3304
|
+
"communities",
|
|
3305
|
+
"community",
|
|
3306
|
+
"company",
|
|
3307
|
+
"compare",
|
|
3308
|
+
"compras",
|
|
3309
|
+
"config",
|
|
3310
|
+
"configuration",
|
|
3311
|
+
"connect",
|
|
3312
|
+
"contact",
|
|
3313
|
+
"contact-us",
|
|
3314
|
+
"contact_us",
|
|
3315
|
+
"contactus",
|
|
3316
|
+
"contest",
|
|
3317
|
+
"contribute",
|
|
3318
|
+
"corp",
|
|
3319
|
+
"create",
|
|
3320
|
+
"css",
|
|
3321
|
+
"dashboard",
|
|
3322
|
+
"data",
|
|
3323
|
+
"db",
|
|
3324
|
+
"default",
|
|
3325
|
+
"delete",
|
|
3326
|
+
"demo",
|
|
3327
|
+
"design",
|
|
3328
|
+
"designer",
|
|
3329
|
+
"destroy",
|
|
3330
|
+
"dev",
|
|
3331
|
+
"devel",
|
|
3332
|
+
"developer",
|
|
3333
|
+
"developers",
|
|
3334
|
+
"diagram",
|
|
3335
|
+
"diary",
|
|
3336
|
+
"dict",
|
|
3337
|
+
"dictionary",
|
|
3338
|
+
"die",
|
|
3339
|
+
"dir",
|
|
3340
|
+
"direct_messages",
|
|
3341
|
+
"directory",
|
|
3342
|
+
"dist",
|
|
3343
|
+
"doc",
|
|
3344
|
+
"docs",
|
|
3345
|
+
"documentation",
|
|
3346
|
+
"domain",
|
|
3347
|
+
"download",
|
|
3348
|
+
"downloads",
|
|
3349
|
+
"ecommerce",
|
|
3350
|
+
"edit",
|
|
3351
|
+
"editor",
|
|
3352
|
+
"edu",
|
|
3353
|
+
"education",
|
|
3354
|
+
"email",
|
|
3355
|
+
"employment",
|
|
3356
|
+
"empty",
|
|
3357
|
+
"end",
|
|
3358
|
+
"enterprise",
|
|
3359
|
+
"entries",
|
|
3360
|
+
"entry",
|
|
3361
|
+
"error",
|
|
3362
|
+
"errors",
|
|
3363
|
+
"eval",
|
|
3364
|
+
"event",
|
|
3365
|
+
"exit",
|
|
3366
|
+
"explore",
|
|
3367
|
+
"facebook",
|
|
3368
|
+
"faq",
|
|
3369
|
+
"favorite",
|
|
3370
|
+
"favorites",
|
|
3371
|
+
"feature",
|
|
3372
|
+
"features",
|
|
3373
|
+
"feed",
|
|
3374
|
+
"feedback",
|
|
3375
|
+
"feeds",
|
|
3376
|
+
"file",
|
|
3377
|
+
"files",
|
|
3378
|
+
"first",
|
|
3379
|
+
"flash",
|
|
3380
|
+
"fleet",
|
|
3381
|
+
"fleets",
|
|
3382
|
+
"flog",
|
|
3383
|
+
"follow",
|
|
3384
|
+
"followers",
|
|
3385
|
+
"following",
|
|
3386
|
+
"forgot",
|
|
3387
|
+
"form",
|
|
3388
|
+
"forum",
|
|
3389
|
+
"forums",
|
|
3390
|
+
"founder",
|
|
3391
|
+
"free",
|
|
3392
|
+
"friend",
|
|
3393
|
+
"friends",
|
|
3394
|
+
"ftp",
|
|
3395
|
+
"gadget",
|
|
3396
|
+
"gadgets",
|
|
3397
|
+
"game",
|
|
3398
|
+
"games",
|
|
3399
|
+
"get",
|
|
3400
|
+
"ghost",
|
|
3401
|
+
"gift",
|
|
3402
|
+
"gifts",
|
|
3403
|
+
"gist",
|
|
3404
|
+
"github",
|
|
3405
|
+
"graph",
|
|
3406
|
+
"group",
|
|
3407
|
+
"groups",
|
|
3408
|
+
"guest",
|
|
3409
|
+
"guests",
|
|
3410
|
+
"help",
|
|
3411
|
+
"home",
|
|
3412
|
+
"homepage",
|
|
3413
|
+
"host",
|
|
3414
|
+
"hosting",
|
|
3415
|
+
"hostmaster",
|
|
3416
|
+
"hostname",
|
|
3417
|
+
"howto",
|
|
3418
|
+
"hpg",
|
|
3419
|
+
"html",
|
|
3420
|
+
"http",
|
|
3421
|
+
"httpd",
|
|
3422
|
+
"https",
|
|
3423
|
+
"i",
|
|
3424
|
+
"iamges",
|
|
3425
|
+
"icon",
|
|
3426
|
+
"icons",
|
|
3427
|
+
"id",
|
|
3428
|
+
"idea",
|
|
3429
|
+
"ideas",
|
|
3430
|
+
"image",
|
|
3431
|
+
"images",
|
|
3432
|
+
"imap",
|
|
3433
|
+
"img",
|
|
3434
|
+
"index",
|
|
3435
|
+
"indice",
|
|
3436
|
+
"info",
|
|
3437
|
+
"information",
|
|
3438
|
+
"inquiry",
|
|
3439
|
+
"instagram",
|
|
3440
|
+
"intranet",
|
|
3441
|
+
"invitations",
|
|
3442
|
+
"invite",
|
|
3443
|
+
"ipad",
|
|
3444
|
+
"iphone",
|
|
3445
|
+
"irc",
|
|
3446
|
+
"is",
|
|
3447
|
+
"issue",
|
|
3448
|
+
"issues",
|
|
3449
|
+
"it",
|
|
3450
|
+
"item",
|
|
3451
|
+
"items",
|
|
3452
|
+
"java",
|
|
3453
|
+
"javascript",
|
|
3454
|
+
"job",
|
|
3455
|
+
"jobs",
|
|
3456
|
+
"join",
|
|
3457
|
+
"js",
|
|
3458
|
+
"json",
|
|
3459
|
+
"jump",
|
|
3460
|
+
"knowledgebase",
|
|
3461
|
+
"language",
|
|
3462
|
+
"languages",
|
|
3463
|
+
"last",
|
|
3464
|
+
"ldap-status",
|
|
3465
|
+
"legal",
|
|
3466
|
+
"license",
|
|
3467
|
+
"link",
|
|
3468
|
+
"links",
|
|
3469
|
+
"linux",
|
|
3470
|
+
"list",
|
|
3471
|
+
"lists",
|
|
3472
|
+
"log",
|
|
3473
|
+
"log-in",
|
|
3474
|
+
"log-out",
|
|
3475
|
+
"log_in",
|
|
3476
|
+
"log_out",
|
|
3477
|
+
"login",
|
|
3478
|
+
"logout",
|
|
3479
|
+
"logs",
|
|
3480
|
+
"m",
|
|
3481
|
+
"mac",
|
|
3482
|
+
"mail",
|
|
3483
|
+
"mail1",
|
|
3484
|
+
"mail2",
|
|
3485
|
+
"mail3",
|
|
3486
|
+
"mail4",
|
|
3487
|
+
"mail5",
|
|
3488
|
+
"mailer",
|
|
3489
|
+
"mailing",
|
|
3490
|
+
"maintenance",
|
|
3491
|
+
"manager",
|
|
3492
|
+
"manual",
|
|
3493
|
+
"map",
|
|
3494
|
+
"maps",
|
|
3495
|
+
"marketing",
|
|
3496
|
+
"master",
|
|
3497
|
+
"me",
|
|
3498
|
+
"media",
|
|
3499
|
+
"member",
|
|
3500
|
+
"members",
|
|
3501
|
+
"message",
|
|
3502
|
+
"messages",
|
|
3503
|
+
"messenger",
|
|
3504
|
+
"microblog",
|
|
3505
|
+
"microblogs",
|
|
3506
|
+
"mine",
|
|
3507
|
+
"mis",
|
|
3508
|
+
"mob",
|
|
3509
|
+
"mobile",
|
|
3510
|
+
"movie",
|
|
3511
|
+
"movies",
|
|
3512
|
+
"mp3",
|
|
3513
|
+
"msg",
|
|
3514
|
+
"msn",
|
|
3515
|
+
"music",
|
|
3516
|
+
"musicas",
|
|
3517
|
+
"mx",
|
|
3518
|
+
"my",
|
|
3519
|
+
"mysql",
|
|
3520
|
+
"name",
|
|
3521
|
+
"named",
|
|
3522
|
+
"nan",
|
|
3523
|
+
"navi",
|
|
3524
|
+
"navigation",
|
|
3525
|
+
"net",
|
|
3526
|
+
"network",
|
|
3527
|
+
"new",
|
|
3528
|
+
"news",
|
|
3529
|
+
"newsletter",
|
|
3530
|
+
"nick",
|
|
3531
|
+
"nickname",
|
|
3532
|
+
"notes",
|
|
3533
|
+
"noticias",
|
|
3534
|
+
"notification",
|
|
3535
|
+
"notifications",
|
|
3536
|
+
"notify",
|
|
3537
|
+
"ns",
|
|
3538
|
+
"ns1",
|
|
3539
|
+
"ns10",
|
|
3540
|
+
"ns2",
|
|
3541
|
+
"ns3",
|
|
3542
|
+
"ns4",
|
|
3543
|
+
"ns5",
|
|
3544
|
+
"ns6",
|
|
3545
|
+
"ns7",
|
|
3546
|
+
"ns8",
|
|
3547
|
+
"ns9",
|
|
3548
|
+
"null",
|
|
3549
|
+
"oauth",
|
|
3550
|
+
"oauth_clients",
|
|
3551
|
+
"offer",
|
|
3552
|
+
"offers",
|
|
3553
|
+
"official",
|
|
3554
|
+
"old",
|
|
3555
|
+
"online",
|
|
3556
|
+
"openid",
|
|
3557
|
+
"operator",
|
|
3558
|
+
"order",
|
|
3559
|
+
"orders",
|
|
3560
|
+
"organization",
|
|
3561
|
+
"organizations",
|
|
3562
|
+
"overview",
|
|
3563
|
+
"owner",
|
|
3564
|
+
"owners",
|
|
3565
|
+
"page",
|
|
3566
|
+
"pager",
|
|
3567
|
+
"pages",
|
|
3568
|
+
"panel",
|
|
3569
|
+
"password",
|
|
3570
|
+
"payment",
|
|
3571
|
+
"perl",
|
|
3572
|
+
"phone",
|
|
3573
|
+
"photo",
|
|
3574
|
+
"photoalbum",
|
|
3575
|
+
"photos",
|
|
3576
|
+
"php",
|
|
3577
|
+
"phpmyadmin",
|
|
3578
|
+
"phppgadmin",
|
|
3579
|
+
"phpredisadmin",
|
|
3580
|
+
"pic",
|
|
3581
|
+
"pics",
|
|
3582
|
+
"ping",
|
|
3583
|
+
"plan",
|
|
3584
|
+
"plans",
|
|
3585
|
+
"plugin",
|
|
3586
|
+
"plugins",
|
|
3587
|
+
"policy",
|
|
3588
|
+
"pop",
|
|
3589
|
+
"pop3",
|
|
3590
|
+
"popular",
|
|
3591
|
+
"portal",
|
|
3592
|
+
"post",
|
|
3593
|
+
"postfix",
|
|
3594
|
+
"postmaster",
|
|
3595
|
+
"posts",
|
|
3596
|
+
"pr",
|
|
3597
|
+
"premium",
|
|
3598
|
+
"press",
|
|
3599
|
+
"price",
|
|
3600
|
+
"pricing",
|
|
3601
|
+
"privacy",
|
|
3602
|
+
"privacy-policy",
|
|
3603
|
+
"privacy_policy",
|
|
3604
|
+
"privacypolicy",
|
|
3605
|
+
"private",
|
|
3606
|
+
"product",
|
|
3607
|
+
"products",
|
|
3608
|
+
"profile",
|
|
3609
|
+
"project",
|
|
3610
|
+
"projects",
|
|
3611
|
+
"promo",
|
|
3612
|
+
"pub",
|
|
3613
|
+
"public",
|
|
3614
|
+
"purpose",
|
|
3615
|
+
"put",
|
|
3616
|
+
"python",
|
|
3617
|
+
"query",
|
|
3618
|
+
"random",
|
|
3619
|
+
"ranking",
|
|
3620
|
+
"read",
|
|
3621
|
+
"readme",
|
|
3622
|
+
"recent",
|
|
3623
|
+
"recruit",
|
|
3624
|
+
"recruitment",
|
|
3625
|
+
"register",
|
|
3626
|
+
"registration",
|
|
3627
|
+
"release",
|
|
3628
|
+
"remove",
|
|
3629
|
+
"replies",
|
|
3630
|
+
"report",
|
|
3631
|
+
"reports",
|
|
3632
|
+
"repositories",
|
|
3633
|
+
"repository",
|
|
3634
|
+
"req",
|
|
3635
|
+
"request",
|
|
3636
|
+
"requests",
|
|
3637
|
+
"reset",
|
|
3638
|
+
"roc",
|
|
3639
|
+
"root",
|
|
3640
|
+
"rss",
|
|
3641
|
+
"ruby",
|
|
3642
|
+
"rule",
|
|
3643
|
+
"sag",
|
|
3644
|
+
"sale",
|
|
3645
|
+
"sales",
|
|
3646
|
+
"sample",
|
|
3647
|
+
"samples",
|
|
3648
|
+
"save",
|
|
3649
|
+
"school",
|
|
3650
|
+
"script",
|
|
3651
|
+
"scripts",
|
|
3652
|
+
"search",
|
|
3653
|
+
"secure",
|
|
3654
|
+
"security",
|
|
3655
|
+
"self",
|
|
3656
|
+
"send",
|
|
3657
|
+
"server",
|
|
3658
|
+
"server-info",
|
|
3659
|
+
"server-status",
|
|
3660
|
+
"service",
|
|
3661
|
+
"services",
|
|
3662
|
+
"session",
|
|
3663
|
+
"sessions",
|
|
3664
|
+
"setting",
|
|
3665
|
+
"settings",
|
|
3666
|
+
"setup",
|
|
3667
|
+
"share",
|
|
3668
|
+
"shop",
|
|
3669
|
+
"show",
|
|
3670
|
+
"sign-in",
|
|
3671
|
+
"sign-up",
|
|
3672
|
+
"sign_in",
|
|
3673
|
+
"sign_up",
|
|
3674
|
+
"signin",
|
|
3675
|
+
"signout",
|
|
3676
|
+
"signup",
|
|
3677
|
+
"site",
|
|
3678
|
+
"sitemap",
|
|
3679
|
+
"sites",
|
|
3680
|
+
"smartphone",
|
|
3681
|
+
"smtp",
|
|
3682
|
+
"soporte",
|
|
3683
|
+
"source",
|
|
3684
|
+
"spec",
|
|
3685
|
+
"special",
|
|
3686
|
+
"sql",
|
|
3687
|
+
"src",
|
|
3688
|
+
"ssh",
|
|
3689
|
+
"ssl",
|
|
3690
|
+
"ssladmin",
|
|
3691
|
+
"ssladministrator",
|
|
3692
|
+
"sslwebmaster",
|
|
3693
|
+
"staff",
|
|
3694
|
+
"stage",
|
|
3695
|
+
"staging",
|
|
3696
|
+
"start",
|
|
3697
|
+
"stat",
|
|
3698
|
+
"state",
|
|
3699
|
+
"static",
|
|
3700
|
+
"stats",
|
|
3701
|
+
"status",
|
|
3702
|
+
"store",
|
|
3703
|
+
"stores",
|
|
3704
|
+
"stories",
|
|
3705
|
+
"style",
|
|
3706
|
+
"styleguide",
|
|
3707
|
+
"stylesheet",
|
|
3708
|
+
"stylesheets",
|
|
3709
|
+
"subdomain",
|
|
3710
|
+
"subscribe",
|
|
3711
|
+
"subscriptions",
|
|
3712
|
+
"suporte",
|
|
3713
|
+
"support",
|
|
3714
|
+
"svn",
|
|
3715
|
+
"swf",
|
|
3716
|
+
"sys",
|
|
3717
|
+
"sysadmin",
|
|
3718
|
+
"sysadministrator",
|
|
3719
|
+
"system",
|
|
3720
|
+
"tablet",
|
|
3721
|
+
"tablets",
|
|
3722
|
+
"tag",
|
|
3723
|
+
"talk",
|
|
3724
|
+
"task",
|
|
3725
|
+
"tasks",
|
|
3726
|
+
"team",
|
|
3727
|
+
"teams",
|
|
3728
|
+
"tech",
|
|
3729
|
+
"telnet",
|
|
3730
|
+
"term",
|
|
3731
|
+
"terms",
|
|
3732
|
+
"terms-of-service",
|
|
3733
|
+
"terms_of_service",
|
|
3734
|
+
"termsofservice",
|
|
3735
|
+
"test",
|
|
3736
|
+
"test1",
|
|
3737
|
+
"test2",
|
|
3738
|
+
"test3",
|
|
3739
|
+
"teste",
|
|
3740
|
+
"testing",
|
|
3741
|
+
"tests",
|
|
3742
|
+
"theme",
|
|
3743
|
+
"themes",
|
|
3744
|
+
"thread",
|
|
3745
|
+
"threads",
|
|
3746
|
+
"tmp",
|
|
3747
|
+
"todo",
|
|
3748
|
+
"tool",
|
|
3749
|
+
"tools",
|
|
3750
|
+
"top",
|
|
3751
|
+
"topic",
|
|
3752
|
+
"topics",
|
|
3753
|
+
"tos",
|
|
3754
|
+
"tour",
|
|
3755
|
+
"translations",
|
|
3756
|
+
"trends",
|
|
3757
|
+
"tutorial",
|
|
3758
|
+
"tux",
|
|
3759
|
+
"tv",
|
|
3760
|
+
"twitter",
|
|
3761
|
+
"undef",
|
|
3762
|
+
"unfollow",
|
|
3763
|
+
"unsubscribe",
|
|
3764
|
+
"update",
|
|
3765
|
+
"upload",
|
|
3766
|
+
"uploads",
|
|
3767
|
+
"url",
|
|
3768
|
+
"usage",
|
|
3769
|
+
"user",
|
|
3770
|
+
"username",
|
|
3771
|
+
"users",
|
|
3772
|
+
"usuario",
|
|
3773
|
+
"vendas",
|
|
3774
|
+
"ver",
|
|
3775
|
+
"version",
|
|
3776
|
+
"video",
|
|
3777
|
+
"videos",
|
|
3778
|
+
"visitor",
|
|
3779
|
+
"watch",
|
|
3780
|
+
"weather",
|
|
3781
|
+
"web",
|
|
3782
|
+
"webhook",
|
|
3783
|
+
"webhooks",
|
|
3784
|
+
"webmail",
|
|
3785
|
+
"webmaster",
|
|
3786
|
+
"website",
|
|
3787
|
+
"websites",
|
|
3788
|
+
"welcome",
|
|
3789
|
+
"widget",
|
|
3790
|
+
"widgets",
|
|
3791
|
+
"wiki",
|
|
3792
|
+
"win",
|
|
3793
|
+
"windows",
|
|
3794
|
+
"word",
|
|
3795
|
+
"work",
|
|
3796
|
+
"works",
|
|
3797
|
+
"workshop",
|
|
3798
|
+
"ww",
|
|
3799
|
+
"wws",
|
|
3800
|
+
"www",
|
|
3801
|
+
"www1",
|
|
3802
|
+
"www2",
|
|
3803
|
+
"www3",
|
|
3804
|
+
"www4",
|
|
3805
|
+
"www5",
|
|
3806
|
+
"www6",
|
|
3807
|
+
"www7",
|
|
3808
|
+
"wwws",
|
|
3809
|
+
"wwww",
|
|
3810
|
+
"xfn",
|
|
3811
|
+
"xml",
|
|
3812
|
+
"xmpp",
|
|
3813
|
+
"xpg",
|
|
3814
|
+
"xxx",
|
|
3815
|
+
"yaml",
|
|
3816
|
+
"year",
|
|
3817
|
+
"yml",
|
|
3818
|
+
"you",
|
|
3819
|
+
"yourdomain",
|
|
3820
|
+
"yourname",
|
|
3821
|
+
"yoursite",
|
|
3822
|
+
"yourusername",
|
|
3823
|
+
"latest",
|
|
3824
|
+
"live",
|
|
3825
|
+
"preview",
|
|
3826
|
+
"learn",
|
|
3827
|
+
"supernova",
|
|
3828
|
+
"super-nova"
|
|
3829
|
+
];
|
|
3830
|
+
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3831
|
+
var RESERVED_SLUG_PREFIX = "x-sn-reserved-";
|
|
3832
|
+
var isSlugReservedInternal = (slug) => slug?.startsWith(RESERVED_SLUG_PREFIX);
|
|
3833
|
+
function isSlugReserved(slug) {
|
|
3834
|
+
return RESERVED_SLUGS_SET.has(slug) || isSlugReservedInternal(slug);
|
|
3835
|
+
}
|
|
3061
3836
|
export {
|
|
3062
3837
|
Address,
|
|
3063
3838
|
Asset,
|
|
@@ -3138,6 +3913,8 @@ export {
|
|
|
3138
3913
|
DesignSystemSwitcher,
|
|
3139
3914
|
DesignSystemUpdateInput,
|
|
3140
3915
|
DesignSystemVersionRoom,
|
|
3916
|
+
DesignSystemVersionRoomInitialState,
|
|
3917
|
+
DesignSystemVersionRoomUpdate,
|
|
3141
3918
|
DesignSystemWithWorkspace,
|
|
3142
3919
|
DesignToken,
|
|
3143
3920
|
DesignTokenImportModel,
|
|
@@ -3438,6 +4215,8 @@ export {
|
|
|
3438
4215
|
PulsarContributionVariant,
|
|
3439
4216
|
PulsarCustomBlock,
|
|
3440
4217
|
PulsarPropertyType,
|
|
4218
|
+
RESERVED_SLUGS,
|
|
4219
|
+
RESERVED_SLUG_PREFIX,
|
|
3441
4220
|
RoomType,
|
|
3442
4221
|
RoomTypeEnum,
|
|
3443
4222
|
RoomTypeSchema,
|
|
@@ -3468,6 +4247,7 @@ export {
|
|
|
3468
4247
|
StripeSubscriptionStatus,
|
|
3469
4248
|
StripeSubscriptionStatusSchema,
|
|
3470
4249
|
Subscription,
|
|
4250
|
+
SupernovaException,
|
|
3471
4251
|
TextCase,
|
|
3472
4252
|
TextCaseTokenData,
|
|
3473
4253
|
TextCaseValue,
|
|
@@ -3522,6 +4302,7 @@ export {
|
|
|
3522
4302
|
ZIndexUnit,
|
|
3523
4303
|
ZIndexValue,
|
|
3524
4304
|
addImportModelCollections,
|
|
4305
|
+
buildConstantEnum,
|
|
3525
4306
|
colorValueFormatDescription,
|
|
3526
4307
|
colorValueRegex,
|
|
3527
4308
|
defaultDocumentationItemConfiguration,
|
|
@@ -3531,19 +4312,33 @@ export {
|
|
|
3531
4312
|
extractTokenTypedData,
|
|
3532
4313
|
figmaFileStructureImportModelToMap,
|
|
3533
4314
|
figmaFileStructureToMap,
|
|
4315
|
+
filterNonNullish,
|
|
4316
|
+
forceUnwrapNullish,
|
|
4317
|
+
groupBy,
|
|
3534
4318
|
isDesignTokenImportModelOfType,
|
|
3535
4319
|
isDesignTokenOfType,
|
|
3536
4320
|
isImportedAsset,
|
|
3537
4321
|
isImportedComponent,
|
|
3538
4322
|
isImportedDesignToken,
|
|
4323
|
+
isSlugReserved,
|
|
3539
4324
|
isTokenType,
|
|
4325
|
+
mapByUnique,
|
|
4326
|
+
mergeDesignSystemVersionRoomUpdates,
|
|
4327
|
+
nonNullFilter,
|
|
4328
|
+
nonNullishFilter,
|
|
3540
4329
|
nullishToOptional,
|
|
4330
|
+
parseUrl,
|
|
4331
|
+
promiseWithTimeout,
|
|
3541
4332
|
publishedDocEnvironments,
|
|
4333
|
+
sleep,
|
|
3542
4334
|
slugRegex,
|
|
4335
|
+
slugify,
|
|
3543
4336
|
tokenAliasOrValue,
|
|
3544
4337
|
tokenElementTypes,
|
|
3545
4338
|
traversePageBlocksV1,
|
|
3546
4339
|
traverseStructure,
|
|
4340
|
+
trimLeadingSlash,
|
|
4341
|
+
trimTrailingSlash,
|
|
3547
4342
|
tryParseShortPersistentId,
|
|
3548
4343
|
zodCreateInputOmit,
|
|
3549
4344
|
zodUpdateInputOmit
|