@next-bricks/visual-builder 1.16.3 → 1.17.0

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 (175) hide show
  1. package/dist/bricks.json +10 -3
  2. package/dist/chunks/1045.26b1cdc0.js +2 -0
  3. package/dist/chunks/{1045.ed8e8ff6.js.map → 1045.26b1cdc0.js.map} +1 -1
  4. package/dist/chunks/1122.4d14f22d.js +2 -0
  5. package/dist/chunks/1122.4d14f22d.js.map +1 -0
  6. package/dist/chunks/{114.d0ad0448.js → 114.257c9063.js} +2 -2
  7. package/dist/chunks/{114.d0ad0448.js.map → 114.257c9063.js.map} +1 -1
  8. package/dist/chunks/{1940.0b0de6e5.js → 1940.74071e14.js} +2 -2
  9. package/dist/chunks/{1940.0b0de6e5.js.map → 1940.74071e14.js.map} +1 -1
  10. package/dist/chunks/2252.749c1181.js +3 -0
  11. package/dist/chunks/2252.749c1181.js.map +1 -0
  12. package/dist/chunks/{2277.20753c71.js → 2277.b9ac921f.js} +2 -2
  13. package/dist/chunks/{4658.bca01584.js.map → 2277.b9ac921f.js.map} +1 -1
  14. package/dist/chunks/2980.05b4ca47.js +2 -0
  15. package/dist/chunks/2980.05b4ca47.js.map +1 -0
  16. package/dist/chunks/{3171.a78de2a1.js → 3171.fc193e9e.js} +2 -2
  17. package/dist/chunks/{3171.a78de2a1.js.map → 3171.fc193e9e.js.map} +1 -1
  18. package/dist/chunks/3680.a3dc1198.js +2 -0
  19. package/dist/chunks/3680.a3dc1198.js.map +1 -0
  20. package/dist/chunks/{3933.a2c38438.js → 3933.0db2c791.js} +2 -2
  21. package/dist/chunks/{3933.a2c38438.js.map → 3933.0db2c791.js.map} +1 -1
  22. package/dist/chunks/4586.6b85a822.js +2 -0
  23. package/dist/chunks/4586.6b85a822.js.map +1 -0
  24. package/dist/chunks/{4658.bca01584.js → 4658.d9a35126.js} +2 -2
  25. package/dist/chunks/{2277.20753c71.js.map → 4658.d9a35126.js.map} +1 -1
  26. package/dist/chunks/4837.d1b811bd.js +2 -0
  27. package/dist/chunks/4837.d1b811bd.js.map +1 -0
  28. package/dist/chunks/5399.f7e42570.js +2 -0
  29. package/dist/chunks/5399.f7e42570.js.map +1 -0
  30. package/dist/chunks/548.5dce9a79.js +3 -0
  31. package/dist/chunks/{548.cd13d345.js.map → 548.5dce9a79.js.map} +1 -1
  32. package/dist/chunks/{5552.3f1c7478.js → 5552.eddd0c58.js} +2 -2
  33. package/dist/chunks/{5552.3f1c7478.js.map → 5552.eddd0c58.js.map} +1 -1
  34. package/dist/chunks/5659.9000e441.js +3 -0
  35. package/dist/chunks/{6828.ae264999.js.LICENSE.txt → 5659.9000e441.js.LICENSE.txt} +0 -6
  36. package/dist/chunks/5659.9000e441.js.map +1 -0
  37. package/dist/chunks/6219.3411ceb3.js +3 -0
  38. package/dist/chunks/6219.3411ceb3.js.LICENSE.txt +52 -0
  39. package/dist/chunks/6219.3411ceb3.js.map +1 -0
  40. package/dist/chunks/{6314.0f0f8b7c.js → 6314.ee18da6a.js} +2 -2
  41. package/dist/chunks/{6314.0f0f8b7c.js.map → 6314.ee18da6a.js.map} +1 -1
  42. package/dist/chunks/6862.cb8418c5.js +2 -0
  43. package/dist/chunks/6862.cb8418c5.js.map +1 -0
  44. package/dist/chunks/7218.56dd2d7d.js +2 -0
  45. package/dist/chunks/7218.56dd2d7d.js.map +1 -0
  46. package/dist/chunks/7304.0d5c37b6.js +2 -0
  47. package/dist/chunks/7304.0d5c37b6.js.map +1 -0
  48. package/dist/chunks/7434.0090ce7a.js +2 -0
  49. package/dist/chunks/7434.0090ce7a.js.map +1 -0
  50. package/dist/chunks/{7733.a0a60e42.js → 7733.0ded6e62.js} +2 -2
  51. package/dist/chunks/{7733.a0a60e42.js.map → 7733.0ded6e62.js.map} +1 -1
  52. package/dist/chunks/{790.a1269b3c.js → 790.39c9567f.js} +2 -2
  53. package/dist/chunks/{790.a1269b3c.js.map → 790.39c9567f.js.map} +1 -1
  54. package/dist/chunks/8172.06f2c14b.js +3 -0
  55. package/dist/chunks/8172.06f2c14b.js.map +1 -0
  56. package/dist/chunks/8989.0d8b22ea.js +2 -0
  57. package/dist/chunks/{8989.545efad6.js.map → 8989.0d8b22ea.js.map} +1 -1
  58. package/dist/chunks/9027.cfbb5de7.js +2 -0
  59. package/dist/chunks/{9027.e7b6fcc1.js.map → 9027.cfbb5de7.js.map} +1 -1
  60. package/dist/chunks/{9515.edbfa13e.js → 9515.7f8e4c58.js} +2 -2
  61. package/dist/chunks/{9515.edbfa13e.js.map → 9515.7f8e4c58.js.map} +1 -1
  62. package/dist/chunks/{9559.bb8e9b13.js → 9559.f1b67706.js} +2 -2
  63. package/dist/chunks/{9559.bb8e9b13.js.map → 9559.f1b67706.js.map} +1 -1
  64. package/dist/chunks/9612.1256387f.js +3 -0
  65. package/dist/chunks/9612.1256387f.js.map +1 -0
  66. package/dist/chunks/9740.3d0c9ba9.js +2 -0
  67. package/dist/chunks/{9740.104dd9ba.js.map → 9740.3d0c9ba9.js.map} +1 -1
  68. package/dist/chunks/chat-conversation.719bc9ad.js +3 -0
  69. package/dist/chunks/chat-conversation.719bc9ad.js.map +1 -0
  70. package/dist/chunks/chat-preview.ba0ed426.js +3 -0
  71. package/dist/chunks/{chat-preview.c21a596d.js.map → chat-preview.ba0ed426.js.map} +1 -1
  72. package/dist/chunks/contract-select.1b864bc9.js +3 -0
  73. package/dist/chunks/{contract-select.61da8e13.js.map → contract-select.1b864bc9.js.map} +1 -1
  74. package/dist/chunks/generate-snippets-context-menu.3cc68b48.js +2 -0
  75. package/dist/chunks/{generate-snippets-context-menu.06ad1455.js.map → generate-snippets-context-menu.3cc68b48.js.map} +1 -1
  76. package/dist/chunks/{inject-chat-preview-agent.fcb9f3bb.js → inject-chat-preview-agent.355038b2.js} +2 -2
  77. package/dist/chunks/{inject-chat-preview-agent.fcb9f3bb.js.map → inject-chat-preview-agent.355038b2.js.map} +1 -1
  78. package/dist/chunks/inject-preview-agent.8a950cf4.js +2 -0
  79. package/dist/chunks/{inject-preview-agent.07d466dd.js.map → inject-preview-agent.8a950cf4.js.map} +1 -1
  80. package/dist/chunks/main.c0c62ff8.js +2 -0
  81. package/dist/chunks/main.c0c62ff8.js.map +1 -0
  82. package/dist/chunks/{page-arch-node.de36ef20.js → page-arch-node.496da924.js} +3 -3
  83. package/dist/chunks/{page-arch-node.de36ef20.js.map → page-arch-node.496da924.js.map} +1 -1
  84. package/dist/chunks/{pre-generated-container.c8ef6348.js → pre-generated-container.a58b1044.js} +2 -2
  85. package/dist/chunks/{pre-generated-container.c8ef6348.js.map → pre-generated-container.a58b1044.js.map} +1 -1
  86. package/dist/chunks/pre-generated-preview.eece3a01.js +3 -0
  87. package/dist/chunks/{pre-generated-preview.a72b337b.js.map → pre-generated-preview.eece3a01.js.map} +1 -1
  88. package/dist/chunks/{pre-generated-table-view.3755244e.js → pre-generated-table-view.7be02729.js} +2 -2
  89. package/dist/chunks/{pre-generated-table-view.3755244e.js.map → pre-generated-table-view.7be02729.js.map} +1 -1
  90. package/dist/chunks/property-editor.6545986c.js +2 -0
  91. package/dist/chunks/property-editor.6545986c.js.map +1 -0
  92. package/dist/chunks/workbench-action-list.ba0931ab.js +2 -0
  93. package/dist/chunks/{workbench-action-list.ec85066d.js.map → workbench-action-list.ba0931ab.js.map} +1 -1
  94. package/dist/chunks/{workbench-action.91f531b5.js → workbench-action.1a44a90f.js} +3 -3
  95. package/dist/chunks/{workbench-action.91f531b5.js.map → workbench-action.1a44a90f.js.map} +1 -1
  96. package/dist/chunks/workbench-history-action.abea66fc.js +3 -0
  97. package/dist/chunks/{workbench-history-action.d59b9ecb.js.map → workbench-history-action.abea66fc.js.map} +1 -1
  98. package/dist/chunks/{workbench-pane.5b1545d7.js → workbench-pane.5636e95b.js} +3 -3
  99. package/dist/chunks/{workbench-pane.5b1545d7.js.map → workbench-pane.5636e95b.js.map} +1 -1
  100. package/dist/chunks/workbench-sidebar.e66c6daa.js +2 -0
  101. package/dist/chunks/{workbench-sidebar.8d9d84bc.js.map → workbench-sidebar.e66c6daa.js.map} +1 -1
  102. package/dist/chunks/{workbench-tree.97ecd2b7.js → workbench-tree.a03b7c9d.js} +3 -3
  103. package/dist/chunks/workbench-tree.a03b7c9d.js.LICENSE.txt +5 -0
  104. package/dist/chunks/workbench-tree.a03b7c9d.js.map +1 -0
  105. package/dist/examples.json +3 -0
  106. package/dist/index.83e631cb.js +2 -0
  107. package/dist/index.83e631cb.js.map +1 -0
  108. package/dist/manifest.json +94 -48
  109. package/dist/types.json +84 -13
  110. package/dist-types/bootstrap.d.ts +1 -0
  111. package/dist-types/property-editor/components/AdvancedFormItem/index.d.ts +8 -0
  112. package/dist-types/property-editor/components/CategoryTitle/index.d.ts +6 -0
  113. package/dist-types/property-editor/components/common/CodeEditorComponent.d.ts +8 -0
  114. package/dist-types/property-editor/components/common/IconSelectComponent.d.ts +10 -0
  115. package/dist-types/property-editor/index.d.ts +307 -0
  116. package/dist-types/property-editor/index.spec.d.ts +1 -0
  117. package/dist-types/property-editor/utils/schemaFormatter.d.ts +3 -0
  118. package/docs/property-editor.md +24 -0
  119. package/package.json +8 -6
  120. package/dist/chunks/1045.ed8e8ff6.js +0 -2
  121. package/dist/chunks/1122.5e99d930.js +0 -2
  122. package/dist/chunks/1122.5e99d930.js.map +0 -1
  123. package/dist/chunks/1822.fea51558.js +0 -3
  124. package/dist/chunks/1822.fea51558.js.map +0 -1
  125. package/dist/chunks/2252.0e662bae.js +0 -3
  126. package/dist/chunks/2252.0e662bae.js.map +0 -1
  127. package/dist/chunks/2980.e8dde2d1.js +0 -2
  128. package/dist/chunks/2980.e8dde2d1.js.map +0 -1
  129. package/dist/chunks/4741.b96ddd0b.js +0 -2
  130. package/dist/chunks/4741.b96ddd0b.js.map +0 -1
  131. package/dist/chunks/5399.ea7e9b64.js +0 -2
  132. package/dist/chunks/5399.ea7e9b64.js.map +0 -1
  133. package/dist/chunks/548.cd13d345.js +0 -3
  134. package/dist/chunks/6828.ae264999.js +0 -3
  135. package/dist/chunks/6828.ae264999.js.map +0 -1
  136. package/dist/chunks/7041.5c093fc7.js +0 -3
  137. package/dist/chunks/7041.5c093fc7.js.map +0 -1
  138. package/dist/chunks/7115.3108075e.js +0 -2
  139. package/dist/chunks/7115.3108075e.js.map +0 -1
  140. package/dist/chunks/8989.545efad6.js +0 -2
  141. package/dist/chunks/9027.e7b6fcc1.js +0 -2
  142. package/dist/chunks/9496.45c0e5bc.js +0 -2
  143. package/dist/chunks/9496.45c0e5bc.js.map +0 -1
  144. package/dist/chunks/9542.7b1a990f.js +0 -2
  145. package/dist/chunks/9542.7b1a990f.js.map +0 -1
  146. package/dist/chunks/9740.104dd9ba.js +0 -2
  147. package/dist/chunks/9780.bf18ff0d.js +0 -2
  148. package/dist/chunks/9780.bf18ff0d.js.map +0 -1
  149. package/dist/chunks/chat-conversation.e8f51d87.js +0 -2
  150. package/dist/chunks/chat-conversation.e8f51d87.js.map +0 -1
  151. package/dist/chunks/chat-preview.c21a596d.js +0 -3
  152. package/dist/chunks/contract-select.61da8e13.js +0 -3
  153. package/dist/chunks/generate-snippets-context-menu.06ad1455.js +0 -2
  154. package/dist/chunks/inject-preview-agent.07d466dd.js +0 -2
  155. package/dist/chunks/main.3bce7c52.js +0 -2
  156. package/dist/chunks/main.3bce7c52.js.map +0 -1
  157. package/dist/chunks/pre-generated-preview.a72b337b.js +0 -3
  158. package/dist/chunks/workbench-action-list.ec85066d.js +0 -2
  159. package/dist/chunks/workbench-history-action.d59b9ecb.js +0 -3
  160. package/dist/chunks/workbench-sidebar.8d9d84bc.js +0 -2
  161. package/dist/chunks/workbench-tree.97ecd2b7.js.map +0 -1
  162. package/dist/index.6539ec7f.js +0 -2
  163. package/dist/index.6539ec7f.js.map +0 -1
  164. /package/dist/chunks/{2252.0e662bae.js.LICENSE.txt → 2252.749c1181.js.LICENSE.txt} +0 -0
  165. /package/dist/chunks/{548.cd13d345.js.LICENSE.txt → 548.5dce9a79.js.LICENSE.txt} +0 -0
  166. /package/dist/chunks/{1822.fea51558.js.LICENSE.txt → 8172.06f2c14b.js.LICENSE.txt} +0 -0
  167. /package/dist/chunks/{7041.5c093fc7.js.LICENSE.txt → 9612.1256387f.js.LICENSE.txt} +0 -0
  168. /package/dist/chunks/{chat-preview.c21a596d.js.LICENSE.txt → chat-conversation.719bc9ad.js.LICENSE.txt} +0 -0
  169. /package/dist/chunks/{page-arch-node.de36ef20.js.LICENSE.txt → chat-preview.ba0ed426.js.LICENSE.txt} +0 -0
  170. /package/dist/chunks/{contract-select.61da8e13.js.LICENSE.txt → contract-select.1b864bc9.js.LICENSE.txt} +0 -0
  171. /package/dist/chunks/{pre-generated-preview.a72b337b.js.LICENSE.txt → page-arch-node.496da924.js.LICENSE.txt} +0 -0
  172. /package/dist/chunks/{workbench-action.91f531b5.js.LICENSE.txt → pre-generated-preview.eece3a01.js.LICENSE.txt} +0 -0
  173. /package/dist/chunks/{workbench-pane.5b1545d7.js.LICENSE.txt → workbench-action.1a44a90f.js.LICENSE.txt} +0 -0
  174. /package/dist/chunks/{workbench-history-action.d59b9ecb.js.LICENSE.txt → workbench-history-action.abea66fc.js.LICENSE.txt} +0 -0
  175. /package/dist/chunks/{workbench-tree.97ecd2b7.js.LICENSE.txt → workbench-pane.5636e95b.js.LICENSE.txt} +0 -0
