next-flow-interface 0.17.18 → 0.17.19

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1544,6 +1544,11 @@ interface NativeEventServiceApi {
1544
1544
  unsubscribeResize(subscriber: NativeAnyEventSubscriber): void;
1545
1545
  }
1546
1546
 
1547
+ declare enum Locale {
1548
+ ZH = "ZH",
1549
+ EN = "EN"
1550
+ }
1551
+
1547
1552
  declare enum PluginType {
1548
1553
  BUTTON = "BUTTON",
1549
1554
  SWITCH = "SWITCH",
@@ -1563,6 +1568,7 @@ interface BasePlugin {
1563
1568
  theme: ThemeColor;
1564
1569
  loadApi?: () => void;
1565
1570
  data?: Record<string, unknown>;
1571
+ messages?: Record<Locale, Record<string, any>> | string;
1566
1572
  onInstall?: () => Promise<void>;
1567
1573
  onEnable?: () => Promise<void>;
1568
1574
  onDisable?: () => Promise<void>;
@@ -1996,11 +2002,6 @@ interface LocalDataServiceApi {
1996
2002
  isLoaded(fid: string): boolean | undefined;
1997
2003
  }
1998
2004
 
1999
- declare enum Locale {
2000
- ZH = "ZH",
2001
- EN = "EN"
2002
- }
2003
-
2004
2005
  type Translator = (key: string) => string;
2005
2006
  type NamespaceSubscriber = (namespaces: string[]) => void;
2006
2007
  interface InternationalizationServiceApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-flow-interface",
3
- "version": "0.17.18",
3
+ "version": "0.17.19",
4
4
  "description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",