@nocobase/plugin-flow-engine 2.1.0-beta.43 → 2.1.0-beta.44

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 (86) hide show
  1. package/dist/externalVersion.js +9 -9
  2. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  3. package/dist/node_modules/acorn/package.json +1 -1
  4. package/dist/node_modules/acorn-jsx/package.json +1 -1
  5. package/dist/node_modules/acorn-walk/package.json +1 -1
  6. package/dist/node_modules/ses/package.json +1 -1
  7. package/dist/node_modules/zod/package.json +1 -1
  8. package/dist/server/flow-surfaces/authoring-validation.js +160 -21
  9. package/dist/server/flow-surfaces/catalog.js +9 -5
  10. package/dist/server/flow-surfaces/chart-config.js +29 -6
  11. package/dist/server/flow-surfaces/contract-guard.js +39 -5
  12. package/dist/server/flow-surfaces/default-block-actions.js +2 -0
  13. package/dist/server/flow-surfaces/errors.d.ts +15 -0
  14. package/dist/server/flow-surfaces/errors.js +49 -3
  15. package/dist/server/flow-surfaces/filter-group.d.ts +7 -1
  16. package/dist/server/flow-surfaces/filter-group.js +175 -71
  17. package/dist/server/flow-surfaces/public-data-surface-default-filter.js +2 -1
  18. package/dist/server/flow-surfaces/runjs-authoring/ast/bindings.d.ts +66 -0
  19. package/dist/server/flow-surfaces/runjs-authoring/ast/bindings.js +661 -0
  20. package/dist/server/flow-surfaces/runjs-authoring/ast/execution.d.ts +20 -0
  21. package/dist/server/flow-surfaces/runjs-authoring/ast/execution.js +275 -0
  22. package/dist/server/flow-surfaces/runjs-authoring/ast/parser.d.ts +16 -0
  23. package/dist/server/flow-surfaces/runjs-authoring/ast/parser.js +130 -0
  24. package/dist/server/flow-surfaces/runjs-authoring/ast/react-values.d.ts +20 -0
  25. package/dist/server/flow-surfaces/runjs-authoring/ast/react-values.js +401 -0
  26. package/dist/server/flow-surfaces/runjs-authoring/ast/request-config.d.ts +21 -0
  27. package/dist/server/flow-surfaces/runjs-authoring/ast/request-config.js +199 -0
  28. package/dist/server/flow-surfaces/runjs-authoring/ast/source.d.ts +70 -0
  29. package/dist/server/flow-surfaces/runjs-authoring/ast/source.js +895 -0
  30. package/dist/server/flow-surfaces/runjs-authoring/ast/static-bindings.d.ts +23 -0
  31. package/dist/server/flow-surfaces/runjs-authoring/ast/static-bindings.js +618 -0
  32. package/dist/server/flow-surfaces/runjs-authoring/ast/static-values.d.ts +196 -0
  33. package/dist/server/flow-surfaces/runjs-authoring/ast/static-values.js +1777 -0
  34. package/dist/server/flow-surfaces/runjs-authoring/ast/walk.d.ts +10 -0
  35. package/dist/server/flow-surfaces/runjs-authoring/ast/walk.js +55 -0
  36. package/dist/server/flow-surfaces/runjs-authoring/collectors.d.ts +12 -0
  37. package/dist/server/flow-surfaces/runjs-authoring/collectors.js +589 -0
  38. package/dist/server/flow-surfaces/runjs-authoring/index.d.ts +2 -25
  39. package/dist/server/flow-surfaces/runjs-authoring/index.js +5 -11138
  40. package/dist/server/flow-surfaces/runjs-authoring/inspect.d.ts +13 -0
  41. package/dist/server/flow-surfaces/runjs-authoring/inspect.js +149 -0
  42. package/dist/server/flow-surfaces/runjs-authoring/internal-types.d.ts +333 -0
  43. package/dist/server/flow-surfaces/runjs-authoring/internal-types.js +36 -0
  44. package/dist/server/flow-surfaces/runjs-authoring/rules.js +2 -0
  45. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +67 -0
  46. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +757 -0
  47. package/dist/server/flow-surfaces/runjs-authoring/runtime/errors.d.ts +22 -0
  48. package/dist/server/flow-surfaces/runjs-authoring/runtime/errors.js +91 -0
  49. package/dist/server/flow-surfaces/runjs-authoring/runtime/source-budget.d.ts +16 -0
  50. package/dist/server/flow-surfaces/runjs-authoring/runtime/source-budget.js +115 -0
  51. package/dist/server/flow-surfaces/runjs-authoring/runtime/surface.d.ts +19 -0
  52. package/dist/server/flow-surfaces/runjs-authoring/runtime/surface.js +140 -0
  53. package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +91 -0
  54. package/dist/server/flow-surfaces/runjs-authoring/runtime/types.js +24 -0
  55. package/dist/server/flow-surfaces/runjs-authoring/scan/ctx-api.d.ts +138 -0
  56. package/dist/server/flow-surfaces/runjs-authoring/scan/ctx-api.js +1779 -0
  57. package/dist/server/flow-surfaces/runjs-authoring/scan/filter.d.ts +10 -0
  58. package/dist/server/flow-surfaces/runjs-authoring/scan/filter.js +1583 -0
  59. package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +195 -0
  60. package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +463 -0
  61. package/dist/server/flow-surfaces/runjs-authoring/scan/react-render.d.ts +48 -0
  62. package/dist/server/flow-surfaces/runjs-authoring/scan/react-render.js +379 -0
  63. package/dist/server/flow-surfaces/runjs-authoring/scan/react.d.ts +26 -0
  64. package/dist/server/flow-surfaces/runjs-authoring/scan/react.js +1441 -0
  65. package/dist/server/flow-surfaces/runjs-authoring/scan/resource.d.ts +23 -0
  66. package/dist/server/flow-surfaces/runjs-authoring/scan/resource.js +1427 -0
  67. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +91 -0
  68. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +889 -0
  69. package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
  70. package/dist/server/flow-surfaces/runjs-authoring/unknown-global-stop/index.d.ts +10 -0
  71. package/dist/server/flow-surfaces/runjs-authoring/unknown-global-stop/index.js +40 -0
  72. package/dist/server/flow-surfaces/runjs-authoring/validators/index.d.ts +12 -0
  73. package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +887 -0
  74. package/dist/server/flow-surfaces/service-helpers.d.ts +29 -0
  75. package/dist/server/flow-surfaces/service-helpers.js +105 -0
  76. package/dist/server/flow-surfaces/service-utils.d.ts +15 -3
  77. package/dist/server/flow-surfaces/service-utils.js +5 -4
  78. package/dist/server/flow-surfaces/service.d.ts +4 -0
  79. package/dist/server/flow-surfaces/service.js +360 -30
  80. package/dist/server/flow-surfaces/types.d.ts +3 -0
  81. package/dist/server/repository.d.ts +12 -1
  82. package/dist/server/repository.js +195 -23
  83. package/dist/swagger/flow-surfaces.d.ts +175 -0
  84. package/dist/swagger/flow-surfaces.js +130 -51
  85. package/dist/swagger/index.d.ts +175 -0
  86. package/package.json +2 -2
