@effect-app/vue-components 1.2.0 → 1.3.0

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.
Files changed (39) hide show
  1. package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +5 -4
  2. package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +5 -4
  3. package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +3 -2
  4. package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +5 -4
  5. package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +4 -3
  6. package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +8 -7
  7. package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +5 -4
  8. package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +5 -4
  9. package/dist/vue-components.es12.js +15 -15
  10. package/dist/vue-components.es13.js +36 -39
  11. package/dist/vue-components.es16.js +1 -1
  12. package/dist/vue-components.es17.js +1 -1
  13. package/dist/vue-components.es20.js +41 -41
  14. package/dist/vue-components.es25.js +41 -41
  15. package/dist/vue-components.es28.js +15 -15
  16. package/dist/vue-components.es31.js +22 -10
  17. package/dist/vue-components.es32.js +5 -23
  18. package/dist/vue-components.es33.js +21 -5
  19. package/dist/vue-components.es34.js +25 -16
  20. package/dist/vue-components.es35.js +15 -23
  21. package/dist/vue-components.es36.js +7 -17
  22. package/dist/vue-components.es37.js +5 -12
  23. package/dist/vue-components.es38.js +19 -5
  24. package/dist/vue-components.es39.js +9 -19
  25. package/dist/vue-components.es4.js +12 -12
  26. package/dist/vue-components.es40.js +31 -9
  27. package/dist/vue-components.es41.js +42 -25
  28. package/dist/vue-components.es42.js +16 -38
  29. package/dist/vue-components.es43.js +11 -26
  30. package/dist/vue-components.es44.js +1 -1
  31. package/dist/vue-components.es46.js +1 -1
  32. package/dist/vue-components.es48.js +3 -3
  33. package/dist/vue-components.es49.js +1 -1
  34. package/package.json +15 -15
  35. package/src/components/OmegaForm/OmegaArray.vue +4 -2
  36. package/src/components/OmegaForm/OmegaAutoGen.vue +4 -2
  37. package/src/components/OmegaForm/OmegaFormInput.vue +4 -2
  38. package/src/components/OmegaForm/OmegaInput.vue +4 -2
  39. package/src/components/OmegaForm/OmegaWrapper.vue +4 -2
