@xenolithengine/graph-theme-xen 0.7.0-beta.1 → 0.7.0-beta.2

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.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { XenTokens } from './types.js';
2
2
  export declare const xenTokens: XenTokens;
3
3
  export declare const VERSION: string;
4
- export { loadXenFonts } from './fonts.js';
5
4
  export { mergeTheme } from './merge.js';
6
5
  export type { DeepPartial } from './merge.js';
7
6
  export type { XenTokens, XenCategoryMap, XenPinTypeMap, XenSurfaceColors, PinTypeToken, CategoryToken, StateStyle, PinShape, TypographyStyle, ShadowStyle, } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,SAAS,EAAwB,SAAS,CAAA;AAEvD,eAAO,MAAM,OAAO,QAAoB,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,YAAY,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,SAAS,EAAwB,SAAS,CAAA;AAEvD,eAAO,MAAM,OAAO,QAAoB,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,YAAY,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import tokens from './tokens.json' with { type: 'json' };
2
2
  export const xenTokens = tokens;
3
3
  export const VERSION = xenTokens.version;
4
- export { loadXenFonts } from './fonts.js';
5
4
  export { mergeTheme } from './merge.js';
6
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,eAAe,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG,MAA8B,CAAA;AAEvD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,eAAe,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAGxD,MAAM,CAAC,MAAM,SAAS,GAAG,MAA8B,CAAA;AAEvD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
package/dist/tokens.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "./tokens.schema.json",
3
3
  "name": "xen",
4
- "version": "0.7.0-beta.1",
4
+ "version": "0.7.0-beta.2",
5
5
  "color": {
6
6
  "brand": {
7
7
  "primary": "#FCB400",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenolithengine/graph-theme-xen",
3
- "version": "0.7.0-beta.1",
3
+ "version": "0.7.0-beta.2",
4
4
  "description": "Xen — the default original design system for XenolithGraph. Dark / gold palette with typed pins, categorical headers, and glassmorphic effects.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "sideEffects": false,
22
22
  "dependencies": {
23
- "@xenolithengine/graph-core": "0.7.0-beta.1"
23
+ "@xenolithengine/graph-core": "0.7.0-beta.2"
24
24
  },
25
25
  "devDependencies": {
26
26
  "typescript": "^5.7.0",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "author": "XenolithEngine",
48
48
  "scripts": {
49
- "build": "tsc -b && cp -R src/fonts dist/fonts",
49
+ "build": "tsc -b",
50
50
  "dev": "tsc -b --watch",
51
51
  "test": "vitest run",
52
52
  "lint": "eslint src",
Binary file
Binary file
Binary file
package/dist/fonts.d.ts DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * Register Inter (Regular / SemiBold / Bold) with the document's font set from the WOFF2 files
3
- * shipped inside this package. Call once at application start, before rendering any text.
4
- *
5
- * Bundlers that understand `new URL(..., import.meta.url)` (Vite ≥ 4, webpack 5, esbuild, Rollup
6
- * with `@rollup/plugin-url`) emit the WOFF2 as a static asset and rewrite the URL. No external
7
- * CDN is contacted; the fonts ride in the npm package.
8
- *
9
- * Subsequent calls return the same promise — safe to invoke multiple times.
10
- *
11
- * In non-DOM environments (Node, SSR) this resolves immediately as a no-op.
12
- */
13
- export declare function loadXenFonts(): Promise<void>;
14
- //# sourceMappingURL=fonts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../src/fonts.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CA4B5C"}
package/dist/fonts.js DELETED
@@ -1,43 +0,0 @@
1
- const VARIANTS = [
2
- { weight: 400, style: 'normal', file: 'Inter-Regular.woff2' },
3
- { weight: 600, style: 'normal', file: 'Inter-SemiBold.woff2' },
4
- { weight: 700, style: 'normal', file: 'Inter-Bold.woff2' },
5
- ];
6
- let loadPromise = null;
7
- /**
8
- * Register Inter (Regular / SemiBold / Bold) with the document's font set from the WOFF2 files
9
- * shipped inside this package. Call once at application start, before rendering any text.
10
- *
11
- * Bundlers that understand `new URL(..., import.meta.url)` (Vite ≥ 4, webpack 5, esbuild, Rollup
12
- * with `@rollup/plugin-url`) emit the WOFF2 as a static asset and rewrite the URL. No external
13
- * CDN is contacted; the fonts ride in the npm package.
14
- *
15
- * Subsequent calls return the same promise — safe to invoke multiple times.
16
- *
17
- * In non-DOM environments (Node, SSR) this resolves immediately as a no-op.
18
- */
19
- export function loadXenFonts() {
20
- if (typeof document === 'undefined' || typeof FontFace === 'undefined') {
21
- return Promise.resolve();
22
- }
23
- if (loadPromise)
24
- return loadPromise;
25
- loadPromise = (async () => {
26
- await Promise.all(VARIANTS.map(async ({ weight, style, file }) => {
27
- const url = new URL(`./fonts/${file}`, import.meta.url).href;
28
- const face = new FontFace('Inter', `url(${url}) format("woff2")`, {
29
- weight: String(weight),
30
- style,
31
- display: 'swap',
32
- });
33
- await face.load();
34
- document.fonts.add(face);
35
- }));
36
- // `face.load()` resolves when the binary is available, but Canvas2D text measurement only
37
- // picks up the new face after `document.fonts.ready` resolves. Without this await PIXI Text
38
- // can fall back to the next family in the list during the first measure pass.
39
- await document.fonts.ready;
40
- })();
41
- return loadPromise;
42
- }
43
- //# sourceMappingURL=fonts.js.map
package/dist/fonts.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"fonts.js","sourceRoot":"","sources":["../src/fonts.ts"],"names":[],"mappings":"AAMA,MAAM,QAAQ,GAA2B;IACvC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC7D,EAAE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