@pantoken/sd-config 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +6 -7
  2. package/package.json +7 -7
package/dist/index.d.mts CHANGED
@@ -1,19 +1,19 @@
1
1
  //#region src/index.d.ts
2
2
  /** A flat, concrete Style Dictionary dictionary (from `@pantoken/core`'s `toStyleDictionary`). */
3
- type SdDictionary = Record<string, {
3
+ export type SdDictionary = Record<string, {
4
4
  value: string;
5
5
  type: string;
6
6
  }>;
7
7
  /** A native platform pantoken can emit. */
8
- interface NativePlatform {
8
+ export interface NativePlatform {
9
9
  transformGroup: string;
10
10
  format: string;
11
11
  ext: string;
12
12
  }
13
13
  /** The supported native platforms and their Style Dictionary wiring. */
14
- declare const PLATFORMS: Record<string, NativePlatform>;
14
+ export declare const PLATFORMS: Record<string, NativePlatform>;
15
15
  /** Options for {@link buildPlatform}. */
16
- interface BuildPlatformOptions {
16
+ export interface BuildPlatformOptions {
17
17
  /** The concrete token dictionary. */
18
18
  dictionary: SdDictionary;
19
19
  /** The platform key (see {@link PLATFORMS}). */
@@ -31,6 +31,5 @@ interface BuildPlatformOptions {
31
31
  * @param options - {@link BuildPlatformOptions}.
32
32
  * @returns The path of the written file.
33
33
  */
34
- declare function buildPlatform(options: BuildPlatformOptions): Promise<string>;
35
- //#endregion
36
- export { BuildPlatformOptions, NativePlatform, PLATFORMS, SdDictionary, buildPlatform };
34
+ export declare function buildPlatform(options: BuildPlatformOptions): Promise<string>;
35
+ //#endregion
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@pantoken/sd-config",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Shared Style Dictionary setup for pantoken's native emitters (Swift, Compose, Flutter, SCSS, JSON).",
5
- "homepage": "https://pantoken.iywahl.com",
5
+ "homepage": "https://pantoken.app",
6
6
  "bugs": "https://github.com/thedannywahl/pantoken/issues",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -24,15 +24,15 @@
24
24
  "provenance": true
25
25
  },
26
26
  "dependencies": {
27
- "@pantoken/model": "0.3.1",
27
+ "@pantoken/model": "0.4.0",
28
28
  "@tokens-studio/sd-transforms": "^2.0.3",
29
- "style-dictionary": "^5.5.2"
29
+ "style-dictionary": "^5.5.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^26.3.0",
32
+ "@types/node": "^26.5.1",
33
33
  "typescript": "^7.0.2",
34
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
35
- "vite-plus": "0.3.0"
34
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.3.2",
35
+ "vite-plus": "0.3.2"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=22.18.0"