@mulmoclaude/collection-plugin 0.5.16 → 0.5.17

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/vue.js CHANGED
@@ -2637,11 +2637,19 @@ var CollectionCustomView_vue_vue_type_script_setup_true_lang_default = /*@__PURE
2637
2637
  error.value = `HTTP ${resp.status}`;
2638
2638
  return;
2639
2639
  }
2640
+ const i18n = await binding.fetchViewI18n(props.slug, props.view.id, binding.localeTag());
2641
+ if (stale()) return;
2642
+ const i18nBoot = i18n.ok ? i18n.data : {
2643
+ locale: "",
2644
+ dict: {}
2645
+ };
2640
2646
  srcdoc.value = binding.buildViewSrcdoc(resp.html, {
2641
2647
  slug: props.slug,
2642
2648
  token: mint.data.token,
2643
2649
  dataUrl: mint.data.dataUrl,
2644
- origin: window.location.origin
2650
+ origin: window.location.origin,
2651
+ locale: i18nBoot.locale,
2652
+ dict: i18nBoot.dict
2645
2653
  });
2646
2654
  } catch (err) {
2647
2655
  if (!stale()) error.value = errorMessage(err);
@@ -2649,7 +2657,11 @@ var CollectionCustomView_vue_vue_type_script_setup_true_lang_default = /*@__PURE
2649
2657
  if (!stale()) loading.value = false;
2650
2658
  }
2651
2659
  }
2652
- watch([() => props.slug, () => props.view.id], () => void load(), { immediate: true });
2660
+ watch([
2661
+ () => props.slug,
2662
+ () => props.view.id,
2663
+ () => collectionUi().localeTag()
2664
+ ], () => void load(), { immediate: true });
2653
2665
  let changeUnsub = null;
2654
2666
  function relayChange() {
2655
2667
  iframeEl.value?.contentWindow?.postMessage({
@@ -2716,7 +2728,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
2716
2728
  };
2717
2729
  //#endregion
2718
2730
  //#region src/vue/components/CollectionCustomView.vue
2719
- var CollectionCustomView_default = /*#__PURE__*/ _plugin_vue_export_helper_default(CollectionCustomView_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-aa6e6c2d"]]);
2731
+ var CollectionCustomView_default = /*#__PURE__*/ _plugin_vue_export_helper_default(CollectionCustomView_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-b22228db"]]);
2720
2732
  //#endregion
2721
2733
  //#region src/vue/useCollectionRendering.ts
2722
2734
  function stepForFieldType(type) {