mnfst 0.5.301 → 0.5.302
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/lib/manifest.appwrite.data.js +1 -1
- package/lib/manifest.d.ts +55 -51
- package/lib/manifest.data.js +1 -1
- package/lib/manifest.integrity.json +4 -4
- package/lib/manifest.js +10 -6
- package/lib/manifest.sw.js +1 -1
- package/package.json +1 -1
package/lib/manifest.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ export type ManifestData = ManifestSources & {
|
|
|
248
248
|
$wipe(target?: string | { all: true }): Promise<void>;
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
/** `$auth` from the Appwrite auth
|
|
251
|
+
/** `$auth` from the Appwrite auth module. Loose by design — auth API is broad. */
|
|
252
252
|
export interface ManifestAuth {
|
|
253
253
|
readonly current: { $id: string; email?: string; name?: string;[k: string]: unknown } | null;
|
|
254
254
|
readonly isAuthenticated: boolean;
|
|
@@ -263,7 +263,7 @@ export interface ManifestAuth {
|
|
|
263
263
|
[extra: string]: unknown;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
/** `$locale` from the localization
|
|
266
|
+
/** `$locale` from the localization module. */
|
|
267
267
|
export interface ManifestLocale {
|
|
268
268
|
readonly current: string;
|
|
269
269
|
readonly available: string[];
|
|
@@ -277,7 +277,7 @@ export interface ManifestToastVariant {
|
|
|
277
277
|
fixed(message: string, opts?: Record<string, unknown>): void;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
/** `$toast` from the toasts
|
|
280
|
+
/** `$toast` from the toasts module. Typed variants: `$toast.brand(...)`, `$toast.positive.dismiss(...)`. */
|
|
281
281
|
export interface ManifestToast extends ManifestToastVariant {
|
|
282
282
|
brand: ManifestToastVariant;
|
|
283
283
|
accent: ManifestToastVariant;
|
|
@@ -285,12 +285,12 @@ export interface ManifestToast extends ManifestToastVariant {
|
|
|
285
285
|
negative: ManifestToastVariant;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
/** `$color` from the color
|
|
288
|
+
/** `$color` from the color module — the current light/dark/system color mode. */
|
|
289
289
|
export interface ManifestColor {
|
|
290
290
|
current: 'light' | 'dark' | 'system' | string;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
/** `$colorpicker` from the colorpicker
|
|
293
|
+
/** `$colorpicker` from the colorpicker module. Loose by design. */
|
|
294
294
|
export interface ManifestColorpicker {
|
|
295
295
|
(id?: string): Record<string, unknown>;
|
|
296
296
|
[extra: string]: unknown;
|
|
@@ -310,7 +310,7 @@ export interface ManifestUrlParam {
|
|
|
310
310
|
clear(): void;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
/** `$url` from the url-parameters
|
|
313
|
+
/** `$url` from the url-parameters module: `$url.tab.value`, `$url.tag.add('x')`, ... */
|
|
314
314
|
export interface ManifestUrl {
|
|
315
315
|
[param: string]: ManifestUrlParam;
|
|
316
316
|
}
|
|
@@ -327,7 +327,7 @@ export type ManifestModify = (attr: string) => string | undefined;
|
|
|
327
327
|
/** `$try(fn)` — run a callback and swallow any thrown error, returning undefined on failure. */
|
|
328
328
|
export type ManifestTry = <T>(fn: () => T | Promise<T>, errorVar?: string) => Promise<T | undefined>;
|
|
329
329
|
|
|
330
|
-
/** `$pay` from the payments
|
|
330
|
+
/** `$pay` from the payments module: callable to start checkout, plus portal/state helpers. */
|
|
331
331
|
export interface ManifestPay {
|
|
332
332
|
(ref: string, payload?: Record<string, unknown>): Promise<unknown>;
|
|
333
333
|
portal(ref?: string, payload?: Record<string, unknown>): Promise<unknown>;
|
|
@@ -347,7 +347,7 @@ export interface ManifestChatHandle {
|
|
|
347
347
|
[extra: string]: unknown;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
/** `$chat` from the chat
|
|
350
|
+
/** `$chat` from the chat module — adapter-based conversation projection. */
|
|
351
351
|
export interface ManifestChat {
|
|
352
352
|
open(conversationId: string, opts?: Record<string, unknown>): ManifestChatHandle;
|
|
353
353
|
merge(handles: ManifestChatHandle[], opts?: Record<string, unknown>): ManifestChatHandle;
|
|
@@ -364,12 +364,12 @@ export interface ManifestStatusEntry {
|
|
|
364
364
|
[extra: string]: unknown;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
/** `$status` from the status
|
|
367
|
+
/** `$status` from the status module: `$status.api.state`, iterable, stringifies to the overall state. */
|
|
368
368
|
export interface ManifestStatus extends Iterable<ManifestStatusEntry> {
|
|
369
369
|
readonly [name: string]: any;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
/** `$presence` from the Appwrite presences
|
|
372
|
+
/** `$presence` from the Appwrite presences module. */
|
|
373
373
|
export interface ManifestPresence {
|
|
374
374
|
start(opts?: Record<string, unknown>): Promise<unknown>;
|
|
375
375
|
stop(): void;
|
|
@@ -384,7 +384,7 @@ export interface ManifestPresence {
|
|
|
384
384
|
readonly me: unknown;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
/** `$date(id?)` from the datepicker
|
|
387
|
+
/** `$date(id?)` from the datepicker module — the picker API for the nearest (or given) instance. */
|
|
388
388
|
export type ManifestDate = (id?: string) => Record<string, unknown>;
|
|
389
389
|
|
|
390
390
|
/** `x-chart` config object (standalone; annotate config objects with it). */
|
|
@@ -416,10 +416,10 @@ export interface ManifestChartConfig {
|
|
|
416
416
|
[key: string]: unknown;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
/** `$chart(id?)` from the charts
|
|
419
|
+
/** `$chart(id?)` from the charts module — the chart API for the nearest (or given) instance. */
|
|
420
420
|
export type ManifestChart = (id?: string) => Record<string, unknown>;
|
|
421
421
|
|
|
422
|
-
/** `$export(opts)` from the export
|
|
422
|
+
/** `$export(opts)` from the export module — export the page or a data source (pdf/csv/json/...). */
|
|
423
423
|
export type ManifestExport = (opts?: {
|
|
424
424
|
format?: string;
|
|
425
425
|
filename?: string;
|
|
@@ -428,7 +428,7 @@ export type ManifestExport = (opts?: {
|
|
|
428
428
|
[extra: string]: unknown;
|
|
429
429
|
}) => Promise<unknown>;
|
|
430
430
|
|
|
431
|
-
/** `$import(opts)` from the import
|
|
431
|
+
/** `$import(opts)` from the import module — pick a local file and parse it (json/csv). Resolves the parsed data, or null when the dialog is dismissed. */
|
|
432
432
|
export type ManifestImport = (opts?: {
|
|
433
433
|
format?: 'json' | 'csv';
|
|
434
434
|
/** Data source to replace with the parsed content. */
|
|
@@ -438,7 +438,7 @@ export type ManifestImport = (opts?: {
|
|
|
438
438
|
[extra: string]: unknown;
|
|
439
439
|
}) => Promise<unknown>;
|
|
440
440
|
|
|
441
|
-
/** `$device` from the utilities
|
|
441
|
+
/** `$device` from the utilities module (enriched by the device module when present). */
|
|
442
442
|
export interface ManifestDevice {
|
|
443
443
|
readonly os: string;
|
|
444
444
|
readonly touch: boolean;
|
|
@@ -448,11 +448,11 @@ export interface ManifestDevice {
|
|
|
448
448
|
readonly platform: string;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
|
-
/** `$share` from the device
|
|
451
|
+
/** `$share` from the device module — native sheet, web share, or clipboard fallback. */
|
|
452
452
|
export type ManifestShare = (opts?: { title?: string; text?: string; url?: string }) =>
|
|
453
453
|
Promise<{ shared: boolean; method: string; cancelled?: boolean }>;
|
|
454
454
|
|
|
455
|
-
/** `$push` from the device
|
|
455
|
+
/** `$push` from the device module — push/notification permissions and token. */
|
|
456
456
|
export interface ManifestPush {
|
|
457
457
|
/** Ask for permission, on your schedule (never prompted on load). */
|
|
458
458
|
request(): Promise<'granted' | 'denied' | 'prompt' | 'unsupported' | string>;
|
|
@@ -466,7 +466,7 @@ export interface ManifestPush {
|
|
|
466
466
|
[extra: string]: unknown;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
/** `$secure` from the device
|
|
469
|
+
/** `$secure` from the device module — Keychain/Keystore via a native plugin; unencrypted localStorage on the web only; rejects on native without a plugin. */
|
|
470
470
|
export interface ManifestSecure {
|
|
471
471
|
get(key: string): Promise<string | null>;
|
|
472
472
|
set(key: string, value: string): Promise<void>;
|
|
@@ -476,7 +476,7 @@ export interface ManifestSecure {
|
|
|
476
476
|
use(adapter: unknown): void;
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
/** `$links` from the device
|
|
479
|
+
/** `$links` from the device module — deep/universal link handling. */
|
|
480
480
|
export interface ManifestLinks {
|
|
481
481
|
/** Take over an inbound link: link.url is the full URL, link.path the route it maps to. */
|
|
482
482
|
on(handler: (link: { url: string; path: string }) => void): void;
|
|
@@ -484,13 +484,13 @@ export interface ManifestLinks {
|
|
|
484
484
|
readonly last: string | null;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
/** `$app` from the device
|
|
487
|
+
/** `$app` from the device module — foreground/background state. */
|
|
488
488
|
export interface ManifestApp {
|
|
489
489
|
readonly active: boolean;
|
|
490
490
|
onChange(handler: (active: boolean) => void): void;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
/** `$haptics` from the device
|
|
493
|
+
/** `$haptics` from the device module — haptic feedback with web vibration fallback. */
|
|
494
494
|
export interface ManifestHaptics {
|
|
495
495
|
impact(style?: 'LIGHT' | 'MEDIUM' | 'HEAVY' | string): Promise<unknown>;
|
|
496
496
|
notification(type?: 'SUCCESS' | 'WARNING' | 'ERROR' | string): Promise<unknown>;
|
|
@@ -499,7 +499,7 @@ export interface ManifestHaptics {
|
|
|
499
499
|
[extra: string]: unknown;
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
/** `$biometric` from the device
|
|
502
|
+
/** `$biometric` from the device module. */
|
|
503
503
|
export interface ManifestBiometric {
|
|
504
504
|
available(): Promise<boolean>;
|
|
505
505
|
verify(opts?: {
|
|
@@ -512,7 +512,7 @@ export interface ManifestBiometric {
|
|
|
512
512
|
}): Promise<{ verified: boolean; error?: string; code?: string }>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
|
-
/** `$camera` from the device
|
|
515
|
+
/** `$camera` from the device module. */
|
|
516
516
|
export interface ManifestCamera {
|
|
517
517
|
photo(opts?: Record<string, unknown>): Promise<unknown>;
|
|
518
518
|
pick(opts?: Record<string, unknown>): Promise<unknown>;
|
|
@@ -534,7 +534,7 @@ export interface ManifestEditClasses {
|
|
|
534
534
|
list(el?: Element): string[];
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
/** Element editor (`x-edit`) — opt-in
|
|
537
|
+
/** Element editor (`x-edit`) — opt-in module. Modifiers: `.text` `.move` `.size`
|
|
538
538
|
* `.data` (default text + move), `.lock[.action]`, `.gated`, `.persist`, `.bare`,
|
|
539
539
|
* `.theme`, `.cssvar`. Every edit is logged; actions default to `$edit.target`. */
|
|
540
540
|
export interface ManifestEdit {
|
|
@@ -857,62 +857,66 @@ declare global {
|
|
|
857
857
|
* Recomputed once per flush when a tracked dependency changes; reads as a plain property with a stable identity in between.
|
|
858
858
|
*/
|
|
859
859
|
const $computed: <T>(fn: (this: any) => T) => T;
|
|
860
|
-
/** Appwrite auth
|
|
860
|
+
/** Appwrite auth module (present when the module is loaded). */
|
|
861
861
|
const $auth: ManifestAuth;
|
|
862
|
-
/** Localization
|
|
862
|
+
/** Localization module. */
|
|
863
863
|
const $locale: ManifestLocale;
|
|
864
|
-
/** Toasts
|
|
864
|
+
/** Toasts module. */
|
|
865
865
|
const $toast: ManifestToast;
|
|
866
|
-
/** Color-mode
|
|
866
|
+
/** Color-mode module (`$color.current = 'dark'`). */
|
|
867
867
|
const $color: ManifestColor;
|
|
868
|
-
/** Colorpicker
|
|
868
|
+
/** Colorpicker module. */
|
|
869
869
|
const $colorpicker: ManifestColorpicker;
|
|
870
|
-
/** URL parameters
|
|
870
|
+
/** URL parameters module (`$url.tab.value`). */
|
|
871
871
|
const $url: ManifestUrl;
|
|
872
|
-
/** Payments
|
|
872
|
+
/** Payments module. */
|
|
873
873
|
const $pay: ManifestPay;
|
|
874
|
-
/** Chat
|
|
874
|
+
/** Chat module. */
|
|
875
875
|
const $chat: ManifestChat;
|
|
876
|
-
/** Status
|
|
876
|
+
/** Status module. */
|
|
877
877
|
const $status: ManifestStatus;
|
|
878
|
-
/** Appwrite presences
|
|
878
|
+
/** Appwrite presences module. */
|
|
879
879
|
const $presence: ManifestPresence;
|
|
880
|
-
/** Datepicker
|
|
880
|
+
/** Datepicker module. */
|
|
881
881
|
const $date: ManifestDate;
|
|
882
|
-
/** Charts
|
|
882
|
+
/** Charts module. */
|
|
883
883
|
const $chart: ManifestChart;
|
|
884
|
-
/** Export
|
|
884
|
+
/** Export module. */
|
|
885
885
|
const $export: ManifestExport;
|
|
886
|
-
/** Import
|
|
886
|
+
/** Import module. */
|
|
887
887
|
const $import: ManifestImport;
|
|
888
|
-
/** Element editor (edit
|
|
888
|
+
/** Element editor (edit module; opt-in). */
|
|
889
889
|
const $edit: ManifestEdit;
|
|
890
|
-
/** Rich text editor (rich-text
|
|
890
|
+
/** Rich text editor (rich-text module; loaded on use). */
|
|
891
891
|
const $rich: ManifestRichText;
|
|
892
|
-
/** Device/platform info (utilities; enriched by the device
|
|
892
|
+
/** Device/platform info (utilities; enriched by the device module). */
|
|
893
893
|
const $device: ManifestDevice;
|
|
894
|
-
/** Native share (device
|
|
894
|
+
/** Native share (device module). */
|
|
895
895
|
const $share: ManifestShare;
|
|
896
|
-
/** Push permissions (device
|
|
896
|
+
/** Push permissions (device module). */
|
|
897
897
|
const $push: ManifestPush;
|
|
898
|
-
/** Secure storage (device
|
|
898
|
+
/** Secure storage (device module). */
|
|
899
899
|
const $secure: ManifestSecure;
|
|
900
|
-
/** Deep links (device
|
|
900
|
+
/** Deep links (device module). */
|
|
901
901
|
const $links: ManifestLinks;
|
|
902
|
-
/** App foreground state (device
|
|
902
|
+
/** App foreground state (device module). */
|
|
903
903
|
const $app: ManifestApp;
|
|
904
|
-
/** Haptics (device
|
|
904
|
+
/** Haptics (device module). */
|
|
905
905
|
const $haptics: ManifestHaptics;
|
|
906
|
-
/** Biometric auth (device
|
|
906
|
+
/** Biometric auth (device module). */
|
|
907
907
|
const $biometric: ManifestBiometric;
|
|
908
|
-
/** Camera (device
|
|
908
|
+
/** Camera (device module). */
|
|
909
909
|
const $camera: ManifestCamera;
|
|
910
910
|
|
|
911
911
|
/** Window-level Manifest namespace exposed by the loader. */
|
|
912
912
|
interface Window {
|
|
913
913
|
Manifest?: {
|
|
914
|
+
loadModule(name: string, version?: string): Promise<unknown>;
|
|
915
|
+
/** @deprecated Use loadModule. */
|
|
914
916
|
loadPlugin(name: string, version?: string): Promise<unknown>;
|
|
915
917
|
loadTailwind(version?: string): Promise<unknown>;
|
|
918
|
+
getModuleUrl(name: string, version?: string): string;
|
|
919
|
+
/** @deprecated Use getModuleUrl. */
|
|
916
920
|
getPluginUrl(name: string, version?: string): string;
|
|
917
921
|
/** Defer a closed container built at runtime (call before Alpine.initTree). */
|
|
918
922
|
defer?(el: Element): unknown;
|
|
@@ -932,7 +936,7 @@ declare global {
|
|
|
932
936
|
/** Mark a timer callback as housekeeping that never changes the page (auto settle ignores it). */
|
|
933
937
|
background<T extends Function>(fn: T): T;
|
|
934
938
|
};
|
|
935
|
-
/** Rich text engine (rich-text
|
|
939
|
+
/** Rich text engine (rich-text module). */
|
|
936
940
|
ManifestRichText?: {
|
|
937
941
|
attach(el: Element, options?: ManifestRichTextAttachOptions): ManifestRichTextHandle | null;
|
|
938
942
|
toMarkdown(root: Element): string;
|
|
@@ -940,7 +944,7 @@ declare global {
|
|
|
940
944
|
sanitize(html: string, allowBlocks?: boolean, keepStyle?: boolean): string;
|
|
941
945
|
commands(): string[];
|
|
942
946
|
};
|
|
943
|
-
/** Form sending (submissions
|
|
947
|
+
/** Form sending (submissions module; loaded on first x-submit). */
|
|
944
948
|
ManifestSubmissions?: {
|
|
945
949
|
readonly events: { sent: string; error: string };
|
|
946
950
|
send(form: HTMLFormElement, submitter?: HTMLElement | null): Promise<ManifestSubmitDetail>;
|
package/lib/manifest.data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest.appwrite.auth.js": "sha384-gWLSeVPqCLMiUZB8MU7GqMg3x2yULFUsp8nTTZrPp/9Dlkix42rBn9yIimvwrHqZ",
|
|
3
|
-
"manifest.appwrite.data.js": "sha384
|
|
3
|
+
"manifest.appwrite.data.js": "sha384-rDfxrj9vsqJ954CNRHc4k4wpxuFsRcOjvKnka05K+jKoB4UWwN0Xm+9qVsVeE8P0",
|
|
4
4
|
"manifest.appwrite.presences.js": "sha384-LINPhIPTCK+rA8zd+HPUzMSEgH6Sl2vQMEyItT97bnEE2FYGYKqjXX+CWdt6nl9z",
|
|
5
5
|
"manifest.bindings.js": "sha384-lPtMf8Ykaic9gNVZKq8Scia1881ZeMAyxer3WCIkUNwwrgzGBWto1OXADUwjvORF",
|
|
6
6
|
"manifest.charts.js": "sha384-BnTxO3ncLxg82aV+64tQMS3ssN+RKZ69Dic6Oruz0pw+/UIK2MAZicg8+ooHF2ZA",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"manifest.combobox.js": "sha384-/lJo6vaxKjgnBSRs/dzkhK1dzGk3GBw8FISoNJZB70mwAVwu1k5veZyBXjOb4keS",
|
|
12
12
|
"manifest.components.js": "sha384-7lu4Nw2GqpAUn63c3gYEvgfM58PYsdoPv3wzqPQfZ5bravqOY/lfE8HFKHsKflQj",
|
|
13
13
|
"manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
|
|
14
|
-
"manifest.data.js": "sha384-
|
|
14
|
+
"manifest.data.js": "sha384-olskWu10vurW+a/7ujRO6hbGHXFMx5Mcm3Fkwod5CaaCsfrZmv9rjo+Qnbc23pVe",
|
|
15
15
|
"manifest.datepicker.js": "sha384-EzlMwvIxlla/0BuyhAEqxN0M8TGcWIWgEIg840V0akKQQK1uY648wPWMkobvtq/o",
|
|
16
16
|
"manifest.defer.js": "sha384-PRp7+dCZHnnl55rX2xrHutLrQnszHo7o5o9Tq28M/yjLZPuXDzcwQNxCdvbtCYSz",
|
|
17
17
|
"manifest.device.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"manifest.status.js": "sha384-ofu7nBnVIGZ1U1o2R9d2H3V8aEMPUCVbl5FO3gIToXqi0oa36fTviEdh5UU7Kitw",
|
|
30
30
|
"manifest.submissions.js": "sha384-v9eS47ytAfTGIKAyVnbd0QWegucVS7yduvigqfsxxoqXmbaEoy0M2y+BiI4xeZBd",
|
|
31
31
|
"manifest.svg.js": "sha384-qr/8H9+2cIhSXNbRWRtIdrDlTOxKlNJqwEefHvCYoiBNW/kKhPTFa109Orv/EBnb",
|
|
32
|
-
"manifest.sw.js": "sha384-
|
|
32
|
+
"manifest.sw.js": "sha384-W5Jdc6iSRNCvlEOFcyKXH0IGdCP4cjEzObtEmytCbFZOsbsgdUdn2vpvdBsJCIq/",
|
|
33
33
|
"manifest.tabs.js": "sha384-otU09H7jnawVKQdLAYpMCd3jx00tgyPVr42D2hLIBzN5dG4se505YesavdnMqEi1",
|
|
34
34
|
"manifest.tailwind.js": "sha384-yuP3LEvWU+QVjxjkZ0YhErtC9RrGmhOmHjjFjhS9obqZbp5/KTIEnSR0CXDvHE0B",
|
|
35
35
|
"manifest.toasts.js": "sha384-UpOz9fAdGeGUhL0NamBg5iPepEfIy73p9HYdcxfOQC5b7CVsl7Our0skdZzaLNcC",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"manifest.url.parameters.js": "sha384-J2aSVBOPsoqsbafHndrWLHEDpKb4AKJAoQnVmKA4gZh5P/8HHjFWHO/lkusmG84l",
|
|
38
38
|
"manifest.utilities.js": "sha384-J6NZCPmeHPo12kcsUzJNJmjxX67MASCwdHUoLvV3Ty003zOi09quLrf5ghpzfw8a",
|
|
39
39
|
"manifest.virtual.js": "sha384-PtIDx042i29mkxEYZH+y3whBzKgBgV01CU1XzzeEl/8TBPl9qvny4ppyXgYI5DsM",
|
|
40
|
-
"manifest.js": "sha384-
|
|
40
|
+
"manifest.js": "sha384-vaJVFuwnaYalVw8vjut1si3Kqwk5+sDHiC3iScfS417NSWqfhNZNBdvcF2lUbuz+"
|
|
41
41
|
}
|
package/lib/manifest.js
CHANGED
|
@@ -905,21 +905,22 @@
|
|
|
905
905
|
return null;
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
|
|
908
|
+
// `data-modules` is canonical; `data-plugins` is the legacy alias.
|
|
909
|
+
const plugins = script.getAttribute('data-modules') ?? script.getAttribute('data-plugins');
|
|
909
910
|
const omit = script.getAttribute('data-omit');
|
|
910
911
|
const tailwind = script.getAttribute('data-tailwind') !== null;
|
|
911
912
|
const version = script.getAttribute('data-version') || DEFAULT_VERSION;
|
|
912
913
|
const alpine = script.getAttribute('data-alpine');
|
|
913
914
|
// Override: resolve plugin URLs against this base (dir serving
|
|
914
915
|
// `manifest.<name>.js`, relative or absolute) instead of the CDN.
|
|
915
|
-
const pluginBase = script.getAttribute('data-plugin-base');
|
|
916
|
+
const pluginBase = script.getAttribute('data-module-base') ?? script.getAttribute('data-plugin-base');
|
|
916
917
|
// Override: custom CDN fallback chain (comma-separated origins).
|
|
917
918
|
const cdn = script.getAttribute('data-cdn');
|
|
918
919
|
// App-shell service worker switch: 'off' = never, 'on' = force + debug log.
|
|
919
920
|
const sw = script.getAttribute('data-sw');
|
|
920
921
|
|
|
921
|
-
// `data-
|
|
922
|
-
// (`data-
|
|
922
|
+
// `data-modules="a,b"` replaces the default set; a `+` prefix is additive
|
|
923
|
+
// (`data-modules="+chat"` = defaults plus chat) — needed for modules with
|
|
923
924
|
// no manifest.json trigger, e.g. chat driven by custom adapters only.
|
|
924
925
|
let pluginList = [];
|
|
925
926
|
let extraPlugins = [];
|
|
@@ -1007,8 +1008,8 @@
|
|
|
1007
1008
|
const allPlugins = [...AVAILABLE_PLUGINS, ...USAGE_LOADED_PLUGINS, ...APPWRITE_PLUGINS, ...AUTHORING_PLUGINS, 'payments', 'chat', 'device', 'native', 'import', 'tailwind'];
|
|
1008
1009
|
if (!allPlugins.includes(pluginName)) {
|
|
1009
1010
|
if (RENAMED_PLUGINS[pluginName]) dropRenamed([pluginName]);
|
|
1010
|
-
else console.warn(`[Manifest Loader] Unknown
|
|
1011
|
-
return Promise.reject(new Error(`Unknown
|
|
1011
|
+
else console.warn(`[Manifest Loader] Unknown module: ${pluginName}`);
|
|
1012
|
+
return Promise.reject(new Error(`Unknown module: ${pluginName}`));
|
|
1012
1013
|
}
|
|
1013
1014
|
|
|
1014
1015
|
// Resolve dependencies for single plugin load
|
|
@@ -1019,10 +1020,13 @@
|
|
|
1019
1020
|
},
|
|
1020
1021
|
loadTailwind: loadTailwind,
|
|
1021
1022
|
getPluginUrl: getPluginUrl,
|
|
1023
|
+
getModuleUrl: getPluginUrl,
|
|
1022
1024
|
// On-use plugins referenced by an HTML string or element
|
|
1023
1025
|
loadUsed: loadUsed
|
|
1024
1026
|
};
|
|
1025
1027
|
|
|
1028
|
+
window.Manifest.loadModule = window.Manifest.loadPlugin;
|
|
1029
|
+
|
|
1026
1030
|
// ---- App-shell service worker (PERF-PRIMITIVES-DESIGN §13) ----
|
|
1027
1031
|
// Same-origin `/sw.js` stub — two lines, identical wherever it is emitted
|
|
1028
1032
|
// (managed hosting, mnfst-publish, the starter template, by hand):
|
package/lib/manifest.sw.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
// Build stamps the published version here; unstamped (dev) falls back to the
|
|
18
18
|
// registration URL's `v`, then 'dev'.
|
|
19
|
-
const BUILD_VERSION = '0.5.
|
|
19
|
+
const BUILD_VERSION = '0.5.302';
|
|
20
20
|
const CACHE_PREFIX = 'mnfst-sw:';
|
|
21
21
|
const META_CACHE = CACHE_PREFIX + 'meta';
|
|
22
22
|
// Sized to hold a full precache.json warm-up (PRECACHE_MAX_ENTRIES server-side)
|