@dxtmisha/scripts 1.1.0 → 1.1.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/CHANGELOG.md +12 -0
- package/dist/{AiZAi-BiLAcdFy.js → AiZAi-P-St-CZL.js} +1 -1
- package/dist/{PropertiesConfig-BKZz_FWW.js → PropertiesConfig-BBsuNndv.js} +14 -11
- package/dist/library-ai.js +1 -1
- package/dist/library-figma.js +1 -1
- package/dist/library-ui.js +647 -636
- package/dist/library.d.ts +8 -0
- package/dist/library.js +3 -3
- package/dist/{propertyTypes-C64u6rT3.js → propertyTypes-CstobYcc.js} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.1.1] - 2026-09-07
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **`PropertiesFile.toUrl` Helper**:
|
|
9
|
+
- Added static `PropertiesFile.toUrl()` method for resolving paths to absolute file URLs for ESM dynamic imports.
|
|
10
|
+
- Added unit test suite in `src/classes/Properties/__tests__/PropertiesFile.test.ts` and updated Storybook documentation (EN, RU, VI).
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **Web-Types Generation (`DesignWikiStormItem`)**:
|
|
14
|
+
- Fixed type formatting in `web-types.json`: string enum options from `getOptions()` are now properly quoted as literal string unions (`'sm' | 'md' | 'lg' | 'auto'`), while interfaces, generics, and function types retain clean TypeScript syntax without invalid outer quotes.
|
|
15
|
+
- Improved `cleanType()` to remove redundant enclosing parentheses and trailing `| undefined`.
|
|
16
|
+
|
|
5
17
|
## [1.1.0] - 2026-09-07
|
|
6
18
|
|
|
7
19
|
### Added
|
|
@@ -3,14 +3,14 @@ import { Datetime as i, forEach as a, toArray as o, toKebabCase as s, transforma
|
|
|
3
3
|
import l from "path";
|
|
4
4
|
import u from "node:fs";
|
|
5
5
|
import d from "node:path";
|
|
6
|
-
import { fileURLToPath as f } from "node:url";
|
|
6
|
+
import { fileURLToPath as f, pathToFileURL as p } from "node:url";
|
|
7
7
|
//#region src/functions/toPathStandardSep.ts
|
|
8
|
-
function
|
|
8
|
+
function m(e) {
|
|
9
9
|
return e.replace(/\//g, l.sep);
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/classes/Properties/PropertiesFile.ts
|
|
13
|
-
var
|
|
13
|
+
var h = d.dirname(f(import.meta.url)), g = class {
|
|
14
14
|
static root;
|
|
15
15
|
static module;
|
|
16
16
|
static is(e) {
|
|
@@ -69,6 +69,9 @@ var m = d.dirname(f(import.meta.url)), h = class {
|
|
|
69
69
|
static toSep(e) {
|
|
70
70
|
return this.sep() === "/" ? e : e.replace("/", this.sep());
|
|
71
71
|
}
|
|
72
|
+
static toUrl(e) {
|
|
73
|
+
return p(d.resolve(this.root, this.joinPath(e))).href;
|
|
74
|
+
}
|
|
72
75
|
static readDir(e) {
|
|
73
76
|
return this.is(e) ? u.readdirSync(this.joinPath(e)) : [];
|
|
74
77
|
}
|
|
@@ -128,9 +131,9 @@ var m = d.dirname(f(import.meta.url)), h = class {
|
|
|
128
131
|
return this.joinPath(e).replace(`${this.root}${d.sep}`, "").replace(`${this.root}`, "");
|
|
129
132
|
}
|
|
130
133
|
static {
|
|
131
|
-
this.module = !!
|
|
134
|
+
this.module = !!h.match("node_modules"), this.root = process.cwd();
|
|
132
135
|
}
|
|
133
|
-
},
|
|
136
|
+
}, _ = class {
|
|
134
137
|
static config;
|
|
135
138
|
static isPromptPackageOnly() {
|
|
136
139
|
return !!this.config?.promptPackageOnly;
|
|
@@ -214,9 +217,9 @@ var m = d.dirname(f(import.meta.url)), h = class {
|
|
|
214
217
|
return this.config?.wikiLanguage ?? "en";
|
|
215
218
|
}
|
|
216
219
|
static getExtends(e, t = []) {
|
|
217
|
-
let n = [...t,
|
|
220
|
+
let n = [...t, m(e)], r = this.getLocalPath(n), i = g.readFile(n), a = g.readFile(r), o = a?.extends ?? i?.extends;
|
|
218
221
|
return o ? {
|
|
219
|
-
...this.getExtends(o, [
|
|
222
|
+
...this.getExtends(o, [g.getPathDir(n)]),
|
|
220
223
|
...i,
|
|
221
224
|
...a
|
|
222
225
|
} : {
|
|
@@ -236,12 +239,12 @@ var m = d.dirname(f(import.meta.url)), h = class {
|
|
|
236
239
|
let t = [];
|
|
237
240
|
for (let n = 0; n < 32; n++) {
|
|
238
241
|
let n = [...t, e], r = this.getLocalPath(n);
|
|
239
|
-
if (
|
|
240
|
-
let e =
|
|
242
|
+
if (g.is(n) || g.is(r)) {
|
|
243
|
+
let e = g.readFile(n), t = g.readFile(r);
|
|
241
244
|
if (e || t) {
|
|
242
245
|
let r = t?.extends ?? e?.extends;
|
|
243
246
|
return r ? {
|
|
244
|
-
...this.getExtends(r, [
|
|
247
|
+
...this.getExtends(r, [g.getPathDir(n)]),
|
|
245
248
|
...e,
|
|
246
249
|
...t
|
|
247
250
|
} : {
|
|
@@ -259,4 +262,4 @@ var m = d.dirname(f(import.meta.url)), h = class {
|
|
|
259
262
|
}
|
|
260
263
|
};
|
|
261
264
|
//#endregion
|
|
262
|
-
export {
|
|
265
|
+
export { g as n, _ as t };
|
package/dist/library-ai.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s, u as c } from "./AiZAi-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s, u as c } from "./AiZAi-P-St-CZL.js";
|
|
2
2
|
export { c as AiAbstract, o as AiClaude, t as AiClaudeLite, e as AiGoogle, i as AiGoogleLite, a as AiOpenAi, n as AiOpenAiLite, s as AiZAi, r as AiZAiLite };
|
package/dist/library-figma.js
CHANGED