@flowgram.ai/form-materials 0.5.5 → 0.5.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.
Files changed (192) hide show
  1. package/dist/cjs/components/batch-outputs/index.js +5 -3
  2. package/dist/cjs/components/batch-outputs/styles.css +13 -0
  3. package/dist/cjs/components/code-editor/editor.js +16 -12
  4. package/dist/cjs/components/code-editor/styles.css +4 -0
  5. package/dist/cjs/components/code-editor-mini/index.js +2 -16
  6. package/dist/cjs/components/condition-row/index.js +14 -12
  7. package/dist/cjs/components/condition-row/styles.css +19 -0
  8. package/dist/cjs/components/coze-editor-extensions/extensions/variable-tag.js +28 -10
  9. package/dist/{esm/components/coze-editor-extensions/styles.mjs → cjs/components/coze-editor-extensions/styles.css} +19 -18
  10. package/dist/cjs/components/db-condition-row/index.js +16 -13
  11. package/dist/cjs/components/db-condition-row/styles.css +30 -0
  12. package/dist/cjs/components/display-inputs-values/index.js +3 -2
  13. package/dist/cjs/components/display-inputs-values/styles.css +6 -0
  14. package/dist/cjs/components/display-outputs/index.js +3 -2
  15. package/dist/cjs/components/display-outputs/styles.css +6 -0
  16. package/dist/cjs/components/display-schema-tag/index.js +7 -4
  17. package/dist/cjs/components/display-schema-tag/styles.css +21 -0
  18. package/dist/cjs/components/display-schema-tree/index.js +12 -7
  19. package/dist/cjs/components/display-schema-tree/styles.css +64 -0
  20. package/dist/cjs/components/dynamic-value-input/index.js +9 -5
  21. package/dist/{esm/components/dynamic-value-input/styles.mjs → cjs/components/dynamic-value-input/styles.css} +23 -30
  22. package/dist/cjs/components/inputs-values/index.js +5 -3
  23. package/dist/cjs/components/inputs-values/styles.css +13 -0
  24. package/dist/cjs/components/inputs-values-tree/icon.js +70 -0
  25. package/dist/cjs/components/inputs-values-tree/index.js +3 -2
  26. package/dist/cjs/components/inputs-values-tree/row.js +19 -15
  27. package/dist/cjs/components/inputs-values-tree/styles.css +85 -0
  28. package/dist/cjs/components/json-schema-editor/default-value.js +2 -2
  29. package/dist/cjs/components/json-schema-editor/icon.js +70 -0
  30. package/dist/cjs/components/json-schema-editor/index.js +37 -25
  31. package/dist/cjs/components/json-schema-editor/styles.css +113 -0
  32. package/dist/cjs/components/prompt-editor/editor.js +16 -6
  33. package/dist/cjs/components/prompt-editor/styles.css +10 -0
  34. package/dist/cjs/components/prompt-editor-with-inputs/index.js +16 -26
  35. package/dist/cjs/components/prompt-editor-with-variables/index.js +17 -26
  36. package/dist/cjs/components/variable-selector/context.js +7 -3
  37. package/dist/cjs/components/variable-selector/index.js +16 -10
  38. package/dist/{esm/components/variable-selector/styles.mjs → cjs/components/variable-selector/styles.css} +37 -29
  39. package/dist/cjs/components/variable-selector/use-variable-tree.js +3 -1
  40. package/dist/esm/components/batch-outputs/index.mjs +5 -3
  41. package/dist/esm/components/batch-outputs/styles.css +13 -0
  42. package/dist/esm/components/code-editor/editor.mjs +16 -11
  43. package/dist/esm/components/code-editor/styles.css +4 -0
  44. package/dist/esm/components/code-editor-mini/index.mjs +2 -6
  45. package/dist/esm/components/condition-row/index.mjs +14 -12
  46. package/dist/esm/components/condition-row/styles.css +19 -0
  47. package/dist/esm/components/coze-editor-extensions/extensions/variable-tag.mjs +29 -11
  48. package/dist/esm/components/coze-editor-extensions/styles.css +37 -0
  49. package/dist/esm/components/db-condition-row/index.mjs +16 -13
  50. package/dist/esm/components/db-condition-row/styles.css +30 -0
  51. package/dist/esm/components/display-inputs-values/index.mjs +3 -2
  52. package/dist/esm/components/display-inputs-values/styles.css +6 -0
  53. package/dist/esm/components/display-outputs/index.mjs +3 -2
  54. package/dist/esm/components/display-outputs/styles.css +6 -0
  55. package/dist/esm/components/display-schema-tag/index.mjs +8 -5
  56. package/dist/esm/components/display-schema-tag/styles.css +21 -0
  57. package/dist/esm/components/display-schema-tree/index.mjs +12 -7
  58. package/dist/esm/components/display-schema-tree/styles.css +64 -0
  59. package/dist/esm/components/dynamic-value-input/index.mjs +9 -5
  60. package/dist/esm/components/dynamic-value-input/styles.css +48 -0
  61. package/dist/esm/components/inputs-values/index.mjs +5 -3
  62. package/dist/esm/components/inputs-values/styles.css +13 -0
  63. package/dist/esm/components/inputs-values-tree/icon.mjs +26 -0
  64. package/dist/esm/components/inputs-values-tree/index.mjs +3 -2
  65. package/dist/esm/components/inputs-values-tree/row.mjs +18 -14
  66. package/dist/esm/components/inputs-values-tree/styles.css +85 -0
  67. package/dist/esm/components/json-schema-editor/default-value.mjs +2 -2
  68. package/dist/esm/components/json-schema-editor/icon.mjs +26 -0
  69. package/dist/esm/components/json-schema-editor/index.mjs +36 -24
  70. package/dist/esm/components/json-schema-editor/styles.css +113 -0
  71. package/dist/esm/components/prompt-editor/editor.mjs +16 -6
  72. package/dist/esm/components/prompt-editor/styles.css +10 -0
  73. package/dist/esm/components/prompt-editor-with-inputs/index.mjs +12 -4
  74. package/dist/esm/components/prompt-editor-with-variables/index.mjs +13 -4
  75. package/dist/esm/components/variable-selector/context.mjs +7 -3
  76. package/dist/esm/components/variable-selector/index.mjs +17 -11
  77. package/{src/components/variable-selector/styles.tsx → dist/esm/components/variable-selector/styles.css} +35 -38
  78. package/dist/esm/components/variable-selector/use-variable-tree.mjs +3 -1
  79. package/dist/tsconfig.tsbuildinfo +1 -1
  80. package/dist/types/components/batch-outputs/index.d.ts +1 -0
  81. package/dist/types/components/code-editor/editor.d.ts +1 -0
  82. package/dist/types/components/condition-row/index.d.ts +5 -1
  83. package/dist/types/components/coze-editor-extensions/extensions/variable-tag.d.ts +1 -0
  84. package/dist/types/components/db-condition-row/index.d.ts +4 -0
  85. package/dist/types/components/db-condition-row/types.d.ts +0 -1
  86. package/dist/types/components/display-inputs-values/index.d.ts +1 -0
  87. package/dist/types/components/display-outputs/index.d.ts +1 -0
  88. package/dist/types/components/display-schema-tag/index.d.ts +1 -0
  89. package/dist/types/components/display-schema-tree/index.d.ts +1 -0
  90. package/dist/types/components/dynamic-value-input/index.d.ts +1 -0
  91. package/dist/types/components/inputs-values/index.d.ts +1 -0
  92. package/dist/types/components/inputs-values-tree/icon.d.ts +6 -0
  93. package/dist/types/components/inputs-values-tree/index.d.ts +1 -0
  94. package/dist/types/components/inputs-values-tree/row.d.ts +1 -0
  95. package/dist/types/components/json-schema-editor/icon.d.ts +6 -0
  96. package/dist/types/components/json-schema-editor/index.d.ts +1 -0
  97. package/dist/types/components/prompt-editor/editor.d.ts +1 -0
  98. package/dist/types/components/prompt-editor-with-inputs/index.d.ts +7 -2
  99. package/dist/types/components/prompt-editor-with-variables/index.d.ts +5 -2
  100. package/dist/types/components/variable-selector/context.d.ts +16 -3
  101. package/dist/types/components/variable-selector/index.d.ts +1 -0
  102. package/package.json +7 -10
  103. package/src/components/batch-outputs/index.tsx +5 -5
  104. package/src/components/batch-outputs/{styles.tsx → styles.css} +4 -6
  105. package/src/components/code-editor/editor.tsx +19 -14
  106. package/src/components/code-editor/styles.css +11 -0
  107. package/src/components/code-editor-mini/index.tsx +2 -9
  108. package/src/components/condition-row/index.tsx +15 -22
  109. package/src/components/condition-row/{styles.tsx → styles.css} +10 -11
  110. package/src/components/coze-editor-extensions/extensions/variable-tag.tsx +18 -13
  111. package/src/components/coze-editor-extensions/{styles.tsx → styles.css} +8 -11
  112. package/src/components/db-condition-row/index.tsx +17 -26
  113. package/src/components/db-condition-row/{styles.tsx → styles.css} +14 -16
  114. package/src/components/db-condition-row/types.ts +0 -1
  115. package/src/components/display-inputs-values/index.tsx +3 -3
  116. package/src/components/display-inputs-values/{styles.ts → styles.css} +2 -4
  117. package/src/components/display-outputs/index.tsx +3 -3
  118. package/src/components/display-outputs/{styles.ts → styles.css} +2 -4
  119. package/src/components/display-schema-tag/index.tsx +7 -7
  120. package/src/components/display-schema-tag/{styles.ts → styles.css} +7 -10
  121. package/src/components/display-schema-tree/index.tsx +10 -10
  122. package/src/components/display-schema-tree/{styles.tsx → styles.css} +18 -24
  123. package/src/components/dynamic-value-input/index.tsx +6 -6
  124. package/src/components/dynamic-value-input/{styles.tsx → styles.css} +8 -12
  125. package/src/components/inputs-values/index.tsx +5 -5
  126. package/src/components/inputs-values/{styles.tsx → styles.css} +4 -6
  127. package/src/components/inputs-values-tree/icon.tsx +28 -0
  128. package/src/components/inputs-values-tree/index.tsx +3 -3
  129. package/src/components/inputs-values-tree/row.tsx +25 -27
  130. package/src/components/inputs-values-tree/styles.css +94 -0
  131. package/src/components/json-schema-editor/default-value.tsx +2 -4
  132. package/src/components/json-schema-editor/icon.tsx +28 -0
  133. package/src/components/json-schema-editor/index.tsx +45 -50
  134. package/src/components/json-schema-editor/styles.css +135 -0
  135. package/src/components/prompt-editor/editor.tsx +18 -7
  136. package/src/components/prompt-editor/styles.css +14 -0
  137. package/src/components/prompt-editor-with-inputs/index.tsx +18 -5
  138. package/src/components/prompt-editor-with-variables/index.tsx +13 -5
  139. package/src/components/variable-selector/context.tsx +22 -2
  140. package/src/components/variable-selector/index.tsx +24 -14
  141. package/src/components/variable-selector/styles.css +70 -0
  142. package/src/components/variable-selector/use-variable-tree.tsx +9 -1
  143. package/dist/cjs/components/batch-outputs/styles.js +0 -60
  144. package/dist/cjs/components/condition-row/styles.js +0 -78
  145. package/dist/cjs/components/coze-editor-extensions/styles.js +0 -89
  146. package/dist/cjs/components/db-condition-row/styles.js +0 -94
  147. package/dist/cjs/components/display-inputs-values/styles.js +0 -51
  148. package/dist/cjs/components/display-outputs/styles.js +0 -51
  149. package/dist/cjs/components/display-schema-tag/styles.js +0 -71
  150. package/dist/cjs/components/display-schema-tree/styles.js +0 -135
  151. package/dist/cjs/components/dynamic-value-input/styles.js +0 -108
  152. package/dist/cjs/components/inputs-values/styles.js +0 -60
  153. package/dist/cjs/components/inputs-values-tree/styles.js +0 -177
  154. package/dist/cjs/components/json-schema-editor/styles.js +0 -231
  155. package/dist/cjs/components/prompt-editor/styles.js +0 -55
  156. package/dist/cjs/components/prompt-editor-with-inputs/editor.js +0 -47
  157. package/dist/cjs/components/prompt-editor-with-variables/editor.js +0 -48
  158. package/dist/cjs/components/variable-selector/styles.js +0 -114
  159. package/dist/esm/components/batch-outputs/styles.mjs +0 -13
  160. package/dist/esm/components/condition-row/styles.mjs +0 -22
  161. package/dist/esm/components/db-condition-row/styles.mjs +0 -32
  162. package/dist/esm/components/display-inputs-values/styles.mjs +0 -7
  163. package/dist/esm/components/display-outputs/styles.mjs +0 -7
  164. package/dist/esm/components/display-schema-tag/styles.mjs +0 -21
  165. package/dist/esm/components/display-schema-tree/styles.mjs +0 -79
  166. package/dist/esm/components/inputs-values/styles.mjs +0 -13
  167. package/dist/esm/components/inputs-values-tree/styles.mjs +0 -105
  168. package/dist/esm/components/json-schema-editor/styles.mjs +0 -138
  169. package/dist/esm/components/prompt-editor/styles.mjs +0 -11
  170. package/dist/esm/components/prompt-editor-with-inputs/editor.mjs +0 -13
  171. package/dist/esm/components/prompt-editor-with-variables/editor.mjs +0 -14
  172. package/dist/types/components/batch-outputs/styles.d.ts +0 -6
  173. package/dist/types/components/condition-row/styles.d.ts +0 -9
  174. package/dist/types/components/coze-editor-extensions/styles.d.ts +0 -9
  175. package/dist/types/components/db-condition-row/styles.d.ts +0 -12
  176. package/dist/types/components/display-inputs-values/styles.d.ts +0 -5
  177. package/dist/types/components/display-outputs/styles.d.ts +0 -5
  178. package/dist/types/components/display-schema-tag/styles.d.ts +0 -8
  179. package/dist/types/components/display-schema-tree/styles.d.ts +0 -11
  180. package/dist/types/components/dynamic-value-input/styles.d.ts +0 -8
  181. package/dist/types/components/inputs-values/styles.d.ts +0 -6
  182. package/dist/types/components/inputs-values-tree/styles.d.ts +0 -23
  183. package/dist/types/components/json-schema-editor/styles.d.ts +0 -30
  184. package/dist/types/components/prompt-editor/styles.d.ts +0 -7
  185. package/dist/types/components/prompt-editor-with-inputs/editor.d.ts +0 -11
  186. package/dist/types/components/prompt-editor-with-variables/editor.d.ts +0 -9
  187. package/dist/types/components/variable-selector/styles.d.ts +0 -14
  188. package/src/components/inputs-values-tree/styles.tsx +0 -128
  189. package/src/components/json-schema-editor/styles.tsx +0 -168
  190. package/src/components/prompt-editor/styles.tsx +0 -18
  191. package/src/components/prompt-editor-with-inputs/editor.tsx +0 -25
  192. package/src/components/prompt-editor-with-variables/editor.tsx +0 -20
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- PromptEditorWithVariables: ()=>PromptEditorWithVariables
28
- });
29
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
- require("react");
31
- const index_js_namespaceObject = require("../prompt-editor/index.js");
32
- const external_coze_editor_extensions_index_js_namespaceObject = require("../coze-editor-extensions/index.js");
33
- function PromptEditorWithVariables(props) {
34
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_js_namespaceObject.PromptEditor, {
35
- ...props,
36
- children: [
37
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_coze_editor_extensions_index_js_namespaceObject.EditorVariableTree, {}),
38
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_coze_editor_extensions_index_js_namespaceObject.EditorVariableTagInject, {})
39
- ]
40
- });
41
- }
42
- exports.PromptEditorWithVariables = __webpack_exports__.PromptEditorWithVariables;
43
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
44
- "PromptEditorWithVariables"
45
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
46
- Object.defineProperty(exports, '__esModule', {
47
- value: true
48
- });
@@ -1,114 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.n = (module)=>{
5
- var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
6
- __webpack_require__.d(getter, {
7
- a: getter
8
- });
9
- return getter;
10
- };
11
- })();
12
- (()=>{
13
- __webpack_require__.d = (exports1, definition)=>{
14
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
15
- enumerable: true,
16
- get: definition[key]
17
- });
18
- };
19
- })();
20
- (()=>{
21
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
22
- })();
23
- (()=>{
24
- __webpack_require__.r = (exports1)=>{
25
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
- value: 'Module'
27
- });
28
- Object.defineProperty(exports1, '__esModule', {
29
- value: true
30
- });
31
- };
32
- })();
33
- var __webpack_exports__ = {};
34
- __webpack_require__.r(__webpack_exports__);
35
- __webpack_require__.d(__webpack_exports__, {
36
- UITreeSelect: ()=>UITreeSelect,
37
- UIRootTitle: ()=>UIRootTitle,
38
- UIPopoverContent: ()=>UIPopoverContent,
39
- UIVarName: ()=>UIVarName,
40
- UITag: ()=>UITag
41
- });
42
- const external_styled_components_namespaceObject = require("styled-components");
43
- var external_styled_components_default = /*#__PURE__*/ __webpack_require__.n(external_styled_components_namespaceObject);
44
- const semi_ui_namespaceObject = require("@douyinfe/semi-ui");
45
- const UIRootTitle = external_styled_components_default().div`
46
- margin-right: 4px;
47
- min-width: 20px;
48
- overflow: hidden;
49
- text-overflow: ellipsis;
50
- white-space: nowrap;
51
- color: var(--semi-color-text-2);
52
- `;
53
- const UIVarName = external_styled_components_default().div`
54
- overflow: hidden;
55
- text-overflow: ellipsis;
56
- white-space: nowrap;
57
-
58
- ${({ $inSelector })=>$inSelector && (0, external_styled_components_namespaceObject.css)`
59
- min-width: 50%;
60
- `}
61
- `;
62
- const UITag = external_styled_components_default()(semi_ui_namespaceObject.Tag)`
63
- width: 100%;
64
- display: flex;
65
- align-items: center;
66
- justify-content: flex-start;
67
-
68
- & .semi-tag-content-center {
69
- justify-content: flex-start;
70
- }
71
-
72
- &.semi-tag {
73
- margin: 0;
74
- height: 22px;
75
- }
76
- `;
77
- const UITreeSelect = external_styled_components_default()(semi_ui_namespaceObject.TreeSelect)`
78
- outline: ${({ $error })=>$error ? '1px solid red' : 'none'};
79
-
80
- & .semi-tree-select-selection {
81
- padding: 0px;
82
- height: 22px;
83
- }
84
-
85
- & .semi-tree-select-selection-content {
86
- width: 100%;
87
- }
88
-
89
- & .semi-tree-select-selection-placeholder {
90
- padding-left: 10px;
91
- }
92
- `;
93
- const UIPopoverContent = external_styled_components_default().div`
94
- padding: 10px;
95
- display: inline-flex;
96
- align-items: center;
97
- justify-content: flex-start;
98
- white-space: nowrap;
99
- `;
100
- exports.UIPopoverContent = __webpack_exports__.UIPopoverContent;
101
- exports.UIRootTitle = __webpack_exports__.UIRootTitle;
102
- exports.UITag = __webpack_exports__.UITag;
103
- exports.UITreeSelect = __webpack_exports__.UITreeSelect;
104
- exports.UIVarName = __webpack_exports__.UIVarName;
105
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
106
- "UIPopoverContent",
107
- "UIRootTitle",
108
- "UITag",
109
- "UITreeSelect",
110
- "UIVarName"
111
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
112
- Object.defineProperty(exports, '__esModule', {
113
- value: true
114
- });
@@ -1,13 +0,0 @@
1
- import styled_components from "styled-components";
2
- const UIRows = styled_components.div`
3
- display: flex;
4
- flex-direction: column;
5
- gap: 10px;
6
- margin-bottom: 10px;
7
- `;
8
- const UIRow = styled_components.div`
9
- display: flex;
10
- align-items: center;
11
- gap: 5px;
12
- `;
13
- export { UIRow, UIRows };
@@ -1,22 +0,0 @@
1
- import styled_components from "styled-components";
2
- const UIContainer = styled_components.div`
3
- display: flex;
4
- align-items: center;
5
- gap: 4px;
6
- `;
7
- const UIOperator = styled_components.div``;
8
- const UILeft = styled_components.div`
9
- width: 100%;
10
- `;
11
- const UIRight = styled_components.div`
12
- width: 100%;
13
- `;
14
- const UIValues = styled_components.div`
15
- flex-grow: 1;
16
- display: flex;
17
- flex-direction: column;
18
- align-items: center;
19
- gap: 4px;
20
- overflow: hidden;
21
- `;
22
- export { UIContainer, UILeft, UIOperator, UIRight, UIValues };
@@ -1,32 +0,0 @@
1
- import styled_components from "styled-components";
2
- import { Select } from "@douyinfe/semi-ui";
3
- const UIContainer = styled_components.div`
4
- display: flex;
5
- align-items: center;
6
- gap: 4px;
7
- `;
8
- const UIOperator = styled_components.div``;
9
- const UILeft = styled_components.div`
10
- width: 100%;
11
- `;
12
- const UIRight = styled_components.div`
13
- width: 100%;
14
- `;
15
- const UIValues = styled_components.div`
16
- flex-grow: 1;
17
- display: flex;
18
- flex-direction: column;
19
- align-items: center;
20
- gap: 4px;
21
- `;
22
- const UIOptionLabel = styled_components.div`
23
- display: flex;
24
- align-items: center;
25
- gap: 10px;
26
- `;
27
- const UISelect = styled_components(Select)`
28
- & .semi-select-selection {
29
- margin-left: 5px;
30
- }
31
- `;
32
- export { UIContainer, UILeft, UIOperator, UIOptionLabel, UIRight, UISelect, UIValues };
@@ -1,7 +0,0 @@
1
- import styled_components from "styled-components";
2
- const DisplayInputsWrapper = styled_components.div`
3
- display: flex;
4
- gap: 5px;
5
- flex-wrap: wrap;
6
- `;
7
- export { DisplayInputsWrapper };
@@ -1,7 +0,0 @@
1
- import styled_components from "styled-components";
2
- const DisplayOutputsWrapper = styled_components.div`
3
- display: flex;
4
- gap: 5px;
5
- flex-wrap: wrap;
6
- `;
7
- export { DisplayOutputsWrapper };
@@ -1,21 +0,0 @@
1
- import styled_components from "styled-components";
2
- import { Tag } from "@douyinfe/semi-ui";
3
- const PopoverContent = styled_components.div`
4
- padding: 10px;
5
- `;
6
- const StyledTag = styled_components(Tag)`
7
- padding: 4px;
8
-
9
- .tag-icon {
10
- width: 12px;
11
- height: 12px;
12
- }
13
- `;
14
- const TitleSpan = styled_components.span`
15
- display: inline-block;
16
- margin-left: 4px;
17
- margin-top: -1px;
18
- overflow: hidden;
19
- text-overflow: ellipsis;
20
- `;
21
- export { PopoverContent, StyledTag, TitleSpan };
@@ -1,79 +0,0 @@
1
- import styled_components, { css } from "styled-components";
2
- const TreeRow = styled_components.div`
3
- display: flex;
4
- align-items: center;
5
-
6
- .tree-icon {
7
- margin-right: 8px;
8
- width: 14px;
9
- height: 14px;
10
- }
11
-
12
- height: 27px;
13
- white-space: nowrap;
14
- `;
15
- const HorizontalLine = styled_components.div`
16
- position: relative;
17
-
18
- &::before,
19
- &::after {
20
- content: '';
21
- position: absolute;
22
- background-color: var(--semi-color-text-3);
23
- }
24
-
25
- &::after {
26
- top: 0px;
27
- right: 6px;
28
- width: 15px;
29
- height: 1px;
30
- }
31
- `;
32
- const TreeTitle = styled_components.div`
33
- // overflow: hidden;
34
- // text-overflow: ellipsis;
35
- `;
36
- const TreeLevel = styled_components.div`
37
- padding-left: 30px;
38
- position: relative;
39
-
40
- /* &::before {
41
- content: '';
42
- position: absolute;
43
- background-color: var(--semi-color-text-3);
44
- top: 0px;
45
- bottom: 0px;
46
- left: -22px;
47
- width: 1px;
48
- } */
49
- `;
50
- const TreeItem = styled_components.div`
51
- position: relative;
52
-
53
- &::before {
54
- content: '';
55
- position: absolute;
56
- background-color: var(--semi-color-text-3);
57
- }
58
-
59
- &:not(:last-child)::before {
60
- width: 1px;
61
- top: 0;
62
- bottom: 0;
63
- left: -22px;
64
- }
65
-
66
- &:last-child::before {
67
- width: 1px;
68
- top: 0;
69
- height: 14px;
70
- left: -22px;
71
- }
72
-
73
- ${(props)=>0 === props.depth && css`
74
- &::before {
75
- width: 0px !important;
76
- }
77
- `}
78
- `;
79
- export { HorizontalLine, TreeItem, TreeLevel, TreeRow, TreeTitle };
@@ -1,13 +0,0 @@
1
- import styled_components from "styled-components";
2
- const UIRows = styled_components.div`
3
- display: flex;
4
- flex-direction: column;
5
- gap: 10px;
6
- margin-bottom: 10px;
7
- `;
8
- const UIRow = styled_components.div`
9
- display: flex;
10
- align-items: flex-start;
11
- gap: 5px;
12
- `;
13
- export { UIRow, UIRows };
@@ -1,105 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import "react";
3
- import styled_components, { css } from "styled-components";
4
- import semi_icons from "@douyinfe/semi-icons";
5
- const UIContainer = styled_components.div``;
6
- const UIRow = styled_components.div`
7
- display: flex;
8
- align-items: flex-start;
9
- gap: 5px;
10
- `;
11
- const UICollapseTrigger = styled_components.div`
12
- cursor: pointer;
13
- margin-right: 5px;
14
- `;
15
- const UITreeItems = styled_components.div`
16
- display: grid;
17
- grid-template-columns: auto 1fr;
18
-
19
- ${({ $shrink })=>$shrink && css`
20
- padding-left: 3px;
21
- margin-top: 10px;
22
- `}
23
- `;
24
- const UITreeItemLeft = styled_components.div`
25
- grid-column: 1;
26
- position: relative;
27
- width: 16px;
28
-
29
- ${({ $showLine, $isLast, $showCollapse })=>{
30
- let height = $isLast ? '24px' : '100%';
31
- let width = $showCollapse ? '12px' : '30px';
32
- return $showLine && css`
33
- &::before {
34
- /* 竖线 */
35
- content: '';
36
- height: ${height};
37
- position: absolute;
38
- left: -14px;
39
- top: -16px;
40
- width: 1px;
41
- background: #d9d9d9;
42
- display: block;
43
- }
44
-
45
- &::after {
46
- /* 横线 */
47
- content: '';
48
- position: absolute;
49
- left: -14px; // 横线起点和竖线对齐
50
- top: 8px; // 跟随你的行高调整
51
- width: ${width}; // 横线长度
52
- height: 1px;
53
- background: #d9d9d9;
54
- display: block;
55
- }
56
- `;
57
- }}
58
- `;
59
- const UITreeItemRight = styled_components.div`
60
- grid-column: 2;
61
- margin-bottom: 10px;
62
-
63
- &:last-child {
64
- margin-bottom: 0px;
65
- }
66
- `;
67
- const UITreeItemMain = styled_components.div`
68
- display: flex;
69
- flex-direction: column;
70
- gap: 10px;
71
- position: relative;
72
- `;
73
- const UICollapsible = styled_components.div`
74
- display: none;
75
-
76
- ${({ $collapse })=>$collapse && css`
77
- display: block;
78
- `}
79
- `;
80
- const UIActions = styled_components.div`
81
- white-space: nowrap;
82
- `;
83
- const iconAddChildrenSvg = /*#__PURE__*/ jsxs("svg", {
84
- className: "icon-icon icon-icon-coz_add_node ",
85
- width: "1em",
86
- height: "1em",
87
- viewBox: "0 0 24 24",
88
- fill: "currentColor",
89
- xmlns: "http://www.w3.org/2000/svg",
90
- children: [
91
- /*#__PURE__*/ jsx("path", {
92
- fillRule: "evenodd",
93
- clipRule: "evenodd",
94
- d: "M11 6.49988C11 8.64148 9.50397 10.4337 7.49995 10.8884V15.4998C7.49995 16.0521 7.94767 16.4998 8.49995 16.4998H11.208C11.0742 16.8061 11 17.1443 11 17.4998C11 17.8554 11.0742 18.1936 11.208 18.4998H8.49995C6.8431 18.4998 5.49995 17.1567 5.49995 15.4998V10.8884C3.49599 10.4336 2 8.64145 2 6.49988C2 4.0146 4.01472 1.99988 6.5 1.99988C8.98528 1.99988 11 4.0146 11 6.49988ZM6.5 8.99988C7.88071 8.99988 9 7.88059 9 6.49988C9 5.11917 7.88071 3.99988 6.5 3.99988C5.11929 3.99988 4 5.11917 4 6.49988C4 7.88059 5.11929 8.99988 6.5 8.99988Z"
95
- }),
96
- /*#__PURE__*/ jsx("path", {
97
- d: "M17.5 12.4999C18.0523 12.4999 18.5 12.9476 18.5 13.4999V16.4999H21.5C22.0523 16.4999 22.5 16.9476 22.5 17.4999C22.5 18.0522 22.0523 18.4999 21.5 18.4999H18.5V21.4999C18.5 22.0522 18.0523 22.4999 17.5 22.4999C16.9477 22.4999 16.5 22.0522 16.5 21.4999V18.4999H13.5C12.9477 18.4999 12.5 18.0522 12.5 17.4999C12.5 16.9476 12.9477 16.4999 13.5 16.4999H16.5V13.4999C16.5 12.9476 16.9477 12.4999 17.5 12.4999Z"
98
- })
99
- ]
100
- });
101
- const IconAddChildren = ()=>/*#__PURE__*/ jsx(semi_icons, {
102
- size: "small",
103
- svg: iconAddChildrenSvg
104
- });
105
- export { IconAddChildren, UIActions, UICollapseTrigger, UICollapsible, UIContainer, UIRow, UITreeItemLeft, UITreeItemMain, UITreeItemRight, UITreeItems };
@@ -1,138 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import "react";
3
- import styled_components, { css } from "styled-components";
4
- import semi_icons from "@douyinfe/semi-icons";
5
- const UIContainer = styled_components.div`
6
- /* & .semi-input {
7
- background-color: #fff;
8
- border-radius: 6px;
9
- height: 24px;
10
- } */
11
- `;
12
- const UIRow = styled_components.div`
13
- display: flex;
14
- align-items: center;
15
- gap: 6px;
16
- `;
17
- const UICollapseTrigger = styled_components.div`
18
- cursor: pointer;
19
- margin-right: 5px;
20
- `;
21
- const UIExpandDetail = styled_components.div`
22
- display: flex;
23
- flex-direction: column;
24
- `;
25
- const UILabel = styled_components.div`
26
- font-size: 12px;
27
- color: #999;
28
- font-weight: 400;
29
- margin-bottom: 2px;
30
- `;
31
- const UITreeItems = styled_components.div`
32
- display: grid;
33
- grid-template-columns: auto 1fr;
34
-
35
- ${({ $shrink })=>$shrink && css`
36
- padding-left: 3px;
37
- margin-top: 10px;
38
- `}
39
- `;
40
- const UITreeItemLeft = styled_components.div`
41
- grid-column: 1;
42
- position: relative;
43
- width: 16px;
44
-
45
- ${({ $showLine, $isLast, $showCollapse })=>{
46
- let height = $isLast ? '24px' : '100%';
47
- let width = $showCollapse ? '12px' : '30px';
48
- return $showLine && css`
49
- &::before {
50
- /* 竖线 */
51
- content: '';
52
- height: ${height};
53
- position: absolute;
54
- left: -14px;
55
- top: -16px;
56
- width: 1px;
57
- background: #d9d9d9;
58
- display: block;
59
- }
60
-
61
- &::after {
62
- /* 横线 */
63
- content: '';
64
- position: absolute;
65
- left: -14px; // 横线起点和竖线对齐
66
- top: 8px; // 跟随你的行高调整
67
- width: ${width}; // 横线长度
68
- height: 1px;
69
- background: #d9d9d9;
70
- display: block;
71
- }
72
- `;
73
- }}
74
- `;
75
- const UITreeItemRight = styled_components.div`
76
- grid-column: 2;
77
- margin-bottom: 10px;
78
-
79
- &:last-child {
80
- margin-bottom: 0px;
81
- }
82
- `;
83
- const UITreeItemMain = styled_components.div`
84
- display: flex;
85
- flex-direction: column;
86
- gap: 10px;
87
- position: relative;
88
- `;
89
- const UICollapsible = styled_components.div`
90
- display: none;
91
-
92
- ${({ $collapse })=>$collapse && css`
93
- display: block;
94
- `}
95
- `;
96
- const UIName = styled_components.div`
97
- flex-grow: 1;
98
- `;
99
- const UIType = styled_components.div``;
100
- const UIRequired = styled_components.div``;
101
- const UIActions = styled_components.div`
102
- white-space: nowrap;
103
- `;
104
- const iconAddChildrenSvg = /*#__PURE__*/ jsxs("svg", {
105
- className: "icon-icon icon-icon-coz_add_node ",
106
- width: "1em",
107
- height: "1em",
108
- viewBox: "0 0 24 24",
109
- fill: "currentColor",
110
- xmlns: "http://www.w3.org/2000/svg",
111
- children: [
112
- /*#__PURE__*/ jsx("path", {
113
- fillRule: "evenodd",
114
- clipRule: "evenodd",
115
- d: "M11 6.49988C11 8.64148 9.50397 10.4337 7.49995 10.8884V15.4998C7.49995 16.0521 7.94767 16.4998 8.49995 16.4998H11.208C11.0742 16.8061 11 17.1443 11 17.4998C11 17.8554 11.0742 18.1936 11.208 18.4998H8.49995C6.8431 18.4998 5.49995 17.1567 5.49995 15.4998V10.8884C3.49599 10.4336 2 8.64145 2 6.49988C2 4.0146 4.01472 1.99988 6.5 1.99988C8.98528 1.99988 11 4.0146 11 6.49988ZM6.5 8.99988C7.88071 8.99988 9 7.88059 9 6.49988C9 5.11917 7.88071 3.99988 6.5 3.99988C5.11929 3.99988 4 5.11917 4 6.49988C4 7.88059 5.11929 8.99988 6.5 8.99988Z"
116
- }),
117
- /*#__PURE__*/ jsx("path", {
118
- d: "M17.5 12.4999C18.0523 12.4999 18.5 12.9476 18.5 13.4999V16.4999H21.5C22.0523 16.4999 22.5 16.9476 22.5 17.4999C22.5 18.0522 22.0523 18.4999 21.5 18.4999H18.5V21.4999C18.5 22.0522 18.0523 22.4999 17.5 22.4999C16.9477 22.4999 16.5 22.0522 16.5 21.4999V18.4999H13.5C12.9477 18.4999 12.5 18.0522 12.5 17.4999C12.5 16.9476 12.9477 16.4999 13.5 16.4999H16.5V13.4999C16.5 12.9476 16.9477 12.4999 17.5 12.4999Z"
119
- })
120
- ]
121
- });
122
- const IconAddChildren = ()=>/*#__PURE__*/ jsx(semi_icons, {
123
- size: "small",
124
- svg: iconAddChildrenSvg
125
- });
126
- const DefaultValueWrapper = styled_components.div`
127
- margin: 0;
128
- `;
129
- const ConstantInputWrapper = styled_components.div`
130
- flex-grow: 1;
131
-
132
- & .semi-tree-select,
133
- & .semi-input-number,
134
- & .semi-select {
135
- width: 100%;
136
- }
137
- `;
138
- export { ConstantInputWrapper, DefaultValueWrapper, IconAddChildren, UIActions, UICollapseTrigger, UICollapsible, UIContainer, UIExpandDetail, UILabel, UIName, UIRequired, UIRow, UITreeItemLeft, UITreeItemMain, UITreeItemRight, UITreeItems, UIType };
@@ -1,11 +0,0 @@
1
- import styled_components, { css } from "styled-components";
2
- const UIContainer = styled_components.div`
3
- background-color: var(--semi-color-fill-0);
4
- padding-left: 10px;
5
- padding-right: 6px;
6
-
7
- ${({ $hasError })=>$hasError && css`
8
- border: 1px solid var(--semi-color-danger-6);
9
- `}
10
- `;
11
- export { UIContainer };
@@ -1,13 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "react";
3
- import { PromptEditor } from "../prompt-editor/index.mjs";
4
- import { EditorInputsTree } from "../coze-editor-extensions/index.mjs";
5
- function PromptEditorWithInputs({ inputsValues, ...restProps }) {
6
- return /*#__PURE__*/ jsx(PromptEditor, {
7
- ...restProps,
8
- children: /*#__PURE__*/ jsx(EditorInputsTree, {
9
- inputsValues: inputsValues
10
- })
11
- });
12
- }
13
- export { PromptEditorWithInputs };
@@ -1,14 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import "react";
3
- import { PromptEditor } from "../prompt-editor/index.mjs";
4
- import { EditorVariableTagInject, EditorVariableTree } from "../coze-editor-extensions/index.mjs";
5
- function PromptEditorWithVariables(props) {
6
- return /*#__PURE__*/ jsxs(PromptEditor, {
7
- ...props,
8
- children: [
9
- /*#__PURE__*/ jsx(EditorVariableTree, {}),
10
- /*#__PURE__*/ jsx(EditorVariableTagInject, {})
11
- ]
12
- });
13
- }
14
- export { PromptEditorWithVariables };
@@ -1,6 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
- * SPDX-License-Identifier: MIT
4
- */
5
- export declare const UIRows: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const UIRow: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
- * SPDX-License-Identifier: MIT
4
- */
5
- export declare const UIContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const UIOperator: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const UILeft: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const UIRight: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const UIValues: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
- * SPDX-License-Identifier: MIT
4
- */
5
- import { Tag } from '@douyinfe/semi-ui';
6
- export declare const UIRootTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const UIVarName: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const UITag: import("styled-components").StyledComponent<typeof Tag, any, {}, never>;
9
- export declare const UIPopoverContent: import("styled-components").StyledComponent<"div", any, {}, never>;