@hanzogui/types 8.0.0 → 8.1.1

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/package.json +6 -1
  2. package/types.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/types",
3
- "version": "8.0.0",
3
+ "version": "8.1.1",
4
4
  "files": [
5
5
  "types.ts"
6
6
  ],
@@ -14,5 +14,10 @@
14
14
  },
15
15
  "publishConfig": {
16
16
  "access": "public"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/hanzoai/gui.git",
21
+ "directory": "pkgs/core/types"
17
22
  }
18
23
  }
package/types.ts CHANGED
@@ -41,6 +41,22 @@ export interface GuiBuildOptions {
41
41
  */
42
42
  importsWhitelist?: string[]
43
43
 
44
+ /**
45
+ * Installed packages whose styles the compiler extracts statically. A file
46
+ * under `node_modules` is only read if its package is named here — matching
47
+ * a whole scope with `@scope/*`, or one package exactly. The compiler cannot
48
+ * afford to parse every installed JS file, so nothing is read by default.
49
+ *
50
+ * `DEFAULT_EXTRACT_PACKAGES` from `@hanzogui/static-worker` is the
51
+ * design-system list (`@hanzo/ui`, `@hanzo/gui`, `@hanzogui/*`). Read its
52
+ * doc comment before turning it on: today it grows the cached sheet without
53
+ * shrinking what the runtime injects, because a published package ships no
54
+ * JSX to flatten.
55
+ *
56
+ * @default []
57
+ */
58
+ extractPackages?: string[]
59
+
44
60
  /**
45
61
  * Whitelist file extensions to evaluate
46
62
  *