@webx-ui/module-catalog 0.4.0 → 0.5.0

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/editor.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
+ import { ScreenModel } from '@webx-ui/schema';
2
3
  import { GalleryVideo } from './galleryVideo';
3
4
  import { CategoryRow, ProductImage, ProductRow } from './types';
4
5
  /**
@@ -15,6 +16,12 @@ export interface ProductEditorContext {
15
16
  images: Ref<ProductImage[]>;
16
17
  /** Closed for writing: no permission, or a save in flight. */
17
18
  locked: Ref<boolean>;
19
+ /**
20
+ * The values of the form as they are right now, edits included — what a satellite's node reads
21
+ * when it depends on another field: the properties' tab redraws for a main category chosen and
22
+ * not yet saved. Left out by an editor that has no form around its nodes.
23
+ */
24
+ values?: Ref<ScreenModel>;
18
25
  /**
19
26
  * Video files on their way into the gallery. Kept up here rather than in the gallery field, whose
20
27
  * tab is taken down when another is opened — and an upload with it. The field makes its own
package/dist/index.js CHANGED
@@ -2477,7 +2477,7 @@ const Cl = /* @__PURE__ */ ce({
2477
2477
  product: y(() => g.value?.id ?? null),
2478
2478
  images: b
2479
2479
  });
2480
- Ja({ product: g, images: b, locked: J, video: P }), Rt({ id: y(() => g.value?.id ?? null) }), jt({
2480
+ Ja({ product: g, images: b, locked: J, video: P, values: w }), Rt({ id: y(() => g.value?.id ?? null) }), jt({
2481
2481
  values: w,
2482
2482
  prefix: I(""),
2483
2483
  path: y(() => Be(g.value?.url)?.replace(new RegExp(`-${g.value?.id}$`), "") ?? null),
@@ -2705,7 +2705,7 @@ const Cl = /* @__PURE__ */ ce({
2705
2705
  ], 64))
2706
2706
  ], 32));
2707
2707
  }
2708
- }), Yl = /* @__PURE__ */ he(Xl, [["__scopeId", "data-v-923c09f7"]]), Ql = /* @__PURE__ */ ce({
2708
+ }), Yl = /* @__PURE__ */ he(Xl, [["__scopeId", "data-v-9da5d427"]]), Ql = /* @__PURE__ */ ce({
2709
2709
  __name: "BulkParamsDialog",
2710
2710
  props: {
2711
2711
  action: {},