@zappie/tokens 0.1.1 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zappie/tokens
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b31a689: Build the declaration files with tsup 9. Type-only exports are now written as `export type { ... }` and shared declaration chunks have new file names. Foundations part props name their omitted attributes `PartOwnedAttributes`, so their declarations no longer depend on build order. Every entry point exports the same names with the same types. The JavaScript and source maps are unchanged.
8
+
9
+ ## 0.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 9b25eb7: The packages now live in zappie/storefront-packages, and each package's repository, homepage and issues links point there. This release is the first one published from that repository.
14
+
3
15
  ## 0.1.1
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { T as ThemeJson, e as ThemeIssue } from './types-QqJ2gb0F.js';
1
+ import { ThemeJson, ThemeIssue } from './index.js';
2
2
 
3
3
  declare const CHECKOUT_TOKENS: readonly ["--z-bg", "--z-surface", "--z-text", "--z-text-muted", "--z-accent", "--z-accent-contrast", "--z-border", "--z-danger", "--z-success", "--z-radius-md", "--z-radius-lg", "--z-font-body", "--z-font-display"];
4
4
  /** A Google font the checkout loads itself; it can't reach the site's own font files. */
@@ -31,4 +31,5 @@ declare function toCheckoutTheme(theme: ThemeJson, opts?: {
31
31
  onWarning?: (issue: ThemeIssue) => void;
32
32
  }): CheckoutTheme;
33
33
 
34
- export { CHECKOUT_TOKENS, type CheckoutFont, type CheckoutTheme, toCheckoutTheme };
34
+ export { CHECKOUT_TOKENS, toCheckoutTheme };
35
+ export type { CheckoutFont, CheckoutTheme };
package/dist/compile.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { T as ThemeJson, a as TokenName } from './types-QqJ2gb0F.js';
1
+ import { ThemeJson, TokenName } from './index.js';
2
2
 
3
3
  /** Fill every token; dark overrides inherit the theme's light values. Returns a fresh object. */
4
4
  declare function resolveTokens(theme: ThemeJson, scheme: "light" | "dark"): Record<TokenName, string>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as ThemeJson, a as TokenName } from './types-QqJ2gb0F.js';
2
- export { C as COLOR_TOKENS, b as ColorToken, D as DURATION_TOKENS, E as EASING_TOKENS, F as FONT_TOKENS, L as LENGTH_TOKENS, M as MOTION_TOKENS, R as REQUIRED_TOKENS, c as TOKEN_NAMES, d as ThemeFont, e as ThemeIssue, f as ThemeValidation, g as TokenValues } from './types-QqJ2gb0F.js';
1
+ import { T as ThemeJson, a as TokenName } from './types-BqReFGIM.js';
2
+ export { C as COLOR_TOKENS, b as ColorToken, D as DURATION_TOKENS, E as EASING_TOKENS, F as FONT_TOKENS, L as LENGTH_TOKENS, M as MOTION_TOKENS, R as REQUIRED_TOKENS, c as TOKEN_NAMES, d as ThemeFont, e as ThemeIssue, f as ThemeValidation, g as TokenValues } from './types-BqReFGIM.js';
3
3
  export { CheckoutFont, CheckoutTheme } from './checkout.js';
4
4
 
5
5
  /** Host palette from styles/colors.ts; public fonts use a licence-free system stack. */
@@ -52,4 +52,5 @@ type ThemeValidation = {
52
52
  issues: ThemeIssue[];
53
53
  };
54
54
 
55
- export { COLOR_TOKENS as C, DURATION_TOKENS as D, EASING_TOKENS as E, FONT_TOKENS as F, LENGTH_TOKENS as L, MOTION_TOKENS as M, REQUIRED_TOKENS as R, type ThemeJson as T, type TokenName as a, type ColorToken as b, TOKEN_NAMES as c, type ThemeFont as d, type ThemeIssue as e, type ThemeValidation as f, type TokenValues as g };
55
+ export { COLOR_TOKENS as C, DURATION_TOKENS as D, EASING_TOKENS as E, FONT_TOKENS as F, LENGTH_TOKENS as L, MOTION_TOKENS as M, REQUIRED_TOKENS as R, TOKEN_NAMES as c };
56
+ export type { ThemeJson as T, TokenName as a, ColorToken as b, ThemeFont as d, ThemeIssue as e, ThemeValidation as f, TokenValues as g };
@@ -1,5 +1,5 @@
1
- import { f as ThemeValidation } from './types-QqJ2gb0F.js';
2
- export { e as ThemeIssue } from './types-QqJ2gb0F.js';
1
+ import { f as ThemeValidation } from './types-BqReFGIM.js';
2
+ export { e as ThemeIssue } from './types-BqReFGIM.js';
3
3
 
4
4
  /** Validate untrusted theme JSON, including syntax, CSS injection and effective light/dark contrast. */
5
5
  declare function validateTheme(input: unknown): ThemeValidation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zappie/tokens",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Semantic design token contract for Zappie storefronts (--z-*).",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -42,17 +42,17 @@
42
42
  ],
43
43
  "repository": {
44
44
  "type": "git",
45
- "url": "git+https://github.com/zappie/storefront.git",
45
+ "url": "git+https://github.com/zappie/storefront-packages.git",
46
46
  "directory": "packages/tokens"
47
47
  },
48
48
  "devDependencies": {
49
- "ajv": "^8.18.0",
50
- "esbuild": "^0.27.7"
49
+ "ajv": "^8.20.0",
50
+ "esbuild": "^0.28.2"
51
51
  },
52
52
  "license": "MIT",
53
- "homepage": "https://github.com/zappie/storefront#readme",
53
+ "homepage": "https://github.com/zappie/storefront-packages#readme",
54
54
  "bugs": {
55
- "url": "https://github.com/zappie/storefront/issues"
55
+ "url": "https://github.com/zappie/storefront-packages/issues"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsup && node scripts/build-schema.mjs",