@next-core/brick-kit 2.71.0 → 2.72.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 +11 -0
- package/dist/index.bundle.js +61 -39
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +61 -40
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/StoryboardFunctionRegistryFactory.d.ts +17 -0
- package/dist/types/core/StoryboardFunctionRegistryFactory.d.ts.map +1 -0
- package/dist/types/core/StoryboardFunctions.d.ts +1 -5
- package/dist/types/core/StoryboardFunctions.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SimpleFunction, StoryboardFunction } from "@next-core/brick-types";
|
|
2
|
+
/** @internal */
|
|
3
|
+
export declare type ReadonlyStoryboardFunctions = Readonly<Record<string, SimpleFunction>>;
|
|
4
|
+
/** @internal */
|
|
5
|
+
export declare type StoryboardFunctionPatch = Pick<StoryboardFunction, "source" | "typescript">;
|
|
6
|
+
/** @internal */
|
|
7
|
+
export interface StoryboardFunctionRegistry {
|
|
8
|
+
/** A readonly proxy for accessing cooked storyboard functions. */
|
|
9
|
+
storyboardFunctions: ReadonlyStoryboardFunctions;
|
|
10
|
+
/** Register storyboard functions. */
|
|
11
|
+
registerStoryboardFunctions(functions: StoryboardFunction[]): void;
|
|
12
|
+
/** Update a storyboard function during debugging. */
|
|
13
|
+
updateStoryboardFunction(name: string, data: StoryboardFunctionPatch): void;
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare function StoryboardFunctionRegistryFactory(): StoryboardFunctionRegistry;
|
|
17
|
+
//# sourceMappingURL=StoryboardFunctionRegistryFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryboardFunctionRegistryFactory.d.ts","sourceRoot":"","sources":["../../../src/core/StoryboardFunctionRegistryFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAIhC,gBAAgB;AAChB,oBAAY,2BAA2B,GAAG,QAAQ,CAChD,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAC/B,CAAC;AAEF,gBAAgB;AAChB,oBAAY,uBAAuB,GAAG,IAAI,CACxC,kBAAkB,EAClB,QAAQ,GAAG,YAAY,CACxB,CAAC;AAEF,gBAAgB;AAChB,MAAM,WAAW,0BAA0B;IACzC,kEAAkE;IAClE,mBAAmB,EAAE,2BAA2B,CAAC;IAEjD,qCAAqC;IACrC,2BAA2B,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAEnE,qDAAqD;IACrD,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAAC;CAC7E;AAED,gBAAgB;AAChB,wBAAgB,iCAAiC,IAAI,0BAA0B,CA8D9E"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare type ReadonlyStoryboardFunctions = Readonly<Record<string, SimpleFunction>>;
|
|
3
|
-
export declare function registerStoryboardFunctions(storyboard: RuntimeStoryboard): void;
|
|
4
|
-
export declare function getStoryboardFunctions(): ReadonlyStoryboardFunctions;
|
|
5
|
-
export {};
|
|
1
|
+
export declare const storyboardFunctions: Readonly<Record<string, import("@next-core/brick-types").SimpleFunction<unknown[], unknown>>>, registerStoryboardFunctions: (functions: import("@next-core/brick-types").StoryboardFunction[]) => void;
|
|
6
2
|
//# sourceMappingURL=StoryboardFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryboardFunctions.d.ts","sourceRoot":"","sources":["../../../src/core/StoryboardFunctions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StoryboardFunctions.d.ts","sourceRoot":"","sources":["../../../src/core/StoryboardFunctions.ts"],"names":[],"mappings":"AAEA,eAAO,MAAQ,mBAAmB,iGAAE,2BAA2B,4EAC1B,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export * from "./transformProperties";
|
|
|
26
26
|
export * from "./checkIf";
|
|
27
27
|
export { useCurrentTheme, useCurrentMode } from "./themeAndMode";
|
|
28
28
|
export * from "./featureFlags";
|
|
29
|
+
export * from "./core/StoryboardFunctionRegistryFactory";
|
|
29
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjE,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@ant-design/icons": "^4.5.0",
|
|
46
46
|
"@next-core/brick-http": "^2.3.2",
|
|
47
|
-
"@next-core/brick-utils": "^2.28.
|
|
47
|
+
"@next-core/brick-utils": "^2.28.3",
|
|
48
48
|
"@next-core/easyops-analytics": "^0.2.3",
|
|
49
49
|
"@next-core/illustrations": "^0.4.1",
|
|
50
50
|
"@next-core/pipes": "^1.0.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"react-dom": "*",
|
|
78
78
|
"react-i18next": "*"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "8aa92961d3f1864ff0a85f1a28876a90711739dd"
|
|
81
81
|
}
|