@supernova-studio/model 0.55.29 → 0.55.30

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 CHANGED
@@ -29739,7 +29739,7 @@ declare function trimLeadingSlash(string: string): string;
29739
29739
  declare function trimTrailingSlash(string: string): string;
29740
29740
  declare function tryParseUrl(url: string): URL | null;
29741
29741
  declare function parseUrl(url: string): URL;
29742
- declare function mapByUnique<V, K>(items: V[], keyFn: (item: V) => K): Map<K, V>;
29742
+ declare function mapByUnique<V, K>(items: Iterable<V>, keyFn: (item: V) => K): Map<K, V>;
29743
29743
  declare function groupBy<V, K>(items: V[], keyFn: (item: V) => K): Map<K, V[]>;
29744
29744
  declare function filterNonNullish<T>(items: Nullish<T>[]): T[];
29745
29745
  declare function nonNullishFilter<T>(item: Nullish<T>): item is T;
@@ -57694,7 +57694,7 @@ declare const PageBlockEditorModelV2: z.ZodObject<{
57694
57694
  type PageBlockEditorModelV2 = z.infer<typeof PageBlockEditorModelV2>;
57695
57695
 
57696
57696
  type CreateDesignElement = DbCreateInputOmit<DesignElement>;
57697
- type UpdateDesignElement = OmitStrict<DbUpdate<DesignElement>, "brandPersistentId" | "childType" | "designSystemVersionId" | "shortPersistentId" | "type">;
57697
+ type UpdateDesignElement = OmitStrict<DbUpdate<DesignElement>, "brandPersistentId" | "childType" | "designSystemVersionId" | "shortPersistentId">;
57698
57698
  declare const tokenElementTypes: DesignTokenType[];
57699
57699
  declare const DesignTokenType: z.ZodEnum<["Color", "Border", "Gradient", "Shadow", "Dimension", "Duration", "Size", "Space", "Opacity", "FontSize", "LineHeight", "LetterSpacing", "ParagraphSpacing", "BorderWidth", "BorderRadius", "ZIndex", "Image", "String", "ProductCopy", "FontFamily", "FontWeight", "TextDecoration", "TextCase", "Visibility", "Typography", "Blur", "Font"]>;
57700
57700
  type DesignTokenType = z.infer<typeof DesignTokenType>;
package/dist/index.d.ts CHANGED
@@ -29739,7 +29739,7 @@ declare function trimLeadingSlash(string: string): string;
29739
29739
  declare function trimTrailingSlash(string: string): string;
29740
29740
  declare function tryParseUrl(url: string): URL | null;
29741
29741
  declare function parseUrl(url: string): URL;
29742
- declare function mapByUnique<V, K>(items: V[], keyFn: (item: V) => K): Map<K, V>;
29742
+ declare function mapByUnique<V, K>(items: Iterable<V>, keyFn: (item: V) => K): Map<K, V>;
29743
29743
  declare function groupBy<V, K>(items: V[], keyFn: (item: V) => K): Map<K, V[]>;
29744
29744
  declare function filterNonNullish<T>(items: Nullish<T>[]): T[];
29745
29745
  declare function nonNullishFilter<T>(item: Nullish<T>): item is T;
@@ -57694,7 +57694,7 @@ declare const PageBlockEditorModelV2: z.ZodObject<{
57694
57694
  type PageBlockEditorModelV2 = z.infer<typeof PageBlockEditorModelV2>;
57695
57695
 
57696
57696
  type CreateDesignElement = DbCreateInputOmit<DesignElement>;
57697
- type UpdateDesignElement = OmitStrict<DbUpdate<DesignElement>, "brandPersistentId" | "childType" | "designSystemVersionId" | "shortPersistentId" | "type">;
57697
+ type UpdateDesignElement = OmitStrict<DbUpdate<DesignElement>, "brandPersistentId" | "childType" | "designSystemVersionId" | "shortPersistentId">;
57698
57698
  declare const tokenElementTypes: DesignTokenType[];
57699
57699
  declare const DesignTokenType: z.ZodEnum<["Color", "Border", "Gradient", "Shadow", "Dimension", "Duration", "Size", "Space", "Opacity", "FontSize", "LineHeight", "LetterSpacing", "ParagraphSpacing", "BorderWidth", "BorderRadius", "ZIndex", "Image", "String", "ProductCopy", "FontFamily", "FontWeight", "TextDecoration", "TextCase", "Visibility", "Typography", "Blur", "Font"]>;
57700
57700
  type DesignTokenType = z.infer<typeof DesignTokenType>;