@vc-shell/framework 1.1.99-alpha.2 → 1.2.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.
Files changed (153) hide show
  1. package/core/api/platform.ts +9883 -9883
  2. package/core/composables/useDynamicProperties/index.ts +21 -19
  3. package/core/composables/useNotifications/index.ts +1 -32
  4. package/core/composables/useSettings/index.ts +3 -8
  5. package/core/composables/useUser/index.ts +171 -74
  6. package/core/composables/useUserManagement/index.ts +25 -67
  7. package/core/interceptors/index.ts +56 -19
  8. package/core/plugins/signalR/index.ts +1 -27
  9. package/core/types/index.ts +0 -2
  10. package/dist/core/api/platform.d.ts +1 -1
  11. package/dist/core/api/platform.d.ts.map +1 -1
  12. package/dist/core/composables/useDynamicProperties/index.d.ts +1 -1
  13. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  14. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  15. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  16. package/dist/core/composables/useUser/index.d.ts +9 -18
  17. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  18. package/dist/core/composables/useUserManagement/index.d.ts +7 -7
  19. package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
  20. package/dist/core/interceptors/index.d.ts +1 -2
  21. package/dist/core/interceptors/index.d.ts.map +1 -1
  22. package/dist/core/plugins/signalR/index.d.ts +0 -2
  23. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  24. package/dist/core/types/index.d.ts +1 -1
  25. package/dist/core/types/index.d.ts.map +1 -1
  26. package/dist/framework.js +6799 -6812
  27. package/dist/index.css +1 -1
  28. package/dist/index.d.ts +0 -8
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/injection-keys.d.ts +1 -2
  31. package/dist/injection-keys.d.ts.map +1 -1
  32. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  33. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  34. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  35. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  36. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/dist/ui/components/molecules/index.d.ts +1 -0
  39. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  40. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
  41. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
  42. package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
  43. package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
  44. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
  45. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
  46. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  47. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  48. package/dist/vendor-tiptap-core-8RGSOCZs.js +3442 -0
  49. package/dist/{vendor-tiptap-extension-blockquote-r1MBx4hD.js → vendor-tiptap-extension-blockquote-BVmAuV7o.js} +1 -1
  50. package/dist/{vendor-tiptap-extension-bold-BjLI4i8b.js → vendor-tiptap-extension-bold-BOh8AIRZ.js} +1 -1
  51. package/dist/{vendor-tiptap-extension-code-D5-kDnMW.js → vendor-tiptap-extension-code-R4pc2wFE.js} +1 -1
  52. package/dist/{vendor-tiptap-extension-code-block-RjEb0zPA.js → vendor-tiptap-extension-code-block-DibKlZFG.js} +1 -1
  53. package/dist/{vendor-tiptap-extension-document--PLOxIdq.js → vendor-tiptap-extension-document-BwORJR1k.js} +1 -1
  54. package/dist/{vendor-tiptap-extension-hard-break-9cxC2YOS.js → vendor-tiptap-extension-hard-break-DH36OfVk.js} +9 -13
  55. package/dist/{vendor-tiptap-extension-heading-2w0TutHn.js → vendor-tiptap-extension-heading-oMLORiPI.js} +1 -1
  56. package/dist/{vendor-tiptap-extension-horizontal-rule-CFowa_lc.js → vendor-tiptap-extension-horizontal-rule-BMHSoB_Y.js} +1 -1
  57. package/dist/vendor-tiptap-extension-image-DF1ZJ94q.js +80 -0
  58. package/dist/{vendor-tiptap-extension-italic-Bn-6saY0.js → vendor-tiptap-extension-italic-BzqrUuB0.js} +1 -1
  59. package/dist/{vendor-tiptap-extension-link-BmcG1_k-.js → vendor-tiptap-extension-link-hMFZ0hfl.js} +1 -1
  60. package/dist/{vendor-tiptap-extension-list-BrNBJ45n.js → vendor-tiptap-extension-list-Bj5AK6Pq.js} +1 -1
  61. package/dist/{vendor-tiptap-extension-paragraph-DAiYhwUB.js → vendor-tiptap-extension-paragraph-Bs1wl42E.js} +1 -1
  62. package/dist/vendor-tiptap-extension-placeholder-CupUGaI_.js +1 -0
  63. package/dist/{vendor-tiptap-extension-strike-DqbXPfos.js → vendor-tiptap-extension-strike-C4YpGyzc.js} +1 -1
  64. package/dist/vendor-tiptap-extension-table-D8RFr_6X.js +368 -0
  65. package/dist/vendor-tiptap-extension-table-cell-k9uLwyL6.js +1 -0
  66. package/dist/vendor-tiptap-extension-table-header-k9uLwyL6.js +1 -0
  67. package/dist/vendor-tiptap-extension-table-row-k9uLwyL6.js +1 -0
  68. package/dist/{vendor-tiptap-extension-text-BFnfj70b.js → vendor-tiptap-extension-text-C4dQW13r.js} +1 -1
  69. package/dist/{vendor-tiptap-extension-text-style-Darua3qr.js → vendor-tiptap-extension-text-style-a_NYjXT6.js} +1 -1
  70. package/dist/{vendor-tiptap-extension-underline-QyVnBqQZ.js → vendor-tiptap-extension-underline-DthCaPX3.js} +1 -1
  71. package/dist/{vendor-tiptap-extensions-CU-D7bfm.js → vendor-tiptap-extensions-C8rF1qdq.js} +1 -1
  72. package/dist/{vendor-tiptap-markdown-BwATYN5A.js → vendor-tiptap-markdown-DRc3qhBU.js} +1 -1
  73. package/dist/{vendor-tiptap-starter-kit-5luf7zzS.js → vendor-tiptap-starter-kit-BfUUblkP.js} +17 -17
  74. package/dist/{vendor-tiptap-vue-3-CFBErZGb.js → vendor-tiptap-vue-3-DYxT2sf6.js} +1 -1
  75. package/dist/{vendor-vueuse-components-sgKpNzof.js → vendor-vueuse-components-B0zqjNRW.js} +1 -1
  76. package/dist/{vendor-vueuse-core-D0cN7FqY.js → vendor-vueuse-core-CYgwn-B2.js} +10 -10
  77. package/dist/{vendor-vueuse-shared-Pt0UEStA.js → vendor-vueuse-shared-B_uDJJ6V.js} +19 -19
  78. package/package.json +5 -7
  79. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
  80. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
  81. package/shared/components/sign-in/useExternalProvider.ts +1 -11
  82. package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
  83. package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
  84. package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
  85. package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
  86. package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
  87. package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
  88. package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
  89. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
  90. package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
  91. package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
  92. package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
  93. package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
  94. package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
  95. package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
  96. package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
  97. package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
  98. package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
  99. package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
  100. package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
  101. package/ui/components/molecules/index.ts +1 -0
  102. package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
  103. package/ui/components/molecules/vc-accordion/index.ts +11 -0
  104. package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
  105. package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
  106. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
  107. package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
  108. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
  109. package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
  110. package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
  111. package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
  112. package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
  113. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  114. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
  115. package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
  116. package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
  117. package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
  118. package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
  119. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  120. package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
  121. package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
  122. package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
  123. package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
  124. package/ui/components/organisms/vc-app/vc-app.vue +2 -20
  125. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
  126. package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
  127. package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
  128. package/core/providers/README.md +0 -176
  129. package/core/providers/auth-provider-manager.ts +0 -74
  130. package/core/providers/auth-provider-utils.ts +0 -26
  131. package/core/providers/example-custom-auth-provider.ts +0 -162
  132. package/core/providers/index.ts +0 -3
  133. package/core/providers/platform-auth-provider.ts +0 -207
  134. package/core/types/auth-provider.ts +0 -40
  135. package/dist/core/providers/auth-provider-manager.d.ts +0 -34
  136. package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
  137. package/dist/core/providers/auth-provider-utils.d.ts +0 -17
  138. package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
  139. package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
  140. package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
  141. package/dist/core/providers/index.d.ts +0 -3
  142. package/dist/core/providers/index.d.ts.map +0 -1
  143. package/dist/core/providers/platform-auth-provider.d.ts +0 -34
  144. package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
  145. package/dist/core/types/auth-provider.d.ts +0 -27
  146. package/dist/core/types/auth-provider.d.ts.map +0 -1
  147. package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
  148. package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
  149. package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
  150. package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
  151. package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
  152. package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
  153. package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
