@retailcrm/embed-ui-v1-components 0.4.1-beta.3 → 0.4.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.
package/dist/host.cjs CHANGED
@@ -2827,7 +2827,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
2827
2827
  emits: ["remove"],
2828
2828
  setup(__props) {
2829
2829
  const props = __props;
2830
- const i18nBus = vue.inject(I18nInjectKey);
2830
+ const i18nBus = vue.inject(I18nInjectKey, null);
2831
2831
  const i18n2 = vue.computed(() => _i18n.init((i18nBus == null ? void 0 : i18nBus.locale) ?? _i18n.fallback, null));
2832
2832
  const textRef = vue.ref(null);
2833
2833
  const textStyle = vue.ref({});
@@ -3103,7 +3103,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3103
3103
  setup(__props, { emit: __emit }) {
3104
3104
  const props = __props;
3105
3105
  const emit = __emit;
3106
- const vueI18n = vue.inject(I18nInjectKey);
3106
+ const i18nBus = vue.inject(I18nInjectKey, null);
3107
3107
  const iframe = vue.ref(null);
3108
3108
  const getIFrameDocument = () => {
3109
3109
  var _a;
@@ -3142,7 +3142,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3142
3142
  "en-GB": "en_US",
3143
3143
  "es-ES": "en_US",
3144
3144
  "ru-RU": "ru_RU"
3145
- })[(vueI18n == null ? void 0 : vueI18n.locale) ?? "en-GB"]);
3145
+ })[(i18nBus == null ? void 0 : i18nBus.locale) ?? "en-GB"]);
3146
3146
  const apiUrl = vue.computed(() => `https://api-maps.yandex.ru/v3/?apikey=${props.apiKey}&lang=${apiLocale.value}`);
3147
3147
  const apiUrlVersion = vue.ref(0);
3148
3148
  const getGeocodeApiUrl = (geocode) => `https://geocode-maps.yandex.ru/1.x/?apikey=${props.apiKey}&geocode=${geocode}&lang=${apiLocale.value}&format=json`;
package/dist/host.js CHANGED
@@ -2825,7 +2825,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2825
2825
  emits: ["remove"],
2826
2826
  setup(__props) {
2827
2827
  const props = __props;
2828
- const i18nBus = inject(I18nInjectKey);
2828
+ const i18nBus = inject(I18nInjectKey, null);
2829
2829
  const i18n2 = computed(() => _i18n.init((i18nBus == null ? void 0 : i18nBus.locale) ?? _i18n.fallback, null));
2830
2830
  const textRef = ref(null);
2831
2831
  const textStyle = ref({});
@@ -3101,7 +3101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3101
3101
  setup(__props, { emit: __emit }) {
3102
3102
  const props = __props;
3103
3103
  const emit = __emit;
3104
- const vueI18n = inject(I18nInjectKey);
3104
+ const i18nBus = inject(I18nInjectKey, null);
3105
3105
  const iframe = ref(null);
3106
3106
  const getIFrameDocument = () => {
3107
3107
  var _a;
@@ -3140,7 +3140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3140
3140
  "en-GB": "en_US",
3141
3141
  "es-ES": "en_US",
3142
3142
  "ru-RU": "ru_RU"
3143
- })[(vueI18n == null ? void 0 : vueI18n.locale) ?? "en-GB"]);
3143
+ })[(i18nBus == null ? void 0 : i18nBus.locale) ?? "en-GB"]);
3144
3144
  const apiUrl = computed(() => `https://api-maps.yandex.ru/v3/?apikey=${props.apiKey}&lang=${apiLocale.value}`);
3145
3145
  const apiUrlVersion = ref(0);
3146
3146
  const getGeocodeApiUrl = (geocode) => `https://geocode-maps.yandex.ru/1.x/?apikey=${props.apiKey}&geocode=${geocode}&lang=${apiLocale.value}&format=json`;
package/dist/remote.cjs CHANGED
@@ -153,7 +153,10 @@ const UiTransition = defineRemoteComponent(UiTransitionType);
153
153
  const UiYandexMapType = "UiYandexMap";
154
154
  const UiYandexMap = defineRemoteComponent(
155
155
  UiYandexMapType,
156
- ["change"]
156
+ [
157
+ "change",
158
+ "update:address"
159
+ ]
157
160
  );
158
161
  exports.UiButton = UiButton;
159
162
  exports.UiButtonType = UiButtonType;
package/dist/remote.d.ts CHANGED
@@ -397,6 +397,7 @@ export declare const UiYandexMap: Component< {
397
397
  [x: string]: never;
398
398
  }, MethodOptions, {
399
399
  change: (address: string) => boolean;
400
+ 'update:address': (address: string) => boolean;
400
401
  }>;
401
402
 
402
403
  declare type UiYandexMapProperties = {
package/dist/remote.js CHANGED
@@ -151,7 +151,10 @@ const UiTransition = defineRemoteComponent(UiTransitionType);
151
151
  const UiYandexMapType = "UiYandexMap";
152
152
  const UiYandexMap = defineRemoteComponent(
153
153
  UiYandexMapType,
154
- ["change"]
154
+ [
155
+ "change",
156
+ "update:address"
157
+ ]
155
158
  );
156
159
  export {
157
160
  UiButton,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui-v1-components",
3
3
  "type": "module",
4
- "version": "0.4.1-beta.3",
4
+ "version": "0.4.1",
5
5
  "license": "MIT",
6
6
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
7
7
  "repository": "git@github.com:retailcrm/embed-ui.git",