@nocobase/client 1.5.4 → 1.5.6
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/es/index.mjs +8 -8
- package/lib/index.js +94 -94
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -6186,8 +6186,8 @@ const InternalFormBlockProvider = (e) => {
|
|
|
6186
6186
|
const e = useFormBlockContext(), { fieldSchema: t } = useActionContext();
|
|
6187
6187
|
return e.type !== "create" && (t == null ? void 0 : t["x-acl-action"]) !== "create" && (t == null ? void 0 : t["x-action"]) !== "create";
|
|
6188
6188
|
}, FormBlockProvider = withDynamicSchemaProps((e) => {
|
|
6189
|
-
const t = useCollectionParentRecordData(), { parentRecord: n } = e,
|
|
6190
|
-
return !l &&
|
|
6189
|
+
const t = useCollectionParentRecordData(), { parentRecord: n, action: o } = e, r = useCollectionRecordData(), { association: i } = e, a = useCollectionManager(), { __collection: l } = r || {}, { designable: c } = useDesignable(), u = e.collection || a.getCollection(i).name, d = useUpdate();
|
|
6190
|
+
return !c && l && o && l !== u ? null : /* @__PURE__ */ jsx(TemplateBlockProvider, { onTemplateLoaded: d, children: /* @__PURE__ */ jsx(
|
|
6191
6191
|
BlockProvider,
|
|
6192
6192
|
P(x({
|
|
6193
6193
|
name: e.name || "form"
|
|
@@ -6466,7 +6466,7 @@ function requestParentRecordData(a) {
|
|
|
6466
6466
|
const BlockRequestContextProvider = (e) => {
|
|
6467
6467
|
var l, c, u, d, p, m;
|
|
6468
6468
|
const t = useRef(e.recordRequest), n = useRef((l = e.recordRequest) == null ? void 0 : l.data), { active: o } = useKeepAlive(), r = useRef(o), i = useDeferredValue(o), a = useDataBlockProps();
|
|
6469
|
-
return i && !r.current && a.dataLoadingMode === "auto" && ((c = e.recordRequest) == null || c.refresh()), i && // the stage when loading just ended
|
|
6469
|
+
return i && !r.current && (_.isNil(a.dataLoadingMode) || a.dataLoadingMode === "auto") && ((c = e.recordRequest) == null || c.refresh()), i && // the stage when loading just ended
|
|
6470
6470
|
r.current && !((u = e.recordRequest) != null && u.loading) && !_.isEqual(n.current, (d = e.recordRequest) == null ? void 0 : d.data) && (n.current = (p = e.recordRequest) == null ? void 0 : p.data), i !== r.current && (r.current = i), t.current = e.recordRequest, /* @__PURE__ */ jsx(BlockRequestRefContext.Provider, { value: t, children: /* @__PURE__ */ jsx(BlockRequestLoadingContext.Provider, { value: (m = e.recordRequest) == null ? void 0 : m.loading, children: /* @__PURE__ */ jsx(BlockRequestDataContext.Provider, { value: n.current, children: e.children }) }) });
|
|
6471
6471
|
}, BlockRequestProvider = React.memo(({ children: e }) => {
|
|
6472
6472
|
var C, b;
|
|
@@ -10626,7 +10626,7 @@ const Table$2 = withDynamicSchemaProps(
|
|
|
10626
10626
|
// Don't put 'value' in dependencies, otherwise it will cause the dropdown component to disappear immediately when adding association fields to the table
|
|
10627
10627
|
), { height: ie, tableSizeRefCallback: ae } = useTableSize(), ue = useMemo(() => ({
|
|
10628
10628
|
x: "max-content",
|
|
10629
|
-
y:
|
|
10629
|
+
y: ie
|
|
10630
10630
|
}), [ie, J]), xe = useCallback(
|
|
10631
10631
|
(re) => N.includes(re[m]) ? G : "",
|
|
10632
10632
|
[N, G, JSON.stringify(m)]
|
|
@@ -35177,7 +35177,7 @@ function addAppVersion(e, t) {
|
|
|
35177
35177
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
35178
35178
|
}), e;
|
|
35179
35179
|
}
|
|
35180
|
-
const name = "@nocobase/client", version = "1.5.
|
|
35180
|
+
const name = "@nocobase/client", version = "1.5.6", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
35181
35181
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
35182
35182
|
"@ant-design/cssinjs": "^1.11.1",
|
|
35183
35183
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -35199,9 +35199,9 @@ const name = "@nocobase/client", version = "1.5.4", license = "AGPL-3.0", main =
|
|
|
35199
35199
|
"@formily/reactive-react": "^2.2.27",
|
|
35200
35200
|
"@formily/shared": "^2.2.27",
|
|
35201
35201
|
"@formily/validator": "^2.2.27",
|
|
35202
|
-
"@nocobase/evaluators": "1.5.
|
|
35203
|
-
"@nocobase/sdk": "1.5.
|
|
35204
|
-
"@nocobase/utils": "1.5.
|
|
35202
|
+
"@nocobase/evaluators": "1.5.6",
|
|
35203
|
+
"@nocobase/sdk": "1.5.6",
|
|
35204
|
+
"@nocobase/utils": "1.5.6",
|
|
35205
35205
|
ahooks: "^3.7.2",
|
|
35206
35206
|
antd: "5.12.8",
|
|
35207
35207
|
"antd-style": "3.7.1",
|