@@ -0,0 +1,307 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import { Form, onFieldValueChange, onFieldInit, onFieldInitialValueChange } from "@formily/core";
5
+ import { ISchema } from "@formily/react";
6
+ import { CategoryTitle } from "./components/CategoryTitle";
7
+ import { AdvancedFormItem } from "./components/AdvancedFormItem";
8
+ import { CodeEditorComponent } from "./components/common/CodeEditorComponent";
9
+ import { IconSelectComponent } from "./components/common/IconSelectComponent";
10
+ import "./style.css";
11
+ declare const SchemaField: {
12
+ <Decorator extends import("@formily/react").JSXComponent, Component extends import("@formily/react").JSXComponent>(props: import("@formily/react").ISchemaFieldProps<Decorator, Component, import("@formily/core").ObjectField<Decorator, Component>>): JSX.Element;
13
+ displayName: string;
14
+ Markup: {
15
+ <Decorator_1 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_1 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaMarkupFieldProps<{
16
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
17
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
18
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
19
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
20
+ };
21
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
22
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
23
+ };
24
+ FormItem: typeof AdvancedFormItem;
25
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
26
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
27
+ };
28
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
29
+ children?: React.ReactNode;
30
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
31
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
32
+ __ANT_RADIO: boolean;
33
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
34
+ };
35
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
36
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
37
+ CategoryTitle: typeof CategoryTitle;
38
+ CodeEditor: typeof CodeEditorComponent;
39
+ IconSelect: typeof IconSelectComponent;
40
+ }, Component_1, Decorator_1>): JSX.Element;
41
+ displayName: string;
42
+ };
43
+ String: {
44
+ <Decorator_2 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_2 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
45
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
46
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
47
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
48
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
49
+ };
50
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
51
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
52
+ };
53
+ FormItem: typeof AdvancedFormItem;
54
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
55
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
56
+ };
57
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
58
+ children?: React.ReactNode;
59
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
60
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
61
+ __ANT_RADIO: boolean;
62
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
63
+ };
64
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
65
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
66
+ CategoryTitle: typeof CategoryTitle;
67
+ CodeEditor: typeof CodeEditorComponent;
68
+ IconSelect: typeof IconSelectComponent;
69
+ }, Component_2, Decorator_2>): JSX.Element;
70
+ displayName: string;
71
+ };
72
+ Object: {
73
+ <Decorator_3 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_3 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
74
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
75
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
76
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
77
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
78
+ };
79
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
80
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
81
+ };
82
+ FormItem: typeof AdvancedFormItem;
83
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
84
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
85
+ };
86
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
87
+ children?: React.ReactNode;
88
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
89
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
90
+ __ANT_RADIO: boolean;
91
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
92
+ };
93
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
94
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
95
+ CategoryTitle: typeof CategoryTitle;
96
+ CodeEditor: typeof CodeEditorComponent;
97
+ IconSelect: typeof IconSelectComponent;
98
+ }, Component_3, Decorator_3>): JSX.Element;
99
+ displayName: string;
100
+ };
101
+ Array: {
102
+ <Decorator_4 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_4 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
103
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
104
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
105
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
106
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
107
+ };
108
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
109
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
110
+ };
111
+ FormItem: typeof AdvancedFormItem;
112
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
113
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
114
+ };
115
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
116
+ children?: React.ReactNode;
117
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
118
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
119
+ __ANT_RADIO: boolean;
120
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
121
+ };
122
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
123
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
124
+ CategoryTitle: typeof CategoryTitle;
125
+ CodeEditor: typeof CodeEditorComponent;
126
+ IconSelect: typeof IconSelectComponent;
127
+ }, Component_4, Decorator_4>): JSX.Element;
128
+ displayName: string;
129
+ };
130
+ Boolean: {
131
+ <Decorator_5 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_5 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
132
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
133
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
134
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
135
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
136
+ };
137
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
138
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
139
+ };
140
+ FormItem: typeof AdvancedFormItem;
141
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
142
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
143
+ };
144
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
145
+ children?: React.ReactNode;
146
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
147
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
148
+ __ANT_RADIO: boolean;
149
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
150
+ };
151
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
152
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
153
+ CategoryTitle: typeof CategoryTitle;
154
+ CodeEditor: typeof CodeEditorComponent;
155
+ IconSelect: typeof IconSelectComponent;
156
+ }, Component_5, Decorator_5>): JSX.Element;
157
+ displayName: string;
158
+ };
159
+ Date: {
160
+ <Decorator_6 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_6 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
161
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
162
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
163
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
164
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
165
+ };
166
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
167
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
168
+ };
169
+ FormItem: typeof AdvancedFormItem;
170
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
171
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
172
+ };
173
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
174
+ children?: React.ReactNode;
175
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
176
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
177
+ __ANT_RADIO: boolean;
178
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
179
+ };
180
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
181
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
182
+ CategoryTitle: typeof CategoryTitle;
183
+ CodeEditor: typeof CodeEditorComponent;
184
+ IconSelect: typeof IconSelectComponent;
185
+ }, Component_6, Decorator_6>): JSX.Element;
186
+ displayName: string;
187
+ };
188
+ DateTime: {
189
+ <Decorator_7 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_7 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
190
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
191
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
192
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
193
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
194
+ };
195
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
196
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
197
+ };
198
+ FormItem: typeof AdvancedFormItem;
199
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
200
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
201
+ };
202
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
203
+ children?: React.ReactNode;
204
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
205
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
206
+ __ANT_RADIO: boolean;
207
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
208
+ };
209
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
210
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
211
+ CategoryTitle: typeof CategoryTitle;
212
+ CodeEditor: typeof CodeEditorComponent;
213
+ IconSelect: typeof IconSelectComponent;
214
+ }, Component_7, Decorator_7>): JSX.Element;
215
+ displayName: string;
216
+ };
217
+ Void: {
218
+ <Decorator_8 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_8 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
219
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
220
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
221
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
222
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
223
+ };
224
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
225
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
226
+ };
227
+ FormItem: typeof AdvancedFormItem;
228
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
229
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
230
+ };
231
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
232
+ children?: React.ReactNode;
233
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
234
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
235
+ __ANT_RADIO: boolean;
236
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
237
+ };
238
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
239
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
240
+ CategoryTitle: typeof CategoryTitle;
241
+ CodeEditor: typeof CodeEditorComponent;
242
+ IconSelect: typeof IconSelectComponent;
243
+ }, Component_8, Decorator_8>): JSX.Element;
244
+ displayName: string;
245
+ };
246
+ Number: {
247
+ <Decorator_9 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_9 extends "CodeEditor" | "FormLayout" | "FormItemWithoutAdvanced" | "FormItem" | "Switch" | "Input" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormItemWithoutAdvanced.BaseItem" | "Switch.$$typeof" | "Input.TextArea" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
248
+ FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
249
+ useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
250
+ useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
251
+ useFormShallowLayout: () => import("@formily/antd-v5").IFormLayoutContext;
252
+ };
253
+ Input: import("@formily/react").ReactFC<import("antd").InputProps> & {
254
+ TextArea: React.ForwardRefExoticComponent<Pick<Partial<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, "key" | keyof import("antd/es/input").TextAreaProps> & React.RefAttributes<unknown>>;
255
+ };
256
+ FormItem: typeof AdvancedFormItem;
257
+ FormItemWithoutAdvanced: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps> & {
258
+ BaseItem: import("@formily/react").ReactFC<import("@formily/antd-v5").IFormItemProps>;
259
+ };
260
+ NumberPicker: React.ForwardRefExoticComponent<Pick<Partial<import("antd").InputNumberProps<import("rc-input-number").ValueType> & {
261
+ children?: React.ReactNode;
262
+ } & React.RefAttributes<HTMLInputElement>>, "key" | keyof import("antd").InputNumberProps<import("rc-input-number").ValueType>> & React.RefAttributes<unknown>>;
263
+ Radio: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioProps & React.RefAttributes<import("rc-checkbox").CheckboxRef>>, "key" | keyof import("antd").RadioProps> & React.RefAttributes<unknown>> & {
264
+ __ANT_RADIO: boolean;
265
+ Group: React.ForwardRefExoticComponent<Pick<Partial<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>>, "key" | keyof import("antd").RadioGroupProps> & React.RefAttributes<unknown>>;
266
+ };
267
+ Select: import("@formily/react").ReactFC<import("antd/lib").SelectProps<any, any>>;
268
+ Switch: React.ForwardRefExoticComponent<Pick<Partial<import("antd").SwitchProps & React.RefAttributes<HTMLElement>>, "key" | keyof import("antd").SwitchProps> & React.RefAttributes<unknown>>;
269
+ CategoryTitle: typeof CategoryTitle;
270
+ CodeEditor: typeof CodeEditorComponent;
271
+ IconSelect: typeof IconSelectComponent;
272
+ }, Component_9, Decorator_9>): JSX.Element;
273
+ displayName: string;
274
+ };
275
+ };
276
+ export interface EditorComponentProps {
277
+ advancedMode?: boolean;
278
+ SchemaFieldComponent: typeof SchemaField;
279
+ schemaFormatter: (data: ISchema, advancedMode: boolean) => ISchema;
280
+ form: Form<any>;
281
+ effects: {
282
+ onFieldInit: typeof onFieldInit;
283
+ onFieldValueChange: typeof onFieldValueChange;
284
+ onFieldInitialValueChange: typeof onFieldInitialValueChange;
285
+ };
286
+ }
287
+ /**
288
+ * 构件 `visual-builder.property-editor`
289
+ */
290
+ export declare class PropertyEditor extends ReactNextElement {
291
+ #private;
292
+ /** 构件名称 */
293
+ accessor editorName: string | undefined;
294
+ /** 值 */
295
+ accessor values: any | undefined;
296
+ /** 高级模式 */
297
+ accessor advancedMode: boolean | undefined;
298
+ validate(): void;
299
+ render(): React.JSX.Element;
300
+ }
301
+ export interface PropertyEditorProps {
302
+ values: any;
303
+ editorName: string;
304
+ advancedMode?: boolean;
305
+ }
306
+ export declare function LegacyPropertyEditor({ advancedMode, values, editorName }: PropertyEditorProps, ref: any): React.JSX.Element;
307
+ export {};
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,3 @@
1
+ import { ISchema } from "@formily/react";
2
+ export declare const ADVANCED_FORM_KEY = "#advanced_form";
3
+ export declare function schemaFormatter(data: ISchema, advancedMode: boolean): ISchema;
@@ -0,0 +1,24 @@
1
+ 构件 `visual-builder.property-editor`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: visual-builder.property-editor
9
+ properties:
10
+ id: editor
11
+ editorName: eo-button-editor
12
+ events:
13
+ validate.success:
14
+ - action: console.log
15
+ validate.error:
16
+ - action: console.log
17
+ - brick: eo-button
18
+ properties:
19
+ textContent: Submit
20
+ events:
21
+ click:
22
+ - target: "#editor"
23
+ method: validate
24
+ ```
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@next-bricks/visual-builder",
3
- "version": "1.16.3",
3
+ "version": "1.17.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git@github.com:easyops-cn/next-bricks.git"
7
+ "url": "git@github.com:easyops-cn/next-bricks.git",
8
+ "directory": "bricks/visual-builder"
8
9
  },
9
10
  "license": "GPL-3.0",
10
11
  "type": "module",
@@ -34,13 +35,14 @@
34
35
  "postpublish": "mv package.json.bak package.json"
35
36
  },
36
37
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.21.1",
38
- "@next-core/test-next": "^1.1.2"
38
+ "@next-core/build-next-bricks": "^1.22.0",
39
+ "@next-core/test-next": "^1.1.3"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@next-bricks/basic": "*",
42
43
  "@next-bricks/form": "*",
43
- "@next-bricks/icons": "*"
44
+ "@next-bricks/icons": "*",
45
+ "@next-bricks/vs": "*"
44
46
  },
45
- "gitHead": "8b1ac1395511214d47faac3ae4681de13608f73f"
47
+ "gitHead": "2e96bd7f2afd0a5d3732f8ac689dee9028d73e60"
46
48
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[1045],{2559:(t,e,n)=>{function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>i})},2016:(t,e,n)=>{function i(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>i})},829:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2559);function r(t,e){return t.get((0,i.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2016);function r(t,e,n){(0,i.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2559);function r(t,e,n){return t.set((0,i.A)(t,e),n),n}},4586:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(1369);function r(t,e,n){return(e=(0,i.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},1369:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(7545);function r(t){var e=function(t,e){if("object"!=(0,i.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,i.A)(e)?e:e+""}},7545:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:()=>i})},1045:(t,e,n)=>{n.r(e),n.d(e,{NextElement:()=>A,createDecorators:()=>a,supportsAdoptingStyleSheets:()=>_});const i=Symbol.for("attributeHasBeenSet"),r=Symbol.for("markAttributeHasBeenSet"),o=Symbol.for("stopAttributeChangedCallback"),s={attribute:!0,type:String,converter:{toAttribute:(t,e)=>e===Boolean?t?"":null:t,fromAttribute(t,e){switch(e){case Boolean:return null!==t&&"false"!==t;case Number:return null===t?null:Number(t)}return t}},render:!0,hasChanged:(t,e)=>e!==t&&(e==e||t==t)};function a(){const t=new Map,e=new Set,n=new Set,a=new Set;return{defineElement:function(i){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(o,s)=>{let{kind:d,name:c,addInitializer:h}=s;h((function(){const s=Object.getPrototypeOf(this);if(u(this,"observedAttributes",l(s.observedAttributes??[],t.keys())),u(this,"__attributeReflections",new Map([...s.__attributeReflections??[],...t])),u(this,"styleTexts",r.styleTexts),u(this,"shadowOptions",!1!==r.shadowOptions?{mode:"open",...r.shadowOptions}:null),u(this,"__tagName",i),u(this,"_dev_only_definedProperties",l(s._dev_only_definedProperties??[],e)),u(this,"_dev_only_definedMethods",l(s._dev_only_definedMethods??[],n)),u(this,"_dev_only_definedEvents",l(s._dev_only_definedEvents??[],a)),customElements.define(i,this),Array.isArray(r.alias))for(const t of r.alias){const e=class extends o{};u(e,"__tagName",t),customElements.define(t,e)}}))}},property:function(n){return function(a,u){let{get:l,set:d}=a,{kind:c,name:h,static:f,private:b}=u;e.add(h);const p=Object.assign({},s,n),v=function(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}(h,p);return void 0!==v&&t.set(v,{...p,property:h}),{get(){return void 0!==v&&this[i](v)?p.converter.fromAttribute(this.getAttribute(v),p.type):l.call(this)},set(t){const e=l.call(this);if(d.call(this,t),p.hasChanged(t,e)){if(void 0!==v){const e=p.converter.toAttribute(t,p.type);this[o](!0),null==e?this.removeAttribute(v):this.setAttribute(v,e),this[r](v),this[o](!1)}p.render&&this._requestRender()}},init(t){if(void 0!==v&&p.hasChanged(t,void 0)){const e=p.converter.toAttribute(t,p.type);null!=e&&requestAnimationFrame((()=>{this[i](v)||(this[o](!0),this.setAttribute(v,e),this[o](!1))}))}return t}}}},method:function(t){return function(e,i){let{kind:r,name:o,static:s,private:a,addInitializer:u}=i;null!=t&&t.bound&&u((function(){this[o]=this[o].bind(this)})),n.add(o)}},event:function(t){return function(e,n){let{get:i}=e,{kind:r,name:o,static:s,private:u}=n;const{type:l,...d}=t;return a.add(l),{get(){return i.call(this)},set(){throw new Error("Decorated events are readonly")},init(t){return Object.freeze({emit:t=>this.dispatchEvent(new CustomEvent(l,{...d,detail:t}))})}}}}}}function u(t,e,n){Object.defineProperty(t,e,{get:()=>n,configurable:!0})}function l(t,e){const n=new Set(t);for(const t of e)n.add(t);return[...n]}new Set(["prefix"]);var d=n(918),c=n(4586),h=n(829),f=n(6121),b=new WeakMap,p=new WeakMap,v=new WeakMap,y=new WeakMap;class A extends HTMLElement{constructor(){super(...arguments),(0,d.A)(this,b,!1),(0,d.A)(this,p,!1),(0,d.A)(this,v,!1),(0,d.A)(this,y,new Set)}_markConnectedCallbackCalled(){(0,f.A)(p,this,!0)}connectedCallback(){this._markConnectedCallbackCalled(),this._render()}[i](t){return(0,h.A)(y,this).has(t)}[r](t){(0,h.A)(y,this).add(t)}[o](t){(0,f.A)(v,this,t)}attributeChangedCallback(t,e,n){if((0,h.A)(y,this).add(t),!(0,h.A)(v,this)&&e!==n){const e=this.constructor.__attributeReflections.get(t),i=e.converter.fromAttribute(n,e.type);this[e.property]=i}}_requestRender(){this.isConnected&&(0,h.A)(p,this)&&!(0,h.A)(b,this)&&((0,f.A)(b,this,!0),Promise.resolve().then((()=>{(0,f.A)(b,this,!1),this._render()})))}}let m;function _(){return void 0===m&&(m=!!(window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype)),m}(0,c.A)(A,"styleTexts",void 0),(0,c.A)(A,"shadowOptions",void 0),(0,c.A)(A,"__attributeReflections",void 0),(0,c.A)(A,"__tagName",void 0)}}]);
2
- //# sourceMappingURL=1045.ed8e8ff6.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[1122],{4586:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(1369);function i(e,n,t){return(n=(0,r.A)(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},1369:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(7545);function i(e){var n=function(e,n){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(n)?n:n+""}},7545:(e,n,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.d(n,{A:()=>r})},1122:(e,n,t)=>{t.r(n),t.d(n,{cook:()=>R,isEvaluable:()=>U,isTrackAll:()=>G,precook:()=>z,precookFunction:()=>q,preevaluate:()=>_,shouldAllowRecursiveEvaluations:()=>W});var r=t(4586);class i{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0),(0,r.A)(this,"Function",void 0)}}class o{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingMap",new Map),this.OuterEnv=e}HasBinding(e){return this.bindingMap.has(e)}CreateMutableBinding(e,n){return this.bindingMap.set(e,{mutable:!0,deletable:n}),v(void 0)}CreateImmutableBinding(e,n){return this.bindingMap.set(e,{strict:n}),v(void 0)}InitializeBinding(e,n){const t=this.bindingMap.get(e);return Object.assign(t,{initialized:!0,value:n}),v(void 0)}SetMutableBinding(e,n,t){const r=this.bindingMap.get(e);if(!r.initialized)throw new ReferenceError(`${e} is not initialized`);if(!r.mutable)throw new TypeError("Assignment to constant variable");return r.value=n,v(void 0)}GetBindingValue(e,n){const t=this.bindingMap.get(e);if(!t.initialized)throw new ReferenceError(`${e} is not initialized`);return t.value}}class a extends o{}class s extends o{}const c=Symbol.for("SourceNode"),u=Symbol.for("FormalParameters"),l=Symbol.for("ECMAScriptCode"),f=Symbol.for("Environment"),d=Symbol.for("IsConstructor");class p{constructor(e,n,t){(0,r.A)(this,"Base",void 0),(0,r.A)(this,"ReferenceName",void 0),(0,r.A)(this,"Strict",void 0),this.Base=e,this.ReferenceName=n,this.Strict=t}}class m{constructor(e,n){(0,r.A)(this,"Type",void 0),(0,r.A)(this,"Value",void 0),this.Type=e,this.Value=n}}function v(e){return new m("normal",e)}const y=Symbol("empty completion");function b(e){const n=new Set,t=e=>{if(Array.isArray(e))for(const n of e)t(n);else if(e)switch(e.type){case"Identifier":return void n.add(e.name);case"VariableDeclaration":return t(e.declarations);case"VariableDeclarator":case"FunctionDeclaration":return t(e.id);case"ArrayPattern":return t(e.elements);case"AssignmentPattern":return t(e.left);case"ObjectPattern":return t(e.properties);case"Property":return t(e.value);case"RestElement":return t(e.argument)}};return t(e),Array.from(n)}function g(e){const n=e=>{if(Array.isArray(e))return e.some(n);if(e)switch(e.type){case"ArrayPattern":return n(e.elements);case"AssignmentPattern":return!0;case"ObjectPattern":return n(e.properties);case"Property":return e.computed||n(e.value);case"RestElement":return n(e.argument)}};return n(e)}function h(e,n){const t=[],r={var:n.var},i=(e,n)=>{if(Array.isArray(e))for(const t of e)i(t,n);else if(e){switch(e.type){case"FunctionDeclaration":return void(Number(!n.var)^Number(n.topLevel)&&t.push(e));case"VariableDeclaration":return void(Number(!n.var)^Number("var"===e.kind)&&t.push(e));case"SwitchCase":return void i(e.consequent,r);case"CatchClause":return void i(e.body,r)}if(n.var)switch(e.type){case"BlockStatement":case"DoWhileStatement":case"WhileStatement":return void i(e.body,r);case"IfStatement":return i(e.consequent,r),void i(e.alternate,r);case"ForStatement":return i(e.init,r),void i(e.body,r);case"ForInStatement":case"ForOfStatement":return i(e.left,r),void i(e.body,r);case"SwitchStatement":return void i(e.cases,r);case"TryStatement":return i(e.block,r),i(e.handler,r),void i(e.finalizer,r)}}};return i(e,n),t}function E(e){return"unresolvable"!==e.Base&&!(e.Base instanceof o)}function w(e,n){return e.Base.InitializeBinding(e.ReferenceName,n)}function x(e,n,t){if(null==n)return e;const r=Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n));for(const i of r)if(!t.has(i)){const t=Object.getOwnPropertyDescriptor(n,i);null!=t&&t.enumerable&&(e[i]=n[i])}return e}function S(e,n){const t="const"===e.kind;for(const r of b(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1)}function B(e){return"normal"===e.Type||"continue"==e.Type}function A(e,n){return e.Value!==y?e:new m(e.Type,n)}function k(e){if(e instanceof m&&(e=e.Value),!(e instanceof p))return e;if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.GetBindingValue(e.ReferenceName,e.Strict):e.Base[e.ReferenceName]}function L(e){return"symbol"==typeof e?e:String(e)}function V(e,n){return e[n]}function C(e,n){if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.SetMutableBinding(e.ReferenceName,n,e.Strict):(e.Base[e.ReferenceName]=n,v(void 0))}function P(e){if(n=e,!(Array.isArray(n)||null!=n&&"function"==typeof n[Symbol.iterator]))throw new TypeError(typeof e+" is not iterable");var n;return e[Symbol.iterator]()}function T(e){if(null==e)throw new TypeError("Cannot destructure properties of undefined or null")}function I(e,n,t){return e?e.HasBinding(n)?new p(e,n,t):I(e.OuterEnv,n,t):new p("unresolvable",n,t)}function O(e,n,t){switch(n){case"+":return e+t;case"-":return e-t;case"/":return e/t;case"%":return e%t;case"*":return e*t;case"**":return e**t;case"==":return e==t;case"===":return e===t;case"!=":return e!=t;case"!==":return e!==t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}throw new SyntaxError(`Unsupported binary operator \`${n}\``)}const F=new WeakSet([Function,Object,Function.prototype,Object.prototype,function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}()]);function j(e){if(F.has(e))throw new TypeError("Cannot access reserved objects such as `Function`.")}const M=new WeakSet([Array,Map,Set,URLSearchParams,WeakMap,WeakSet,RegExp]);function R(e,n){var t;let{rules:r,globalVariables:o={},hooks:F={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const R="FunctionDeclaration"!==e.type,D=new a(null),$=new i;$.VariableEnvironment=D,$.LexicalEnvironment=D;const z=[$];for(const[e,n]of Object.entries(o))D.CreateImmutableBinding(e,!0),D.InitializeBinding(e,n);const N=new WeakMap;function q(e,t){var r,i,o;switch(null===(r=F.beforeEvaluate)||void 0===r||r.call(F,e),e.type){case"ArrayExpression":{const n=[];for(const t of e.elements)if(t)if("SpreadElement"===t.type){const e=k(q(t.argument));n.push(...e)}else n.push(k(q(t)));else n.length+=1;return v(n)}case"ArrowFunctionExpression":return ue(e),v(re(e,_().LexicalEnvironment,!1));case"BinaryExpression":{const t=k(q(e.left)),r=q(e.right).Value,i=k(r);if(R&&"|>"===e.operator){if("function"!=typeof i){const t=n.substring(e.right.start,e.right.end);throw new TypeError(`${t} is not a function`)}let o;return r instanceof p&&E(r)&&(o=r.Base),v(i.call(o,t))}return v(O(t,e.operator,i))}case"CallExpression":{const n=q(e.callee,t).Value,r=k(n);return null==r&&(e.optional||null!=t&&t.skipped)?(t.skipped=!0,v(void 0)):(j(r),Z(r,n,e.arguments,e.callee))}case"ChainExpression":return q(e.expression,{});case"ConditionalExpression":return v(k(q(k(q(e.test))?e.consequent:e.alternate)));case"Identifier":return v(U(e.name));case"Literal":if(e.regex){if(null===e.value)throw new SyntaxError(`Invalid regular expression: ${e.raw}`);if(e.regex.flags.includes("u"))throw new SyntaxError(`Unsupported unicode flag in regular expression: ${e.raw}`)}return v(e.value);case"LogicalExpression":{const n=k(q(e.left));switch(e.operator){case"&&":return v(n&&k(q(e.right)));case"||":return v(n||k(q(e.right)));case"??":return v(n??k(q(e.right)));default:throw new SyntaxError(`Unsupported logical operator '${e.operator}'`)}}case"MemberExpression":{const n=k(q(e.object,t).Value);if(null==n&&(e.optional||null!=t&&t.skipped))return t.skipped=!0,v(void 0);j(n);const r=e.computed?function(e,n,t){const r=L(k(q(n)));return new p(e,r,!0)}(n,e.property):function(e,n,t){const r=n.name;return new p(e,r,!0)}(n,e.property);return j(r),v(r)}case"NewExpression":return function(e,t){const r=k(q(e)),i=ee(t);if("function"!=typeof r||!1===r[d]){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not a constructor`)}if(!function(e){return M.has(e)||e===Date}(r)){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not an allowed constructor`)}return v(new r(...i))}(e.callee,e.arguments);case"ObjectExpression":{const n={};for(const t of e.properties)if("SpreadElement"===t.type)x(n,k(q(t.argument)),new Set);else{if("init"!==t.kind)throw new SyntaxError("Unsupported object getter/setter");const e=t.computed||"Identifier"!==t.key.type?oe(t.key):t.key.name;if("__proto__"===e)throw new TypeError("Setting '__proto__' property is not allowed");n[e]=k(q(t.value))}return v(n)}case"SequenceExpression":{let n;for(const t of e.expressions)n=v(k(q(t)));return n}case"TemplateLiteral":{const n=[e.quasis[0].value.cooked];let t=0;for(const r of e.expressions){const i=k(q(r));n.push(String(i)),n.push(e.quasis[t+=1].value.cooked)}return v(n.join(""))}case"TaggedTemplateExpression":{const n=q(e.tag).Value,t=k(n);return j(t),Z(t,n,e.quasi,e.tag)}case"UnaryExpression":{const n=q(e.argument).Value;if(!R&&"delete"===e.operator){if(!(n instanceof p))return v(!0);if(E(n))return v(delete n.Base[n.ReferenceName])}return"typeof"===e.operator?n instanceof p&&"unresolvable"===n.Base?v("undefined"):v(typeof k(n)):v(function(e,n){switch(n){case"!":return!e;case"+":return+e;case"-":return-e;case"void":return}throw new SyntaxError(`Unsupported unary operator \`${n}\``)}(k(n),e.operator))}}if(!R)switch(e.type){case"AssignmentExpression":{if("="===e.operator){if("ArrayPattern"!==e.left.type&&"ObjectPattern"!==e.left.type){const n=q(e.left).Value,t=k(q(e.right));return C(n,t),v(t)}const n=k(q(e.right));return K(e.left,n),v(n)}const n=q(e.left).Value,t=k(n),r=k(q(e.right)),i=function(e,n,t){switch(n){case"+=":case"-=":case"*=":case"/=":case"%=":case"**=":return O(e,n.substr(0,n.length-1),t)}throw new SyntaxError(`Unsupported assignment operator \`${n}\``)}(t,e.operator,r);return C(n,i),v(i)}case"BlockStatement":{if(!e.body.length)return v(y);const n=_().LexicalEnvironment,t=new a(n);Y(e.body,t),_().LexicalEnvironment=t;const r=ne(e.body);return _().LexicalEnvironment=n,r}case"BreakStatement":return new m("break",y);case"ContinueStatement":return new m("continue",y);case"EmptyStatement":case"FunctionDeclaration":return v(y);case"DoWhileStatement":return W(function(e){let n;for(;;){const t=q(e.body);if(!B(t))return A(t,n);if(t.Value!==y&&(n=t.Value),!k(q(e.test)))return v(n)}}(e));case"ExpressionStatement":case"TSAsExpression":return q(e.expression);case"ForInStatement":case"ForOfStatement":return W(function(e){const n=e.left,t="VariableDeclaration"===n.type?"var"===n.kind?"varBinding":"lexicalBinding":"assignment",r="lexicalBinding"===t?b(n):[],i="ForInStatement"===e.type?"enumerate":"iterate",o=function(e,n,t){const r=_(),i=r.LexicalEnvironment;if(e.length>0){const n=new a(i);for(const t of e)n.CreateMutableBinding(t,!1);r.LexicalEnvironment=n}const o=q(n);r.LexicalEnvironment=i;const s=k(o);return"enumerate"===t?null==s?new m("break",y):v(function*(e){for(const n in e)yield n}(s)):v(P(s))}(r,e.right,i);return"normal"!==o.Type?o:function(e,n,t,r,i){const o="assignment"===i?e:e.declarations[0].id,s=_().LexicalEnvironment;let c;const u="ObjectPattern"===o.type||"ArrayPattern"===o.type;for(;;){const{done:l,value:f}=t.next();if(l)return v(c);let d,p;if("lexicalBinding"===i){if(p=new a(s),S(e,p),_().LexicalEnvironment=p,!u){const[e]=b(o);d=U(e)}}else u||(d=q(o).Value);u?"assignment"===i?K(o,f):ie(o,f,"varBinding"===i?void 0:p):"lexicalBinding"===i?w(d,f):C(d,f);const m=q(n);if(_().LexicalEnvironment=s,!B(m)){const e=A(m,c);if("enumerate"!==r&&void 0!==t.return){const e=t.return();if(!e||!["object","function"].includes(typeof e))throw new TypeError("Iterator result is not an object")}return e}m.Value!==y&&(c=m.Value)}}(n,e.body,o.Value,i,t)}(e));case"ForStatement":return W(function(e){var n;if("VariableDeclaration"===(null===(n=e.init)||void 0===n?void 0:n.type)){if("var"===e.init.kind)return q(e.init),H(e.test,e.update,e.body,[]);const n=_().LexicalEnvironment,t=new a(n),r="const"===e.init.kind,i=b(e.init);for(const e of i)r?t.CreateImmutableBinding(e,!0):t.CreateMutableBinding(e,!1);_().LexicalEnvironment=t,q(e.init);const o=r?[]:Array.from(i),s=H(e.test,e.update,e.body,o);return _().LexicalEnvironment=n,s}return e.init&&k(q(e.init)),H(e.test,e.update,e.body,[])}(e));case"FunctionExpression":return ue(e),v(function(e){const n=_().LexicalEnvironment;if(e.id){const t=e.id.name,r=new a(n);r.CreateImmutableBinding(t,!1);const i=re(e,r,!0);return r.InitializeBinding(t,i),i}return re(e,n,!0)}(e));case"IfStatement":return k(q(e.test))?(null!==(i=F.beforeBranch)&&void 0!==i&&i.call(F,e,"if"),A(q(e.consequent),void 0)):(null!==(o=F.beforeBranch)&&void 0!==o&&o.call(F,e,"else"),e.alternate?A(q(e.alternate),void 0):v(void 0));case"ReturnStatement":{let n;return e.argument&&(n=k(q(e.argument))),new m("return",n)}case"ThrowStatement":throw k(q(e.argument));case"UpdateExpression":{const n=q(e.argument).Value,t=Number(k(n)),r="++"===e.operator?t+1:t-1;return C(n,r),v(e.prefix?r:t)}case"SwitchCase":return ne(e.consequent);case"SwitchStatement":{const n=k(q(e.discriminant)),t=_().LexicalEnvironment,r=new a(t);Y(e.cases,r),_().LexicalEnvironment=r;const i=function(e,n){let t;const r=e.findIndex((e=>!e.test)),i=r>=0,o=i?e.slice(0,r):e;let a=!1;for(const e of o)if(a||(a=G(e,n)),a){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}if(!i)return v(t);let s=!1;const c=e.slice(r+1);if(!a)for(const e of c)if(s||(s=G(e,n)),s){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}if(s)return v(t);const u=q(e[r]);if(u.Value!==y&&(t=u.Value),"normal"!==u.Type)return A(u,t);for(const e of c){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}return v(t)}(e.cases,n);return _().LexicalEnvironment=t,W(i)}case"TryStatement":{let n;try{n=q(e.block)}catch(t){if(!e.handler)throw t;var s;null===(s=F.beforeEvaluate)||void 0===s||s.call(F,e.handler),n=function(e,n){if(!e.param)return q(e.body);const t=_().LexicalEnvironment,r=new a(t);for(const n of b(e.param))r.CreateMutableBinding(n,!1);_().LexicalEnvironment=r,ie(e.param,n,r);const i=q(e.body);return _().LexicalEnvironment=t,i}(e.handler,t)}finally{if(e.finalizer){const t=q(e.finalizer);"normal"!==t.Type&&(n=t)}}return n}case"VariableDeclaration":{let n;for(const t of e.declarations)if(t.init)if("Identifier"===t.id.type){const r=U(t.id.name),i=k(q(t.init));n="var"===e.kind?C(r,i):w(r,i)}else{const r=k(q(t.init));n=ie(t.id,r,"var"===e.kind?void 0:_().LexicalEnvironment)}else n="var"===e.kind?v(y):w(U(t.id.name),void 0);return n}case"WhileStatement":return W(function(e){let n;for(;;){if(!k(q(e.test)))return v(n);const t=q(e.body);if(!B(t))return A(t,n);t.Value!==y&&(n=t.Value)}}(e))}throw new SyntaxError(`Unsupported node type \`${e.type}\``)}function _(){return z[z.length-1]}function U(e,n){return n||(n=_().LexicalEnvironment),I(n,e,!0)}function W(e){return"break"===e.Type?e.Value===y?v(void 0):v(e.Value):e}function G(e,n){return n===k(q(e.test))}function H(e,n,t,r){let i;for(J(r);;){if(e&&!k(q(e)))return v(i);const o=q(t);if(!B(o))return A(o,i);o.Value&&(i=o.Value),J(r),n&&k(q(n))}}function J(e){if(0===e.length)return;const n=_().LexicalEnvironment,t=n.OuterEnv,r=new a(t);for(const t of e){r.CreateMutableBinding(t,!1);const e=n.GetBindingValue(t,!1);r.InitializeBinding(t,e)}_().LexicalEnvironment=r}function K(e,n){if("ObjectPattern"===e.type)return T(n),e.properties.length>0&&function(e,n){const t=new Set;for(const r of e)if("Property"===r.type){const e=r.computed||"Identifier"!==r.key.type?oe(r.key):r.key.name,i="AssignmentPattern"===r.value.type?r.value.left:r.value;if("Identifier"===i.type){const o=U(i.name);let a=V(n,e);"AssignmentPattern"===r.value.type&&void 0===a&&(a=k(q(r.value.right))),C(o,a),t.add(e)}else Q(r.value,n,e),t.add(e)}else X(r,n,t)}(e.properties,n),v(y);const t=P(n);return function(e,n){let t=v(y);for(const r of e){if(!r){n.next(),t=v(y);continue}const e="RestElement"===r.type?r.argument:"AssignmentPattern"===r.type?r.left:r,i="ArrayPattern"===e.type||"ObjectPattern"===e.type;let o,a;if(i||(o=q(e).Value),"RestElement"!==r.type){const{done:e,value:t}=n.next(),i=e?void 0:t;a="AssignmentPattern"===r.type&&void 0===i?k(q(r.right)):i}else{a=[];let e=0;for(;;){const{done:t,value:r}=n.next();if(t)break;a[e]=r,e++}}t=i?K(e,a):C(o,a)}return t}(e.elements,t)}function Q(e,n,t){const r="AssignmentPattern"===e.type?e.left:e,i="ArrayPattern"===r.type||"ObjectPattern"===r.type;let o;i||(o=q(r).Value);const a=V(n,t);let s;return s="AssignmentPattern"===e.type&&void 0===a?k(q(e.right)):a,i?K(r,s):C(o,s)}function X(e,n,t){return C(q(e.argument).Value,x({},n,t))}function Y(e,n){const t=h(e,{var:!1,topLevel:!1});for(const e of t){const t="VariableDeclaration"===e.type&&"const"===e.kind;for(const r of b(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1);if("FunctionDeclaration"===e.type){const[t]=b(e),r=te(e,n);n.InitializeBinding(t,r)}}}function Z(e,t,r,i){let o;t instanceof p&&E(t)&&(o=t.Base);const a=ee(r);if("function"!=typeof e){const e=n.substring(i.start,i.end);throw new TypeError(`${e} is not a function`)}const s=e.apply(o,a);return j(s),v(s)}function ee(e){const n=[];if(Array.isArray(e))for(const t of e)if("SpreadElement"===t.type){const e=k(q(t.argument));n.push(...e)}else n.push(k(q(t)));else{n.push(function(e){const n=N.get(e);if(n)return n;const t=e.quasis.map((e=>e.value.raw)),r=e.quasis.map((e=>e.value.cooked));return Object.freeze(t),Object.defineProperty(r,"raw",{value:t,writable:!1,enumerable:!1,configurable:!1}),Object.freeze(r),N.set(e,r),r}(e));for(const t of e.expressions)n.push(k(q(t)))}return n}function ne(e){let n=v(y);for(const t of e){const e=q(t);if("normal"!==e.Type)return e;n=A(n,e.Value)}return n}function te(e,n){return re(e,n,!0)}function re(e,n,t){const o=function(){return function(e,n){var t;null===(t=F.beforeCall)||void 0===t||t.call(F,e[c]),function(e){const n=new i;n.Function=e;const t=new s(e[f]);n.VariableEnvironment=t,n.LexicalEnvironment=t,z.push(n)}(e);const o=function(e,n){return function(e,n,t){return function(e,n){const t=_(),i=e[l],o=e[u],s=b(o),c=g(o),f=h(i,{var:!0,topLevel:!0}),d=b(f),p=[],m=[];for(let e=f.length-1;e>=0;e--){const n=f[e];if("FunctionDeclaration"===n.type){ue(n);const[e]=b(n);p.includes(e)||(p.unshift(e),m.unshift(n))}else if(null!=r&&r.noVar)throw new SyntaxError("Var declaration is not recommended, use `let` or `const` instead")}const v=t.LexicalEnvironment;for(const e of s)v.CreateMutableBinding(e,!1);let y;if(se(o,P(n),v),c){y=new a(v),t.VariableEnvironment=y;for(const e of d){let n;y.CreateMutableBinding(e,!1),s.includes(e)&&!p.includes(e)&&(n=v.GetBindingValue(e,!1)),y.InitializeBinding(e,n)}}else{for(const e of d)s.includes(e)||(v.CreateMutableBinding(e,!1),v.InitializeBinding(e,void 0));y=v}const E=y;t.LexicalEnvironment=E;const w=h(i,{var:!1,topLevel:!0});for(const e of w)for(const n of b(e))"const"===e.kind?E.CreateImmutableBinding(n,!0):E.CreateMutableBinding(n,!1);for(const e of m){const[n]=b(e),t=te(e,E);y.SetMutableBinding(n,t,!1)}}(n,t),Array.isArray(e)?ne(e):new m("return",k(q(e)))}(e[l],e,n)}(e,n);if(z.pop(),"return"===o.Type)return o.Value}(o,arguments)};return Object.defineProperties(o,{[c]:{value:e},[u]:{value:e.params},[l]:{value:"BlockStatement"===e.body.type?e.body.body:e.body},[f]:{value:n},[d]:{value:t}}),o}function ie(e,n,t){switch(e.type){case"Identifier":return function(e,n,t){return t.InitializeBinding(e,n),v(y)}(e.name,n,t);case"ObjectPattern":return T(n),function(e,n,t){const r=new Set;for(const i of e){if("RestElement"===i.type)return ae(i,n,t,r);if(i.computed||"Identifier"!==i.key.type){const e=oe(i.key);ce(i.value,n,t,e),r.add(e)}else ce(i.value,n,t,i.key.name),r.add(i.key.name)}return v(y)}(e.properties,n,t);case"ArrayPattern":{const r=P(n);return se(e.elements,r,t)}}}function oe(e){return L(k(q(e)))}function ae(e,n,t,r){const i=U(e.argument.name,t),o=x({},n,r);return t?w(i,o):C(i,o)}function se(e,n,t){if(0===e.length)return v(y);let r;for(const i of e)if(i)if("RestElement"===i.type)if("Identifier"===i.argument.type){const e=U(i.argument.name,t),o=[];let a=0;for(;;){const{done:i,value:s}=n.next();if(i){r=t?w(e,o):C(e,o);break}o[a]=s,a++}}else{const e=[];let o=0;for(;;){const{done:a,value:s}=n.next();if(a){r=ie(i.argument,e,t);break}e[o]=s,o++}}else{const e="AssignmentPattern"===i.type?i.left:i;switch(e.type){case"ObjectPattern":case"ArrayPattern":{let o;const{done:a,value:s}=n.next();a||(o=s),"AssignmentPattern"===i.type&&void 0===o&&(o=k(q(i.right))),r=ie(e,o,t);break}case"Identifier":{const o=U(e.name,t);let a;const{done:s,value:c}=n.next();s||(a=c),"AssignmentPattern"===i.type&&void 0===a&&(a=k(q(i.right))),r=t?w(o,a):C(o,a);break}}}else n.next(),r=v(y);return r}function ce(e,n,t,r){if("Identifier"===e.type||"AssignmentPattern"===e.type&&"Identifier"===e.left.type){const i=U("Identifier"===e.type?e.name:e.left.name,t);let o=V(n,r);return"AssignmentPattern"===e.type&&void 0===o&&(o=k(q(e.right))),t?w(i,o):C(i,o)}let i=V(n,r);return"AssignmentPattern"===e.type&&void 0===i&&(i=k(q(e.right))),ie("AssignmentPattern"===e.type?e.left:e,i,t)}function ue(e){if(e.async||e.generator)throw new SyntaxError((e.async?"Async":"Generator")+" function is not allowed");if(R&&!e.expression)throw new SyntaxError("Only an `Expression` is allowed in `ArrowFunctionExpression`'s body")}if(R)return k(q(e));null===(t=F.beforeEvaluate)||void 0===t||t.call(F,e),ue(e);const[le]=b(e);D.CreateImmutableBinding(le,!0);const fe=te(e,D);return D.InitializeBinding(le,fe),fe}class D{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0)}}class ${constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingSet",new Set),this.OuterEnv=e}HasBinding(e){return this.bindingSet.has(e)}CreateBinding(e){this.bindingSet.add(e)}}function z(e){let{expressionOnly:n,visitors:t,withParent:r,hooks:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new Set,a=[],s=new $(null),c=new D;function u(){return a[a.length-1]}function l(e,n,t){for(const r of n)f(e[r],null==t?void 0:t.concat({node:e,key:r}))}function f(e,r){if(Array.isArray(e))e.forEach(((e,n)=>{f(e,r?r.slice(0,-1).concat({...r[r.length-1],index:n}):r)}));else if(e){var a,s;switch(null===(a=i.beforeVisit)||void 0===a||a.call(i,e,r),function(e){var n,r;t&&(n=t,r=e.type,Object.prototype.hasOwnProperty.call(n,r))&&t[e.type](e)}(e),e.type){case"Identifier":var c;return h=e.name,void(p(u().LexicalEnvironment,h)||(null===(c=i.beforeVisitGlobal)||void 0===c||c.call(i,e,r),o.add(e.name)));case"ArrayExpression":case"ArrayPattern":return void l(e,["elements"],r);case"ArrowFunctionExpression":return void v(y(e,u().LexicalEnvironment),r);case"AssignmentPattern":case"BinaryExpression":case"LogicalExpression":return void l(e,["left","right"],r);case"CallExpression":case"NewExpression":return void l(e,["callee","arguments"],r);case"ChainExpression":return void l(e,["expression"],r);case"ConditionalExpression":return void l(e,["test","consequent","alternate"],r);case"MemberExpression":return l(e,["object"],r),void(e.computed&&l(e,["property"],r));case"ObjectExpression":case"ObjectPattern":return void l(e,["properties"],r);case"Property":return e.computed&&l(e,["key"],r),void l(e,["value"],r);case"RestElement":case"SpreadElement":case"UnaryExpression":return void l(e,["argument"],r);case"SequenceExpression":case"TemplateLiteral":return void l(e,["expressions"],r);case"TaggedTemplateExpression":return void l(e,["tag","quasi"],r);case"Literal":return}if(!n)switch(e.type){case"AssignmentExpression":return void l(e,["right","left"],r);case"BlockStatement":{if(!e.body.length)return;const n=u(),t=n.LexicalEnvironment,i=new $(t);return m(e.body,i),n.LexicalEnvironment=i,l(e,["body"],r),void(n.LexicalEnvironment=t)}case"BreakStatement":case"ContinueStatement":case"EmptyStatement":return;case"CatchClause":{const n=u(),t=n.LexicalEnvironment,i=new $(t);return d(e.param,i),n.LexicalEnvironment=i,l(e,["param","body"],r),void(n.LexicalEnvironment=t)}case"DoWhileStatement":return void l(e,["body","test"],r);case"ExpressionStatement":case"TSAsExpression":return void l(e,["expression"],r);case"ForInStatement":case"ForOfStatement":{const n="VariableDeclaration"===e.left.type&&"var"!==e.left.kind,t=u(),i=t.LexicalEnvironment;if(n){const n=new $(i);d(e.left,n),t.LexicalEnvironment=n}if(l(e,["right"],r),t.LexicalEnvironment=i,n){const n=new $(i);d(e.left,n),t.LexicalEnvironment=n}return l(e,["left","body"],r),void(t.LexicalEnvironment=i)}case"ForStatement":{var g;const n="VariableDeclaration"===(null===(g=e.init)||void 0===g?void 0:g.type)&&"var"!==e.init.kind,t=u(),i=t.LexicalEnvironment;if(n){const n=new $(i);d(e.init,n),t.LexicalEnvironment=n}return l(e,["init","test","body","update"],r),void(t.LexicalEnvironment=i)}case"FunctionDeclaration":{const[n]=b(e),t=u().LexicalEnvironment,i=y(e,t);return t.CreateBinding(n),void v(i,r)}case"FunctionExpression":{const n=function(e){const n=u().LexicalEnvironment;if(!e.id)return y(e,n);const t=e.id.name,r=new $(n);return r.CreateBinding(t),y(e,r)}(e);return void v(n,r)}case"IfStatement":return void l(e,["test","consequent","alternate"],r);case"ReturnStatement":case"ThrowStatement":case"UpdateExpression":return void l(e,["argument"],r);case"SwitchCase":return void l(e,["test","consequent"],r);case"SwitchStatement":{l(e,["discriminant"],r);const n=u(),t=n.LexicalEnvironment,i=new $(t);return m(e.cases,i),n.LexicalEnvironment=i,l(e,["cases"],r),void(n.LexicalEnvironment=t)}case"TryStatement":return void l(e,["block","handler","finalizer"],r);case"VariableDeclaration":return void l(e,["declarations"],r);case"VariableDeclarator":return void l(e,["id","init"],r);case"WhileStatement":return void l(e,["test","body"],r)}(null===(s=i.beforeVisitUnknown)||void 0===s?void 0:s.call(i,e,r))||console.warn(`Unsupported node type \`${e.type}\``)}var h}function d(e,n){for(const t of b(e))n.CreateBinding(t)}function p(e,n){return!!e&&(e.HasBinding(n)||p(e.OuterEnv,n))}function m(e,n){d(h(e,{var:!1,topLevel:!1}),n)}function v(e,n){!function(e){const n=new D,t=new $(e.Environment);n.VariableEnvironment=t,n.LexicalEnvironment=t,a.push(n)}(e),function(e,n){const t=u(),r=e.ECMAScriptCode,i=e.FormalParameters,o=g(i),a=b(h(r,{var:!0,topLevel:!0})),s=t.LexicalEnvironment;let c;if(d(i,s),f(i,null==n?void 0:n.concat({node:e.Function,key:"params"})),o){c=new $(s),t.VariableEnvironment=c;for(const e of a)c.CreateBinding(e)}else{for(const e of a)s.CreateBinding(e);c=s}const l=c;t.LexicalEnvironment=l,d(h(r,{var:!1,topLevel:!0}),l)}(e,n),f(e.ECMAScriptCode,null==n?void 0:n.concat({node:e.Function,key:"body"}).concat("BlockStatement"===e.Function.body.type?{node:e.Function.body,key:"body"}:[])),a.pop()}function y(e,n){return{Function:e,FormalParameters:e.params,ECMAScriptCode:"BlockStatement"===e.body.type?e.body.body:e.body,Environment:n}}return c.VariableEnvironment=s,c.LexicalEnvironment=s,a.push(c),f(e,r?[]:void 0),o}var N=t(6667);function q(e){let{typescript:n,...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){let{typescript:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=(0,N.parse)(e,{plugins:["estree",n&&"typescript"].filter(Boolean),strictMode:!0,attachComment:!1}).program.body,r=n?[]:t;if(n)for(const e of t)if(e.type.startsWith("TS")){if(/Enum|Import|Export/.test(e.type))throw new SyntaxError(`Unsupported TypeScript syntax: ${e.type}`)}else r.push(e);if(0===r.length)throw new SyntaxError("Function declaration not found");if(r.length>1||"FunctionDeclaration"!==r[0].type)throw new SyntaxError(`Expect a single function declaration at top level, but received: ${r.map((e=>`"${e.type}"`)).join(", ")}`);return r[0]}(e,{typescript:n});return{function:r,attemptToVisitGlobals:z(r,t)}}function _(e,n){const t=[],r=e.replace(/^\s*<%[~=]?\s|\s%>\s*$/g,(e=>(t.push(e),""))),i=function(e){return(0,N.parseExpression)(e,{plugins:["estree",["pipelineOperator",{proposal:"minimal"}]],attachComment:!1})}(r);return{expression:i,attemptToVisitGlobals:z(i,{...n,expressionOnly:!0}),source:r,prefix:t[0],suffix:t[1]}}function U(e){return/^\s*<%[~=]?\s/.test(e)&&/\s%>\s*$/.test(e)}function W(e){return/^\s*<%~\s/.test(e)}function G(e){return/^\s*<%=\s/.test(e)&&/\s%>\s*$/.test(e)}}}]);
2
- //# sourceMappingURL=1122.5e99d930.js.map