@tachybase/client 0.23.8-alpha.22 → 0.23.8-alpha.24

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.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import 'antd/dist/reset.css';
2
2
  import './global.less';
3
- export * from '@emotion/css';
4
3
  export * from './built-in/acl';
5
4
  export * from './api-client';
6
5
  export * from './application';
@@ -5,8 +5,8 @@ interface Props {
5
5
  */
6
6
  exclude?: string[];
7
7
  }
8
- declare const useParseDataScopeFilter: ({ exclude }?: Props) => {
8
+ export declare const useParseDataScopeFilter: ({ exclude }?: Props) => {
9
9
  parseFilter: (filterValue: any) => Promise<{}>;
10
10
  findVariable: (name: string) => import("../../variables/types").VariableOption;
11
11
  };
12
- export default useParseDataScopeFilter;
12
+ export {};
@@ -13,6 +13,6 @@ export * from './SchemaSettingCollection';
13
13
  export * from './SchemaSettingComponent';
14
14
  export * from './EditFormulaTitleField';
15
15
  export * from './EditCustomDefaultValue';
16
- export { default as useParseDataScopeFilter } from './hooks/useParseDataScopeFilter';
17
- export { SchemaSettingsPlugin } from './SchemaSettingsPlugin';
16
+ export * from './hooks/useParseDataScopeFilter';
17
+ export * from './SchemaSettingsPlugin';
18
18
  export * from './VariableInput';
@@ -1,3 +1,3 @@
1
- export * from 'antd-style';
1
+ export { createStyles, createGlobalStyle } from 'antd-style';
2
2
  export { css, cx, injectGlobal, keyframes } from '@emotion/css';
3
- export * from './useToken';
3
+ export { useToken } from './useToken';
@@ -1,7 +1,7 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE__block_provider_index_mjs__ from "../../../../block-provider/index.mjs";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../../../../schema-component/index.mjs";
4
- import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_index_mjs__ from "../../../../schema-settings/index.mjs";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_VariableInput_VariableInput_mjs__ from "../../../../schema-settings/VariableInput/VariableInput.mjs";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE__RolesResourcesActions_mjs__ from "../RolesResourcesActions.mjs";
6
6
 
7
7
  ;// CONCATENATED MODULE: external "react"
@@ -10,7 +10,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__RolesResourcesActions_mjs__ from "../Role
10
10
 
11
11
  ;// CONCATENATED MODULE: external "../../../../schema-component/index.mjs"
12
12
 
13
- ;// CONCATENATED MODULE: external "../../../../schema-settings/index.mjs"
13
+ ;// CONCATENATED MODULE: external "../../../../schema-settings/VariableInput/VariableInput.mjs"
14
14
 
15
15
  ;// CONCATENATED MODULE: external "../RolesResourcesActions.mjs"
16
16
 
@@ -168,7 +168,7 @@ const scopesSchema = {
168
168
  };
169
169
  },
170
170
  'x-component-props': {
171
- dynamicComponent: __WEBPACK_EXTERNAL_MODULE__schema_settings_index_mjs__.VariableInput
171
+ dynamicComponent: __WEBPACK_EXTERNAL_MODULE__schema_settings_VariableInput_VariableInput_mjs__.VariableInput
172
172
  }
173
173
  },
174
174
  actions: {
@@ -296,7 +296,7 @@ const scopesSchema = {
296
296
  };
297
297
  },
298
298
  'x-component-props': {
299
- dynamicComponent: __WEBPACK_EXTERNAL_MODULE__schema_settings_index_mjs__.VariableInput
299
+ dynamicComponent: __WEBPACK_EXTERNAL_MODULE__schema_settings_VariableInput_VariableInput_mjs__.VariableInput
300
300
  }
301
301
  },