@@ -1,4 +1,4 @@
1
- import { B as c } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { B as c } from "./vendor-tiptap-core-8RGSOCZs.js";
2
2
  import { defineComponent as o, shallowRef as v, onMounted as p, onBeforeUnmount as l, h as s, ref as h, getCurrentInstance as f, watchEffect as g, nextTick as m, unref as S, markRaw as w, customRef as C } from "vue";
3
3
  function u(t) {
4
4
  return C((e, r) => ({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as se, ref as E, h as ue, watch as x, computed as M, reactive as X, nextTick as ie, getCurrentInstance as ce, onMounted as ae } from "vue";
2
- import { d as H, n as I, i as j, a as fe, t as S, b as de, c as Y, e as ne, f as ve, u as me, g as pe, h as he } from "./vendor-vueuse-shared-Pt0UEStA.js";
2
+ import { d as H, n as I, i as j, a as fe, t as S, b as de, c as Y, e as ne, f as ve, u as me, g as pe, h as he } from "./vendor-vueuse-shared-B_uDJJ6V.js";
3
3
  function w(e) {
4
4
  var o;
5
5
  const t = S(e);
@@ -1,5 +1,5 @@
1
- import { a as Z, t as x, w as Ae, e as G, n as j, f as Le, c as $, j as tt, m as At, i as Pe, b as Ie, o as Pt, k as Ct, l as be, h as z, p as K, q as Ke, r as Rt, s as Dt, v as nt, x as le, y as rt, z as ie, A as at, B as ye, C as Je, D as Lt, E as It, g as ot, F as Mt, u as Nt, G as Vt, H as $t, I as lt, J as ge, K as Wt, L as Ut, M as Bt, N as Oe, O as jt, P as Ht, Q as zt, R as qt, S as Cn, T as ft, U as vt, V as Rn, W as Dn, X as Ln, Y as dt, Z as In, _ as Ue, $ as mt, d as Mn, a0 as Nn, a1 as Vn, a2 as $n, a3 as Wn, a4 as Un, a5 as Bn, a6 as jn, a7 as Hn, a8 as zn, a9 as qn, aa as Gn, ab as Yn, ac as Xn, ad as Kn, ae as Jn, af as Qn, ag as Zn, ah as Be, ai as er, aj as tr, ak as nr, al as rr, am as ar, an as pt, ao as or, ap as lr, aq as ur, ar as sr, as as ir, at as cr, au as fr, av as vr, aw as dr, ax as mr, ay as pr, az as hr, aA as yr, aB as gr, aC as wr, aD as br, aE as Sr, aF as Er, aG as xr, aH as Tr, aI as _r, aJ as kr, aK as Or, aL as Fr, aM as Ar, aN as Pr, aO as Cr, aP as Rr, aQ as Dr } from "./vendor-vueuse-shared-Pt0UEStA.js";
2
- import { shallowRef as B, ref as g, nextTick as Se, getCurrentInstance as Me, onMounted as Gt, computed as O, watch as R, isRef as oe, watchEffect as we, inject as je, defineComponent as Qe, customRef as Lr, onUpdated as Yt, shallowReactive as Ce, reactive as q, getCurrentScope as Ir, readonly as te, isReadonly as Ze, onBeforeUpdate as Mr, h as ht, TransitionGroup as Nr, markRaw as Vr, Fragment as $r, unref as Wr } from "vue";
1
+ import { n as j, t as x, f as Le, c as $, j as tt, m as At, a as Z, i as Ae, e as G, b as Ie, o as Pt, k as Ct, l as be, h as z, p as K, q as Ke, r as Rt, s as Dt, v as nt, w as le, x as rt, y as ie, z as at, A as ye, B as Je, C as Lt, D as It, g as ot, E as Mt, u as Nt, F as Pe, G as Vt, H as $t, I as lt, J as ge, K as Wt, L as Ut, M as Bt, N as Oe, O as jt, P as Ht, Q as zt, R as qt, S as Cn, T as ft, U as vt, V as Rn, W as Dn, X as Ln, Y as dt, Z as In, _ as Ue, $ as mt, d as Mn, a0 as Nn, a1 as Vn, a2 as $n, a3 as Wn, a4 as Un, a5 as Bn, a6 as jn, a7 as Hn, a8 as zn, a9 as qn, aa as Gn, ab as Yn, ac as Xn, ad as Kn, ae as Jn, af as Qn, ag as Zn, ah as Be, ai as er, aj as tr, ak as nr, al as rr, am as ar, an as pt, ao as or, ap as lr, aq as ur, ar as sr, as as ir, at as cr, au as fr, av as vr, aw as dr, ax as mr, ay as pr, az as hr, aA as yr, aB as gr, aC as wr, aD as br, aE as Sr, aF as Er, aG as xr, aH as Tr, aI as _r, aJ as kr, aK as Or, aL as Fr, aM as Ar, aN as Pr, aO as Cr, aP as Rr, aQ as Dr } from "./vendor-vueuse-shared-B_uDJJ6V.js";
2
+ import { ref as g, getCurrentInstance as Me, onMounted as Gt, computed as O, watch as R, isRef as oe, shallowRef as B, watchEffect as we, inject as je, defineComponent as Qe, customRef as Lr, onUpdated as Yt, shallowReactive as Ce, reactive as q, getCurrentScope as Ir, readonly as te, isReadonly as Ze, onBeforeUpdate as Mr, nextTick as Se, h as ht, TransitionGroup as Nr, markRaw as Vr, Fragment as $r, unref as Wr } from "vue";
3
3
  function yt(e, t, n) {
4
4
  let a;
5
5
  oe(n) ? a = {
@@ -148,7 +148,7 @@ function Gr(e, t, n = {}) {
148
148
  const { window: a = D, ignore: o = [], capture: r = !0, detectIframe: l = !1 } = n;
149
149
  if (!a)
150
150
  return j;
151
- Pe && !gt && (gt = !0, Array.from(a.document.body.children).forEach((d) => d.addEventListener("click", j)), a.document.documentElement.addEventListener("click", j));
151
+ Ae && !gt && (gt = !0, Array.from(a.document.body.children).forEach((d) => d.addEventListener("click", j)), a.document.documentElement.addEventListener("click", j));
152
152
  let u = !0;
153
153
  const s = (d) => o.some((v) => {
154
154
  if (typeof v == "string")
@@ -1119,7 +1119,7 @@ function $e(e, t, n, a = {}) {
1119
1119
  }
1120
1120
  if (!n)
1121
1121
  return w;
1122
- const h = x(t), p = en(h), y = (o = a.serializer) != null ? o : ut[p], { pause: b, resume: k } = Ae(
1122
+ const h = x(t), p = en(h), y = (o = a.serializer) != null ? o : ut[p], { pause: b, resume: k } = Pe(
1123
1123
  w,
1124
1124
  () => C(w.value),
1125
1125
  { flush: r, deep: l, eventFilter: d }
@@ -3542,7 +3542,7 @@ function Qo(e, t = !1) {
3542
3542
  });
3543
3543
  const r = () => {
3544
3544
  const u = Fe(x(e));
3545
- !u || n.value || (Pe && (a = _(
3545
+ !u || n.value || (Ae && (a = _(
3546
3546
  u,
3547
3547
  "touchmove",
3548
3548
  (s) => {
@@ -3552,7 +3552,7 @@ function Qo(e, t = !1) {
3552
3552
  )), u.style.overflow = "hidden", n.value = !0);
3553
3553
  }, l = () => {
3554
3554
  const u = Fe(x(e));
3555
- !u || !n.value || (Pe && a?.(), u.style.overflow = o, Ge.delete(u), n.value = !1);
3555
+ !u || !n.value || (Ae && a?.(), u.style.overflow = o, Ge.delete(u), n.value = !1);
3556
3556
  };
3557
3557
  return $(l), O({
3558
3558
  get() {
@@ -4237,7 +4237,7 @@ function Fl(e = "history", t = {}) {
4237
4237
  }
4238
4238
  Array.from(y).forEach((b) => delete u[b]);
4239
4239
  }
4240
- const { pause: d, resume: v } = Ae(
4240
+ const { pause: d, resume: v } = Pe(
4241
4241
  u,
4242
4242
  () => {
4243
4243
  const p = new URLSearchParams("");
@@ -4893,7 +4893,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4893
4893
  isClient: Z,
4894
4894
  isDef: Ht,
4895
4895
  isDefined: Hn,
4896
- isIOS: Pe,
4896
+ isIOS: Ae,
4897
4897
  isObject: Ie,
4898
4898
  isWorker: zt,
4899
4899
  makeDestructurable: At,
@@ -4913,7 +4913,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4913
4913
  onLongPress: ea,
4914
4914
  onStartTyping: ra,
4915
4915
  pausableFilter: It,
4916
- pausableWatch: Ae,
4916
+ pausableWatch: Pe,
4917
4917
  promiseTimeout: lt,
4918
4918
  provideLocal: Gn,
4919
4919
  rand: Yn,
@@ -5110,7 +5110,7 @@ const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5110
5110
  watchIgnorable: ye,
5111
5111
  watchImmediate: Pr,
5112
5112
  watchOnce: Cr,
5113
- watchPausable: Ae,
5113
+ watchPausable: Pe,
5114
5114
  watchThrottled: pt,
5115
5115
  watchTriggerable: Rr,
5116
5116
  watchWithFilter: Vt,
@@ -1,8 +1,8 @@
1
- import { unref as M, onMounted as Q, nextTick as F, ref as w, readonly as k, watch as y, getCurrentInstance as $, computed as p, isRef as S, reactive as H, effectScope as V, customRef as I, shallowRef as ee, watchEffect as te, inject as ne, provide as re, toRefs as x, toRef as oe, onBeforeMount as ue, onBeforeUnmount as ae, getCurrentScope as se, onScopeDispose as ie, onUnmounted as ce, isReactive as le } from "vue";
1
+ import { computed as p, isRef as S, reactive as H, unref as M, effectScope as V, watch as y, nextTick as F, customRef as I, shallowRef as Q, watchEffect as ee, readonly as k, ref as w, getCurrentInstance as $, inject as te, provide as ne, toRefs as x, toRef as re, onBeforeMount as oe, onBeforeUnmount as ue, onMounted as ae, getCurrentScope as se, onScopeDispose as ie, onUnmounted as ce, isReactive as le } from "vue";
2
2
  function He(e, t) {
3
3
  var n;
4
- const r = ee();
5
- return te(() => {
4
+ const r = Q();
5
+ return ee(() => {
6
6
  r.value = e();
7
7
  }, {
8
8
  ...t,
@@ -56,13 +56,13 @@ const D = /* @__PURE__ */ new WeakMap(), fe = (e, t) => {
56
56
  throw new Error("provideLocal must be called in setup");
57
57
  D.has(r) || D.set(r, /* @__PURE__ */ Object.create(null));
58
58
  const o = D.get(r);
59
- o[e] = t, re(e, t);
59
+ o[e] = t, ne(e, t);
60
60
  }, de = (...e) => {
61
61
  var t;
62
62
  const n = e[0], r = (t = $()) == null ? void 0 : t.proxy;
63
63
  if (r == null)
64
64
  throw new Error("injectLocal must be called in setup");
65
- return D.has(r) && n in D.get(r) ? D.get(r)[n] : ne(...e);
65
+ return D.has(r) && n in D.get(r) ? D.get(r)[n] : te(...e);
66
66
  };
67
67
  function ze(e, t) {
68
68
  const n = t?.injectionKey || Symbol(e.name || "InjectionState"), r = t?.defaultValue;
@@ -295,7 +295,7 @@ function L(e) {
295
295
  }
296
296
  function K(...e) {
297
297
  if (e.length !== 1)
298
- return oe(...e);
298
+ return re(...e);
299
299
  const t = e[0];
300
300
  return typeof t == "function" ? k(I(() => ({ get: t, set: E }))) : w(t);
301
301
  }
@@ -493,13 +493,13 @@ function It(e, t = {}) {
493
493
  return n;
494
494
  }
495
495
  function _t(e, t = !0, n) {
496
- L(n) ? ue(e, n) : t ? e() : F(e);
496
+ L(n) ? oe(e, n) : t ? e() : F(e);
497
497
  }
498
498
  function xt(e, t) {
499
- L(t) && ae(e, t);
499
+ L(t) && ue(e, t);
500
500
  }
501
501
  function Ct(e, t = !0, n) {
502
- L() ? Q(e, n) : t ? e() : F(e);
502
+ L() ? ae(e, n) : t ? e() : F(e);
503
503
  }
504
504
  function kt(e, t) {
505
505
  L(t) && ce(e, t);
@@ -1060,12 +1060,12 @@ function fn(e, t, n) {
1060
1060
  }
1061
1061
  export {
1062
1062
  on as $,
1063
- N as A,
1064
- Be as B,
1065
- Et as C,
1066
- vt as D,
1067
- be as E,
1068
- kt as F,
1063
+ Be as A,
1064
+ Et as B,
1065
+ vt as C,
1066
+ be as D,
1067
+ kt as E,
1068
+ G as F,
1069
1069
  j as G,
1070
1070
  xt as H,
1071
1071
  Y as I,
@@ -1162,8 +1162,8 @@ export {
1162
1162
  i as t,
1163
1163
  Pe as u,
1164
1164
  It as v,
1165
- G as w,
1166
- je as x,
1167
- Z as y,
1168
- ge as z
1165
+ je as w,
1166
+ Z as x,
1167
+ ge as y,
1168
+ N as z
1169
1169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.1.99-alpha.2",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -90,9 +90,9 @@
90
90
  "@fullhuman/postcss-purgecss": "^7.0.2",
91
91
  "@laynezh/vite-plugin-lib-assets": "v1.1.0",
92
92
  "@types/dompurify": "^3.0.5",
93
- "@vc-shell/api-client-generator": "1.1.99-alpha.2",
94
- "@vc-shell/config-generator": "1.1.99-alpha.2",
95
- "@vc-shell/ts-config": "1.1.99-alpha.2",
93
+ "@vc-shell/api-client-generator": "1.2.1",
94
+ "@vc-shell/config-generator": "1.2.1",
95
+ "@vc-shell/ts-config": "1.2.1",
96
96
  "@vitejs/plugin-vue": "^5.2.3",
97
97
  "@vue/test-utils": "^2.4.5",
98
98
  "cypress-signalr-mock": "^1.5.0",
@@ -112,7 +112,5 @@
112
112
  "access": "public",
113
113
  "registry": "https://registry.npmjs.org/"
114
114
  },
115
- "stableVersion": "1.1.90",
116
- "npmTag": "alpha",
117
- "gitHead": "600130c2990298afce79325b440f745160a1e4bf"
115
+ "gitHead": "75afdc6afb8a3563385e526f9384a34557fe3561"
118
116
  }
@@ -6,7 +6,7 @@
6
6
  @contextmenu.prevent
7
7
  >
8
8
  <GenericDropdown
9
- opened
9
+ :opened="true"
10
10
  :items="appsList"
11
11
  :is-item-active="(item) => locationHandler(item.relativeUrl ?? '')"
12
12
  max-height="auto"
@@ -72,7 +72,7 @@ const switchApp = (app: AppDescriptor) => {
72
72
  @apply tw-relative tw-flex tw-shrink-0 tw-h-full;
73
73
 
74
74
  &__item {
75
- @apply tw-flex tw-items-center tw-w-full tw-p-3;
75
+ @apply tw-flex tw-items-center tw-w-full tw-p-3 tw-w-full;
76
76
  }
77
77
 
78
78
  &__item-icon {
@@ -1,11 +1,8 @@
1
- import { computed, Ref, ref, inject } from "vue";
1
+ import { computed, Ref, ref } from "vue";
2
2
  import { AppDescriptor, AppsClient } from "../../../../../core/api/platform";
3
3
  import { usePermissions } from "../../../../../core/composables";
4
4
  import { notification } from "./../../../notifications";
5
5
  import { i18n } from "../../../../../core/plugins";
6
- import { AuthProviderKey } from "../../../../../injection-keys";
7
- import { IAuthProvider } from "../../../../../core/types/auth-provider";
8
- import { shouldEnablePlatformFeatures } from "../../../../../core/providers/auth-provider-utils";
9
6
 
10
7
  interface IUseAppSwitcher {
11
8
  readonly appsList: Ref<AppDescriptor[]>;
@@ -17,23 +14,12 @@ export function useAppSwitcher(): IUseAppSwitcher {
17
14
  const { hasAccess } = usePermissions();
18
15
  const appsList = ref<AppDescriptor[]>([]);
19
16
 
20
- // Inject auth provider to check if platform features should be enabled
21
- const authProvider = inject(AuthProviderKey);
22
-
23
17
  async function getApiClient(): Promise<AppsClient> {
24
18
  const client = new AppsClient();
25
19
  return client;
26
20
  }
27
21
 
28
22
  async function getApps() {
29
- // Skip loading apps for custom authentication providers
30
- if (!shouldEnablePlatformFeatures(authProvider)) {
31
- console.log("[useAppSwitcher] Skipping getApps - custom authentication provider detected");
32
- appsList.value = []; // Ensure empty list for custom providers
33
- return;
34
- }
35
-
36
- console.log("[useAppSwitcher] Loading apps from platform");
37
23
  const client = await getApiClient();
38
24
 
39
25
  try {
@@ -1,8 +1,6 @@
1
1
  import { useLocalStorage } from "@vueuse/core";
2
- import { inject, type Ref } from "vue";
2
+ import type { Ref } from "vue";
3
3
  import { ExternalSignInClient, ExternalSignInProviderInfo } from "../../../core/api/platform";
4
- import { shouldEnablePlatformFeatures } from "../../../core/providers/auth-provider-utils";
5
- import { AuthProviderKey } from "../../../injection-keys";
6
4
 
7
5
  export interface IUseExternalProvider {
8
6
  storage: Ref<{ providerType?: string | undefined }>;
@@ -14,9 +12,6 @@ export interface IUseExternalProvider {
14
12
  const VC_EXTERNAL_AUTH_DATA_KEY = "externalSignIn";
15
13
 
16
14
  export const useExternalProvider = (): IUseExternalProvider => {
17
- // Check if we're using a custom auth provider
18
- const authProvider = inject(AuthProviderKey);
19
- const isPlatformProvider = shouldEnablePlatformFeatures(authProvider);
20
15
  const externalSecurityClient = new ExternalSignInClient();
21
16
  const externalSignInStorage = useLocalStorage<{ providerType?: string | undefined }>(
22
17
  VC_EXTERNAL_AUTH_DATA_KEY,
@@ -86,11 +81,6 @@ export const useExternalProvider = (): IUseExternalProvider => {
86
81
  }
87
82
 
88
83
  async function getExternalLoginProviders() {
89
- if (!isPlatformProvider) {
90
- console.log("[useExternalProvider] Skipping getExternalLoginProviders - custom authentication provider detected");
91
- return undefined;
92
- }
93
-
94
84
  let result: ExternalSignInProviderInfo[] | undefined = undefined;
95
85
  try {
96
86
  result = await externalSecurityClient.getExternalLoginProviders();
@@ -14,15 +14,7 @@ import { toRefs } from "@vueuse/core";
14
14
  import { unrefNested } from "./unrefNested";
15
15
  import { usePermissions } from "../../../../core/composables";
16
16
 
17
- // Lazy initialization to avoid calling composables at module level
18
- let hasAccess: ReturnType<typeof usePermissions>["hasAccess"] | null = null;
19
- function getHasAccess() {
20
- if (!hasAccess) {
21
- const permissions = usePermissions();
22
- hasAccess = permissions.hasAccess;
23
- }
24
- return hasAccess;
25
- }
17
+ const { hasAccess } = usePermissions();
26
18
 
27
19
  function disabledHandler(
28
20
  disabled: { method?: string } | boolean,
@@ -177,7 +169,7 @@ function nodeBuilder<
177
169
  if (toValue(model) && Array.isArray(toValue(model))) {
178
170
  return toValue(model).map((modelItem: ToRefs<{ [x: string]: unknown; id: string }>) => {
179
171
  return controlSchema.fields.reduce((arr, fieldItem) => {
180
- if (safeIn("permissions", fieldItem) && !getHasAccess()(fieldItem.permissions)) {
172
+ if (safeIn("permissions", fieldItem) && !hasAccess(fieldItem.permissions)) {
181
173
  return arr;
182
174
  }
183
175
 
@@ -206,7 +198,7 @@ function nodeBuilder<
206
198
 
207
199
  return [
208
200
  controlSchema.fields.reduce((arr, field) => {
209
- if (safeIn("permissions", field) && !getHasAccess()(field.permissions)) {
201
+ if (safeIn("permissions", field) && !hasAccess(field.permissions)) {
210
202
  return arr;
211
203
  }
212
204
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import VcBadge from "./vc-badge.vue";
3
3
  import { ref } from "vue";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcButton } from "./";
3
3
  import { VcIcon } from "../vc-icon";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcCard } from ".";
3
3
  import { VcInput, VcCol, VcButton } from "./../../";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcCol } from "./";
3
3
  import { VcRow } from "./../vc-row";
4
4
  import { VcImage } from "./../../";
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcContainer } from "./";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcHint } from "./";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcIcon } from "./index";
3
3
  import VcIconTest from "./vc-icon-test.vue";
4
4
  import VcIconExamples from "./vc-icon-examples.vue";
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcImage } from "./";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcLabel } from "./";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcLink } from "./";
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { ref } from "vue";
2
- import type { Meta, StoryObj } from "@storybook/vue3";
2
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
3
3
  import { VcProgress } from "./";
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcRow } from "./";
3
3
  import { VcImage } from "./../../";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import VcSkeleton from "./vc-skeleton.vue";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcStatus } from "./";
3
3
  import { VcIcon } from "../vc-icon";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcStatusIcon } from "./";
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { ref } from "vue";
2
- import type { Meta, StoryObj } from "@storybook/vue3";
2
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
3
3
  import { VcTooltip } from "./";
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import { VcVideo } from "./";
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { ref } from "vue";
2
- import type { Meta, StoryObj } from "@storybook/vue3";
2
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
3
3
  import { VcWidget } from "./";
4
4
  import { provideWidgetService } from "../../../../core/composables";
5
5
 
@@ -1,3 +1,4 @@
1
+ export * from "./vc-accordion";
1
2
  export * from "./vc-breadcrumbs";
2
3
  export * from "./vc-editor";
3
4
  export * from "./vc-form";