@devtable/dashboard 12.4.2 → 12.7.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.
@@ -83,6 +83,10 @@ export interface IConfigMigrationContext {
83
83
  export interface IConfigMigrationExecContext extends IConfigMigrationContext {
84
84
  panelModel: PanelModelInstance;
85
85
  }
86
+ export type TranslationPatch = {
87
+ lang: 'en' | 'zh';
88
+ resources: Record<string, any>;
89
+ }[];
86
90
  export interface VizComponent {
87
91
  name: string;
88
92
  displayName?: string;
@@ -95,6 +99,7 @@ export interface VizComponent {
95
99
  config: AnyObject;
96
100
  };
97
101
  triggers?: ITriggerSchema[];
102
+ translation?: TranslationPatch;
98
103
  }
99
104
  export interface IPanelScopeConfigMigrator {
100
105
  needMigration(ctx: IConfigMigrationContext): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "12.4.2",
3
+ "version": "12.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",