next-flow-interface 0.19.7 → 0.19.9
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/index.d.ts +24 -20
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1528,6 +1528,25 @@ declare enum Locale {
|
|
|
1528
1528
|
EN = "en"
|
|
1529
1529
|
}
|
|
1530
1530
|
|
|
1531
|
+
type Translator = (key: string) => string;
|
|
1532
|
+
type NamespaceSubscriber = (namespaces: string[]) => void;
|
|
1533
|
+
type MessageLeaf = string;
|
|
1534
|
+
interface MessageTree {
|
|
1535
|
+
[key: string]: MessageTree | MessageLeaf;
|
|
1536
|
+
}
|
|
1537
|
+
interface InternationalizationServiceApi {
|
|
1538
|
+
ALL_SUPPORT: Locale[];
|
|
1539
|
+
DEFAULT_SUPPORT: Locale;
|
|
1540
|
+
locale: Locale;
|
|
1541
|
+
messages: MessageTree;
|
|
1542
|
+
load(messages: MessageTree): Promise<boolean>;
|
|
1543
|
+
getTranslator(namespace?: string): Translator;
|
|
1544
|
+
getTranslatorWithWait(namespace?: string): Promise<Translator>;
|
|
1545
|
+
subscribe(subscriber: NamespaceSubscriber): () => void;
|
|
1546
|
+
unsubscribe(subscriber: NamespaceSubscriber): void;
|
|
1547
|
+
wait(namespace: string | string[]): Promise<void>;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1531
1550
|
declare enum PluginType {
|
|
1532
1551
|
BUTTON = "BUTTON",
|
|
1533
1552
|
SWITCH = "SWITCH",
|
|
@@ -1543,6 +1562,8 @@ interface BasePlugin {
|
|
|
1543
1562
|
name: string;
|
|
1544
1563
|
version: string;
|
|
1545
1564
|
description: string;
|
|
1565
|
+
namespace: string;
|
|
1566
|
+
intl: Translator;
|
|
1546
1567
|
type: PluginType;
|
|
1547
1568
|
theme: ThemeColor;
|
|
1548
1569
|
loadApi?: () => void;
|
|
@@ -1987,24 +2008,6 @@ interface LocalDataServiceApi {
|
|
|
1987
2008
|
isLoaded(fid: string): boolean | undefined;
|
|
1988
2009
|
}
|
|
1989
2010
|
|
|
1990
|
-
type Translator = (key: string) => string;
|
|
1991
|
-
type NamespaceSubscriber = (namespaces: string[]) => void;
|
|
1992
|
-
type MessageLeaf = string;
|
|
1993
|
-
interface MessageTree {
|
|
1994
|
-
[key: string]: MessageTree | MessageLeaf;
|
|
1995
|
-
}
|
|
1996
|
-
interface InternationalizationServiceApi {
|
|
1997
|
-
ALL_SUPPORT: Locale[];
|
|
1998
|
-
DEFAULT_SUPPORT: Locale;
|
|
1999
|
-
locale: Locale;
|
|
2000
|
-
messages: MessageTree;
|
|
2001
|
-
load(messages: MessageTree): Promise<boolean>;
|
|
2002
|
-
getTranslator(namespace?: string, wait?: boolean): Promise<Translator>;
|
|
2003
|
-
subscribe(subscriber: NamespaceSubscriber): () => void;
|
|
2004
|
-
unsubscribe(subscriber: NamespaceSubscriber): void;
|
|
2005
|
-
wait(namespace: string | string[]): Promise<void>;
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
2011
|
declare enum MeetingStatus {
|
|
2009
2012
|
PENDING = "PENDING",
|
|
2010
2013
|
PROGRESSING = "PROGRESSING",
|
|
@@ -2893,8 +2896,9 @@ type MessageLoader = (locale: Locale) => Promise<MessageTree>;
|
|
|
2893
2896
|
type MessageState = 'before' | 'show' | 'after';
|
|
2894
2897
|
|
|
2895
2898
|
interface PluginConnectorApi {
|
|
2896
|
-
|
|
2897
|
-
|
|
2899
|
+
loadMessages(messages: MessageTree | MessageLoader): void;
|
|
2900
|
+
install(plugin: BasePlugin): void;
|
|
2901
|
+
readonly api: Readonly<NfpApi>;
|
|
2898
2902
|
}
|
|
2899
2903
|
|
|
2900
2904
|
interface RvNode {
|
package/package.json
CHANGED