@vc-shell/framework 1.0.247 → 1.0.249

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.0.249](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.248...v1.0.249) (2024-07-05)
2
+
3
+
4
+
5
+ ## [1.0.248](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.247...v1.0.248) (2024-07-03)
6
+
7
+
8
+
1
9
  ## [1.0.247](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.246...v1.0.247) (2024-07-01)
2
10
 
3
11
 
@@ -1,9 +1,9 @@
1
1
  import { inject } from "vue";
2
2
  import { AppInsightsPluginOptions, useAppInsights as useInsights } from "vue3-application-insights";
3
3
  import { generateW3CId } from "@microsoft/applicationinsights-core-js";
4
- import { useUser } from "..";
4
+ import { useUser } from "./../useUser";
5
5
 
6
- export const useAppInsights = () => {
6
+ export function useAppInsights() {
7
7
  const appInsights = useInsights();
8
8
  const { user } = useUser();
9
9
  const appInsightsOptions = inject<AppInsightsPluginOptions>("appInsightsOptions");
@@ -41,4 +41,4 @@ export const useAppInsights = () => {
41
41
  return {
42
42
  setupPageTracking: setupPageTracking(),
43
43
  };
44
- };
44
+ }
@@ -1,5 +1,5 @@
1
1
  import { onErrorCaptured, getCurrentInstance, ref, Ref } from "vue";
2
- import { useAppInsights } from "vue3-application-insights";
2
+ import { useAppInsights as useInsights } from "vue3-application-insights";
3
3
  import { useUser } from "..";
4
4
 
5
5
  interface IUseErrorHandler {
@@ -10,7 +10,7 @@ interface IUseErrorHandler {
10
10
  export function useErrorHandler(capture?: boolean): IUseErrorHandler {
11
11
  const error = ref<string | null>(null);
12
12
  const instance = getCurrentInstance();
13
- const appInsights = useAppInsights();
13
+ const appInsights = useInsights();
14
14
  const { user } = useUser();
15
15
 
16
16
  function reset() {
@@ -1,4 +1,4 @@
1
- export declare const useAppInsights: () => {
1
+ export declare function useAppInsights(): {
2
2
  setupPageTracking: {
3
3
  beforeEach: (route: {
4
4
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useAppInsights/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;4BAUI;YAAE,MAAM,MAAM,CAAA;SAAE;2BASjB;YAAE,MAAM,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE;;CAmB/D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useAppInsights/index.ts"],"names":[],"mappings":"AAKA,wBAAgB,cAAc;;4BAUC;YAAE,MAAM,MAAM,CAAA;SAAE;2BASjB;YAAE,MAAM,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE;;EAmB/D"}
package/dist/framework.js CHANGED
@@ -591,10 +591,10 @@ const gj = /* @__PURE__ */ MN(pj, [["render", vj]]), Ra = gj, yj = {
591
591
  }, Qt({
592
592
  default: ye(() => [
593
593
  oe("div", {
594
- class: Ue(["vc-widget tw-relative tw-shrink-0 tw-py-4 tw-px-2", {
594
+ class: Ue(["vc-widget tw-relative tw-shrink-0 tw-py-4 tw-px-3", {
595
595
  "tw-w-[80px]": o.isExpanded,
596
596
  "vc-widget_disabled": o.disabled,
597
- "tw-w-[36px]": !o.isExpanded,
597
+ "tw-w-[50px]": !o.isExpanded,
598
598
  "tw-w-[70px]": o.$isMobile.value
599
599
  }]),
600
600
  onClick: a
@@ -52286,7 +52286,7 @@ function b0e() {
52286
52286
  remove: i
52287
52287
  };
52288
52288
  }
52289
- const l8 = () => {
52289
+ function l8() {
52290
52290
  const t = t8(), { user: e } = so(), n = In("appInsightsOptions");
52291
52291
  function r() {
52292
52292
  const i = n?.appName ? `[${n.appName}] ` : "", a = (l) => `${i}${l.name}`;
@@ -52311,7 +52311,8 @@ const l8 = () => {
52311
52311
  return {
52312
52312
  setupPageTracking: r()
52313
52313
  };
52314
- }, L0 = (t, e) => ({
52314
+ }
52315
+ const L0 = (t, e) => ({
52315
52316
  install(n) {
52316
52317
  Object.entries(t).forEach(([r, i]) => {
52317
52318
  n.component(r, i);
@@ -74864,7 +74865,7 @@ const _Re = { key: 0 }, ERe = { class: "tw-p-3" }, wRe = { class: "tw-flex tw-fl
74864
74865
  f.value.indexOf(Me) > -1 ? f.value = f.value.filter((_t) => _t !== Me) : f.value.push(Me);
74865
74866
  }
74866
74867
  function $e(he) {
74867
- n.enableItemActions && n.itemActionBuilder && typeof n.items[he] == "object" && (v.value = he);
74868
+ typeof n.items[he] == "object" && (v.value = he);
74868
74869
  }
74869
74870
  async function te(he) {
74870
74871
  if (n.enableItemActions && typeof n.itemActionBuilder == "function") {