@next-core/brick-kit 2.134.2 → 2.136.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.
- package/CHANGELOG.md +36 -0
- package/dist/index.bundle.js +108 -68
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +108 -68
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Resolver.d.ts +3 -3
- package/dist/types/core/Resolver.d.ts.map +1 -1
- package/dist/types/core/StoryboardContext.d.ts +2 -2
- package/dist/types/core/StoryboardContext.d.ts.map +1 -1
- package/dist/types/internal/bindListeners.d.ts +2 -1
- package/dist/types/internal/bindListeners.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BrickConf, PluginRuntimeContext, DefineResolveConf, ResolveConf } from "@next-core/brick-types";
|
|
1
|
+
import { BrickConf, PluginRuntimeContext, DefineResolveConf, ResolveConf, ResolveOptions } from "@next-core/brick-types";
|
|
2
2
|
import { Kernel, RuntimeBrick } from "./exports";
|
|
3
3
|
export declare class Resolver {
|
|
4
4
|
private kernel;
|
|
@@ -10,8 +10,8 @@ export declare class Resolver {
|
|
|
10
10
|
resetRefreshQueue(): void;
|
|
11
11
|
defineResolves(resolves: DefineResolveConf[], context: PluginRuntimeContext): void;
|
|
12
12
|
resolve(brickConf: BrickConf, brick: RuntimeBrick, context?: PluginRuntimeContext): Promise<void>;
|
|
13
|
-
resolveOne(type: "brick", resolveConf: ResolveConf, conf: BrickConf, brick?: RuntimeBrick, context?: PluginRuntimeContext): Promise<void>;
|
|
14
|
-
resolveOne(type: "reference", resolveConf: ResolveConf, conf: Record<string, any>, brick?: RuntimeBrick, context?: PluginRuntimeContext): Promise<void>;
|
|
13
|
+
resolveOne(type: "brick", resolveConf: ResolveConf, conf: BrickConf, brick?: RuntimeBrick, context?: PluginRuntimeContext, options?: ResolveOptions): Promise<void>;
|
|
14
|
+
resolveOne(type: "reference", resolveConf: ResolveConf, conf: Record<string, any>, brick?: RuntimeBrick, context?: PluginRuntimeContext, options?: ResolveOptions): Promise<void>;
|
|
15
15
|
scheduleRefreshing(): void;
|
|
16
16
|
}
|
|
17
17
|
export declare class ResolveRequestError extends Error {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resolver.d.ts","sourceRoot":"","sources":["../../../src/core/Resolver.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,oBAAoB,EAIpB,iBAAiB,EACjB,WAAW,
|
|
1
|
+
{"version":3,"file":"Resolver.d.ts","sourceRoot":"","sources":["../../../src/core/Resolver.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,oBAAoB,EAIpB,iBAAiB,EACjB,WAAW,EAOX,cAAc,EACf,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAejD,qBAAa,QAAQ;IAMP,OAAO,CAAC,MAAM;IAL1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwC;IAC9D,OAAO,CAAC,YAAY,CAAyD;IAC7E,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6C;IAC7E,OAAO,CAAC,MAAM,CAAQ;gBAEF,MAAM,EAAE,MAAM;IAElC,iBAAiB,IAAI,IAAI;IAUzB,cAAc,CACZ,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,OAAO,EAAE,oBAAoB,GAC5B,IAAI;IAWD,OAAO,CACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,IAAI,CAAC;IA2BV,UAAU,CACd,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,SAAS,EACf,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IACV,UAAU,CACd,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IA6NhB,kBAAkB,IAAI,IAAI;CAgB3B;AAcD,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,EAAE,GAAG,CAAC;gBAEF,QAAQ,EAAE,GAAG;CAc1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContextConf, PluginRuntimeContext, StoryboardContextItem } from "@next-core/brick-types";
|
|
1
|
+
import { BrickEventHandlerCallback, ContextConf, PluginRuntimeContext, StoryboardContextItem } from "@next-core/brick-types";
|
|
2
2
|
import { RuntimeBrick } from "./exports";
|
|
3
3
|
export declare class StoryboardContextWrapper {
|
|
4
4
|
private readonly data;
|
|
@@ -8,7 +8,7 @@ export declare class StoryboardContextWrapper {
|
|
|
8
8
|
get(): Map<string, StoryboardContextItem>;
|
|
9
9
|
/** Get value of free-variable only. */
|
|
10
10
|
getValue(name: string): unknown;
|
|
11
|
-
updateValue(name: string, value: unknown, method: "assign" | "replace" | "refresh"): void;
|
|
11
|
+
updateValue(name: string, value: unknown, method: "assign" | "replace" | "refresh" | "load", callback?: BrickEventHandlerCallback): void;
|
|
12
12
|
define(contextConfs: ContextConf[], coreContext: PluginRuntimeContext, brick?: RuntimeBrick): Promise<void>;
|
|
13
13
|
syncDefine(contextConfs: ContextConf[], coreContext: PluginRuntimeContext, brick: RuntimeBrick): void;
|
|
14
14
|
private getResolveOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryboardContext.d.ts","sourceRoot":"","sources":["../../../src/core/StoryboardContext.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,oBAAoB,
|
|
1
|
+
{"version":3,"file":"StoryboardContext.d.ts","sourceRoot":"","sources":["../../../src/core/StoryboardContext.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,yBAAyB,EACzB,WAAW,EACX,oBAAoB,EAEpB,qBAAqB,EAEtB,MAAM,wBAAwB,CAAC;AAehC,OAAO,EAAE,YAAY,EAAiC,MAAM,WAAW,CAAC;AAIxE,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA4C;IACjE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;gBAElB,YAAY,CAAC,EAAE,MAAM;IAIjC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,IAAI;IAUpD,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAIzC,uCAAuC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI/B,WAAW,CACT,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,EACjD,QAAQ,CAAC,EAAE,yBAAyB,GACnC,IAAI;IAmHD,MAAM,CACV,YAAY,EAAE,WAAW,EAAE,EAC3B,WAAW,EAAE,oBAAoB,EACjC,KAAK,CAAC,EAAE,YAAY,GACnB,OAAO,CAAC,IAAI,CAAC;IAYhB,UAAU,CACR,YAAY,EAAE,WAAW,EAAE,EAC3B,WAAW,EAAE,oBAAoB,EACjC,KAAK,EAAE,YAAY,GAClB,IAAI;IAYP,OAAO,CAAC,iBAAiB;CAc1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BrickEventHandler, BrickEventsMap, BuiltinBrickEventHandler, CustomBrickEventHandler, PluginRuntimeContext, ExecuteCustomBrickEventHandler, SetPropsCustomBrickEventHandler, UseProviderEventHandler } from "@next-core/brick-types";
|
|
1
|
+
import { BrickEventHandler, BrickEventHandlerCallback, BrickEventsMap, BuiltinBrickEventHandler, CustomBrickEventHandler, PluginRuntimeContext, ExecuteCustomBrickEventHandler, SetPropsCustomBrickEventHandler, UseProviderEventHandler } from "@next-core/brick-types";
|
|
2
2
|
import { RuntimeBrick } from "../core/exports";
|
|
3
3
|
export declare function bindListeners(brick: HTMLElement, eventsMap: BrickEventsMap, context: PluginRuntimeContext): void;
|
|
4
4
|
export declare function unbindListeners(brick: HTMLElement): void;
|
|
@@ -8,4 +8,5 @@ export declare function isCustomHandler(handler: BrickEventHandler): handler is
|
|
|
8
8
|
export declare function isExecuteCustomHandler(handler: CustomBrickEventHandler): handler is ExecuteCustomBrickEventHandler;
|
|
9
9
|
export declare function isSetPropsCustomHandler(handler: CustomBrickEventHandler): handler is SetPropsCustomBrickEventHandler;
|
|
10
10
|
export declare function listenerFactory(handler: BrickEventHandler, context: PluginRuntimeContext, runtimeBrick: RuntimeBrick): EventListener;
|
|
11
|
+
export declare function eventCallbackFactory(callback: BrickEventHandlerCallback, getContext: () => PluginRuntimeContext): (type: "success" | "error" | "finally" | "progress") => (result?: unknown) => void;
|
|
11
12
|
//# sourceMappingURL=bindListeners.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindListeners.d.ts","sourceRoot":"","sources":["../../../src/internal/bindListeners.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"bindListeners.d.ts","sourceRoot":"","sources":["../../../src/internal/bindListeners.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,+BAA+B,EAE/B,uBAAuB,EAGxB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAGL,YAAY,EAEb,MAAM,iBAAiB,CAAC;AAkBzB,wBAAgB,aAAa,CAC3B,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,oBAAoB,GAC5B,IAAI,CAQN;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAQxD;AAcD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,iBAAiB,GACzB,OAAO,IAAI,wBAAwB,CAErC;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,iBAAiB,GACzB,OAAO,IAAI,uBAAuB,CAEpC;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,iBAAiB,GACzB,OAAO,IAAI,uBAAuB,CAOpC;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,IAAI,8BAA8B,CAE3C;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,IAAI,+BAA+B,CAE5C;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,oBAAoB,EAC7B,YAAY,EAAE,YAAY,GACzB,aAAa,CAkMf;AAwVD,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,yBAAyB,EACnC,UAAU,EAAE,MAAM,oBAAoB,UAG9B,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,eAExB,OAAO,UAsBpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.136.0",
|
|
4
4
|
"description": "Kernel",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-kit",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"test:ci": "cross-env NODE_ENV='test' CI=true jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@next-core/brick-types": "^2.
|
|
34
|
+
"@next-core/brick-types": "^2.73.0",
|
|
35
35
|
"@next-core/color-theme": "^0.4.3",
|
|
36
|
-
"@next-core/supply": "^1.0.
|
|
36
|
+
"@next-core/supply": "^1.0.59",
|
|
37
37
|
"@next-sdk/api-gateway-sdk": "^2.3.0",
|
|
38
38
|
"@next-sdk/auth-sdk": "^1.0.0",
|
|
39
39
|
"@next-sdk/cmdb-sdk": "^2.1.1",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@ant-design/icons": "^4.5.0",
|
|
50
50
|
"@next-core/brick-http": "^2.6.0",
|
|
51
|
-
"@next-core/brick-utils": "^2.39.
|
|
52
|
-
"@next-core/easyops-analytics": "^0.8.
|
|
53
|
-
"@next-core/illustrations": "^0.9.
|
|
51
|
+
"@next-core/brick-utils": "^2.39.5",
|
|
52
|
+
"@next-core/easyops-analytics": "^0.8.3",
|
|
53
|
+
"@next-core/illustrations": "^0.9.13",
|
|
54
54
|
"@next-core/pipes": "^1.0.6",
|
|
55
55
|
"antd": "~4.12.3",
|
|
56
56
|
"history": "^4.10.1",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"react-dom": "*",
|
|
82
82
|
"react-i18next": "*"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "bf4cf6a54ac0e4946e792c40316f509eae66e2fb"
|
|
85
85
|
}
|