@vc-shell/framework 1.0.236 → 1.0.237
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 +9 -0
- package/core/composables/useSettings/index.ts +4 -2
- package/dist/core/composables/useSettings/index.d.ts +2 -0
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/framework.js +4 -2
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts +12 -0
- package/dist/ui/components/organisms/vc-app/vc-app.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/ui/components/organisms/vc-app/vc-app.vue +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.0.237](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.236...v1.0.237) (2024-06-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* vm-1348 avatar for user ([9caf962](https://github.com/VirtoCommerce/vc-shell/commit/9caf962bd881611744ea1849155475b897049df6))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.0.236](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.235...v1.0.236) (2024-06-17)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -8,12 +8,13 @@ interface IUISetting {
|
|
|
8
8
|
contrast_logo?: string;
|
|
9
9
|
logo?: string;
|
|
10
10
|
title?: string;
|
|
11
|
+
avatar?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
interface IUseSettings {
|
|
14
15
|
readonly uiSettings: Ref<IUISetting>;
|
|
15
16
|
readonly loading: ComputedRef<boolean>;
|
|
16
|
-
applySettings: (args: { logo?: string; title?: string }) => void;
|
|
17
|
+
applySettings: (args: { logo?: string; title?: string; avatar?: string }) => void;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export function useSettings(): IUseSettings {
|
|
@@ -35,11 +36,12 @@ export function useSettings(): IUseSettings {
|
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
38
|
|
|
38
|
-
function applySettings(args: { logo?: string; title?: string }) {
|
|
39
|
+
function applySettings(args: { logo?: string; title?: string; avatar?: string }) {
|
|
39
40
|
uiSettings.value = {
|
|
40
41
|
...uiSettings.value,
|
|
41
42
|
logo: args.logo,
|
|
42
43
|
title: args.title,
|
|
44
|
+
avatar: args.avatar,
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -3,6 +3,7 @@ interface IUISetting {
|
|
|
3
3
|
contrast_logo?: string;
|
|
4
4
|
logo?: string;
|
|
5
5
|
title?: string;
|
|
6
|
+
avatar?: string;
|
|
6
7
|
}
|
|
7
8
|
interface IUseSettings {
|
|
8
9
|
readonly uiSettings: Ref<IUISetting>;
|
|
@@ -10,6 +11,7 @@ interface IUseSettings {
|
|
|
10
11
|
applySettings: (args: {
|
|
11
12
|
logo?: string;
|
|
12
13
|
title?: string;
|
|
14
|
+
avatar?: string;
|
|
13
15
|
}) => void;
|
|
14
16
|
}
|
|
15
17
|
export declare function useSettings(): IUseSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSettings/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,GAAG,EAAO,WAAW,EAAa,MAAM,KAAK,CAAC;AAIzE,UAAU,UAAU;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSettings/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,GAAG,EAAO,WAAW,EAAa,MAAM,KAAK,CAAC;AAIzE,UAAU,UAAU;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,aAAa,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACnF;AAED,wBAAgB,WAAW,IAAI,YAAY,CAuC1C"}
|
package/dist/framework.js
CHANGED
|
@@ -38732,7 +38732,8 @@ function Rz() {
|
|
|
38732
38732
|
e.value = {
|
|
38733
38733
|
...e.value,
|
|
38734
38734
|
logo: s.logo,
|
|
38735
|
-
title: s.title
|
|
38735
|
+
title: s.title,
|
|
38736
|
+
avatar: s.avatar
|
|
38736
38737
|
};
|
|
38737
38738
|
}
|
|
38738
38739
|
return Et(async () => {
|
|
@@ -49202,6 +49203,7 @@ const zme = (t) => function() {
|
|
|
49202
49203
|
logo: {},
|
|
49203
49204
|
version: {},
|
|
49204
49205
|
title: {},
|
|
49206
|
+
avatar: {},
|
|
49205
49207
|
disableMenu: { type: Boolean }
|
|
49206
49208
|
},
|
|
49207
49209
|
setup(t) {
|
|
@@ -49275,7 +49277,7 @@ const zme = (t) => function() {
|
|
|
49275
49277
|
key: 1,
|
|
49276
49278
|
userDropdown: k(Od)
|
|
49277
49279
|
}, () => [
|
|
49278
|
-
me(k(Od))
|
|
49280
|
+
me(k(Od), { "avatar-url": b.avatar }, null, 8, ["avatar-url"])
|
|
49279
49281
|
]) : re("", !0)
|
|
49280
49282
|
])
|
|
49281
49283
|
]),
|
|
@@ -17,6 +17,9 @@ declare const _default: {
|
|
|
17
17
|
title: {
|
|
18
18
|
type: import("vue").PropType<string>;
|
|
19
19
|
};
|
|
20
|
+
avatar: {
|
|
21
|
+
type: import("vue").PropType<string>;
|
|
22
|
+
};
|
|
20
23
|
disableMenu: {
|
|
21
24
|
type: import("vue").PropType<boolean>;
|
|
22
25
|
};
|
|
@@ -34,6 +37,9 @@ declare const _default: {
|
|
|
34
37
|
title: {
|
|
35
38
|
type: import("vue").PropType<string>;
|
|
36
39
|
};
|
|
40
|
+
avatar: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
};
|
|
37
43
|
disableMenu: {
|
|
38
44
|
type: import("vue").PropType<boolean>;
|
|
39
45
|
};
|
|
@@ -58,6 +64,9 @@ declare const _default: {
|
|
|
58
64
|
title: {
|
|
59
65
|
type: import("vue").PropType<string>;
|
|
60
66
|
};
|
|
67
|
+
avatar: {
|
|
68
|
+
type: import("vue").PropType<string>;
|
|
69
|
+
};
|
|
61
70
|
disableMenu: {
|
|
62
71
|
type: import("vue").PropType<boolean>;
|
|
63
72
|
};
|
|
@@ -79,6 +88,9 @@ declare const _default: {
|
|
|
79
88
|
title: {
|
|
80
89
|
type: import("vue").PropType<string>;
|
|
81
90
|
};
|
|
91
|
+
avatar: {
|
|
92
|
+
type: import("vue").PropType<string>;
|
|
93
|
+
};
|
|
82
94
|
disableMenu: {
|
|
83
95
|
type: import("vue").PropType<boolean>;
|
|
84
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-app.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"vc-app.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK3B,wBAmB+B;AAE/B,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,KAAK,CAgBxC,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,OAAO,KAAK,CAYtD,CAAC;AAUH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,OAAO,KAAK,CAsBlD,CAAC;AAUH,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,OAAO,KAAK,CAYzD,CAAC;AAUH,eAAO,MAAM,iCAAiC,EAAE,OAAO,CAAC,OAAO,KAAK,CAqBlE,CAAC;AAUH,eAAO,MAAM,+BAA+B,EAAE,OAAO,CAAC,OAAO,KAAK,CAqBhE,CAAC;AAWH,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,OAAO,KAAK,CAqB7D,CAAC"}
|
|
@@ -3,6 +3,7 @@ export interface Props {
|
|
|
3
3
|
logo?: string;
|
|
4
4
|
version?: string;
|
|
5
5
|
title?: string;
|
|
6
|
+
avatar?: string;
|
|
6
7
|
disableMenu?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, Readonly<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vc-app.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-app/vc-app.vue.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAycD,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.237",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/dompurify": "^3.0.5",
|
|
62
62
|
"@types/quill": "^2.0.14",
|
|
63
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
64
|
-
"@vc-shell/config-generator": "^1.0.
|
|
65
|
-
"@vc-shell/ts-config": "^1.0.
|
|
63
|
+
"@vc-shell/api-client-generator": "^1.0.237",
|
|
64
|
+
"@vc-shell/config-generator": "^1.0.237",
|
|
65
|
+
"@vc-shell/ts-config": "^1.0.237",
|
|
66
66
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
67
67
|
"sass": "^1.69.6",
|
|
68
68
|
"shx": "^0.3.4",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
name="toolbar:user-dropdown"
|
|
61
61
|
:user-dropdown="UserDropdownButton"
|
|
62
62
|
>
|
|
63
|
-
<UserDropdownButton />
|
|
63
|
+
<UserDropdownButton :avatar-url="avatar" />
|
|
64
64
|
</slot>
|
|
65
65
|
</template>
|
|
66
66
|
</slot>
|
|
@@ -120,6 +120,7 @@ export interface Props {
|
|
|
120
120
|
logo?: string;
|
|
121
121
|
version?: string;
|
|
122
122
|
title?: string;
|
|
123
|
+
avatar?: string;
|
|
123
124
|
disableMenu?: boolean;
|
|
124
125
|
}
|
|
125
126
|
|