@nocobase/client 2.0.6 → 2.0.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/ai/tools-manager/index.d.ts +0 -1
- package/es/index.mjs +6 -49
- package/lib/index.js +4 -4
- package/package.json +6 -6
package/es/index.mjs
CHANGED
|
@@ -3362,12 +3362,6 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3362
3362
|
get TimePicker() {
|
|
3363
3363
|
return TimePicker;
|
|
3364
3364
|
},
|
|
3365
|
-
get ToolsContext() {
|
|
3366
|
-
return ToolsContext;
|
|
3367
|
-
},
|
|
3368
|
-
get ToolsProvider() {
|
|
3369
|
-
return ToolsProvider;
|
|
3370
|
-
},
|
|
3371
3365
|
get TreeSelect() {
|
|
3372
3366
|
return TreeSelect;
|
|
3373
3367
|
},
|
|
@@ -5135,9 +5129,6 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5135
5129
|
get useToken() {
|
|
5136
5130
|
return useToken;
|
|
5137
5131
|
},
|
|
5138
|
-
get useTools() {
|
|
5139
|
-
return useTools;
|
|
5140
|
-
},
|
|
5141
5132
|
get useUIConfigurationPermissions() {
|
|
5142
5133
|
return useUIConfigurationPermissions;
|
|
5143
5134
|
},
|
|
@@ -9957,7 +9948,7 @@ function addAppVersion(e, t) {
|
|
|
9957
9948
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
9958
9949
|
}), e;
|
|
9959
9950
|
}
|
|
9960
|
-
const name = "@nocobase/client", version = "2.0.
|
|
9951
|
+
const name = "@nocobase/client", version = "2.0.7", license = "Apache-2.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
9961
9952
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
9962
9953
|
"@ant-design/cssinjs": "^1.11.1",
|
|
9963
9954
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -9980,10 +9971,10 @@ const name = "@nocobase/client", version = "2.0.6", license = "Apache-2.0", main
|
|
|
9980
9971
|
"@formily/reactive-react": "^2.2.27",
|
|
9981
9972
|
"@formily/shared": "^2.2.27",
|
|
9982
9973
|
"@formily/validator": "^2.2.27",
|
|
9983
|
-
"@nocobase/evaluators": "2.0.
|
|
9984
|
-
"@nocobase/flow-engine": "2.0.
|
|
9985
|
-
"@nocobase/sdk": "2.0.
|
|
9986
|
-
"@nocobase/utils": "2.0.
|
|
9974
|
+
"@nocobase/evaluators": "2.0.7",
|
|
9975
|
+
"@nocobase/flow-engine": "2.0.7",
|
|
9976
|
+
"@nocobase/sdk": "2.0.7",
|
|
9977
|
+
"@nocobase/utils": "2.0.7",
|
|
9987
9978
|
"@tanstack/react-table": "^8.21.3",
|
|
9988
9979
|
"@types/tabulator-tables": "^6.2.6",
|
|
9989
9980
|
"acorn-jsx": "^5.3.2",
|
|
@@ -29463,38 +29454,6 @@ class RouteRepository {
|
|
|
29463
29454
|
}
|
|
29464
29455
|
}
|
|
29465
29456
|
}
|
|
29466
|
-
const ToolsContext = createContext(null), ToolsProvider = ({ toolsManager: e, children: t }) => {
|
|
29467
|
-
const [o, n] = useState([]), [r, i] = useState(!0), [a, l] = useState(null), c = () => V(void 0, null, function* () {
|
|
29468
|
-
i(!0), l(null);
|
|
29469
|
-
try {
|
|
29470
|
-
const u = yield e.listTools();
|
|
29471
|
-
n(u);
|
|
29472
|
-
} catch (u) {
|
|
29473
|
-
l(u);
|
|
29474
|
-
} finally {
|
|
29475
|
-
i(!1);
|
|
29476
|
-
}
|
|
29477
|
-
});
|
|
29478
|
-
return useEffect(() => {
|
|
29479
|
-
c();
|
|
29480
|
-
}, []), /* @__PURE__ */ jsx(
|
|
29481
|
-
ToolsContext.Provider,
|
|
29482
|
-
{
|
|
29483
|
-
value: {
|
|
29484
|
-
tools: o,
|
|
29485
|
-
loading: r,
|
|
29486
|
-
error: a,
|
|
29487
|
-
refresh: c
|
|
29488
|
-
},
|
|
29489
|
-
children: t
|
|
29490
|
-
}
|
|
29491
|
-
);
|
|
29492
|
-
}, useTools = () => {
|
|
29493
|
-
const e = useContext(ToolsContext);
|
|
29494
|
-
if (!e)
|
|
29495
|
-
throw new Error("useTools must be used within a ToolsProvider");
|
|
29496
|
-
return e;
|
|
29497
|
-
};
|
|
29498
29457
|
class DefaultToolsManager {
|
|
29499
29458
|
constructor(t, o = new Registry$1()) {
|
|
29500
29459
|
this.app = t, this.tools = o;
|
|
@@ -91354,6 +91313,7 @@ const HighPerformanceTable = React.memo(
|
|
|
91354
91313
|
return /* @__PURE__ */ jsx(
|
|
91355
91314
|
MemoizedTable,
|
|
91356
91315
|
{
|
|
91316
|
+
summary: t.props.summary,
|
|
91357
91317
|
components: D,
|
|
91358
91318
|
tableLayout: "fixed",
|
|
91359
91319
|
size: o,
|
|
@@ -107595,8 +107555,6 @@ export {
|
|
|
107595
107555
|
TimeFieldInterface,
|
|
107596
107556
|
TimeFieldModel,
|
|
107597
107557
|
TimePicker,
|
|
107598
|
-
ToolsContext,
|
|
107599
|
-
ToolsProvider,
|
|
107600
107558
|
TreeSelect,
|
|
107601
107559
|
UUIDFieldInterface,
|
|
107602
107560
|
UnSupportFields,
|
|
@@ -108186,7 +108144,6 @@ export {
|
|
|
108186
108144
|
useTemplateBlockContext,
|
|
108187
108145
|
useTitleFieldOptions,
|
|
108188
108146
|
useToken,
|
|
108189
|
-
useTools,
|
|
108190
108147
|
useUIConfigurationPermissions,
|
|
108191
108148
|
useURLAndHTMLSchema,
|
|
108192
108149
|
useURLSearchParamsCtx,
|