@next-core/runtime 1.57.5 → 1.58.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/StoryboardFunctionRegistry.js +62 -45
- package/dist/cjs/StoryboardFunctionRegistry.js.map +1 -1
- package/dist/cjs/internal/Renderer.js +4 -2
- package/dist/cjs/internal/Renderer.js.map +1 -1
- package/dist/cjs/internal/compute/getGeneralGlobals.js.map +1 -1
- package/dist/cjs/internal/interfaces.js.map +1 -1
- package/dist/cjs/internal/secret_internals.js +4 -1
- package/dist/cjs/internal/secret_internals.js.map +1 -1
- package/dist/esm/StoryboardFunctionRegistry.js +62 -45
- package/dist/esm/StoryboardFunctionRegistry.js.map +1 -1
- package/dist/esm/internal/Renderer.js +4 -2
- package/dist/esm/internal/Renderer.js.map +1 -1
- package/dist/esm/internal/compute/getGeneralGlobals.js.map +1 -1
- package/dist/esm/internal/interfaces.js.map +1 -1
- package/dist/esm/internal/secret_internals.js +4 -1
- package/dist/esm/internal/secret_internals.js.map +1 -1
- package/dist/types/StoryboardFunctionRegistry.d.ts +4 -3
- package/dist/types/internal/compute/getGeneralGlobals.d.ts +1 -1
- package/dist/types/internal/interfaces.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { MicroApp, StoryboardFunction } from "@next-core/types";
|
|
1
|
+
import type { MicroApp, StoryboardFunction, TransformedFunction } from "@next-core/types";
|
|
2
2
|
import { cook, precookFunction, EstreeNode, __dev_only_getGlobalExecutionContextStack } from "@next-core/cook";
|
|
3
3
|
import { supply } from "@next-core/supply";
|
|
4
4
|
import type _ from "lodash";
|
|
5
5
|
/** @internal */
|
|
6
6
|
export type ReadonlyStoryboardFunctions = Readonly<Record<string, Function>>;
|
|
7
7
|
/** @internal */
|
|
8
|
-
export type StoryboardFunctionPatch = Pick<StoryboardFunction, "source" | "typescript">;
|
|
8
|
+
export type StoryboardFunctionPatch = Pick<StoryboardFunction, "source" | "typescript" | "transformed">;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export interface StoryboardFunctionRegistry {
|
|
11
11
|
/** A readonly proxy for accessing cooked storyboard functions. */
|
|
@@ -26,6 +26,7 @@ export interface RuntimeStoryboardFunction {
|
|
|
26
26
|
cooked?: Function;
|
|
27
27
|
deps: Set<string> | string[];
|
|
28
28
|
hasPermissionsCheck: boolean;
|
|
29
|
+
transformed?: TransformedFunction;
|
|
29
30
|
}
|
|
30
31
|
/** @internal */
|
|
31
32
|
export interface FunctionCoverageCollector {
|
|
@@ -39,7 +40,7 @@ export interface FunctionCoverageSettings {
|
|
|
39
40
|
createCollector(name: string): FunctionCoverageCollector;
|
|
40
41
|
}
|
|
41
42
|
/** @internal */
|
|
42
|
-
export type PartialMicroApp = Pick<MicroApp, "id" | "isBuildPush">;
|
|
43
|
+
export type PartialMicroApp = Pick<MicroApp, "id" | "isBuildPush" | "config">;
|
|
43
44
|
/** @internal */
|
|
44
45
|
export declare function StoryboardFunctionRegistryFactory({ widgetId, widgetVersion, collectCoverage, debuggerOverrides, }?: {
|
|
45
46
|
widgetId?: string;
|
|
@@ -9,4 +9,4 @@ export interface GeneralGlobalsOptions {
|
|
|
9
9
|
isStoryboardFunction?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export type PartialMicroApp = Pick<MicroApp, "id" | "isBuildPush">;
|
|
12
|
-
export declare function getGeneralGlobals(attemptToVisitGlobals: Set<string
|
|
12
|
+
export declare function getGeneralGlobals(attemptToVisitGlobals: Set<string> | string[], options: GeneralGlobalsOptions): Record<string, unknown>;
|
|
@@ -40,6 +40,7 @@ export interface RenderBrick extends BaseRenderNode, RuntimeBrick {
|
|
|
40
40
|
export interface RenderPlaceholder extends BaseRenderNode {
|
|
41
41
|
tag: RenderTag.PLACEHOLDER;
|
|
42
42
|
return: RenderReturnNode;
|
|
43
|
+
tracking?: boolean;
|
|
43
44
|
}
|
|
44
45
|
export interface BaseRenderNode {
|
|
45
46
|
tag: RenderTag;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.1",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/runtime",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@next-core/color-theme": "^0.4.8",
|
|
48
|
-
"@next-core/cook": "^2.5.
|
|
48
|
+
"@next-core/cook": "^2.5.3",
|
|
49
49
|
"@next-core/http": "^1.2.8",
|
|
50
|
-
"@next-core/i18n": "^1.0.
|
|
51
|
-
"@next-core/inject": "^1.0.
|
|
50
|
+
"@next-core/i18n": "^1.0.70",
|
|
51
|
+
"@next-core/inject": "^1.0.48",
|
|
52
52
|
"@next-core/loader": "^1.6.11",
|
|
53
|
-
"@next-core/supply": "^2.
|
|
54
|
-
"@next-core/types": "^1.
|
|
55
|
-
"@next-core/utils": "^1.7.
|
|
53
|
+
"@next-core/supply": "^2.3.0",
|
|
54
|
+
"@next-core/types": "^1.14.0",
|
|
55
|
+
"@next-core/utils": "^1.7.28",
|
|
56
56
|
"@ungap/event-target": "^0.2.4",
|
|
57
57
|
"compare-versions": "^6.1.1",
|
|
58
58
|
"history": "^4.10.1",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"@next-core/build-next-libs": "^1.0.20",
|
|
68
68
|
"@next-core/test-next": "^1.1.7"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7b3b28aeb872b2a0f79fb7871da28141b3290ce0"
|
|
71
71
|
}
|