@jasonshimmy/vite-plugin-cer-app 0.27.3 → 0.28.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.
@@ -10,7 +10,7 @@
10
10
  "validate": "npm run typecheck && npm run build"
11
11
  },
12
12
  "dependencies": {
13
- "@jasonshimmy/custom-elements-runtime": "^3.10.0"
13
+ "@jasonshimmy/custom-elements-runtime": "^3.11.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@jasonshimmy/vite-plugin-cer-app": "^{{pluginVersion}}",
@@ -11,7 +11,7 @@
11
11
  "validate": "npm run typecheck && npm run build && cer-app check links && cer-app check performance"
12
12
  },
13
13
  "dependencies": {
14
- "@jasonshimmy/custom-elements-runtime": "^3.10.0"
14
+ "@jasonshimmy/custom-elements-runtime": "^3.11.1"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@jasonshimmy/vite-plugin-cer-app": "^{{pluginVersion}}",
@@ -10,7 +10,7 @@
10
10
  "validate": "npm run typecheck && npm run build"
11
11
  },
12
12
  "dependencies": {
13
- "@jasonshimmy/custom-elements-runtime": "^3.10.0"
13
+ "@jasonshimmy/custom-elements-runtime": "^3.11.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@jasonshimmy/vite-plugin-cer-app": "^{{pluginVersion}}",
@@ -1 +1 @@
1
- {"version":3,"file":"prune-runtime-css.d.ts","sourceRoot":"","sources":["../../../src/plugin/transforms/prune-runtime-css.ts"],"names":[],"mappings":"AA6BA;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,cAAc,EAAE,OAAO,GAAG,MAAM,EAAE,GACjC,MAAM,CAcR"}
1
+ {"version":3,"file":"prune-runtime-css.d.ts","sourceRoot":"","sources":["../../../src/plugin/transforms/prune-runtime-css.ts"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,cAAc,EAAE,OAAO,GAAG,MAAM,EAAE,GACjC,MAAM,CAwBR"}
@@ -1,4 +1,8 @@
1
1
  const EXTENDED_COLOR_FAMILIES = [
2
+ 'mauve',
3
+ 'olive',
4
+ 'mist',
5
+ 'taupe',
2
6
  'slate',
3
7
  'gray',
4
8
  'zinc',
@@ -29,9 +33,17 @@ const EXTENDED_COLOR_DECLARATION = new RegExp(String.raw `[\t ]*--cer-color-(${E
29
33
  * custom-property declarations without changing rendered colors.
30
34
  */
31
35
  export function pruneRuntimeExtendedColorVariables(code, id, extendedColors) {
36
+ const isRuntimeStylesheet = /\/(?:style|variables)\.css(?:\?|$)/.test(id);
37
+ const isRuntimePackagePath = id.includes('@jasonshimmy/custom-elements-runtime');
38
+ // Vite resolves symlinked file: dependencies to their real filesystem path,
39
+ // so a local runtime checkout no longer contains the npm package name.
40
+ // Match that case by the runtime's stable core-token signature.
41
+ const hasRuntimeTokenSignature = code.includes('--cer-color-primary-500:') &&
42
+ code.includes('--cer-color-neutral-500:') &&
43
+ code.includes('--cer-outline-style:');
32
44
  if (extendedColors === true ||
33
- !id.includes('@jasonshimmy/custom-elements-runtime') ||
34
- !/\/(?:style|variables)\.css(?:\?|$)/.test(id)) {
45
+ !isRuntimeStylesheet ||
46
+ (!isRuntimePackagePath && !hasRuntimeTokenSignature)) {
35
47
  return code;
36
48
  }
37
49
  const enabled = new Set(Array.isArray(extendedColors) ? extendedColors : []);
@@ -1 +1 @@
1
- {"version":3,"file":"prune-runtime-css.js","sourceRoot":"","sources":["../../../src/plugin/transforms/prune-runtime-css.ts"],"names":[],"mappings":"AAAA,MAAM,uBAAuB,GAAG;IAC9B,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,SAAS;IACT,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,MAAM;IACN,MAAM;CACE,CAAA;AAEV,MAAM,0BAA0B,GAAG,IAAI,MAAM,CAC3C,MAAM,CAAC,GAAG,CAAA,sBAAsB,uBAAuB,CAAC,IAAI,CAAC,GAAG,CAAC,yCAAyC,EAC1G,GAAG,CACJ,CAAA;AAED;;;;;GAKG;AACH,MAAM,UAAU,kCAAkC,CAChD,IAAY,EACZ,EAAU,EACV,cAAkC;IAElC,IACE,cAAc,KAAK,IAAI;QACvB,CAAC,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACpD,CAAC,oCAAoC,CAAC,IAAI,CAAC,EAAE,CAAC,EAC9C,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC5E,OAAO,IAAI,CAAC,OAAO,CACjB,0BAA0B,EAC1B,CAAC,WAAW,EAAE,MAAc,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CACxE,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"prune-runtime-css.js","sourceRoot":"","sources":["../../../src/plugin/transforms/prune-runtime-css.ts"],"names":[],"mappings":"AAAA,MAAM,uBAAuB,GAAG;IAC9B,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,OAAO;IACP,SAAS;IACT,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,MAAM;IACN,MAAM;CACE,CAAA;AAEV,MAAM,0BAA0B,GAAG,IAAI,MAAM,CAC3C,MAAM,CAAC,GAAG,CAAA,sBAAsB,uBAAuB,CAAC,IAAI,CAAC,GAAG,CAAC,yCAAyC,EAC1G,GAAG,CACJ,CAAA;AAED;;;;;GAKG;AACH,MAAM,UAAU,kCAAkC,CAChD,IAAY,EACZ,EAAU,EACV,cAAkC;IAElC,MAAM,mBAAmB,GAAG,oCAAoC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACzE,MAAM,oBAAoB,GAAG,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAA;IAChF,4EAA4E;IAC5E,uEAAuE;IACvE,gEAAgE;IAChE,MAAM,wBAAwB,GAC5B,IAAI,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QACzC,IAAI,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QACzC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAA;IAEvC,IACE,cAAc,KAAK,IAAI;QACvB,CAAC,mBAAmB;QACpB,CAAC,CAAC,oBAAoB,IAAI,CAAC,wBAAwB,CAAC,EACpD,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC5E,OAAO,IAAI,CAAC,OAAO,CACjB,0BAA0B,EAC1B,CAAC,WAAW,EAAE,MAAc,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CACxE,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jasonshimmy/vite-plugin-cer-app",
3
- "version": "0.27.3",
3
+ "version": "0.28.1",
4
4
  "description": "Nuxt-style meta-framework for @jasonshimmy/custom-elements-runtime",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -90,20 +90,20 @@
90
90
  "cypress:open": "cypress open"
91
91
  },
92
92
  "peerDependencies": {
93
- "@jasonshimmy/custom-elements-runtime": ">=3.10.0",
93
+ "@jasonshimmy/custom-elements-runtime": ">=3.11.1",
94
94
  "vite": ">=5.0.0"
95
95
  },
96
96
  "dependencies": {
97
97
  "commander": "^15.0.0",
98
98
  "fast-glob": "^3.3.3",
99
99
  "magic-string": "^1.3.1",
100
- "marked": "^18.0.12",
100
+ "marked": "^18.0.13",
101
101
  "minisearch": "^7.2.0",
102
102
  "pathe": "^2.0.3",
103
103
  "yaml": "^2.9.1"
104
104
  },
105
105
  "devDependencies": {
106
- "@jasonshimmy/custom-elements-runtime": "^3.10.0",
106
+ "@jasonshimmy/custom-elements-runtime": "^3.11.1",
107
107
  "@types/node": "^24.13.4",
108
108
  "@vitest/coverage-v8": "^5.0.0",
109
109
  "cypress": "^16.0.0",