@blogmcp/community 0.4.1 → 0.5.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/blogmcp-community-private.global.js +4 -0
- package/dist/blogmcp-community.global.js +3 -3
- package/dist/chunks/{mount-Ts_r2fwt.js → mount-SKmc4NgD.js} +39 -9
- package/dist/chunks/private-mount-bhCQeScD.js +5397 -0
- package/dist/core/attrs.d.ts +15 -0
- package/dist/core/settings.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/private/core/dock.d.ts +38 -0
- package/dist/private/core/push.d.ts +49 -0
- package/dist/private/core/realtime.d.ts +57 -0
- package/dist/private/core/setup.d.ts +43 -0
- package/dist/private/core/view.d.ts +179 -0
- package/dist/private/dm/composer.d.ts +34 -0
- package/dist/private/dm/controller.d.ts +162 -0
- package/dist/private/dm/index.d.ts +14 -0
- package/dist/private/dm/links.d.ts +33 -0
- package/dist/private/dm/muted.d.ts +37 -0
- package/dist/private/dm/search.d.ts +7 -0
- package/dist/private/dm/text.d.ts +27 -0
- package/dist/private/dm/ui/DmBlocks.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmCases.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmComposer.vue.d.ts +20 -0
- package/dist/private/dm/ui/DmInbox.vue.d.ts +12 -0
- package/dist/private/dm/ui/DmLinkWarning.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmLocalAids.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmMessageText.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmNew.vue.d.ts +12 -0
- package/dist/private/dm/ui/DmReport.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmRequests.vue.d.ts +12 -0
- package/dist/private/dm/ui/DmScreens.vue.d.ts +9 -0
- package/dist/private/dm/ui/DmThread.vue.d.ts +9 -0
- package/dist/private/element.d.ts +23 -0
- package/dist/private/global.d.ts +10 -0
- package/dist/private/i18n.d.ts +41 -0
- package/dist/private/index.d.ts +32 -0
- package/dist/private/index.js +57 -0
- package/dist/private/mount.d.ts +55 -0
- package/dist/private/pages/api.d.ts +44 -0
- package/dist/private/pages/element.d.ts +6 -0
- package/dist/private/pages/fragment.d.ts +43 -0
- package/dist/private/pages/i18n.d.ts +25 -0
- package/dist/private/pages/index.d.ts +1 -0
- package/dist/private/pages/pages.d.ts +276 -0
- package/dist/private/pages/proof.d.ts +36 -0
- package/dist/private/pages/provider-view.d.ts +33 -0
- package/dist/private/pages/setup.d.ts +42 -0
- package/dist/private/pages/ui/AccountPageRoot.vue.d.ts +9 -0
- package/dist/private/pages/ui/PageActivation.vue.d.ts +9 -0
- package/dist/private/pages/ui/PageAddress.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageDeviceApprove.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageDevices.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageExport.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageMessages.vue.d.ts +9 -0
- package/dist/private/react.d.ts +12 -0
- package/dist/private/react.js +36 -0
- package/dist/private/ui/ChatDockRoot.vue.d.ts +20 -0
- package/dist/private/ui/LegalText.vue.d.ts +13 -0
- package/dist/private/ui/PrivateScreens.vue.d.ts +14 -0
- package/dist/private/ui/PrivateViewRoot.vue.d.ts +23 -0
- package/dist/private/ui/PromiseBlock.vue.d.ts +9 -0
- package/dist/private/ui/ProviderLine.vue.d.ts +8 -0
- package/dist/private/ui/ScreenActivation.vue.d.ts +8 -0
- package/dist/private/ui/ScreenAddress.vue.d.ts +8 -0
- package/dist/private/ui/ScreenApproval.vue.d.ts +8 -0
- package/dist/private/ui/ScreenDevices.vue.d.ts +8 -0
- package/dist/private/ui/ScreenHome.vue.d.ts +12 -0
- package/dist/private/ui/ScreenNotifications.vue.d.ts +8 -0
- package/dist/private/ui/ScreenReads.vue.d.ts +8 -0
- package/dist/private/ui/ScreenSettings.vue.d.ts +8 -0
- package/dist/private/ui/root.d.ts +35 -0
- package/dist/private/ui/text.d.ts +22 -0
- package/dist/private/vue.d.ts +88 -0
- package/dist/private/vue.js +72 -0
- package/dist/react.js +14 -14
- package/dist/vue.js +14 -14
- package/package.json +23 -6
- package/src/core/attrs.ts +19 -0
- package/src/core/settings.ts +55 -12
- package/src/private/core/dock.ts +105 -0
- package/src/private/core/push.ts +166 -0
- package/src/private/core/realtime.ts +109 -0
- package/src/private/core/setup.ts +75 -0
- package/src/private/core/view.ts +920 -0
- package/src/private/dm/composer.ts +74 -0
- package/src/private/dm/controller.ts +636 -0
- package/src/private/dm/index.ts +14 -0
- package/src/private/dm/links.ts +55 -0
- package/src/private/dm/muted.ts +160 -0
- package/src/private/dm/search.ts +18 -0
- package/src/private/dm/text.ts +60 -0
- package/src/private/dm/ui/DmBlocks.vue +27 -0
- package/src/private/dm/ui/DmCases.vue +58 -0
- package/src/private/dm/ui/DmComposer.vue +68 -0
- package/src/private/dm/ui/DmInbox.vue +34 -0
- package/src/private/dm/ui/DmLinkWarning.vue +27 -0
- package/src/private/dm/ui/DmLocalAids.vue +43 -0
- package/src/private/dm/ui/DmMessageText.vue +16 -0
- package/src/private/dm/ui/DmNew.vue +46 -0
- package/src/private/dm/ui/DmReport.vue +93 -0
- package/src/private/dm/ui/DmRequests.vue +50 -0
- package/src/private/dm/ui/DmScreens.vue +66 -0
- package/src/private/dm/ui/DmThread.vue +235 -0
- package/src/private/element.ts +90 -0
- package/src/private/global.ts +14 -0
- package/src/private/i18n.ts +127 -0
- package/src/private/index.ts +68 -0
- package/src/private/messages/cs.json +311 -0
- package/src/private/messages/en.json +319 -0
- package/src/private/mount.ts +103 -0
- package/src/private/pages/api.ts +96 -0
- package/src/private/pages/build.d.mts +2 -0
- package/src/private/pages/build.mjs +72 -0
- package/src/private/pages/element.ts +49 -0
- package/src/private/pages/fragment.ts +63 -0
- package/src/private/pages/i18n.ts +82 -0
- package/src/private/pages/index.ts +10 -0
- package/src/private/pages/messages/cs.json +97 -0
- package/src/private/pages/messages/en.json +97 -0
- package/src/private/pages/pages.ts +410 -0
- package/src/private/pages/proof.ts +110 -0
- package/src/private/pages/provider-view.ts +121 -0
- package/src/private/pages/setup.ts +79 -0
- package/src/private/pages/ui/AccountPageRoot.vue +45 -0
- package/src/private/pages/ui/PageActivation.vue +42 -0
- package/src/private/pages/ui/PageAddress.vue +39 -0
- package/src/private/pages/ui/PageDeviceApprove.vue +62 -0
- package/src/private/pages/ui/PageDevices.vue +84 -0
- package/src/private/pages/ui/PageExport.vue +35 -0
- package/src/private/pages/ui/PageMessages.vue +39 -0
- package/src/private/pages/ui/account.css +6 -0
- package/src/private/react.ts +49 -0
- package/src/private/shims.d.ts +6 -0
- package/src/private/ui/ChatDockRoot.vue +119 -0
- package/src/private/ui/LegalText.vue +18 -0
- package/src/private/ui/PrivateScreens.vue +61 -0
- package/src/private/ui/PrivateViewRoot.vue +70 -0
- package/src/private/ui/PromiseBlock.vue +18 -0
- package/src/private/ui/ProviderLine.vue +20 -0
- package/src/private/ui/ScreenActivation.vue +82 -0
- package/src/private/ui/ScreenAddress.vue +37 -0
- package/src/private/ui/ScreenApproval.vue +71 -0
- package/src/private/ui/ScreenDevices.vue +42 -0
- package/src/private/ui/ScreenHome.vue +29 -0
- package/src/private/ui/ScreenNotifications.vue +44 -0
- package/src/private/ui/ScreenReads.vue +23 -0
- package/src/private/ui/ScreenSettings.vue +44 -0
- package/src/private/ui/private.css +81 -0
- package/src/private/ui/root.ts +89 -0
- package/src/private/ui/text.ts +40 -0
- package/src/private/vue.ts +87 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { type AccountApi } from './api';
|
|
2
|
+
import type { Capability } from './fragment';
|
|
3
|
+
import { signApproveProof, type DeviceKey } from './proof';
|
|
4
|
+
/** A refusal on screen: its code (worded by i18n.ts). */
|
|
5
|
+
export interface PageFailure {
|
|
6
|
+
readonly code: string;
|
|
7
|
+
}
|
|
8
|
+
interface Base {
|
|
9
|
+
/** `noToken`: opened without a usable capability of this page's kind. */
|
|
10
|
+
phase: string;
|
|
11
|
+
failure: PageFailure | null;
|
|
12
|
+
busy: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type AddressMode = 'set' | 'verify' | 'confirm';
|
|
15
|
+
export interface AddressPageState extends Base {
|
|
16
|
+
phase: 'noToken' | 'ready' | 'done';
|
|
17
|
+
mode: AddressMode | null;
|
|
18
|
+
/** `set`: where the verification link went and until when. */
|
|
19
|
+
sent: {
|
|
20
|
+
email: string;
|
|
21
|
+
expiresAt: string | null;
|
|
22
|
+
} | null;
|
|
23
|
+
/** `verify`: kb-api's result; `confirm`: 'confirmed'. */
|
|
24
|
+
result: 'verified' | 'changed' | 'confirmed' | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* `/adresa`: set the approval address (`kbas_`, from the private view's address step), verify it (`kbav_`, `kbaw_`,
|
|
28
|
+
* from the verification e-mail) or confirm a change from the old address (`kbax_`). The address is typed here, on a
|
|
29
|
+
* blogmcp page, and never on the tenant's site (§6.2).
|
|
30
|
+
*/
|
|
31
|
+
export declare function createAddressPage(o: {
|
|
32
|
+
api: AccountApi;
|
|
33
|
+
capability: Capability | null;
|
|
34
|
+
}): {
|
|
35
|
+
state: {
|
|
36
|
+
phase: "noToken" | "ready" | "done";
|
|
37
|
+
mode: AddressMode | null;
|
|
38
|
+
sent: {
|
|
39
|
+
email: string;
|
|
40
|
+
expiresAt: string | null;
|
|
41
|
+
} | null;
|
|
42
|
+
result: "verified" | "changed" | "confirmed" | null;
|
|
43
|
+
failure: {
|
|
44
|
+
readonly code: string;
|
|
45
|
+
} | null;
|
|
46
|
+
busy: boolean;
|
|
47
|
+
};
|
|
48
|
+
submit(email: string): Promise<void>;
|
|
49
|
+
verify(): Promise<void>;
|
|
50
|
+
confirm(): Promise<void>;
|
|
51
|
+
};
|
|
52
|
+
/** `account/device/approval/get`'s answer (kb-api's EmailApprovalView). */
|
|
53
|
+
export interface ApprovalView {
|
|
54
|
+
label: string;
|
|
55
|
+
origin: string | null;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
mintKeyId: string | null;
|
|
58
|
+
ipPrefix: string | null;
|
|
59
|
+
jkt: string;
|
|
60
|
+
sameNetwork: boolean;
|
|
61
|
+
binding: 'code' | 'key';
|
|
62
|
+
expiresAt: string;
|
|
63
|
+
}
|
|
64
|
+
export interface DeviceApprovePageState extends Base {
|
|
65
|
+
phase: 'noToken' | 'loading' | 'ready' | 'approved' | 'failed';
|
|
66
|
+
view: ApprovalView | null;
|
|
67
|
+
/** Under `binding: 'key'`: whether this browser holds the pending device's key (null before it is looked up). */
|
|
68
|
+
keyHere: boolean | null;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* `/zarizeni` (`kbda_`, from the e-mail approval, B-57 and B-66): first the device that asks — its label, the website
|
|
72
|
+
* it claims, when and from which network it signed in, the website's key — and the network warning when that network
|
|
73
|
+
* is not this page's (advisory); then the approval, bound as kb-api says:
|
|
74
|
+
* - `code` (tenant rendering): only with the code the new device shows, typed here; a wrong code leaves the link
|
|
75
|
+
* usable for the next attempt, the fifth ends the request;
|
|
76
|
+
* - `key` (`provider_page`): only with a proof signed by the pending device's key from this origin's IndexedDB;
|
|
77
|
+
* without that key here the page says to open the link on that device, and offers no code instead.
|
|
78
|
+
*/
|
|
79
|
+
export declare function createDeviceApprovePage(o: {
|
|
80
|
+
api: AccountApi;
|
|
81
|
+
capability: Capability | null;
|
|
82
|
+
/** This page's origin (the account host): the proof's `htu`. */
|
|
83
|
+
origin: string;
|
|
84
|
+
findKey: (jkt: string) => Promise<DeviceKey | null>;
|
|
85
|
+
sign?: typeof signApproveProof;
|
|
86
|
+
now?: () => number;
|
|
87
|
+
}): {
|
|
88
|
+
state: {
|
|
89
|
+
phase: "noToken" | "loading" | "ready" | "approved" | "failed";
|
|
90
|
+
view: {
|
|
91
|
+
label: string;
|
|
92
|
+
origin: string | null;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
mintKeyId: string | null;
|
|
95
|
+
ipPrefix: string | null;
|
|
96
|
+
jkt: string;
|
|
97
|
+
sameNetwork: boolean;
|
|
98
|
+
binding: "code" | "key";
|
|
99
|
+
expiresAt: string;
|
|
100
|
+
} | null;
|
|
101
|
+
keyHere: boolean | null;
|
|
102
|
+
failure: {
|
|
103
|
+
readonly code: string;
|
|
104
|
+
} | null;
|
|
105
|
+
busy: boolean;
|
|
106
|
+
};
|
|
107
|
+
load(): Promise<void>;
|
|
108
|
+
approveWithCode(code: string): Promise<void>;
|
|
109
|
+
approveWithKey(): Promise<void>;
|
|
110
|
+
};
|
|
111
|
+
/** One of the member's devices as `account/device/list` answers it (kb-api's DeviceView). */
|
|
112
|
+
export interface AccountDevice {
|
|
113
|
+
id: string;
|
|
114
|
+
label: string;
|
|
115
|
+
origin: string | null;
|
|
116
|
+
mintKeyId: string | null;
|
|
117
|
+
signIn: {
|
|
118
|
+
ipPrefix: string | null;
|
|
119
|
+
at: string | null;
|
|
120
|
+
};
|
|
121
|
+
createdAt: string;
|
|
122
|
+
lastSeenAt: string;
|
|
123
|
+
state: 'first' | 'approved' | 'pending';
|
|
124
|
+
}
|
|
125
|
+
export interface AccountReadHour {
|
|
126
|
+
deviceId: string;
|
|
127
|
+
hour: string;
|
|
128
|
+
reads: number;
|
|
129
|
+
}
|
|
130
|
+
/** A sign-out waiting for its second confirmation. */
|
|
131
|
+
export type PendingSignOut = {
|
|
132
|
+
kind: 'one';
|
|
133
|
+
deviceId: string;
|
|
134
|
+
label: string;
|
|
135
|
+
} | {
|
|
136
|
+
kind: 'all';
|
|
137
|
+
};
|
|
138
|
+
export interface DevicesPageState extends Base {
|
|
139
|
+
phase: 'noToken' | 'loading' | 'ready' | 'failed';
|
|
140
|
+
devices: AccountDevice[] | null;
|
|
141
|
+
reads: AccountReadHour[] | null;
|
|
142
|
+
armed: PendingSignOut | null;
|
|
143
|
+
/** The last sign-out's result, for the announcement. */
|
|
144
|
+
signedOut: {
|
|
145
|
+
kind: 'one';
|
|
146
|
+
} | {
|
|
147
|
+
kind: 'all';
|
|
148
|
+
count: number;
|
|
149
|
+
} | null;
|
|
150
|
+
change: {
|
|
151
|
+
expiresAt: string | null;
|
|
152
|
+
} | null;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* `/zarizeni/seznam` (`kbdl_`, from a sign-in e-mail: 24 hours, at most 20 uses, every list and sign-out spends one):
|
|
156
|
+
* the member's devices, their sign-out (which removes a device for good, §5.10) one by one or all at once, the read log
|
|
157
|
+
* on request, and the change of the approval address, confirmed from the old address.
|
|
158
|
+
*/
|
|
159
|
+
export declare function createDevicesPage(o: {
|
|
160
|
+
api: AccountApi;
|
|
161
|
+
capability: Capability | null;
|
|
162
|
+
}): {
|
|
163
|
+
state: {
|
|
164
|
+
phase: "noToken" | "loading" | "ready" | "failed";
|
|
165
|
+
devices: {
|
|
166
|
+
id: string;
|
|
167
|
+
label: string;
|
|
168
|
+
origin: string | null;
|
|
169
|
+
mintKeyId: string | null;
|
|
170
|
+
signIn: {
|
|
171
|
+
ipPrefix: string | null;
|
|
172
|
+
at: string | null;
|
|
173
|
+
};
|
|
174
|
+
createdAt: string;
|
|
175
|
+
lastSeenAt: string;
|
|
176
|
+
state: "first" | "approved" | "pending";
|
|
177
|
+
}[] | null;
|
|
178
|
+
reads: {
|
|
179
|
+
deviceId: string;
|
|
180
|
+
hour: string;
|
|
181
|
+
reads: number;
|
|
182
|
+
}[] | null;
|
|
183
|
+
armed: {
|
|
184
|
+
kind: "one";
|
|
185
|
+
deviceId: string;
|
|
186
|
+
label: string;
|
|
187
|
+
} | {
|
|
188
|
+
kind: "all";
|
|
189
|
+
} | null;
|
|
190
|
+
signedOut: {
|
|
191
|
+
kind: "one";
|
|
192
|
+
} | {
|
|
193
|
+
kind: "all";
|
|
194
|
+
count: number;
|
|
195
|
+
} | null;
|
|
196
|
+
change: {
|
|
197
|
+
expiresAt: string | null;
|
|
198
|
+
} | null;
|
|
199
|
+
failure: {
|
|
200
|
+
readonly code: string;
|
|
201
|
+
} | null;
|
|
202
|
+
busy: boolean;
|
|
203
|
+
};
|
|
204
|
+
load(): Promise<void>;
|
|
205
|
+
showReads(): Promise<void>;
|
|
206
|
+
armSignOut(device: AccountDevice): void;
|
|
207
|
+
armSignOutAll(): void;
|
|
208
|
+
cancel(): void;
|
|
209
|
+
/** The second confirmation: only now is a sign-out sent. */
|
|
210
|
+
confirmSignOut(): Promise<void>;
|
|
211
|
+
requestChange(newEmail: string): Promise<void>;
|
|
212
|
+
};
|
|
213
|
+
export interface ExportPageState extends Base {
|
|
214
|
+
phase: 'noToken' | 'ready' | 'confirmed' | 'downloaded';
|
|
215
|
+
armed: boolean;
|
|
216
|
+
}
|
|
217
|
+
/** Save a JSON value as a file on this device (the browser's download). */
|
|
218
|
+
export declare function saveJsonFile(name: string, value: unknown): void;
|
|
219
|
+
export declare const EXPORT_FILE_NAME = "blogmcp-private-messages.json";
|
|
220
|
+
/**
|
|
221
|
+
* `/export` (`kbae_`, from the export confirmation e-mail, B-3, DM7b): the confirmation, then the download — on this
|
|
222
|
+
* origin, so that on a headless site the export never passes through the tenant's (§6.4). The operations are DM7b's
|
|
223
|
+
* (`account/export/confirm`, `account/export/download`); until kb-api serves them the page says the export is not
|
|
224
|
+
* available, without asking anything.
|
|
225
|
+
*/
|
|
226
|
+
export declare function createExportPage(o: {
|
|
227
|
+
api: AccountApi;
|
|
228
|
+
capability: Capability | null;
|
|
229
|
+
save?: (name: string, value: unknown) => void;
|
|
230
|
+
}): {
|
|
231
|
+
state: {
|
|
232
|
+
phase: "noToken" | "ready" | "confirmed" | "downloaded";
|
|
233
|
+
armed: boolean;
|
|
234
|
+
failure: {
|
|
235
|
+
readonly code: string;
|
|
236
|
+
} | null;
|
|
237
|
+
busy: boolean;
|
|
238
|
+
};
|
|
239
|
+
arm(): void;
|
|
240
|
+
cancel(): void;
|
|
241
|
+
confirm(): Promise<void>;
|
|
242
|
+
download(): Promise<void>;
|
|
243
|
+
};
|
|
244
|
+
export interface ActivationPageState extends Base {
|
|
245
|
+
phase: 'noToken' | 'ready' | 'done';
|
|
246
|
+
armed: boolean;
|
|
247
|
+
/** The dispute: how many devices it removed. */
|
|
248
|
+
devicesRemoved: number | null;
|
|
249
|
+
/** The end: the kind the activation's time allowed. */
|
|
250
|
+
kind: 'withdrawal' | 'termination' | null;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* `/aktivace/spor` (`kbad_`, „Nebyli jste to vy?“ from the activation's confirmation e-mail) and `/aktivace/konec`
|
|
254
|
+
* (`kbac_`, the end of the contract confirmed from its e-mail on a headless site, B-58): each says what it does, and
|
|
255
|
+
* calls its operation only after the page's own second confirmation (PS4).
|
|
256
|
+
*/
|
|
257
|
+
export declare function createActivationPage(o: {
|
|
258
|
+
api: AccountApi;
|
|
259
|
+
capability: Capability | null;
|
|
260
|
+
act: 'dispute' | 'end';
|
|
261
|
+
}): {
|
|
262
|
+
state: {
|
|
263
|
+
phase: "noToken" | "ready" | "done";
|
|
264
|
+
armed: boolean;
|
|
265
|
+
devicesRemoved: number | null;
|
|
266
|
+
kind: "withdrawal" | "termination" | null;
|
|
267
|
+
failure: {
|
|
268
|
+
readonly code: string;
|
|
269
|
+
} | null;
|
|
270
|
+
busy: boolean;
|
|
271
|
+
};
|
|
272
|
+
arm(): void;
|
|
273
|
+
cancel(): void;
|
|
274
|
+
confirm(): Promise<void>;
|
|
275
|
+
};
|
|
276
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The key-bound approval under `provider_page` (m4-contracts.md §5.10, `[OWNER]` B-66): `/zarizeni` approves a pending
|
|
3
|
+
* device only with a proof signed by that device's own key, which lives in this origin's IndexedDB — the account
|
|
4
|
+
* host's, where `/zpravy` made it (the SDK's keystore, database `blogmcp-private`, store `keys`). A key outside this
|
|
5
|
+
* origin (the tenant's server's, a tenant-origin page's) can never produce the proof in the member's browser, so a
|
|
6
|
+
* code shown on the tenant's site cannot be turned into an approval here.
|
|
7
|
+
*
|
|
8
|
+
* The proof is a compact JWS of PS1's shape (kb-api's `checkApproveProof`, services/community/private/approval.ts):
|
|
9
|
+
* header `{ typ: 'blogmcp-approve+jwt', alg: 'ES256', jwk }`, claims `{ jti, htm: 'POST', htu, iat, ath }`, where
|
|
10
|
+
* `htu` is the approve operation's URL on this origin and `ath` the capability's SHA-256 — so the proof is good for
|
|
11
|
+
* this one capability, once (kb-api spends the `jti`), for a few minutes.
|
|
12
|
+
*
|
|
13
|
+
* Reading the keystore never creates it: a browser that never opened `/zpravy` on this origin has no database, and
|
|
14
|
+
* opening one here would leave an empty database the SDK then could not upgrade; the creation is aborted instead.
|
|
15
|
+
*/
|
|
16
|
+
import { type DevicePublicJwk } from '@blogmcp/sdk/community/private';
|
|
17
|
+
export declare const APPROVE_PROOF_TYP = "blogmcp-approve+jwt";
|
|
18
|
+
/** The part of a keystore record a proof needs. */
|
|
19
|
+
export interface DeviceKey {
|
|
20
|
+
readonly jkt: string;
|
|
21
|
+
readonly publicJwk: DevicePublicJwk;
|
|
22
|
+
readonly privateKey: CryptoKey;
|
|
23
|
+
}
|
|
24
|
+
/** The key whose thumbprint is `jkt` in this origin's keystore, or null when this browser does not hold it. */
|
|
25
|
+
export declare function findDeviceKey(jkt: string, factory?: IDBFactory): Promise<DeviceKey | null>;
|
|
26
|
+
export interface ApproveProofInput {
|
|
27
|
+
key: DeviceKey;
|
|
28
|
+
/** The approve operation's URL on this origin. */
|
|
29
|
+
htu: string;
|
|
30
|
+
/** The `kbda_` capability the request carries. */
|
|
31
|
+
token: string;
|
|
32
|
+
/** Epoch milliseconds (default now). */
|
|
33
|
+
now?: number;
|
|
34
|
+
}
|
|
35
|
+
/** The proof for one `account/device/approve` request. */
|
|
36
|
+
export declare function signApproveProof(input: ApproveProofInput): Promise<string>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type PrivateClient } from '@blogmcp/sdk/community/private';
|
|
2
|
+
import type { PrivateRealtimeInput } from '../core/realtime';
|
|
3
|
+
import { type PrivateViewController } from '../core/view';
|
|
4
|
+
export type MessagesPhase = 'starting' | 'redirecting' | 'open' | 'signIn' | 'invalid' | 'failed';
|
|
5
|
+
export interface MessagesPageState {
|
|
6
|
+
phase: MessagesPhase;
|
|
7
|
+
/** The refusal's code under `failed`. */
|
|
8
|
+
code: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface MessagesPageOptions {
|
|
11
|
+
/** kb-api's main origin, the private session's (the template's `kb-origin`). */
|
|
12
|
+
kbOrigin: string;
|
|
13
|
+
/** The site's hand-off route (the template's `handoff-url`). */
|
|
14
|
+
handoffUrl: string;
|
|
15
|
+
/** The website's name for the promise. */
|
|
16
|
+
siteName: string;
|
|
17
|
+
/** The location's fragment at load (default the page's). */
|
|
18
|
+
hash?: () => string;
|
|
19
|
+
/** A private client made elsewhere (specs). */
|
|
20
|
+
client?: PrivateClient;
|
|
21
|
+
/** The live inbox (default the SDK's `createPrivateRealtime`; specs pass a stub, null turns it off). */
|
|
22
|
+
realtime?: PrivateRealtimeInput | null;
|
|
23
|
+
}
|
|
24
|
+
export declare function createMessagesPage(o: MessagesPageOptions): {
|
|
25
|
+
state: {
|
|
26
|
+
phase: MessagesPhase;
|
|
27
|
+
code: string | null;
|
|
28
|
+
};
|
|
29
|
+
readonly view: PrivateViewController | null;
|
|
30
|
+
load(): Promise<void>;
|
|
31
|
+
reopen: () => Promise<void>;
|
|
32
|
+
dispose(): void;
|
|
33
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type AccountApi } from './api';
|
|
2
|
+
import { type Capability, type FragmentWindow } from './fragment';
|
|
3
|
+
import { createActivationPage, createAddressPage, createDeviceApprovePage, createDevicesPage, createExportPage } from './pages';
|
|
4
|
+
import { createMessagesPage } from './provider-view';
|
|
5
|
+
export declare const ACCOUNT_PAGE_IDS: readonly ["address", "device-approve", "devices", "export", "messages", "activation-dispute", "activation-end"];
|
|
6
|
+
export type AccountPageId = (typeof ACCOUNT_PAGE_IDS)[number];
|
|
7
|
+
export interface AccountPageInput {
|
|
8
|
+
page?: string | null;
|
|
9
|
+
kbOrigin?: string | null;
|
|
10
|
+
handoffUrl?: string | null;
|
|
11
|
+
siteName?: string | null;
|
|
12
|
+
}
|
|
13
|
+
/** A hand-off route: an absolute http(s) URL without credentials, query or fragment; else null. */
|
|
14
|
+
export declare function handoffUrlOf(value: unknown): string | null;
|
|
15
|
+
export type AccountPageSetup = {
|
|
16
|
+
page: 'address';
|
|
17
|
+
controller: ReturnType<typeof createAddressPage>;
|
|
18
|
+
} | {
|
|
19
|
+
page: 'device-approve';
|
|
20
|
+
controller: ReturnType<typeof createDeviceApprovePage>;
|
|
21
|
+
} | {
|
|
22
|
+
page: 'devices';
|
|
23
|
+
controller: ReturnType<typeof createDevicesPage>;
|
|
24
|
+
} | {
|
|
25
|
+
page: 'export';
|
|
26
|
+
controller: ReturnType<typeof createExportPage>;
|
|
27
|
+
} | {
|
|
28
|
+
page: 'activation-dispute' | 'activation-end';
|
|
29
|
+
controller: ReturnType<typeof createActivationPage>;
|
|
30
|
+
} | {
|
|
31
|
+
page: 'messages';
|
|
32
|
+
controller: ReturnType<typeof createMessagesPage>;
|
|
33
|
+
};
|
|
34
|
+
export interface AccountPageDeps {
|
|
35
|
+
api?: AccountApi;
|
|
36
|
+
/** The fragment's capability (default read from the page, once). */
|
|
37
|
+
capability?: Capability | null;
|
|
38
|
+
window?: FragmentWindow;
|
|
39
|
+
origin?: string;
|
|
40
|
+
}
|
|
41
|
+
/** The page's controller, or null for a page this bundle does not know or `/zpravy` without its configuration. */
|
|
42
|
+
export declare function accountPageSetup(input: AccountPageInput, deps?: AccountPageDeps): AccountPageSetup | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
page?: string;
|
|
3
|
+
kbOrigin?: string;
|
|
4
|
+
handoffUrl?: string;
|
|
5
|
+
siteName?: string;
|
|
6
|
+
lang?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Lang } from '../i18n';
|
|
2
|
+
import type { createActivationPage } from '../pages';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: ReturnType<typeof createActivationPage>;
|
|
5
|
+
act: 'dispute' | 'end';
|
|
6
|
+
lang: Lang;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Lang } from '../i18n';
|
|
2
|
+
import type { createAddressPage } from '../pages';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: ReturnType<typeof createAddressPage>;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Lang } from '../i18n';
|
|
2
|
+
import type { createDeviceApprovePage } from '../pages';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: ReturnType<typeof createDeviceApprovePage>;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Lang } from '../i18n';
|
|
2
|
+
import type { createDevicesPage } from '../pages';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: ReturnType<typeof createDevicesPage>;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Lang } from '../i18n';
|
|
2
|
+
import type { createExportPage } from '../pages';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: ReturnType<typeof createExportPage>;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Lang } from '../i18n';
|
|
2
|
+
import type { createMessagesPage } from '../provider-view';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: ReturnType<typeof createMessagesPage>;
|
|
5
|
+
siteName: string;
|
|
6
|
+
lang: Lang;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<KbChatDock>` and `<KbPrivateView>` for React (18 and 19, Next.js App Router included — this module is a client
|
|
3
|
+
* component): each mounts its element after hydration and removes it on unmount; each renders one empty `<div>` as the
|
|
4
|
+
* mount point. The element's module is imported lazily, so a server render never loads the browser-only private SDK.
|
|
5
|
+
* `hiddenByHost` toggles the dock's attribute in place and never remounts it.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactElement } from 'react';
|
|
8
|
+
import type { MountChatDockOptions, MountPrivateViewOptions } from './mount';
|
|
9
|
+
export type KbChatDockProps = Omit<MountChatDockOptions, 'container'>;
|
|
10
|
+
export type KbPrivateViewProps = Omit<MountPrivateViewOptions, 'container'>;
|
|
11
|
+
export declare function KbChatDock(props: KbChatDockProps): ReactElement;
|
|
12
|
+
export declare function KbPrivateView(props: KbPrivateViewProps): ReactElement;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useRef, createElement } from "react";
|
|
3
|
+
const HIDDEN_BY_HOST = "hidden-by-host";
|
|
4
|
+
const keyOf = (props, inPlace) => JSON.stringify(props, (k, v) => inPlace.includes(k) ? void 0 : typeof v === "function" ? "[fn]" : v);
|
|
5
|
+
function useMounted(kind, props, load, inPlace = []) {
|
|
6
|
+
const host = useRef(null);
|
|
7
|
+
const latest = useRef(props);
|
|
8
|
+
latest.current = props;
|
|
9
|
+
const key = keyOf(props, inPlace);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
let unmount = null;
|
|
12
|
+
let gone = false;
|
|
13
|
+
void load().then((mount) => {
|
|
14
|
+
if (!gone && host.current) unmount = mount({ ...latest.current, container: host.current });
|
|
15
|
+
});
|
|
16
|
+
return () => {
|
|
17
|
+
gone = true;
|
|
18
|
+
unmount?.();
|
|
19
|
+
};
|
|
20
|
+
}, [key]);
|
|
21
|
+
return { host, element: createElement("div", { ref: host, "data-blogmcp-community": kind }) };
|
|
22
|
+
}
|
|
23
|
+
function KbChatDock(props) {
|
|
24
|
+
const { host, element } = useMounted("chat-dock", props, async () => (await import("../chunks/private-mount-bhCQeScD.js").then((n) => n._)).mountChatDock, ["hiddenByHost"]);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
host.current?.firstElementChild?.toggleAttribute(HIDDEN_BY_HOST, props.hiddenByHost === true);
|
|
27
|
+
}, [host, props.hiddenByHost]);
|
|
28
|
+
return element;
|
|
29
|
+
}
|
|
30
|
+
function KbPrivateView(props) {
|
|
31
|
+
return useMounted("private-view", props, async () => (await import("../chunks/private-mount-bhCQeScD.js").then((n) => n._)).mountPrivateView).element;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
KbChatDock,
|
|
35
|
+
KbPrivateView
|
|
36
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PrivateClient } from '@blogmcp/sdk/community/private';
|
|
2
|
+
import type { CommunityTransport } from '@blogmcp/sdk/community';
|
|
3
|
+
import { type PrivateDockRealtime } from '../core/dock';
|
|
4
|
+
import type { PrivatePushPort } from '../core/push';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
kbOrigin?: string;
|
|
7
|
+
apiBase?: string;
|
|
8
|
+
siteBase?: string;
|
|
9
|
+
routes?: string;
|
|
10
|
+
lang?: string;
|
|
11
|
+
siteName?: string;
|
|
12
|
+
swPath?: string;
|
|
13
|
+
accountOrigin?: string;
|
|
14
|
+
transport?: CommunityTransport;
|
|
15
|
+
client?: PrivateClient;
|
|
16
|
+
push?: PrivatePushPort | null;
|
|
17
|
+
realtime?: PrivateDockRealtime;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PrivateLegalText } from '@blogmcp/sdk/community/private';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
text: PrivateLegalText;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
display: {
|
|
7
|
+
approvalEmail: string | null;
|
|
8
|
+
deviceLabel: string;
|
|
9
|
+
} | null;
|
|
10
|
+
acceptedAt: string;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PrivateScreen, PrivateViewController } from '../core/view';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: PrivateViewController;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
/** A dock window shows one screen; without it the view follows the controller's current screen. */
|
|
7
|
+
screen?: PrivateScreen;
|
|
8
|
+
/** Where the overview's entries go (a dock opens a window); default: this view moves to that screen. */
|
|
9
|
+
navigate?: (screen: PrivateScreen) => void;
|
|
10
|
+
/** Where a conversation opens (a dock opens a window of its own); default: in the `messages` screen. */
|
|
11
|
+
openConversation?: (conversationId: string) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PrivateClient } from '@blogmcp/sdk/community/private';
|
|
2
|
+
import type { CommunityTransport } from '@blogmcp/sdk/community';
|
|
3
|
+
import type { PrivatePushPort } from '../core/push';
|
|
4
|
+
import type { PrivateRealtimeInput } from '../core/realtime';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
kbOrigin?: string;
|
|
7
|
+
apiBase?: string;
|
|
8
|
+
siteBase?: string;
|
|
9
|
+
routes?: string;
|
|
10
|
+
lang?: string;
|
|
11
|
+
siteName?: string;
|
|
12
|
+
swPath?: string;
|
|
13
|
+
accountOrigin?: string;
|
|
14
|
+
/** The screen to open first once ready (else the one the member's state asks for). */
|
|
15
|
+
screen?: string;
|
|
16
|
+
transport?: CommunityTransport;
|
|
17
|
+
client?: PrivateClient;
|
|
18
|
+
push?: PrivatePushPort | null;
|
|
19
|
+
/** The live inbox (core/realtime.ts): the SDK's `createPrivateRealtime`, or a source of the host's own. */
|
|
20
|
+
realtime?: PrivateRealtimeInput;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PrivatePromiseKey } from '@blogmcp/sdk/community/private';
|
|
2
|
+
import { type Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
keys: readonly PrivatePromiseKey[];
|
|
5
|
+
lang: Lang;
|
|
6
|
+
params: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ProviderLine } from '../core/view';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
provider: ProviderLine | null;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PrivateViewController } from '../core/view';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: PrivateViewController;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PrivateViewController } from '../core/view';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: PrivateViewController;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PrivateViewController } from '../core/view';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: PrivateViewController;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PrivateViewController } from '../core/view';
|
|
2
|
+
import type { Lang } from '../i18n';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
controller: PrivateViewController;
|
|
5
|
+
lang: Lang;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|