@webitel/ui-sdk 26.8.65 → 26.8.67
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/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { ref } from 'vue';
|
|
3
|
-
import { useStore } from 'vuex';
|
|
2
|
+
import { inject, ref } from 'vue';
|
|
4
3
|
|
|
5
4
|
import WtIcon from '../../../components/wt-icon/wt-icon.vue';
|
|
6
5
|
import WtSwitcher from '../../../components/wt-switcher/wt-switcher.vue';
|
|
@@ -16,7 +15,10 @@ const emit = defineEmits([
|
|
|
16
15
|
'changedMode',
|
|
17
16
|
]);
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
// vuex's useStore() is just inject('store') under the hood (its default
|
|
19
|
+
// injection key) — reading it directly avoids a hard dependency on the
|
|
20
|
+
// `vuex` package, which apps that migrated fully to Pinia don't install.
|
|
21
|
+
const store = inject('store', null);
|
|
20
22
|
|
|
21
23
|
const mode = ref('light');
|
|
22
24
|
|