stacks 0.58.39 → 0.58.41
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/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/package.json +1 -1
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +1 -1
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/package.json +1 -1
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +1 -1
- package/core/docs/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +1 -1
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/music/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +1 -1
- package/core/storage/dist/index.js +1 -3
- package/core/storage/package.json +1 -1
- package/core/storage/src/zip.ts +6 -3
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/ui/dist/index.js +56 -6
- package/core/ui/package.json +2 -1
- package/core/ui/src/uno.config.ts +7 -6
- package/core/utils/dist/index.js +1 -1
- package/core/utils/package.json +1 -1
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +3 -9
- package/core/vite/package.json +1 -1
- package/core/vite/src/plugin/css-engine.ts +11 -9
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/package.json +1 -1
- package/ide/vscode/package.json +2 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {log} from "@stacksjs/logging";
|
|
|
6
6
|
import {projectPath} from "@stacksjs/path";
|
|
7
7
|
import * as storage from "@stacksjs/storage";
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "0.58.
|
|
9
|
+
var version = "0.58.41";
|
|
10
10
|
|
|
11
11
|
// src/upgrade.ts
|
|
12
12
|
function checkForUncommittedChanges(options) {
|
package/core/ai/package.json
CHANGED
package/core/alias/package.json
CHANGED
package/core/api/package.json
CHANGED
package/core/arrays/package.json
CHANGED
package/core/auth/package.json
CHANGED
package/core/buddy/package.json
CHANGED
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
package/core/chat/package.json
CHANGED
package/core/cli/dist/index.js
CHANGED
package/core/cli/package.json
CHANGED
package/core/cloud/package.json
CHANGED
package/core/config/package.json
CHANGED
package/core/dns/package.json
CHANGED
package/core/docs/package.json
CHANGED
package/core/email/package.json
CHANGED
package/core/enums/package.json
CHANGED
package/core/env/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.41",
|
|
5
5
|
"description": "The Stacks.js ESLint config preset, heavily inspired by Anthony's ESLint config.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
package/core/events/package.json
CHANGED
package/core/faker/package.json
CHANGED
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
package/core/http/package.json
CHANGED
package/core/lint/package.json
CHANGED
package/core/music/package.json
CHANGED
package/core/orm/package.json
CHANGED
package/core/path/package.json
CHANGED
package/core/push/package.json
CHANGED
package/core/queue/package.json
CHANGED
package/core/repl/package.json
CHANGED
package/core/router/package.json
CHANGED
package/core/server/package.json
CHANGED
package/core/slug/package.json
CHANGED
package/core/sms/package.json
CHANGED
|
@@ -382,9 +382,7 @@ import {runCommand} from "@stacksjs/cli";
|
|
|
382
382
|
async function zip(from, to, options) {
|
|
383
383
|
const toPath = to || "archive.zip";
|
|
384
384
|
const fromPath = Array.isArray(from) ? from.join(" ") : from;
|
|
385
|
-
|
|
386
|
-
return runCommand(`zip -r ${toPath} ${fromPath}`, options);
|
|
387
|
-
return runCommand(`zip -r ${to} ${from}`, options);
|
|
385
|
+
console.log("zip", fromPath, toPath, options);
|
|
388
386
|
}
|
|
389
387
|
async function unzip(paths) {
|
|
390
388
|
if (Array.isArray(paths))
|
package/core/storage/src/zip.ts
CHANGED
|
@@ -9,10 +9,13 @@ export async function zip(from: string | string[], to?: string, options?: ZipOpt
|
|
|
9
9
|
const toPath = to || 'archive.zip'
|
|
10
10
|
const fromPath = Array.isArray(from) ? from.join(' ') : from
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.log('zip', fromPath, toPath, options)
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// if (Array.isArray(from))
|
|
16
|
+
// return runCommand(`zip -r ${toPath} ${fromPath}`, options)
|
|
17
|
+
|
|
18
|
+
// return runCommand(`zip -r ${to} ${from}`, options)
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
export async function unzip(paths: string | string[]) {
|
package/core/tables/package.json
CHANGED
package/core/tinker/package.json
CHANGED
package/core/tunnel/package.json
CHANGED
package/core/types/package.json
CHANGED
package/core/ui/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/index.ts
|
|
3
3
|
import * as CssEngine from "unocss";
|
|
4
|
-
import {presetForms
|
|
4
|
+
import {presetForms} from "@julr/unocss-preset-forms";
|
|
5
5
|
import * as UiEngine from "vue";
|
|
6
6
|
import * as Store from "pinia";
|
|
7
7
|
import {ui as ui2} from "@stacksjs/config";
|
|
@@ -9,15 +9,64 @@ import {ui as ui2} from "@stacksjs/config";
|
|
|
9
9
|
// src/uno.config.ts
|
|
10
10
|
import {
|
|
11
11
|
defineConfig,
|
|
12
|
+
presetAttributify,
|
|
12
13
|
presetIcons,
|
|
13
14
|
presetTypography,
|
|
15
|
+
presetUno,
|
|
14
16
|
presetWebFonts,
|
|
15
|
-
presetWind,
|
|
16
17
|
transformerCompileClass,
|
|
17
18
|
transformerDirectives,
|
|
18
19
|
transformerVariantGroup
|
|
19
20
|
} from "unocss";
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
// /home/runner/work/stacks/stacks/node_modules/unocss-preset-primitives/dist/index.mjs
|
|
23
|
+
var presetVariants = function(options = {}) {
|
|
24
|
+
const {
|
|
25
|
+
prefix = "ui",
|
|
26
|
+
variants = "open|checked|selected|active|disabled",
|
|
27
|
+
selector = "data-headlessui-state",
|
|
28
|
+
isAttrBoolean = false
|
|
29
|
+
} = options;
|
|
30
|
+
return {
|
|
31
|
+
name: "unocss-variant-primitives",
|
|
32
|
+
match: (matcher) => {
|
|
33
|
+
const regex = new RegExp(`^${prefix}(-not)?-(${variants})[:-]`);
|
|
34
|
+
const match = matcher.match(regex);
|
|
35
|
+
if (!match)
|
|
36
|
+
return matcher;
|
|
37
|
+
const attrGen = !isAttrBoolean ? `[${selector}~='${match[2]}']` : `[${selector}-${match[2]}]`;
|
|
38
|
+
return {
|
|
39
|
+
matcher: matcher.slice(match[0].length),
|
|
40
|
+
selector: (s) => match[1] === "-not" ? `${s}[${selector}]:not(${attrGen}),:where([${selector}]:not(${attrGen})) ${s}:not(${selector})` : `${s}${attrGen},:where(${attrGen}) ${s}`
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
var presetHeadlessUi = function(options = {}) {
|
|
46
|
+
const {
|
|
47
|
+
prefix = "ui"
|
|
48
|
+
} = options;
|
|
49
|
+
return {
|
|
50
|
+
name: "unocss-preset-primitives",
|
|
51
|
+
variants: [
|
|
52
|
+
presetVariants({ prefix }),
|
|
53
|
+
(matcher) => {
|
|
54
|
+
const regex = new RegExp(`${prefix}(-not)?-focus-visible[:-]`);
|
|
55
|
+
const match = matcher.match(regex);
|
|
56
|
+
if (!match)
|
|
57
|
+
return matcher;
|
|
58
|
+
return {
|
|
59
|
+
matcher: matcher.slice(match[0].length),
|
|
60
|
+
selector: (s) => {
|
|
61
|
+
return match[1] === "-not" ? `${s}:focus:where(:not([data-headlessui-focus-visible] ${s}))` : `:where([data-headlessui-focus-visible]) ${s}:focus`;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/uno.config.ts
|
|
21
70
|
import {ui} from "@stacksjs/config";
|
|
22
71
|
var uno_config_default = defineConfig({
|
|
23
72
|
shortcuts: ui.shortcuts,
|
|
@@ -29,8 +78,9 @@ var uno_config_default = defineConfig({
|
|
|
29
78
|
}
|
|
30
79
|
},
|
|
31
80
|
presets: [
|
|
32
|
-
|
|
33
|
-
|
|
81
|
+
presetUno(),
|
|
82
|
+
presetAttributify(),
|
|
83
|
+
presetHeadlessUi(),
|
|
34
84
|
presetTypography(),
|
|
35
85
|
presetIcons({
|
|
36
86
|
prefix: "i-",
|
|
@@ -61,7 +111,7 @@ var uno_config_default = defineConfig({
|
|
|
61
111
|
});
|
|
62
112
|
export {
|
|
63
113
|
ui2 as ui,
|
|
64
|
-
|
|
114
|
+
presetForms,
|
|
65
115
|
uno_config_default as UnocssConfig,
|
|
66
116
|
UiEngine,
|
|
67
117
|
Store,
|
package/core/ui/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.41",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"pinia": "^2.1.7",
|
|
82
82
|
"unhead": "^1.8.10",
|
|
83
83
|
"unocss": "^0.58.4",
|
|
84
|
+
"unocss-preset-primitives": "0.0.2-beta.0",
|
|
84
85
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
85
86
|
"vue": "^3.4.15",
|
|
86
87
|
"vue-tsc": "^1.8.27"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineConfig,
|
|
3
|
-
|
|
3
|
+
presetAttributify,
|
|
4
4
|
presetIcons,
|
|
5
5
|
presetTypography,
|
|
6
|
+
presetUno,
|
|
6
7
|
presetWebFonts,
|
|
7
|
-
presetWind,
|
|
8
8
|
transformerCompileClass,
|
|
9
9
|
transformerDirectives,
|
|
10
10
|
transformerVariantGroup,
|
|
11
11
|
} from 'unocss'
|
|
12
|
-
import {
|
|
12
|
+
import { presetHeadlessUi } from 'unocss-preset-primitives'
|
|
13
13
|
import { ui } from '@stacksjs/config'
|
|
14
14
|
|
|
15
15
|
export default defineConfig({
|
|
@@ -26,8 +26,10 @@ export default defineConfig({
|
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
presets: [
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
presetUno(), // allows for Tailwind utility classes
|
|
30
|
+
presetAttributify(),
|
|
31
|
+
presetHeadlessUi(),
|
|
32
|
+
// presetForms(), // allows for form Tailwind's form styling
|
|
31
33
|
presetTypography(),
|
|
32
34
|
presetIcons({
|
|
33
35
|
prefix: 'i-',
|
|
@@ -48,7 +50,6 @@ export default defineConfig({
|
|
|
48
50
|
},
|
|
49
51
|
}),
|
|
50
52
|
|
|
51
|
-
// presetAttributify(),
|
|
52
53
|
],
|
|
53
54
|
|
|
54
55
|
transformers: [
|
package/core/utils/dist/index.js
CHANGED
package/core/utils/package.json
CHANGED
package/core/vite/dist/index.js
CHANGED
|
@@ -191,15 +191,9 @@ function components(options) {
|
|
|
191
191
|
// src/plugin/css-engine.ts
|
|
192
192
|
import UnoCSS from "unocss/vite";
|
|
193
193
|
import {path as p3} from "@stacksjs/path";
|
|
194
|
-
function cssEngine(
|
|
194
|
+
function cssEngine() {
|
|
195
195
|
return UnoCSS({
|
|
196
|
-
configFile: p3.uiPath("src/uno.config.ts")
|
|
197
|
-
mode: isWebComponent ? "shadow-dom" : "vue-scoped",
|
|
198
|
-
content: {
|
|
199
|
-
pipeline: {
|
|
200
|
-
include: /\.(stx|vue|js|ts|mdx?|elm|html)($|\?)/
|
|
201
|
-
}
|
|
202
|
-
}
|
|
196
|
+
configFile: p3.uiPath("src/uno.config.ts")
|
|
203
197
|
});
|
|
204
198
|
}
|
|
205
199
|
|
|
@@ -623,7 +617,7 @@ var web_components_default = defineConfig6(({ command }) => {
|
|
|
623
617
|
// src/plugin/docs.ts
|
|
624
618
|
import {kolorist as c2} from "@stacksjs/cli";
|
|
625
619
|
// package.json
|
|
626
|
-
var version = "0.58.
|
|
620
|
+
var version = "0.58.41";
|
|
627
621
|
|
|
628
622
|
// src/plugin/docs.ts
|
|
629
623
|
var docsEngine = {
|
package/core/vite/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import UnoCSS from 'unocss/vite'
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
|
|
4
|
-
export function cssEngine(
|
|
4
|
+
export function cssEngine() {
|
|
5
|
+
// export function cssEngine(isWebComponent = false) {
|
|
6
|
+
// return UnoCSS()
|
|
5
7
|
return UnoCSS({
|
|
6
8
|
configFile: p.uiPath('src/uno.config.ts'),
|
|
7
|
-
mode: isWebComponent ? 'shadow-dom' : 'vue-scoped',
|
|
8
|
-
content: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
9
|
+
// mode: isWebComponent ? 'shadow-dom' : 'vue-scoped',
|
|
10
|
+
// content: {
|
|
11
|
+
// pipeline: {
|
|
12
|
+
// include: /\.(stx|vue|js|ts|mdx?|elm|html)($|\?)/,
|
|
13
|
+
// // exclude files
|
|
14
|
+
// // exclude: []
|
|
15
|
+
// },
|
|
16
|
+
// },
|
|
15
17
|
})
|
|
16
18
|
}
|
package/core/whois/package.json
CHANGED
package/core/x-ray/package.json
CHANGED
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.58.
|
|
5
|
+
"version": "0.58.41",
|
|
6
6
|
"description": "A modern Stacks development environment.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"package": "npx vsce package",
|
|
36
|
-
"release": "
|
|
36
|
+
"release": "vsce publish"
|
|
37
37
|
},
|
|
38
38
|
"galleryBanner": {
|
|
39
39
|
"color": "#d7e4f5",
|