@globalbrain/sefirot 4.35.2 → 4.35.4
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/config/vite.js +6 -33
- package/lib/http/Http.ts +3 -1
- package/lib/stores/HttpConfig.ts +1 -1
- package/package.json +28 -53
package/config/vite.js
CHANGED
|
@@ -41,37 +41,7 @@ export const baseConfig = {
|
|
|
41
41
|
resolve: {
|
|
42
42
|
alias: {
|
|
43
43
|
'sefirot/': lib
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// list the client-side direct dependencies/peerDependencies which get bundled
|
|
47
|
-
dedupe: [
|
|
48
|
-
'@popperjs/core',
|
|
49
|
-
'@sentry/browser',
|
|
50
|
-
'@sentry/vue',
|
|
51
|
-
'@tanstack/vue-virtual',
|
|
52
|
-
'@tinyhttp/content-disposition',
|
|
53
|
-
'@tinyhttp/cookie',
|
|
54
|
-
'@vue/reactivity',
|
|
55
|
-
'@vuelidate/core',
|
|
56
|
-
'@vuelidate/validators',
|
|
57
|
-
'@vueuse/core',
|
|
58
|
-
'body-scroll-lock',
|
|
59
|
-
'd3',
|
|
60
|
-
'dayjs',
|
|
61
|
-
'dompurify',
|
|
62
|
-
'file-saver',
|
|
63
|
-
'fuse.js',
|
|
64
|
-
'html2canvas',
|
|
65
|
-
'lodash-es',
|
|
66
|
-
'markdown-it',
|
|
67
|
-
'normalize.css',
|
|
68
|
-
'ofetch',
|
|
69
|
-
'pinia',
|
|
70
|
-
'qs',
|
|
71
|
-
'v-calendar',
|
|
72
|
-
'vue',
|
|
73
|
-
'vue-router'
|
|
74
|
-
]
|
|
44
|
+
}
|
|
75
45
|
},
|
|
76
46
|
|
|
77
47
|
ssr: {
|
|
@@ -102,6 +72,7 @@ export const baseConfig = {
|
|
|
102
72
|
},
|
|
103
73
|
|
|
104
74
|
optimizeDeps: {
|
|
75
|
+
// @keep-sorted
|
|
105
76
|
include: [
|
|
106
77
|
...files,
|
|
107
78
|
'@globalbrain/sefirot/dompurify',
|
|
@@ -115,11 +86,13 @@ export const baseConfig = {
|
|
|
115
86
|
'markdown-it > entities',
|
|
116
87
|
'qs'
|
|
117
88
|
],
|
|
89
|
+
// @keep-sorted
|
|
118
90
|
exclude: [
|
|
119
91
|
'@vueuse/core',
|
|
120
92
|
'fuse.js',
|
|
121
93
|
'lodash-es',
|
|
122
|
-
'markdown-it'
|
|
94
|
+
'markdown-it',
|
|
95
|
+
'vue-draggable-plus'
|
|
123
96
|
]
|
|
124
97
|
}
|
|
125
98
|
}
|
|
@@ -128,6 +101,6 @@ export const baseConfig = {
|
|
|
128
101
|
* @param {import('vite').UserConfigExport} config
|
|
129
102
|
*/
|
|
130
103
|
export function defineConfig(config = {}) {
|
|
131
|
-
return async (/** @type {import(
|
|
104
|
+
return async (/** @type {import('vite').ConfigEnv} */ configEnv) =>
|
|
132
105
|
vite.mergeConfig(baseConfig, await (typeof config === 'function' ? config(configEnv) : config))
|
|
133
106
|
}
|
package/lib/http/Http.ts
CHANGED
|
@@ -61,7 +61,9 @@ export class Http {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
private async performRequestRaw<T>(url: string, options: FetchOptions = {}): Promise<FetchResponse<T>> {
|
|
64
|
-
|
|
64
|
+
// 'raw' is unavailable in useRequestFetch() during SSR, but performRequestRaw is only
|
|
65
|
+
// called by download, which runs client-side, so asserting raw's existence is safe
|
|
66
|
+
return this.config.client.raw!(...(await this.buildRequest(url, options)))
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
async get<T = any>(url: string, options?: FetchOptions): Promise<T> {
|
package/lib/stores/HttpConfig.ts
CHANGED
|
@@ -8,7 +8,7 @@ type Awaitable<T> = T | PromiseLike<T>
|
|
|
8
8
|
|
|
9
9
|
export interface HttpClient {
|
|
10
10
|
(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<any>
|
|
11
|
-
raw(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<FetchResponse<any>>
|
|
11
|
+
raw?(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<FetchResponse<any>>
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface HttpOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalbrain/sefirot",
|
|
3
|
-
"version": "4.35.
|
|
3
|
+
"version": "4.35.4",
|
|
4
4
|
"description": "Vue Components for Global Brain Design System.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -56,92 +56,67 @@
|
|
|
56
56
|
"release": "release-it"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@iconify-json/ph": "^1.2.2",
|
|
60
|
+
"@iconify-json/ri": "^1.2.10",
|
|
61
|
+
"@popperjs/core": "^2.11.8",
|
|
59
62
|
"@sentry/browser": "^10.39.0",
|
|
60
63
|
"@sentry/vue": "^10.39.0",
|
|
61
64
|
"@tanstack/vue-virtual": "3.0.0-beta.62",
|
|
62
65
|
"@tinyhttp/content-disposition": "^2.2.4",
|
|
63
66
|
"@tinyhttp/cookie": "^2.1.1",
|
|
64
67
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
68
|
+
"@types/body-scroll-lock": "^3.1.2",
|
|
65
69
|
"@types/d3": "^7.4.3",
|
|
66
70
|
"@types/file-saver": "^2.0.7",
|
|
71
|
+
"@types/lodash-es": "^4.17.12",
|
|
72
|
+
"@types/markdown-it": "^14.1.2",
|
|
67
73
|
"@types/qs": "^6.14.0",
|
|
74
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
75
|
+
"@vue/reactivity": "^3.5.28",
|
|
76
|
+
"@vuelidate/core": "^2.0.3",
|
|
77
|
+
"@vuelidate/validators": "^2.0.4",
|
|
78
|
+
"@vueuse/core": "^14.2.1",
|
|
79
|
+
"body-scroll-lock": "4.0.0-beta.0",
|
|
68
80
|
"d3": "^7.9.0",
|
|
81
|
+
"dayjs": "^1.11.19",
|
|
69
82
|
"dompurify": "^3.3.1",
|
|
70
83
|
"file-saver": "^2.0.5",
|
|
84
|
+
"fuse.js": "^7.1.0",
|
|
71
85
|
"html2canvas": "^1.4.1",
|
|
72
86
|
"jsdom": "^28.1.0",
|
|
87
|
+
"lodash-es": "^4.17.23",
|
|
73
88
|
"magic-string": "^0.30.21",
|
|
89
|
+
"markdown-it": "^14.1.1",
|
|
90
|
+
"normalize.css": "^8.0.1",
|
|
74
91
|
"ofetch": "^1.5.1",
|
|
92
|
+
"pinia": "^3.0.4",
|
|
93
|
+
"postcss": "^8.5.6",
|
|
94
|
+
"postcss-nested": "^7.0.2",
|
|
95
|
+
"punycode": "^2.3.1",
|
|
75
96
|
"qs": "^6.15.0",
|
|
76
|
-
"unplugin-icons": "^23.0.1"
|
|
97
|
+
"unplugin-icons": "^23.0.1",
|
|
98
|
+
"v-calendar": "3.0.1",
|
|
99
|
+
"vite": "^7.3.1",
|
|
100
|
+
"vue": "^3.5.28",
|
|
101
|
+
"vue-draggable-plus": "^0.6.1",
|
|
102
|
+
"vue-router": "^4.6.4"
|
|
77
103
|
},
|
|
78
104
|
"devDependencies": {
|
|
79
105
|
"@globalbrain/eslint-config": "^3.0.1",
|
|
80
106
|
"@histoire/plugin-vue": "1.0.0-beta.1",
|
|
81
|
-
"@iconify-json/ph": "^1.2.2",
|
|
82
|
-
"@iconify-json/ri": "^1.2.10",
|
|
83
|
-
"@popperjs/core": "^2.11.8",
|
|
84
107
|
"@release-it/conventional-changelog": "^10.0.5",
|
|
85
|
-
"@types/body-scroll-lock": "^3.1.2",
|
|
86
108
|
"@types/jsdom": "^27.0.0",
|
|
87
|
-
"@types/lodash-es": "^4.17.12",
|
|
88
|
-
"@types/markdown-it": "^14.1.2",
|
|
89
109
|
"@types/node": "^25.3.0",
|
|
90
|
-
"@vitejs/plugin-vue": "^6.0.4",
|
|
91
110
|
"@vitest/coverage-v8": "^4.0.18",
|
|
92
|
-
"@vue/reactivity": "^3.5.28",
|
|
93
111
|
"@vue/test-utils": "^2.4.6",
|
|
94
|
-
"@vuelidate/core": "^2.0.3",
|
|
95
|
-
"@vuelidate/validators": "^2.0.4",
|
|
96
|
-
"@vueuse/core": "^14.1.0",
|
|
97
|
-
"body-scroll-lock": "4.0.0-beta.0",
|
|
98
|
-
"dayjs": "^1.11.19",
|
|
99
112
|
"eslint": "^9.39.3",
|
|
100
|
-
"fuse.js": "^7.1.0",
|
|
101
113
|
"happy-dom": "^20.7.0",
|
|
102
114
|
"histoire": "1.0.0-beta.1",
|
|
103
|
-
"lodash-es": "^4.17.23",
|
|
104
|
-
"markdown-it": "^14.1.1",
|
|
105
|
-
"normalize.css": "^8.0.1",
|
|
106
|
-
"pinia": "^3.0.4",
|
|
107
|
-
"postcss": "^8.5.6",
|
|
108
|
-
"postcss-nested": "^7.0.2",
|
|
109
|
-
"punycode": "^2.3.1",
|
|
110
115
|
"release-it": "^19.2.4",
|
|
111
116
|
"typescript": "~5.9.3",
|
|
112
|
-
"v-calendar": "3.0.1",
|
|
113
|
-
"vite": "^7.3.1",
|
|
114
117
|
"vitepress": "^2.0.0-alpha.16",
|
|
115
118
|
"vitest": "^4.0.18",
|
|
116
|
-
"vue": "^3.5.28",
|
|
117
|
-
"vue-draggable-plus": "^0.6.1",
|
|
118
|
-
"vue-router": "^5.0.3",
|
|
119
119
|
"vue-tsc": "^3.2.5"
|
|
120
120
|
},
|
|
121
|
-
"peerDependencies": {
|
|
122
|
-
"@iconify-json/ph": "^1.2.2",
|
|
123
|
-
"@iconify-json/ri": "^1.2.10",
|
|
124
|
-
"@popperjs/core": "^2.11.8",
|
|
125
|
-
"@types/body-scroll-lock": "^3.1.2",
|
|
126
|
-
"@types/lodash-es": "^4.17.12",
|
|
127
|
-
"@types/markdown-it": "^14.1.2",
|
|
128
|
-
"@vue/reactivity": "^3.5.28",
|
|
129
|
-
"@vuelidate/core": "^2.0.3",
|
|
130
|
-
"@vuelidate/validators": "^2.0.4",
|
|
131
|
-
"@vueuse/core": "^12 || ^13 || ^14",
|
|
132
|
-
"body-scroll-lock": "4.0.0-beta.0",
|
|
133
|
-
"dayjs": "^1.11.19",
|
|
134
|
-
"fuse.js": "^7.1.0",
|
|
135
|
-
"lodash-es": "^4.17.23",
|
|
136
|
-
"markdown-it": "^14.1.1",
|
|
137
|
-
"normalize.css": "^8.0.1",
|
|
138
|
-
"pinia": "^3.0.4",
|
|
139
|
-
"postcss": "^8.5.6",
|
|
140
|
-
"postcss-nested": "^7.0.2",
|
|
141
|
-
"v-calendar": "3.0.1",
|
|
142
|
-
"vue": "^3.5.28",
|
|
143
|
-
"vue-draggable-plus": "^0.6.1",
|
|
144
|
-
"vue-router": "^4 || ^5"
|
|
145
|
-
},
|
|
146
121
|
"packageManager": "pnpm@10.30.1"
|
|
147
122
|
}
|