@supernova-studio/supernova-sdk-beta 2.5.1 → 2.5.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.
@@ -1,4 +1,5 @@
1
1
  import { Supernova } from "../../core/SDKSupernova";
2
+ import { ActivityEventOptions } from "../../core/data/requests/SDKDataCoreWriteRequests";
2
3
  import { Brand } from "../../model/base/SDKBrand";
3
4
  import { TokenGroup } from "../../model/groups/SDKTokenGroup";
4
5
  import { Logger } from "../../model/support/SDKLogger";
@@ -28,7 +29,9 @@ export declare class SupernovaToolsDesignTokensPlugin {
28
29
  private logger;
29
30
  constructor(designSystemId: string, versionId: string, instance: Supernova, logger?: Logger);
30
31
  synchronizeTokensFromData(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<object>;
31
- synchronizeTokensFromDataWithResults(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<{
32
+ synchronizeTokensFromDataWithResults(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings, options?: {
33
+ activityEventOptions?: ActivityEventOptions;
34
+ }): Promise<{
32
35
  results: SupernovaToolsDesignTokensResult[];
33
36
  logs: string[];
34
37
  }>;
@@ -40,13 +43,13 @@ export declare class SupernovaToolsDesignTokensPlugin {
40
43
  groups: Array<TokenGroup>;
41
44
  };
42
45
  /** Loads remote source connected to this tool, then merges tokens and groups with it, creating union. Can optionally write to the source as well */
43
- mergeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, write: boolean, verbose: boolean, preciseCopy: DTPluginPreciseCopyStrategy): Promise<{
46
+ mergeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, write: boolean, verbose: boolean, preciseCopy: DTPluginPreciseCopyStrategy, activityEventOptions?: ActivityEventOptions): Promise<{
44
47
  tokens: Array<Token>;
45
48
  groups: Array<TokenGroup>;
46
49
  diff: DTTokenMergeDiff;
47
50
  }>;
48
51
  /** Loads remote source connected to this tool, then creates the diff from the base tree and updates the associated theme. Can optionally write to the source as well */
49
- mergeThemeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, theme: TokenTheme, write: boolean, verbose: boolean, preciseCopy?: DTPluginPreciseCopyStrategy, themeOverridesStrategy?: DTPluginThemeOverrideStrategy): Promise<{
52
+ mergeThemeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, theme: TokenTheme, write: boolean, verbose: boolean, preciseCopy?: DTPluginPreciseCopyStrategy, themeOverridesStrategy?: DTPluginThemeOverrideStrategy, activityEventOptions?: ActivityEventOptions): Promise<{
50
53
  theme: TokenTheme;
51
54
  tokens: Array<Token>;
52
55
  }>;
@@ -315,6 +315,6 @@ export declare class TokenUtils {
315
315
  static getTokenByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, T>): T | undefined;
316
316
  static getKeysByKeyOrFallbackKeys(node: Pick<DTProcessedTokenNode, "path" | "token">): string[];
317
317
  static getTokenByKeyOrBackwardKey(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, DTProcessedTokenNode>): DTProcessedTokenNode | undefined;
318
- static getTextCaseTokenValue(value: TextCase): "Original" | "Uppercase" | "Lowercase" | "Capitalize" | "Small caps";
318
+ static getTextCaseTokenValue(value: TextCase): "Uppercase" | "Lowercase" | "Capitalize" | "Small caps" | "Original";
319
319
  }
320
320
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/supernova-sdk-beta",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "Supernova.io SDK",
5
5
  "main": "./build/supernova-sdk-typescript.js",
6
6
  "types": "./build/types/index.d.ts",
@@ -57,8 +57,8 @@
57
57
  "webpack": "5.108.4",
58
58
  "webpack-cli": "6.0.1",
59
59
  "webpack-node-externals": "3.0.0",
60
- "@supernovaio/typescript-with-config": "1.3.28",
61
- "@supernovaio/lint-rules": "0.0.0"
60
+ "@supernovaio/lint-rules": "0.0.0",
61
+ "@supernovaio/typescript-with-config": "1.3.28"
62
62
  },
63
63
  "optionalDependencies": {
64
64
  "@rollup/rollup-darwin-x64": "4.59.0"