@supernova-studio/model 1.10.2 → 1.10.4
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 +158 -47
- package/dist/index.d.ts +158 -47
- package/dist/index.js +23 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1069,6 +1069,11 @@ function applyShallowObjectUpdate(object, update) {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
return objectShallowCopy;
|
|
1071
1071
|
}
|
|
1072
|
+
function pickDefined(obj) {
|
|
1073
|
+
return Object.fromEntries(
|
|
1074
|
+
Object.entries(obj).filter(([_, v]) => v !== void 0)
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1072
1077
|
|
|
1073
1078
|
// src/utils/content-loader-instruction.ts
|
|
1074
1079
|
import { z as z40 } from "zod";
|
|
@@ -6457,14 +6462,24 @@ var NpmProxyTokenPayload = z204.object({
|
|
|
6457
6462
|
|
|
6458
6463
|
// src/portal/portal-settings.ts
|
|
6459
6464
|
import { z as z205 } from "zod";
|
|
6460
|
-
var PortalSettingsTheme =
|
|
6465
|
+
var PortalSettingsTheme = UserTheme;
|
|
6466
|
+
var PortalSettingsSidebarLink = z205.object({
|
|
6467
|
+
name: z205.string(),
|
|
6468
|
+
url: z205.string(),
|
|
6469
|
+
emoji: z205.string()
|
|
6470
|
+
});
|
|
6471
|
+
var PortalSettingsSidebarSection = z205.object({
|
|
6472
|
+
sectionName: z205.string(),
|
|
6473
|
+
links: z205.array(PortalSettingsSidebarLink)
|
|
6474
|
+
});
|
|
6475
|
+
var PortalSettingsSidebar = z205.array(PortalSettingsSidebarSection);
|
|
6461
6476
|
var PortalSettings = z205.object({
|
|
6462
6477
|
id: z205.string(),
|
|
6463
6478
|
workspaceId: z205.string(),
|
|
6464
6479
|
enabledDesignSystemIds: z205.array(z205.string()),
|
|
6465
6480
|
enabledBrandPersistentIds: z205.array(z205.string()),
|
|
6466
|
-
theme: PortalSettingsTheme,
|
|
6467
|
-
sidebar:
|
|
6481
|
+
theme: PortalSettingsTheme.nullish(),
|
|
6482
|
+
sidebar: PortalSettingsSidebar.nullish(),
|
|
6468
6483
|
createdAt: z205.coerce.date(),
|
|
6469
6484
|
updatedAt: z205.coerce.date()
|
|
6470
6485
|
});
|
|
@@ -7052,6 +7067,9 @@ export {
|
|
|
7052
7067
|
PluginOAuthRequestSchema,
|
|
7053
7068
|
Point2D,
|
|
7054
7069
|
PortalSettings,
|
|
7070
|
+
PortalSettingsSidebar,
|
|
7071
|
+
PortalSettingsSidebarLink,
|
|
7072
|
+
PortalSettingsSidebarSection,
|
|
7055
7073
|
PortalSettingsTheme,
|
|
7056
7074
|
PostStripeCheckoutBodyInputSchema,
|
|
7057
7075
|
PostStripeCheckoutOutputSchema,
|
|
@@ -7233,6 +7251,7 @@ export {
|
|
|
7233
7251
|
nonNullishFilter,
|
|
7234
7252
|
nullishToOptional,
|
|
7235
7253
|
parseUrl,
|
|
7254
|
+
pickDefined,
|
|
7236
7255
|
pickLatestGroupSnapshots,
|
|
7237
7256
|
pickLatestPageSnapshots,
|
|
7238
7257
|
pickLatestSnapshots,
|