@quazardous/qdadm 2.33.0 → 2.33.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quazardous/qdadm",
3
- "version": "2.33.0",
3
+ "version": "2.33.1",
4
4
  "description": "Vue 3 framework for admin dashboards with PrimeVue",
5
5
  "author": "quazardous",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@
19
19
  "test": "vitest run",
20
20
  "test:watch": "vitest",
21
21
  "gen:i18n-defaults": "node scripts/gen-i18n-defaults.mjs",
22
+ "gen:debug-css": "node scripts/gen-debug-css.mjs",
22
23
  "type-check": "vue-tsc --noEmit && vue-tsc --noEmit -p tsconfig.typetest.json",
23
24
  "lint": "eslint src/",
24
25
  "lint:fix": "eslint src/ --fix",
@@ -71,12 +71,13 @@ export class Module {
71
71
 
72
72
  /**
73
73
  * Path to module styles (relative import or absolute)
74
- * Set in subclass to auto-load CSS/SCSS when module connects.
74
+ * Set in subclass to auto-load CSS when module connects. Ship CSS, not SCSS:
75
+ * an app should not need sass to load a module (#4140).
75
76
  * Styles are loaded once and cached.
76
77
  *
77
78
  * @example
78
79
  * class DebugModule extends Module {
79
- * static styles = () => import('./styles.scss')
80
+ * static styles = () => import('./styles.css')
80
81
  * }
81
82
  */
82
83
  static styles: (() => Promise<unknown>) | null = null
@@ -89,7 +89,9 @@ export class DebugModule extends Module {
89
89
  static override moduleName = 'debug'
90
90
  static override requires: string[] = []
91
91
  static override priority = 1000
92
- static styles = () => import('./styles.scss')
92
+ // Compiled from styles.scss by `npm run gen:debug-css` (#4140): apps load CSS,
93
+ // never sass. A test fails when the two drift apart.
94
+ static styles = () => import('./styles.generated.css')
93
95
 
94
96
  declare options: DebugModuleOptions
95
97
  private _bridge: DebugBridge | null = null