@dxtmisha/functional 1.15.8 → 1.15.12
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 +15 -0
- package/ai-description.md +13 -6
- package/ai-doc.md +1 -0
- package/ai-mcp-resources.json +38 -0
- package/ai-resources/prompts.json +26 -0
- package/ai-types.md +1187 -322
- package/dist/library.js +20 -21
- package/package.json +5 -5
- package/ai-mcp.json +0 -38
- /package/{ai-prompts → ai-resources}/api-reference.md +0 -0
- /package/{ai-prompts → ai-resources}/localization-seo.md +0 -0
- /package/{ai-prompts → ai-resources}/reactivity-lists.md +0 -0
- /package/{ai-prompts → ai-resources}/storage-state.md +0 -0
package/dist/library.js
CHANGED
|
@@ -2,8 +2,7 @@ import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Coo
|
|
|
2
2
|
import { computed as F, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, hasInjectionContext as ue, inject as de, isRef as I, onServerPrefetch as fe, onUnmounted as pe, provide as me, ref as L, shallowRef as R, toRefs as he, triggerRef as ge, useAttrs as _e, useSlots as ve, watch as z, watchEffect as ye } from "vue";
|
|
3
3
|
import { MediaSocial as be } from "@dxtmisha/media";
|
|
4
4
|
export * from "@dxtmisha/functional-basic";
|
|
5
|
-
//#
|
|
6
|
-
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
|
|
5
|
+
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/typeof.js
|
|
7
6
|
function B(e) {
|
|
8
7
|
"@babel/helpers - typeof";
|
|
9
8
|
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -13,7 +12,7 @@ function B(e) {
|
|
|
13
12
|
}, B(e);
|
|
14
13
|
}
|
|
15
14
|
//#endregion
|
|
16
|
-
//#region \0@oxc-project+runtime@0.
|
|
15
|
+
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPrimitive.js
|
|
17
16
|
function xe(e, t) {
|
|
18
17
|
if (B(e) != "object" || !e) return e;
|
|
19
18
|
var n = e[Symbol.toPrimitive];
|
|
@@ -25,13 +24,13 @@ function xe(e, t) {
|
|
|
25
24
|
return (t === "string" ? String : Number)(e);
|
|
26
25
|
}
|
|
27
26
|
//#endregion
|
|
28
|
-
//#region \0@oxc-project+runtime@0.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/toPropertyKey.js
|
|
29
28
|
function Se(e) {
|
|
30
29
|
var t = xe(e, "string");
|
|
31
30
|
return B(t) == "symbol" ? t : t + "";
|
|
32
31
|
}
|
|
33
32
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.144.0/helpers/esm/defineProperty.js
|
|
35
34
|
function V(e, t, n) {
|
|
36
35
|
return (t = Se(t)) in e ? Object.defineProperty(e, t, {
|
|
37
36
|
value: n,
|
|
@@ -562,9 +561,7 @@ var Me = class {
|
|
|
562
561
|
e.push(t);
|
|
563
562
|
break;
|
|
564
563
|
case "group":
|
|
565
|
-
case "menu":
|
|
566
|
-
e.push(t, ...this.getSubList(t).map.value);
|
|
567
|
-
break;
|
|
564
|
+
case "menu": e.push(t, ...this.getSubList(t).map.value);
|
|
568
565
|
}
|
|
569
566
|
}), e;
|
|
570
567
|
})), V(this, "mapItems", F(() => this.map.value.filter((e) => e.type === "item"))), V(this, "items", F(() => this.map.value.filter((e) => e.type === "item" || e.type === "group" || e.type === "menu"))), V(this, "highlightFirstItem", F(() => {
|
|
@@ -793,19 +790,21 @@ function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
|
793
790
|
e && (d.value = e);
|
|
794
791
|
}
|
|
795
792
|
}, S = async () => {
|
|
796
|
-
if (!_)
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
793
|
+
if (!_) {
|
|
794
|
+
if (g && g.abort(), g = f.value.controller || new AbortController(), y()) {
|
|
795
|
+
p.value = !0, m.value = !0;
|
|
796
|
+
try {
|
|
797
|
+
let e = await u.request({
|
|
798
|
+
controller: g,
|
|
799
|
+
...b()
|
|
800
|
+
});
|
|
801
|
+
e && (h.value = s == null ? void 0 : s(e), o ? d.value = o(e, h.value) : d.value = e);
|
|
802
|
+
} catch (e) {
|
|
803
|
+
d.value = void 0;
|
|
804
|
+
}
|
|
805
|
+
p.value = !1;
|
|
806
|
+
} else d.value !== void 0 && (d.value = void 0);
|
|
807
|
+
}
|
|
809
808
|
}, C = () => {
|
|
810
809
|
v == null || v(), d.value = void 0, _ = !0;
|
|
811
810
|
}, w = () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development — API orchestration, state singletons (executeUse), storage sync, i18n, formatters, and component design. Extends @dxtmisha/functional-basic.",
|
|
7
7
|
"keywords": [
|
|
@@ -65,16 +65,16 @@
|
|
|
65
65
|
"preview": "vite preview",
|
|
66
66
|
"test": "NODE_OPTIONS=\"--no-webstorage\" vitest",
|
|
67
67
|
"library": "dxt-library",
|
|
68
|
-
"types": "dxt-types",
|
|
69
|
-
"prepublishOnly": "npm run library && npm run build",
|
|
68
|
+
"types": "npm run library && npm run build && dxt-types",
|
|
69
|
+
"prepublishOnly": "npm run library && npm run build && dxt-types-save",
|
|
70
70
|
"publish-to-npm": "npm publish --access public"
|
|
71
71
|
},
|
|
72
72
|
"files": [
|
|
73
|
-
"ai-
|
|
73
|
+
"ai-resources",
|
|
74
74
|
"dist",
|
|
75
75
|
"ai-description.md",
|
|
76
76
|
"ai-doc.md",
|
|
77
|
-
"ai-mcp.json",
|
|
77
|
+
"ai-mcp-resources.json",
|
|
78
78
|
"ai-types.md",
|
|
79
79
|
"CHANGELOG.md",
|
|
80
80
|
"LICENSE",
|
package/ai-mcp.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"uri": "@dxtmisha/functional/ai-types.md",
|
|
4
|
-
"name": "Vue Functional Types (@dxtmisha/functional)",
|
|
5
|
-
"mimeType": "text/markdown",
|
|
6
|
-
"description": "Type definitions and interface declarations for Vue 3 composables, reactive API abstractions, i18n helpers, design constructors, and utility state managers."
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"uri": "@dxtmisha/functional/ai-description.md",
|
|
10
|
-
"name": "Vue Utility Architecture (@dxtmisha/functional)",
|
|
11
|
-
"mimeType": "text/markdown",
|
|
12
|
-
"description": "Architectural guidelines and utility reference for Vue 3 applications, covering reactive state management, API orchestration, component base classes, localization, and storage synchronization."
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"uri": "@dxtmisha/functional/ai-prompts/api-reference.md",
|
|
16
|
-
"name": "API Reference (@dxtmisha/functional)",
|
|
17
|
-
"mimeType": "text/markdown",
|
|
18
|
-
"description": "Provides guidelines and usage patterns for REST API management and reactive scope-isolated singletons in @dxtmisha/functional."
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"uri": "@dxtmisha/functional/ai-prompts/localization-seo.md",
|
|
22
|
-
"name": "Localization SEO Utilities (@dxtmisha/functional)",
|
|
23
|
-
"mimeType": "text/markdown",
|
|
24
|
-
"description": "Provides reactive utilities and helper functions for locale-aware formatting, translation primitives, geographic context, and dynamic HTML document metadata management."
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"uri": "@dxtmisha/functional/ai-prompts/reactivity-lists.md",
|
|
28
|
-
"name": "Reactivity List Utilities (@dxtmisha/functional)",
|
|
29
|
-
"mimeType": "text/markdown",
|
|
30
|
-
"description": "Comprehensive API reference for async reactivity composables, reactive list structures, debounced multi-field search helpers, and lifecycle-managed DOM observers."
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"uri": "@dxtmisha/functional/ai-prompts/storage-state.md",
|
|
34
|
-
"name": "Browser State Composables (@dxtmisha/functional)",
|
|
35
|
-
"mimeType": "text/markdown",
|
|
36
|
-
"description": "Reactive composable wrappers for persistent and synchronized browser state management, including localStorage, sessionStorage, cookies, BroadcastChannel, and URL hash fragments."
|
|
37
|
-
}
|
|
38
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|