302
302
  actions: {
package/lib/index.mjs CHANGED
@@ -4,7 +4,6 @@ import * as __WEBPACK_EXTERNAL_MODULE__locale_index_mjs__ from "./locale/index.m
4
4
  import * as __WEBPACK_EXTERNAL_MODULE__application_hoc_withDynamicSchemaProps_mjs__ from "./application/hoc/withDynamicSchemaProps.mjs";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_react_hotkeys_hook__ from "react-hotkeys-hook";
7
- export * from "@emotion/css";
8
7
  export * from "./built-in/acl/index.mjs";
9
8
  export * from "./api-client/index.mjs";
10
9
  export * from "./application/index.mjs";
@@ -103,7 +102,6 @@ export * from "./modules/blocks/useParentRecordCommon.mjs";
103
102
 
104
103
 
105
104
 
106
-
107
105
 
108
106
 
109
107
  var __webpack_exports__locale = __WEBPACK_EXTERNAL_MODULE__locale_index_mjs__["default"];
@@ -5,7 +5,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schem
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_dayjs__ from "dayjs";
7
7
  import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
8
- import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../../index.mjs";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__ from "../../../api-client/index.mjs";
9
+ import * as __WEBPACK_EXTERNAL_MODULE__collection_manager_hooks_useCollectionManager_deprecated_mjs__ from "../../../collection-manager/hooks/useCollectionManager_deprecated.mjs";
9
10
  import * as __WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__ from "../../../filter-provider/utils.mjs";
10
11
  import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../index.mjs";
11
12
  import * as __WEBPACK_EXTERNAL_MODULE__hooks_mjs__ from "./hooks.mjs";
@@ -24,7 +25,9 @@ import * as __WEBPACK_EXTERNAL_MODULE__hooks_mjs__ from "./hooks.mjs";
24
25
 
25
26
  ;// CONCATENATED MODULE: external "react-i18next"
26
27
 
27
- ;// CONCATENATED MODULE: external "../../../index.mjs"
28
+ ;// CONCATENATED MODULE: external "../../../api-client/index.mjs"
29
+
30
+ ;// CONCATENATED MODULE: external "../../../collection-manager/hooks/useCollectionManager_deprecated.mjs"
28
31
 
29
32
  ;// CONCATENATED MODULE: external "../../../filter-provider/utils.mjs"
30
33
 
@@ -44,6 +47,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__hooks_mjs__ from "./hooks.mjs";
44
47
 
45
48
 
46
49
 
50
+
47
51
  const EMPTY = 'N/A';
48
52
  const SchemaField = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.createSchemaField)({
49
53
  components: {
@@ -66,11 +70,11 @@ const CascadeSelect = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.connect)(
66
70
  const [options, setOptions] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(data);
67
71
  const [loading, setLoading] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
68
72
  const compile = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCompile)();
69
- const api = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useAPIClient)();
73
+ const api = (0,__WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useAPIClient)();
70
74
  const service = (0,__WEBPACK_EXTERNAL_MODULE__hooks_mjs__["default"])(props);
71
75
  const { options: collectionField, field: associationField } = (0,__WEBPACK_EXTERNAL_MODULE__hooks_mjs__.useAssociationFieldContext)();
72
76
  const resource = api.resource(collectionField.target);
73
- const { getCollectionJoinField, getInterface } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionManager_deprecated)();
77
+ const { getCollectionJoinField, getInterface } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_hooks_useCollectionManager_deprecated_mjs__.useCollectionManager_deprecated)();
74
78
  const fieldNames = associationField === null || associationField === void 0 ? void 0 : (_associationField_componentProps = associationField.componentProps) === null || _associationField_componentProps === void 0 ? void 0 : _associationField_componentProps.fieldNames;
75
79
  const [change, setChange] = (0,__WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
76
80
  const targetField = (collectionField === null || collectionField === void 0 ? void 0 : collectionField.target) && (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) && getCollectionJoinField("".concat(collectionField.target, ".").concat(fieldNames.label));
@@ -123,7 +123,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__hooks_useVariableOptions_mjs__ from "./ho
123
123
  if (!(0,__WEBPACK_EXTERNAL_MODULE__variables_utils_isVariable_mjs__.isVariable)(value) || !variables || !collectionField) {
124
124
  return true;
125
125
  }
126
- // `json` 可以选择任意类型的变量,详见:https://tachybase.feishu.cn/docx/EmNEdEBOnoQohUx2UmBcqIQ5nyh#FPLfdSRDEoXR65xW0mBcdfL5n0c
126
+ // `json` 可以选择任意类型的变量
127
127
  if (collectionField.interface === 'json') {
128
128
  return true;
129
129
  }
@@ -79,6 +79,5 @@ const useParseDataScopeFilter = function() {
79
79
  findVariable
80
80
  };
81
81
  };
82
- /* ESM default export */ const useParseDataScopeFilter_rslib_entry_ = (useParseDataScopeFilter);
83
82
 
84
- export { useParseDataScopeFilter_rslib_entry_ as default };
83
+ export { useParseDataScopeFilter };
@@ -1,5 +1,3 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__hooks_useParseDataScopeFilter_mjs__ from "./hooks/useParseDataScopeFilter.mjs";
2
- import * as __WEBPACK_EXTERNAL_MODULE__SchemaSettingsPlugin_mjs__ from "./SchemaSettingsPlugin.mjs";
3
1
  export * from "./DataTemplates/hooks/useCollectionState.mjs";
4
2
  export * from "./DataTemplates/utils.mjs";
