@quickbi/bi-types 3.0.42-beta.1 → 3.0.42-beta.3

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/cjs/index.d.ts CHANGED
@@ -25,5 +25,5 @@ export { OpenEventTypeEnum } from './open/common/event-types';
25
25
  export type { OpenDeviceTypeEnum } from './open/common/misc';
26
26
  export type { EnumAsUnion, Implements } from './open/common/tools';
27
27
  export { RouteKey } from './router/route-key';
28
- export { ROUTE_TREE, ROUTE_PATH_MAP } from './router/route-tree';
28
+ export { ROUTE_TREE, ROUTE_PATH_MAP, MOBILE_ROUTE_PATH_MAP } from './router/route-tree';
29
29
  export type { RouteTreeNode } from './router/route-tree';
package/cjs/index.js CHANGED
@@ -89,6 +89,7 @@ __export(src_exports, {
89
89
  LegendPositionType: () => LegendPositionType,
90
90
  LegendUnHighLightedValue: () => LegendUnHighLightedValue,
91
91
  LnglatGroupChildFlags: () => LnglatGroupChildFlags,
92
+ MOBILE_ROUTE_PATH_MAP: () => MOBILE_ROUTE_PATH_MAP,
92
93
  MultiSeparator: () => MultiSeparator,
93
94
  NegativeMode: () => NegativeMode,
94
95
  NumberFormats: () => NumberFormats,
@@ -3179,3 +3180,6 @@ var traverseRouteTree = function(node) {
3179
3180
  return result;
3180
3181
  };
3181
3182
  var ROUTE_PATH_MAP = traverseRouteTree(ROUTE_TREE);
3183
+ var MOBILE_ROUTE_PATH_MAP = traverseRouteTree(ROUTE_TREE.children.filter(function(item) {
3184
+ return item.key === RouteKey.mobileRoot;
3185
+ })[0]);
@@ -13,3 +13,5 @@ export interface RouteTreeNode {
13
13
  export declare const ROUTE_TREE: RouteTreeNode;
14
14
  /** 将整颗路径树打平,根据key索引 */
15
15
  export declare const ROUTE_PATH_MAP: Record<RouteKey, string>;
16
+ /** 移动端微应用很多path重复,构建一个移动端的路径索引,用于在hash路由下匹配 */
17
+ export declare const MOBILE_ROUTE_PATH_MAP: Record<RouteKey, string>;
package/esm/index.d.ts CHANGED
@@ -25,5 +25,5 @@ export { OpenEventTypeEnum } from './open/common/event-types';
25
25
  export type { OpenDeviceTypeEnum } from './open/common/misc';
26
26
  export type { EnumAsUnion, Implements } from './open/common/tools';
27
27
  export { RouteKey } from './router/route-key';
28
- export { ROUTE_TREE, ROUTE_PATH_MAP } from './router/route-tree';
28
+ export { ROUTE_TREE, ROUTE_PATH_MAP, MOBILE_ROUTE_PATH_MAP } from './router/route-tree';
29
29
  export type { RouteTreeNode } from './router/route-tree';
package/esm/index.mjs CHANGED
@@ -3047,6 +3047,9 @@ var traverseRouteTree = function(node) {
3047
3047
  return result;
3048
3048
  };
3049
3049
  var ROUTE_PATH_MAP = traverseRouteTree(ROUTE_TREE);
3050
+ var MOBILE_ROUTE_PATH_MAP = traverseRouteTree(ROUTE_TREE.children.filter(function(item) {
3051
+ return item.key === RouteKey.mobileRoot;
3052
+ })[0]);
3050
3053
  export {
3051
3054
  AccumulateCalcType,
3052
3055
  AcrossDsType,
@@ -3118,6 +3121,7 @@ export {
3118
3121
  LegendPositionType,
3119
3122
  LegendUnHighLightedValue,
3120
3123
  LnglatGroupChildFlags,
3124
+ MOBILE_ROUTE_PATH_MAP,
3121
3125
  MultiSeparator,
3122
3126
  NegativeMode,
3123
3127
  NumberFormats,
@@ -13,3 +13,5 @@ export interface RouteTreeNode {
13
13
  export declare const ROUTE_TREE: RouteTreeNode;
14
14
  /** 将整颗路径树打平,根据key索引 */
15
15
  export declare const ROUTE_PATH_MAP: Record<RouteKey, string>;
16
+ /** 移动端微应用很多path重复,构建一个移动端的路径索引,用于在hash路由下匹配 */
17
+ export declare const MOBILE_ROUTE_PATH_MAP: Record<RouteKey, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickbi/bi-types",
3
- "version": "3.0.42-beta.1",
3
+ "version": "3.0.42-beta.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"