@stacksjs/defaults 0.75.418 → 0.75.419
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.
|
@@ -25,12 +25,13 @@ aesthetic skill. Native applications pair with `stacks-mobile` or
|
|
|
25
25
|
- STX tags such as `<Button />` and `<Sidebar />` resolve through the plugin
|
|
26
26
|
in `config/ui.ts`, `storage/framework/defaults/stx-components-plugin.ts`.
|
|
27
27
|
Application `resources/components/` overrides are handled by STX. Plugin
|
|
28
|
-
roots contain the component library,
|
|
28
|
+
roots contain framework defaults, the component library, then package roots.
|
|
29
29
|
Installed packages contribute additive roots through `packageComponentRoots()`;
|
|
30
30
|
inspect that resolver before changing precedence.
|
|
31
31
|
- `STX_COMPONENTS_DIR` explicitly selects a library source directory. The
|
|
32
|
-
plugin otherwise
|
|
33
|
-
|
|
32
|
+
plugin otherwise uses the installed library, keeping templates with the
|
|
33
|
+
controllers the application imports. A local checkout's presence never
|
|
34
|
+
changes that selection. A missing component warning is a resolution problem, not proof
|
|
34
35
|
that a tag is a globally registered Vue component.
|
|
35
36
|
|
|
36
37
|
```ts
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.419",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.419",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/mobile": "0.75.
|
|
48
|
+
"@stacksjs/mobile": "0.75.419",
|
|
49
49
|
"@stacksjs/sanitizer": "0.2.780",
|
|
50
50
|
"@stacksjs/stx": "0.2.780",
|
|
51
51
|
"@xterm/addon-fit": "^0.11.0",
|
package/stx-components-plugin.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs'
|
|
2
|
-
import { homedir } from 'node:os'
|
|
3
2
|
import { join } from 'node:path'
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -8,14 +7,12 @@ import { join } from 'node:path'
|
|
|
8
7
|
* dashboard uses it for the macOS-style web sidebar.
|
|
9
8
|
*
|
|
10
9
|
* The library ships its .stx sources in the package, so the installed
|
|
11
|
-
* copy
|
|
12
|
-
* development
|
|
13
|
-
*
|
|
14
|
-
* point anywhere explicitly.
|
|
10
|
+
* copy must match the package whose controllers the app imports. Merely
|
|
11
|
+
* having a development checkout on this machine must never replace those
|
|
12
|
+
* templates. `STX_COMPONENTS_DIR` selects a source directory explicitly.
|
|
15
13
|
*/
|
|
16
14
|
const candidates = [
|
|
17
15
|
process.env.STX_COMPONENTS_DIR,
|
|
18
|
-
join(homedir(), 'Code/Tools/stx/packages/components/src/ui'),
|
|
19
16
|
join(process.cwd(), 'node_modules/@stacksjs/components/src/ui'),
|
|
20
17
|
].filter((dir): dir is string => Boolean(dir))
|
|
21
18
|
|