@next-bricks/advanced 0.48.4 → 0.49.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/dist/types.json CHANGED
@@ -956,70 +956,6 @@
956
956
  }
957
957
  ]
958
958
  },
959
- "eo-text-tooltip": {
960
- "properties": [
961
- {
962
- "name": "label",
963
- "annotation": {
964
- "type": "keyword",
965
- "value": "string"
966
- }
967
- },
968
- {
969
- "name": "lineClamp",
970
- "annotation": {
971
- "type": "keyword",
972
- "value": "number"
973
- }
974
- }
975
- ],
976
- "events": [],
977
- "methods": []
978
- },
979
- "advanced.pdf-viewer": {
980
- "properties": [
981
- {
982
- "name": "url",
983
- "annotation": {
984
- "type": "keyword",
985
- "value": "string"
986
- }
987
- },
988
- {
989
- "name": "page",
990
- "annotation": {
991
- "type": "keyword",
992
- "value": "number"
993
- }
994
- },
995
- {
996
- "name": "search",
997
- "annotation": {
998
- "type": "keyword",
999
- "value": "string"
1000
- }
1001
- },
1002
- {
1003
- "name": "viewerStyle",
1004
- "annotation": {
1005
- "type": "reference",
1006
- "typeName": {
1007
- "type": "qualifiedName",
1008
- "left": {
1009
- "type": "identifier",
1010
- "name": "React"
1011
- },
1012
- "right": {
1013
- "type": "identifier",
1014
- "name": "CSSProperties"
1015
- }
1016
- }
1017
- }
1018
- }
1019
- ],
1020
- "events": [],
1021
- "methods": []
1022
- },
1023
959
  "eo-tree-select": {
1024
960
  "properties": [
1025
961
  {
@@ -1367,6 +1303,70 @@
1367
1303
  ],
1368
1304
  "methods": []
1369
1305
  },
1306
+ "eo-text-tooltip": {
1307
+ "properties": [
1308
+ {
1309
+ "name": "label",
1310
+ "annotation": {
1311
+ "type": "keyword",
1312
+ "value": "string"
1313
+ }
1314
+ },
1315
+ {
1316
+ "name": "lineClamp",
1317
+ "annotation": {
1318
+ "type": "keyword",
1319
+ "value": "number"
1320
+ }
1321
+ }
1322
+ ],
1323
+ "events": [],
1324
+ "methods": []
1325
+ },
1326
+ "advanced.pdf-viewer": {
1327
+ "properties": [
1328
+ {
1329
+ "name": "url",
1330
+ "annotation": {
1331
+ "type": "keyword",
1332
+ "value": "string"
1333
+ }
1334
+ },
1335
+ {
1336
+ "name": "page",
1337
+ "annotation": {
1338
+ "type": "keyword",
1339
+ "value": "number"
1340
+ }
1341
+ },
1342
+ {
1343
+ "name": "search",
1344
+ "annotation": {
1345
+ "type": "keyword",
1346
+ "value": "string"
1347
+ }
1348
+ },
1349
+ {
1350
+ "name": "viewerStyle",
1351
+ "annotation": {
1352
+ "type": "reference",
1353
+ "typeName": {
1354
+ "type": "qualifiedName",
1355
+ "left": {
1356
+ "type": "identifier",
1357
+ "name": "React"
1358
+ },
1359
+ "right": {
1360
+ "type": "identifier",
1361
+ "name": "CSSProperties"
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ ],
1367
+ "events": [],
1368
+ "methods": []
1369
+ },
1370
1370
  "advanced.capture-snapshot": {
1371
1371
  "type": "provider",
1372
1372
  "params": [
@@ -1563,6 +1563,32 @@
1563
1563
  }
1564
1564
  }
1565
1565
  },
1566
+ {
1567
+ "name": "customDefaultCardConfigMap",
1568
+ "annotation": {
1569
+ "type": "reference",
1570
+ "typeName": {
1571
+ "type": "identifier",
1572
+ "name": "Record"
1573
+ },
1574
+ "typeParameters": {
1575
+ "type": "typeParameterInstantiation",
1576
+ "params": [
1577
+ {
1578
+ "type": "keyword",
1579
+ "value": "string"
1580
+ },
1581
+ {
1582
+ "type": "reference",
1583
+ "typeName": {
1584
+ "type": "identifier",
1585
+ "name": "CardStyleConfig"
1586
+ }
1587
+ }
1588
+ ]
1589
+ }
1590
+ }
1591
+ },
1566
1592
  {
1567
1593
  "name": "showSettingButton",
1568
1594
  "annotation": {
@@ -4,7 +4,7 @@ import { UseSingleBrickConf } from "@next-core/types";
4
4
  import { Layout } from "react-grid-layout";
5
5
  import "@next-core/theme";
6
6
  import { SimpleAction } from "@next-bricks/basic/actions";
7
- import { WorkbenchComponent, ExtraLayout } from "../interfaces";
7
+ import { WorkbenchComponent, ExtraLayout, CardStyleConfig } from "../interfaces";
8
8
  import "./styles.css";
9
9
  export interface EoWorkbenchLayoutV2Props {
10
10
  cardTitle?: string;
@@ -15,6 +15,7 @@ export interface EoWorkbenchLayoutV2Props {
15
15
  componentList?: WorkbenchComponent[];
16
16
  isEdit?: boolean;
17
17
  showSettingButton?: boolean;
18
+ customDefaultCardConfigMap?: Record<string, CardStyleConfig>;
18
19
  }
19
20
  export interface EoWorkbenchLayoutV2ComponentRef {
20
21
  setLayouts(layouts: ExtraLayout[]): void;
@@ -39,6 +40,10 @@ export declare class EoWorkbenchLayoutV2 extends ReactNextElement {
39
40
  useBrick: UseSingleBrickConf[];
40
41
  } | undefined;
41
42
  accessor componentList: WorkbenchComponent[] | undefined;
43
+ /**
44
+ * 自定义卡片默认配置, 用于覆盖默认卡片配置
45
+ */
46
+ accessor customDefaultCardConfigMap: Record<string, CardStyleConfig> | undefined;
42
47
  /**
43
48
  * description: 用于设置页面样式和布局的按钮
44
49
  */
@@ -1,3 +1,3 @@
1
1
  import { CardStyleConfig } from "../interfaces";
2
2
  export declare const defaultCardConfig: CardStyleConfig;
3
- export declare const getLayoutDefaultCardConfig: (cardType: string) => CardStyleConfig;
3
+ export declare const getLayoutDefaultCardConfig: (cardType: string, customDefaultCardConfigMap?: Record<string, CardStyleConfig>) => CardStyleConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/advanced",
3
- "version": "0.48.4",
3
+ "version": "0.49.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/advanced",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "@next-bricks/icons": "*",
46
46
  "@next-bricks/markdown": "*"
47
47
  },
48
- "gitHead": "ddc58b3d85a9dc3749dd69071ceaac98f410b8d6"
48
+ "gitHead": "076e2d8a84f3f237981033abca39b4345ae73b14"
49
49
  }