@nocobase/client 1.9.5 → 1.9.7
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/block-provider/index.d.ts +4 -3
- package/es/index.mjs +20 -9
- package/lib/index.js +3 -3
- package/package.json +5 -5
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from './BlockProvider';
|
|
10
10
|
export * from './BlockSchemaComponentProvider';
|
|
11
|
+
export * from './DetailsBlockProvider';
|
|
11
12
|
export * from './FilterFormBlockProvider';
|
|
12
13
|
export * from './FormBlockProvider';
|
|
13
14
|
export * from './FormFieldProvider';
|
|
15
|
+
export * from './hooks';
|
|
16
|
+
export { useLinkActionProps } from './hooks/index';
|
|
14
17
|
export * from './TableBlockProvider';
|
|
15
18
|
export * from './TableFieldProvider';
|
|
16
19
|
export * from './TableSelectorProvider';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './hooks';
|
|
19
|
-
export { useLinkActionProps } from './hooks/index';
|
|
20
|
+
export * from './TemplateBlockProvider';
|
package/es/index.mjs
CHANGED
|
@@ -2718,6 +2718,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2718
2718
|
get TargetKey() {
|
|
2719
2719
|
return TargetKey;
|
|
2720
2720
|
},
|
|
2721
|
+
get TemplateBlockProvider() {
|
|
2722
|
+
return TemplateBlockProvider;
|
|
2723
|
+
},
|
|
2721
2724
|
get TemplateSummary() {
|
|
2722
2725
|
return TemplateSummary;
|
|
2723
2726
|
},
|
|
@@ -4230,6 +4233,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4230
4233
|
get useTabsContext() {
|
|
4231
4234
|
return useTabsContext;
|
|
4232
4235
|
},
|
|
4236
|
+
get useTemplateBlockContext() {
|
|
4237
|
+
return useTemplateBlockContext;
|
|
4238
|
+
},
|
|
4233
4239
|
get useTitleFieldOptions() {
|
|
4234
4240
|
return useTitleFieldOptions;
|
|
4235
4241
|
},
|
|
@@ -8850,7 +8856,7 @@ function addAppVersion(e, t) {
|
|
|
8850
8856
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
8851
8857
|
}), e;
|
|
8852
8858
|
}
|
|
8853
|
-
const name = "@nocobase/client", version = "1.9.
|
|
8859
|
+
const name = "@nocobase/client", version = "1.9.7", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
8854
8860
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
8855
8861
|
"@ant-design/cssinjs": "^1.11.1",
|
|
8856
8862
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -8871,9 +8877,9 @@ const name = "@nocobase/client", version = "1.9.5", license = "AGPL-3.0", main =
|
|
|
8871
8877
|
"@formily/reactive-react": "^2.2.27",
|
|
8872
8878
|
"@formily/shared": "^2.2.27",
|
|
8873
8879
|
"@formily/validator": "^2.2.27",
|
|
8874
|
-
"@nocobase/evaluators": "1.9.
|
|
8875
|
-
"@nocobase/sdk": "1.9.
|
|
8876
|
-
"@nocobase/utils": "1.9.
|
|
8880
|
+
"@nocobase/evaluators": "1.9.7",
|
|
8881
|
+
"@nocobase/sdk": "1.9.7",
|
|
8882
|
+
"@nocobase/utils": "1.9.7",
|
|
8877
8883
|
ahooks: "^3.7.2",
|
|
8878
8884
|
antd: "5.24.2",
|
|
8879
8885
|
"antd-style": "3.7.1",
|
|
@@ -30963,11 +30969,14 @@ const SortableProvider = (e) => {
|
|
|
30963
30969
|
return e.id ? e.id : (n = t.address) == null ? void 0 : n.toString();
|
|
30964
30970
|
}, InternalSortableItem = observer$1(
|
|
30965
30971
|
(e) => {
|
|
30966
|
-
const l = useSortableItemProps(e), { schema: t, id: n, eid: o, removeParentsIfNoChildren: r } = l, a = Y(l, ["schema", "id", "eid", "removeParentsIfNoChildren"]), i = useMemo(() =>
|
|
30967
|
-
|
|
30968
|
-
|
|
30969
|
-
|
|
30970
|
-
|
|
30972
|
+
const l = useSortableItemProps(e), { schema: t, id: n, eid: o, removeParentsIfNoChildren: r } = l, a = Y(l, ["schema", "id", "eid", "removeParentsIfNoChildren"]), i = useMemo(() => {
|
|
30973
|
+
var c, u, d;
|
|
30974
|
+
return {
|
|
30975
|
+
insertAdjacent: "afterEnd",
|
|
30976
|
+
schema: ((u = (c = t.parent) == null ? void 0 : c.parent) == null ? void 0 : u["x-component"]) === "BlockTemplate" ? (d = t.parent) == null ? void 0 : d.parent : t,
|
|
30977
|
+
removeParentsIfNoChildren: r != null ? r : !0
|
|
30978
|
+
};
|
|
30979
|
+
}, [t, r]);
|
|
30971
30980
|
return /* @__PURE__ */ jsx(SortableProvider, { id: n, data: i, children: /* @__PURE__ */ jsx(Sortable, P(x({ id: o }, a), { children: e.children })) });
|
|
30972
30981
|
},
|
|
30973
30982
|
{ displayName: "InternalSortableItem" }
|
|
@@ -70220,6 +70229,7 @@ export {
|
|
|
70220
70229
|
TabsContextProvider,
|
|
70221
70230
|
TargetForeignKey,
|
|
70222
70231
|
TargetKey,
|
|
70232
|
+
TemplateBlockProvider,
|
|
70223
70233
|
TemplateSummary,
|
|
70224
70234
|
Templates,
|
|
70225
70235
|
TestDesigner,
|
|
@@ -70724,6 +70734,7 @@ export {
|
|
|
70724
70734
|
useTableSelectorProps$4 as useTableSelectorProps,
|
|
70725
70735
|
useTableSize,
|
|
70726
70736
|
useTabsContext,
|
|
70737
|
+
useTemplateBlockContext,
|
|
70727
70738
|
useTitleFieldOptions,
|
|
70728
70739
|
useToken,
|
|
70729
70740
|
useUIConfigurationPermissions,
|