@qping/plugin-bus 0.1.0 → 0.3.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/actions.d.ts +204 -0
- package/dist/bootstrap.d.ts +36 -0
- package/dist/bootstrap.mjs +174 -16
- package/dist/dev.d.ts +5 -0
- package/dist/dev.mjs +80 -0
- package/dist/developmentRefresh.d.ts +9 -0
- package/dist/framing.d.ts +36 -0
- package/dist/hostEnv.d.ts +9 -0
- package/dist/hotkeyKeycaps.d.ts +2 -0
- package/dist/i18n.d.ts +19 -0
- package/dist/i18n.mjs +2343 -0
- package/dist/node.d.ts +83 -0
- package/dist/node.mjs +851 -0
- package/dist/protocol.d.ts +102 -0
- package/dist/protocol.mjs +74 -1
- package/dist/router.d.ts +43 -0
- package/dist/search.d.ts +7 -0
- package/dist/search.mjs +17 -0
- package/dist/transport.d.ts +24 -0
- package/dist/webClient.d.ts +35 -0
- package/dist/webClient.mjs +2624 -0
- package/dist/webTypes.d.ts +65 -0
- package/package.json +58 -34
- package/src/actions.ts +158 -0
- package/src/bootstrap.ts +159 -70
- package/src/dev.ts +14 -0
- package/src/developmentRefresh.ts +95 -0
- package/src/hostEnv.ts +21 -0
- package/src/hotkeyKeycaps.ts +28 -0
- package/src/i18n.ts +120 -0
- package/src/node.ts +332 -0
- package/src/protocol.ts +83 -17
- package/src/router.ts +199 -149
- package/src/search.ts +22 -0
- package/src/transport.ts +2 -1
- package/src/webClient.ts +288 -0
- package/src/webTypes.ts +68 -0
- package/dist/bootstrap.d.mts +0 -1
- package/dist/protocol.d.mts +0 -1
- package/dist/server.d.mts +0 -1
- package/dist/server.mjs +0 -484
- package/src/server.ts +0 -156
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TranslationValues = Record<string, unknown>;
|
|
2
|
+
export type TranslationOptions = TranslationValues & {
|
|
3
|
+
defaultValue: string;
|
|
4
|
+
translatorComment?: string;
|
|
5
|
+
};
|
|
6
|
+
type LocalizationPayload = {
|
|
7
|
+
locale?: string;
|
|
8
|
+
fallbackLocale?: string;
|
|
9
|
+
messages?: Record<string, string>;
|
|
10
|
+
};
|
|
11
|
+
declare class MyToolsI18n {
|
|
12
|
+
#private;
|
|
13
|
+
get language(): string;
|
|
14
|
+
configure(payload: LocalizationPayload | Record<string, unknown> | null | undefined): void;
|
|
15
|
+
t(key: string, options: TranslationOptions): string;
|
|
16
|
+
apply(root?: ParentNode): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const mytoolsI18n: MyToolsI18n;
|
|
19
|
+
export {};
|