5
3
  export * from "./GeneralSchemaDesigner.mjs";
@@ -15,12 +13,10 @@ export * from "./SchemaSettingCollection.mjs";
15
13
  export * from "./SchemaSettingComponent.mjs";
16
14
  export * from "./EditFormulaTitleField.mjs";
17
15
  export * from "./EditCustomDefaultValue.mjs";
16
+ export * from "./hooks/useParseDataScopeFilter.mjs";
17
+ export * from "./SchemaSettingsPlugin.mjs";
18
18
  export * from "./VariableInput/index.mjs";
19
19
 
20
- ;// CONCATENATED MODULE: external "./hooks/useParseDataScopeFilter.mjs"
21
-
22
- ;// CONCATENATED MODULE: external "./SchemaSettingsPlugin.mjs"
23
-
24
20
  ;// CONCATENATED MODULE: ./packages/client/src/schema-settings/index.ts?__rslib_entry__
25
21
 
26
22
 
@@ -41,6 +37,3 @@ export * from "./VariableInput/index.mjs";
41
37
 
42
38
 
43
39
 
44
- var __webpack_exports__SchemaSettingsPlugin = __WEBPACK_EXTERNAL_MODULE__SchemaSettingsPlugin_mjs__.SchemaSettingsPlugin;
45
- var __webpack_exports__useParseDataScopeFilter = __WEBPACK_EXTERNAL_MODULE__hooks_useParseDataScopeFilter_mjs__["default"];
46
- export { __webpack_exports__SchemaSettingsPlugin as SchemaSettingsPlugin, __webpack_exports__useParseDataScopeFilter as useParseDataScopeFilter };
@@ -1,16 +1,23 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ from "antd-style";
1
2
  import * as __WEBPACK_EXTERNAL_MODULE__emotion_css__ from "@emotion/css";
2
- export * from "antd-style";
3
- export * from "./useToken.mjs";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__useToken_mjs__ from "./useToken.mjs";
4
+
5
+ ;// CONCATENATED MODULE: external "antd-style"
4
6
 
5
7
  ;// CONCATENATED MODULE: external "@emotion/css"
6
8
 
9
+ ;// CONCATENATED MODULE: external "./useToken.mjs"
10
+
7
11
  ;// CONCATENATED MODULE: ./packages/client/src/style/index.ts?__rslib_entry__
8
12
 
9
13
 
10
14
 
11
15
 
16
+ var __webpack_exports__createGlobalStyle = __WEBPACK_EXTERNAL_MODULE_antd_style__.createGlobalStyle;
17
+ var __webpack_exports__createStyles = __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles;
12
18
  var __webpack_exports__css = __WEBPACK_EXTERNAL_MODULE__emotion_css__.css;
13
19
  var __webpack_exports__cx = __WEBPACK_EXTERNAL_MODULE__emotion_css__.cx;
14
20
  var __webpack_exports__injectGlobal = __WEBPACK_EXTERNAL_MODULE__emotion_css__.injectGlobal;
15
21
  var __webpack_exports__keyframes = __WEBPACK_EXTERNAL_MODULE__emotion_css__.keyframes;
16
- export { __webpack_exports__css as css, __webpack_exports__cx as cx, __webpack_exports__injectGlobal as injectGlobal, __webpack_exports__keyframes as keyframes };
22
+ var __webpack_exports__useToken = __WEBPACK_EXTERNAL_MODULE__useToken_mjs__.useToken;
23
+ export { __webpack_exports__createGlobalStyle as createGlobalStyle, __webpack_exports__createStyles as createStyles, __webpack_exports__css as css, __webpack_exports__cx as cx, __webpack_exports__injectGlobal as injectGlobal, __webpack_exports__keyframes as keyframes, __webpack_exports__useToken as useToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/client",
3
- "version": "0.23.8-alpha.22",
3
+ "version": "0.23.8-alpha.24",
4
4
  "license": "Apache-2.0",
5
5
  "module": "lib/index.mjs",
6
6
  "types": "es/index.d.ts",
@@ -67,11 +67,11 @@
67
67
  "sanitize-html": "2.14.0",
68
68
  "use-deep-compare-effect": "^1.8.1",
69
69
  "@tachybase/components": "0.23.8",
70
+ "@tachybase/evaluators": "0.23.8",
70
71
  "@tachybase/requirejs": "0.23.8",
71
- "@tachybase/sdk": "0.23.8",
72
72
  "@tachybase/schema": "0.23.8",
73
73
  "@tachybase/utils": "0.23.8",
74
- "@tachybase/evaluators": "0.23.8"
74
+ "@tachybase/sdk": "0.23.8"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@testing-library/react": "^14.3.1",