@@ -1,33 +1,50 @@
1
- import { INVALID_SPAN_CONTEXT as o } from "./vue-components.es40.js";
2
- var i = (
1
+ import { NoopContextManager as f } from "./vue-components.es49.js";
2
+ import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es47.js";
3
+ import { DiagAPI as u } from "./vue-components.es44.js";
4
+ var y = function(t, e) {
5
+ var a = typeof Symbol == "function" && t[Symbol.iterator];
6
+ if (!a) return t;
7
+ var n = a.call(t), o, r = [], i;
8
+ try {
9
+ for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) r.push(o.value);
10
+ } catch (c) {
11
+ i = { error: c };
12
+ } finally {
13
+ try {
14
+ o && !o.done && (a = n.return) && a.call(n);
15
+ } finally {
16
+ if (i) throw i.error;
17
+ }
18
+ }
19
+ return r;
20
+ }, d = function(t, e, a) {
21
+ if (a || arguments.length === 2) for (var n = 0, o = e.length, r; n < o; n++)
22
+ (r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
23
+ return t.concat(r || Array.prototype.slice.call(e));
24
+ }, l = "context", _ = new f(), A = (
3
25
  /** @class */
4
26
  (function() {
5
- function t(n) {
6
- n === void 0 && (n = o), this._spanContext = n;
27
+ function t() {
7
28
  }
8
- return t.prototype.spanContext = function() {
9
- return this._spanContext;
10
- }, t.prototype.setAttribute = function(n, e) {
11
- return this;
12
- }, t.prototype.setAttributes = function(n) {
13
- return this;
14
- }, t.prototype.addEvent = function(n, e) {
15
- return this;
16
- }, t.prototype.addLink = function(n) {
17
- return this;
18
- }, t.prototype.addLinks = function(n) {
19
- return this;
20
- }, t.prototype.setStatus = function(n) {
21
- return this;
22
- }, t.prototype.updateName = function(n) {
23
- return this;
24
- }, t.prototype.end = function(n) {
25
- }, t.prototype.isRecording = function() {
26
- return !1;
27
- }, t.prototype.recordException = function(n, e) {
29
+ return t.getInstance = function() {
30
+ return this._instance || (this._instance = new t()), this._instance;
31
+ }, t.prototype.setGlobalContextManager = function(e) {
32
+ return s(l, e, u.instance());
33
+ }, t.prototype.active = function() {
34
+ return this._getContextManager().active();
35
+ }, t.prototype.with = function(e, a, n) {
36
+ for (var o, r = [], i = 3; i < arguments.length; i++)
37
+ r[i - 3] = arguments[i];
38
+ return (o = this._getContextManager()).with.apply(o, d([e, a, n], y(r), !1));
39
+ }, t.prototype.bind = function(e, a) {
40
+ return this._getContextManager().bind(e, a);
41
+ }, t.prototype._getContextManager = function() {
42
+ return p(l) || _;
43
+ }, t.prototype.disable = function() {
44
+ this._getContextManager().disable(), g(l, u.instance());
28
45
  }, t;
29
46
  })()
30
47
  );
31
48
  export {
32
- i as NonRecordingSpan
49
+ A as ContextAPI
33
50
  };
@@ -1,50 +1,28 @@
1
- import { NoopContextManager as f } from "./vue-components.es49.js";
2
- import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es47.js";
3
- import { DiagAPI as u } from "./vue-components.es44.js";
4
- var y = function(t, e) {
5
- var a = typeof Symbol == "function" && t[Symbol.iterator];
6
- if (!a) return t;
7
- var n = a.call(t), o, r = [], i;
8
- try {
9
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) r.push(o.value);
10
- } catch (c) {
11
- i = { error: c };
12
- } finally {
13
- try {
14
- o && !o.done && (a = n.return) && a.call(n);
15
- } finally {
16
- if (i) throw i.error;
17
- }
18
- }
19
- return r;
20
- }, d = function(t, e, a) {
21
- if (a || arguments.length === 2) for (var n = 0, o = e.length, r; n < o; n++)
22
- (r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
23
- return t.concat(r || Array.prototype.slice.call(e));
24
- }, l = "context", _ = new f(), A = (
1
+ import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es47.js";
2
+ import { ProxyTracerProvider as i } from "./vue-components.es35.js";
3
+ import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es38.js";
4
+ import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es48.js";
5
+ import { DiagAPI as o } from "./vue-components.es44.js";
6
+ var n = "trace", y = (
25
7
  /** @class */
26
8
  (function() {
27
9
  function t() {
10
+ this._proxyTracerProvider = new i(), this.wrapSpanContext = c, this.isSpanContextValid = h, this.deleteSpan = g, this.getSpan = S, this.getActiveSpan = x, this.getSpanContext = d, this.setSpan = f, this.setSpanContext = l;
28
11
  }
29
12
  return t.getInstance = function() {
30
13
  return this._instance || (this._instance = new t()), this._instance;
31
- }, t.prototype.setGlobalContextManager = function(e) {
32
- return s(l, e, u.instance());
33
- }, t.prototype.active = function() {
34
- return this._getContextManager().active();
35
- }, t.prototype.with = function(e, a, n) {
36
- for (var o, r = [], i = 3; i < arguments.length; i++)
37
- r[i - 3] = arguments[i];
38
- return (o = this._getContextManager()).with.apply(o, d([e, a, n], y(r), !1));
39
- }, t.prototype.bind = function(e, a) {
40
- return this._getContextManager().bind(e, a);
41
- }, t.prototype._getContextManager = function() {
42
- return p(l) || _;
14
+ }, t.prototype.setGlobalTracerProvider = function(r) {
15
+ var e = a(n, this._proxyTracerProvider, o.instance());
16
+ return e && this._proxyTracerProvider.setDelegate(r), e;
17
+ }, t.prototype.getTracerProvider = function() {
18
+ return p(n) || this._proxyTracerProvider;
19
+ }, t.prototype.getTracer = function(r, e) {
20
+ return this.getTracerProvider().getTracer(r, e);
43
21
  }, t.prototype.disable = function() {
44
- this._getContextManager().disable(), g(l, u.instance());
22
+ s(n, o.instance()), this._proxyTracerProvider = new i();
45
23
  }, t;
46
24
  })()
47
25
  );
48
26
  export {
49
- A as ContextAPI
27
+ y as TraceAPI
50
28
  };
@@ -1,28 +1,13 @@
1
- import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es47.js";
2
- import { ProxyTracerProvider as i } from "./vue-components.es36.js";
3
- import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es39.js";
4
- import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es48.js";
5
- import { DiagAPI as o } from "./vue-components.es44.js";
6
- var n = "trace", y = (
7
- /** @class */
8
- (function() {
9
- function t() {
10
- this._proxyTracerProvider = new i(), this.wrapSpanContext = c, this.isSpanContextValid = h, this.deleteSpan = g, this.getSpan = S, this.getActiveSpan = x, this.getSpanContext = d, this.setSpan = f, this.setSpanContext = l;
11
- }
12
- return t.getInstance = function() {
13
- return this._instance || (this._instance = new t()), this._instance;
14
- }, t.prototype.setGlobalTracerProvider = function(r) {
15
- var e = a(n, this._proxyTracerProvider, o.instance());
16
- return e && this._proxyTracerProvider.setDelegate(r), e;
17
- }, t.prototype.getTracerProvider = function() {
18
- return p(n) || this._proxyTracerProvider;
19
- }, t.prototype.getTracer = function(r, e) {
20
- return this.getTracerProvider().getTracer(r, e);
21
- }, t.prototype.disable = function() {
22
- s(n, o.instance()), this._proxyTracerProvider = new i();
23
- }, t;
24
- })()
25
- );
1
+ import { useStore as u } from "@tanstack/vue-form";
2
+ import { computed as f } from "vue";
3
+ function c(o, t) {
4
+ return f(() => t ? u(o.store, (n) => {
5
+ const r = {};
6
+ for (const e of t)
7
+ r[e] = n[e];
8
+ return r;
9
+ }).value : {});
10
+ }
26
11
  export {
27
- y as TraceAPI
12
+ c as getOmegaStore
28
13
  };
@@ -1,6 +1,6 @@
1
1
  import { DiagComponentLogger as m } from "./vue-components.es45.js";
2
2
  import { createLogLevelDiagLogger as y } from "./vue-components.es46.js";
3
- import { DiagLogLevel as d } from "./vue-components.es33.js";
3
+ import { DiagLogLevel as d } from "./vue-components.es32.js";
4
4
  import { unregisterGlobal as p, getGlobal as v, registerGlobal as w } from "./vue-components.es47.js";
5
5
  var b = function(i, n) {
6
6
  var r = typeof Symbol == "function" && i[Symbol.iterator];
@@ -1,4 +1,4 @@
1
- import { DiagLogLevel as r } from "./vue-components.es33.js";
1
+ import { DiagLogLevel as r } from "./vue-components.es32.js";
2
2
  function c(n, o) {
3
3
  n < r.NONE ? n = r.NONE : n > r.ALL && (n = r.ALL), o = o || {};
4
4
  function i(t, f) {
@@ -1,6 +1,6 @@
1
- import { createContextKey as o } from "./vue-components.es32.js";
2
- import { NonRecordingSpan as a } from "./vue-components.es41.js";
3
- import { ContextAPI as u } from "./vue-components.es42.js";
1
+ import { createContextKey as o } from "./vue-components.es31.js";
2
+ import { NonRecordingSpan as a } from "./vue-components.es40.js";
3
+ import { ContextAPI as u } from "./vue-components.es41.js";
4
4
  var n = o("OpenTelemetry Context Key SPAN");
5
5
  function r(e) {
6
6
  return e.getValue(n) || void 0;
@@ -1,4 +1,4 @@
1
- import { ROOT_CONTEXT as l } from "./vue-components.es32.js";
1
+ import { ROOT_CONTEXT as l } from "./vue-components.es31.js";
2
2
  var c = function(t, o) {
3
3
  var n = typeof Symbol == "function" && t[Symbol.iterator];
4
4
  if (!n) return t;
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
1
  {
2
2
  "name": "@effect-app/vue-components",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "peerDependencies": {
5
5
  "@mdi/js": "^7.4.47",
6
- "effect": "^3.17.13",
6
+ "effect": "^3.18.0",
7
7
  "intl-messageformat": "^10.7.16",
8
8
  "mdi-js": "^1.0.1",
9
9
  "primeflex": "^4.0.0",
10
10
  "primeicons": "^7.0.0",
11
11
  "primevue": "^4.3.9",
12
- "vue": "^3.5.21",
13
- "vuetify": "^3.10.1"
12
+ "vue": "^3.5.22",
13
+ "vuetify": "^3.10.3"
14
14
  },
15
15
  "devDependencies": {
16
- "@storybook/vue3": "^9.1.6",
17
- "@storybook/vue3-vite": "^9.1.6",
18
- "@types/node": "^24.5.1",
16
+ "@storybook/vue3": "^9.1.9",
17
+ "@storybook/vue3-vite": "^9.1.9",
18
+ "@types/node": "^24.6.0",
19
19
  "@vitejs/plugin-vue": "^6.0.1",
20
20
  "@vue/test-utils": "^2.4.6",
21
21
  "dprint": "^0.50.2",
22
22
  "jsdom": "^27.0.0",
23
23
  "rimraf": "^6.0.1",
24
- "sass": "^1.92.1",
25
- "storybook": "^9.1.6",
24
+ "sass": "^1.93.2",
25
+ "storybook": "^9.1.9",
26
26
  "typescript": "~5.9.2",
27
- "vite": "^7.1.5",
27
+ "vite": "^7.1.7",
28
28
  "vite-plugin-css-injected-by-js": "^3.5.2",
29
29
  "vitepress": "^1.6.4",
30
30
  "vitest": "^3.2.4",
31
- "vue-router": "^4.2.2",
32
- "vue-tsc": "^3.0.7",
33
- "@effect-app/eslint-shared-config": "0.2.1"
31
+ "vue-router": "^4.5.1",
32
+ "vue-tsc": "^3.1.0",
33
+ "@effect-app/eslint-shared-config": "0.3.0"
34
34
  },
35
35
  "files": [
36
36
  "src",
@@ -49,8 +49,8 @@
49
49
  "@tanstack/vue-form": "^1.23.4",
50
50
  "highlight.js": "^11.11.1",
51
51
  "vue3-highlightjs": "^1.0.5",
52
- "@effect-app/vue": "2.81.0",
53
- "effect-app": "3.8.1"
52
+ "effect-app": "3.9.0",
53
+ "@effect-app/vue": "2.82.0"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "pnpm build:run",
@@ -42,9 +42,11 @@
42
42
  <script
43
43
  setup
44
44
  lang="ts"
45
- generic="// dprint ignore - somehow with 120 chars, this becomes a mess. should report it.
45
+ generic="
46
+ // dprint ignore - somehow with 120 chars, this becomes a mess. should report it.
46
47
  From extends Record<PropertyKey, any>,
47
- To extends Record<PropertyKey, any>"
48
+ To extends Record<PropertyKey, any>
49
+ "
48
50
  >
49
51
  import { type DeepKeys, type DeepValue } from "@tanstack/vue-form"
50
52
  import { computed, onMounted, provide } from "vue"
@@ -14,8 +14,10 @@
14
14
  <script
15
15
  setup
16
16
  lang="ts"
17
- generic="From extends Record<PropertyKey, string>,
18
- To extends Record<PropertyKey, string>"
17
+ generic="
18
+ From extends Record<PropertyKey, string>,
19
+ To extends Record<PropertyKey, string>
20
+ "
19
21
  >
20
22
  import { type DeepKeys } from "@tanstack/vue-form"
21
23
  import { Array as A, Order, pipe } from "effect-app"
@@ -17,9 +17,11 @@
17
17
  <script
18
18
  setup
19
19
  lang="ts"
20
- generic="From extends Record<PropertyKey, any>,
20
+ generic="
21
+ From extends Record<PropertyKey, any>,
21
22
  To extends Record<PropertyKey, any>,
22
- Name extends DeepKeys<From>"
23
+ Name extends DeepKeys<From>
24
+ "
23
25
  >
24
26
  import { type DeepKeys } from "@tanstack/vue-form"
25
27
  import { inject } from "vue"
@@ -28,9 +28,11 @@
28
28
  <script
29
29
  setup
30
30
  lang="ts"
31
- generic="// dprint ignore - somehow with 120 chars, this becomes a mess. should report it.
31
+ generic="
32
+ // dprint ignore - somehow with 120 chars, this becomes a mess. should report it.
32
33
  From extends Record<PropertyKey, any>,
33
- To extends Record<PropertyKey, any>"
34
+ To extends Record<PropertyKey, any>
35
+ "
34
36
  >
35
37
  import { computed, inject, type Ref } from "vue"
36
38
  import { useIntl } from "../../utils"
@@ -12,10 +12,12 @@
12
12
  <script
13
13
  setup
14
14
  lang="ts"
15
- generic="From extends Record<PropertyKey, any>,
15
+ generic="
16
+ From extends Record<PropertyKey, any>,
16
17
  To extends Record<PropertyKey, any>,
17
18
  K extends keyof OmegaFormState<From, To> = keyof OmegaFormState<From, To>,
18
- Props = DefaultInputProps<From>"
19
+ Props = DefaultInputProps<From>
20
+ "
19
21
  >
20
22
  /**
21
23
  * Form component that wraps TanStack Form's useForm hook