@nocobase/client 2.0.20 → 2.0.21
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
CHANGED
|
@@ -9964,7 +9964,7 @@ function addAppVersion(e, t) {
|
|
|
9964
9964
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
9965
9965
|
}), e;
|
|
9966
9966
|
}
|
|
9967
|
-
const name = "@nocobase/client", version = "2.0.
|
|
9967
|
+
const name = "@nocobase/client", version = "2.0.21", license = "Apache-2.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
9968
9968
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
9969
9969
|
"@ant-design/cssinjs": "^1.11.1",
|
|
9970
9970
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -9987,10 +9987,10 @@ const name = "@nocobase/client", version = "2.0.20", license = "Apache-2.0", mai
|
|
|
9987
9987
|
"@formily/reactive-react": "^2.2.27",
|
|
9988
9988
|
"@formily/shared": "^2.2.27",
|
|
9989
9989
|
"@formily/validator": "^2.2.27",
|
|
9990
|
-
"@nocobase/evaluators": "2.0.
|
|
9991
|
-
"@nocobase/flow-engine": "2.0.
|
|
9992
|
-
"@nocobase/sdk": "2.0.
|
|
9993
|
-
"@nocobase/utils": "2.0.
|
|
9990
|
+
"@nocobase/evaluators": "2.0.21",
|
|
9991
|
+
"@nocobase/flow-engine": "2.0.21",
|
|
9992
|
+
"@nocobase/sdk": "2.0.21",
|
|
9993
|
+
"@nocobase/utils": "2.0.21",
|
|
9994
9994
|
"@tanstack/react-table": "^8.21.3",
|
|
9995
9995
|
"@types/tabulator-tables": "^6.2.6",
|
|
9996
9996
|
"acorn-jsx": "^5.3.2",
|
|
@@ -30630,7 +30630,7 @@ const useStyles$a = genStyleHook("nb-markdown", (e, { isDarkTheme: t }) => {
|
|
|
30630
30630
|
}, t ? i : r)
|
|
30631
30631
|
};
|
|
30632
30632
|
}), parseMarkdown$1 = _.memoize((e) => L(void 0, null, function* () {
|
|
30633
|
-
return e && (yield import("./md-
|
|
30633
|
+
return e && (yield import("./md-BbvRKckr.mjs")).default.render(e);
|
|
30634
30634
|
}));
|
|
30635
30635
|
function useParseMarkdown$1(e) {
|
|
30636
30636
|
const [t, o] = useState(""), [n, r] = useState(!0);
|
|
@@ -72043,7 +72043,7 @@ BlockGridModel.registerFlow({
|
|
|
72043
72043
|
}
|
|
72044
72044
|
});
|
|
72045
72045
|
const parseMarkdown = _.memoize((e) => L(void 0, null, function* () {
|
|
72046
|
-
return e && (yield import("./md-
|
|
72046
|
+
return e && (yield import("./md-oH2RssNY.mjs")).default.render(e);
|
|
72047
72047
|
}));
|
|
72048
72048
|
function useParseMarkdown(e) {
|
|
72049
72049
|
const [t, o] = useState(""), [n, r] = useState(!0);
|
|
@@ -81193,6 +81193,7 @@ class AssociationFieldModel extends FieldModel {
|
|
|
81193
81193
|
constructor() {
|
|
81194
81194
|
super(...arguments);
|
|
81195
81195
|
R(this, "operator", "$eq");
|
|
81196
|
+
R(this, "updateAssociation", !0);
|
|
81196
81197
|
}
|
|
81197
81198
|
}
|
|
81198
81199
|
AssociationFieldModel.registerFlow({
|
|
@@ -81202,7 +81203,13 @@ AssociationFieldModel.registerFlow({
|
|
|
81202
81203
|
init: {
|
|
81203
81204
|
handler(e, t) {
|
|
81204
81205
|
return L(this, null, function* () {
|
|
81205
|
-
|
|
81206
|
+
var o, n;
|
|
81207
|
+
if (e.model.updateAssociation) {
|
|
81208
|
+
const r = e.model.context.blockModel, i = (o = r == null ? void 0 : r.context) == null ? void 0 : o.resource, a = (n = e.model.parent) == null ? void 0 : n.fieldPath;
|
|
81209
|
+
if (!i || !a)
|
|
81210
|
+
return;
|
|
81211
|
+
i.addUpdateAssociationValues(a);
|
|
81212
|
+
}
|
|
81206
81213
|
});
|
|
81207
81214
|
}
|
|
81208
81215
|
},
|