@mercurjs/dashboard-shared 2.2.0-canary.44 → 2.2.0-canary.45
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/index.js +7 -7
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -24782,7 +24782,7 @@ function applyNavOverrides(coreRoutes, overrides = []) {
|
|
|
24782
24782
|
|
|
24783
24783
|
// src/extensions/form-extension-zone.tsx
|
|
24784
24784
|
import { Input as Input8, Switch as Switch2, Textarea as Textarea3 } from "@medusajs/ui";
|
|
24785
|
-
import {
|
|
24785
|
+
import { jsx as jsx91, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
24786
24786
|
function zodType(field) {
|
|
24787
24787
|
const def = field.validation?.def;
|
|
24788
24788
|
return def?.type ?? "string";
|
|
@@ -24841,7 +24841,7 @@ var FormExtensionZone = ({
|
|
|
24841
24841
|
}) => {
|
|
24842
24842
|
const fields = useExtension().getFormFields(model, zone, tab);
|
|
24843
24843
|
if (fields.length === 0) return null;
|
|
24844
|
-
return /* @__PURE__ */ jsx91(
|
|
24844
|
+
return /* @__PURE__ */ jsx91("div", { className: "flex flex-col gap-y-4", children: fields.map(({ name, field }) => /* @__PURE__ */ jsx91(
|
|
24845
24845
|
ExtensionField,
|
|
24846
24846
|
{
|
|
24847
24847
|
name,
|
|
@@ -24854,8 +24854,8 @@ var FormExtensionZone = ({
|
|
|
24854
24854
|
};
|
|
24855
24855
|
|
|
24856
24856
|
// src/extensions/display-extension-zone.tsx
|
|
24857
|
-
import { Fragment as
|
|
24858
|
-
import { Fragment as
|
|
24857
|
+
import { Fragment as Fragment7 } from "react";
|
|
24858
|
+
import { Fragment as Fragment8, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
24859
24859
|
var DisplayExtensionZone = ({
|
|
24860
24860
|
model,
|
|
24861
24861
|
zone,
|
|
@@ -24866,7 +24866,7 @@ var DisplayExtensionZone = ({
|
|
|
24866
24866
|
const builtIn = new Set(builtInFieldIds);
|
|
24867
24867
|
const added = fields.filter((f) => f.component && !builtIn.has(f.id));
|
|
24868
24868
|
if (added.length === 0 && actions.length === 0) return null;
|
|
24869
|
-
return /* @__PURE__ */ jsxs60(
|
|
24869
|
+
return /* @__PURE__ */ jsxs60(Fragment8, { children: [
|
|
24870
24870
|
added.map(({ id, component: Component }) => {
|
|
24871
24871
|
const C = Component;
|
|
24872
24872
|
return /* @__PURE__ */ jsx92(C, { data }, id);
|
|
@@ -24888,14 +24888,14 @@ var DisplayField = ({
|
|
|
24888
24888
|
if (overridden) {
|
|
24889
24889
|
return Component ? /* @__PURE__ */ jsx92(Component, { data }) : null;
|
|
24890
24890
|
}
|
|
24891
|
-
return /* @__PURE__ */ jsx92(
|
|
24891
|
+
return /* @__PURE__ */ jsx92(Fragment7, { children });
|
|
24892
24892
|
};
|
|
24893
24893
|
var DisplaySection = ({
|
|
24894
24894
|
model,
|
|
24895
24895
|
zone,
|
|
24896
24896
|
data,
|
|
24897
24897
|
fields
|
|
24898
|
-
}) => /* @__PURE__ */ jsxs60(
|
|
24898
|
+
}) => /* @__PURE__ */ jsxs60(Fragment8, { children: [
|
|
24899
24899
|
fields.map(({ id, render }) => /* @__PURE__ */ jsx92(DisplayField, { model, zone, id, data, children: render }, id)),
|
|
24900
24900
|
/* @__PURE__ */ jsx92(
|
|
24901
24901
|
DisplayExtensionZone,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/dashboard-shared",
|
|
3
|
-
"version": "2.2.0-canary.
|
|
3
|
+
"version": "2.2.0-canary.45",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "tsup"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@mercurjs/client": "2.2.0-canary.
|
|
26
|
+
"@mercurjs/client": "2.2.0-canary.45",
|
|
27
27
|
"@ariakit/react": "^0.4.15",
|
|
28
28
|
"@babel/runtime": "^7.26.10",
|
|
29
29
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"zod": "4.4.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@mercurjs/types": "2.2.0-canary.
|
|
67
|
-
"@mercurjs/core": "2.2.0-canary.
|
|
68
|
-
"@mercurjs/dashboard-sdk": "2.2.0-canary.
|
|
66
|
+
"@mercurjs/types": "2.2.0-canary.45",
|
|
67
|
+
"@mercurjs/core": "2.2.0-canary.45",
|
|
68
|
+
"@mercurjs/dashboard-sdk": "2.2.0-canary.45",
|
|
69
69
|
"tsup": "^8.0.2",
|
|
70
70
|
"typescript": "5.9.3",
|
|
71
71
|
"@types/lodash.debounce": "^4.0.8",
|