@@ -0,0 +1,70 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { CallArgumentSource, SourceRange } from '../internal-types';
10
+ export declare function maskJavaScriptSource(source: string): string;
11
+ export declare function maskJavaScriptComments(source: string): string;
12
+ export declare function maskTemplateLiteralComments(source: string, chars: string[], start: number): number;
13
+ export declare function maskTemplateLiteral(source: string, chars: string[], start: number): number;
14
+ export declare function findTemplateExpressionEnd(source: string, start: number): number;
15
+ export declare function skipRegexLiteral(source: string, start: number): number;
16
+ export declare function isRegexLiteralStart(sourceLike: string | string[], slashIndex: number): boolean;
17
+ export declare function getPreviousSignificantToken(sourceLike: string | string[], beforeIndex: number): string;
18
+ export declare function getPreviousSignificantTokenInfo(sourceLike: string | string[], beforeIndex: number): {
19
+ token: string;
20
+ start: number;
21
+ end: number;
22
+ };
23
+ export declare function skipQuotedLiteral(source: string, start: number, quote: string): number;
24
+ export declare function skipTemplateLiteral(source: string, start: number): number;
25
+ export declare function findFunctionRanges(masked: string): SourceRange[];
26
+ export declare function collectFunctionRanges(masked: string, pattern: RegExp, ranges: SourceRange[]): void;
27
+ export declare function collectArrowExpressionRanges(masked: string, ranges: SourceRange[]): void;
28
+ export declare function collectMethodFunctionRanges(masked: string, ranges: SourceRange[]): void;
29
+ export declare function findBraceBodyAfter(masked: string, afterIndex: number): SourceRange | undefined;
30
+ export declare function collectMethodCandidates(masked: string): {
31
+ paramsStart: number;
32
+ paramsEnd: number;
33
+ bodyRange: SourceRange;
34
+ }[];
35
+ export declare function collectComputedMethodCandidates(masked: string, candidates: Array<{
36
+ paramsStart: number;
37
+ paramsEnd: number;
38
+ bodyRange: SourceRange;
39
+ }>): void;
40
+ export declare function findMethodPrefixToken(masked: string, beforeIndex: number): string;
41
+ export declare function findArrowExpressionEnd(masked: string, start: number): number;
42
+ export declare function findMatchingBrace(masked: string, openBrace: number): number;
43
+ export declare function findMatchingDelimiter(masked: string, openIndex: number): number;
44
+ export declare function collectBraceRanges(masked: string): SourceRange[];
45
+ export declare function collectStaticBlockRanges(masked: string): SourceRange[];
46
+ export declare function mergeRanges(ranges: SourceRange[]): SourceRange[];
47
+ export declare function isInsideRanges(index: number, ranges: SourceRange[]): boolean;
48
+ export declare function findMatches(masked: string, pattern: RegExp): {
49
+ index: number;
50
+ match: string;
51
+ }[];
52
+ export declare function trimBindingElement(pattern: string): string;
53
+ export declare function stripEnclosure(pattern: string, open: string, close: string): string;
54
+ export declare function splitTopLevel(value: string, separator: string): string[];
55
+ export declare function splitTopLevelWithRanges(value: string, separator: string): CallArgumentSource[];
56
+ export declare function findTopLevelChar(value: string, target: string): number;
57
+ export declare function readLeadingStringLiteral(value: string): {
58
+ value: string;
59
+ end: number;
60
+ };
61
+ export declare function readCompleteStringLiteral(value: string): {
62
+ value: string;
63
+ end: number;
64
+ };
65
+ export declare function skipJavaScriptTrivia(value: string, start: number): number;
66
+ export declare function getCallFirstArgumentSource(source: string, masked: string, index: number): string;
67
+ export declare function getCallArgumentSources(source: string, masked: string, index: number): CallArgumentSource[];
68
+ export declare function getCallArgumentSource(source: string, masked: string, index: number): string;
69
+ export declare function escapeRegExp(value: string): string;
70
+ export declare function getAstSource(node: any, source: string): string;