@nocobase/client 2.1.0-beta.5 → 2.1.0-beta.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.
@@ -18,4 +18,3 @@ export declare class DefaultToolsManager implements ToolsManager {
18
18
  registerTools(name: string, options: ToolsOptions): void;
19
19
  }
20
20
  export * from './types';
21
- export * from './hooks';
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.1.0-beta.5", license = "Apache-2.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9951
+ const name = "@nocobase/client", version = "2.1.0-beta.6", 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.1.0-beta.5", license = "Apache-2.0
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.1.0-beta.5",
9984
- "@nocobase/flow-engine": "2.1.0-beta.5",
9985
- "@nocobase/sdk": "2.1.0-beta.5",
9986
- "@nocobase/utils": "2.1.0-beta.5",
9974
+ "@nocobase/evaluators": "2.1.0-beta.6",
9975
+ "@nocobase/flow-engine": "2.1.0-beta.6",
9976
+ "@nocobase/sdk": "2.1.0-beta.6",
9977
+ "@nocobase/utils": "2.1.0-beta.6",
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;
@@ -30560,7 +30519,7 @@ const useStyles$a = genStyleHook("nb-markdown", (e, { isDarkTheme: t }) => {
30560
30519
  }, t ? i : r)
30561
30520
  };
30562
30521
  }), parseMarkdown$1 = _.memoize((e) => V(void 0, null, function* () {
30563
- return e && (yield import("./md-oH2RssNY.mjs")).default.render(e);
30522
+ return e && (yield import("./md-BbvRKckr.mjs")).default.render(e);
30564
30523
  }));
30565
30524
  function useParseMarkdown$1(e) {
30566
30525
  const [t, o] = useState(""), [n, r] = useState(!0);
@@ -71781,7 +71740,7 @@ BlockGridModel.registerFlow({
71781
71740
  }
71782
71741
  });
71783
71742
  const parseMarkdown = _.memoize((e) => V(void 0, null, function* () {
71784
- return e && (yield import("./md-BbvRKckr.mjs")).default.render(e);
71743
+ return e && (yield import("./md-oH2RssNY.mjs")).default.render(e);
71785
71744
  }));
71786
71745
  function useParseMarkdown(e) {
71787
71746
  const [t, o] = useState(""), [n, r] = useState(!0);
@@ -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,