medusa-plugin-ordinant 0.1.2 → 0.1.4

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.
@@ -35,8 +35,10 @@ const CATEGORY_FIELDS = {
35
35
  "destructive_device",
36
36
  "suppressor",
37
37
  "suppressor_part",
38
+ "muzzle_device",
38
39
  "firearm_part"
39
40
  ],
41
+ muzzle_type: ["muzzle_device"],
40
42
  mag_capacity: [
41
43
  "magazine",
42
44
  "handgun",
@@ -55,7 +57,8 @@ const CATEGORY_FIELDS = {
55
57
  "machine_gun",
56
58
  "aow",
57
59
  "suppressor",
58
- "suppressor_part"
60
+ "suppressor_part",
61
+ "muzzle_device"
59
62
  ],
60
63
  action_type: [
61
64
  "handgun",
@@ -591,9 +594,10 @@ const VariantRow = ({
591
594
  ] })
592
595
  ] }),
593
596
  row.status === "needs_sku" && /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle mt-1", children: "No SKU — use “Generate SKUs” above, or add one under Variants, so this variant can be classified and sold." }),
594
- row.status !== "needs_sku" && !editing && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2", children: [
597
+ row.status !== "needs_sku" && !editing && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex flex-col gap-2", children: [
595
598
  /* @__PURE__ */ jsxRuntime.jsx(ReadableAttributes, { attributes: row.attributes }),
596
- row.notes && /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle mt-1", children: row.notes })
599
+ row.notes && /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: row.notes }),
600
+ row.attributes && /* @__PURE__ */ jsxRuntime.jsx(CoveragePreview, { attributes: row.attributes })
597
601
  ] }),
598
602
  editing && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-col gap-3", children: [
599
603
  /* @__PURE__ */ jsxRuntime.jsx(AttributeEditor, { value: draft, onChange: setDraft }),
@@ -32,8 +32,10 @@ const CATEGORY_FIELDS = {
32
32
  "destructive_device",
33
33
  "suppressor",
34
34
  "suppressor_part",
35
+ "muzzle_device",
35
36
  "firearm_part"
36
37
  ],
38
+ muzzle_type: ["muzzle_device"],
37
39
  mag_capacity: [
38
40
  "magazine",
39
41
  "handgun",
@@ -52,7 +54,8 @@ const CATEGORY_FIELDS = {
52
54
  "machine_gun",
53
55
  "aow",
54
56
  "suppressor",
55
- "suppressor_part"
57
+ "suppressor_part",
58
+ "muzzle_device"
56
59
  ],
57
60
  action_type: [
58
61
  "handgun",
@@ -588,9 +591,10 @@ const VariantRow = ({
588
591
  ] })
589
592
  ] }),
590
593
  row.status === "needs_sku" && /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle mt-1", children: "No SKU — use “Generate SKUs” above, or add one under Variants, so this variant can be classified and sold." }),
591
- row.status !== "needs_sku" && !editing && /* @__PURE__ */ jsxs("div", { className: "mt-2", children: [
594
+ row.status !== "needs_sku" && !editing && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-col gap-2", children: [
592
595
  /* @__PURE__ */ jsx(ReadableAttributes, { attributes: row.attributes }),
593
- row.notes && /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle mt-1", children: row.notes })
596
+ row.notes && /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: row.notes }),
597
+ row.attributes && /* @__PURE__ */ jsx(CoveragePreview, { attributes: row.attributes })
594
598
  ] }),
595
599
  editing && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-col gap-3", children: [
596
600
  /* @__PURE__ */ jsx(AttributeEditor, { value: draft, onChange: setDraft }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medusa-plugin-ordinant",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Ordinant compliance for Medusa v2: catalog classification with merchant attestation and a deterministic, citation-bearing checkout gate. Compliance information and automation - not legal advice.",
5
5
  "author": "Ordinant (https://ordinant.com)",
6
6
  "license": "MIT",