@moneko/core 3.57.9 → 3.58.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/lib/index.d.mts +1 -0
- package/lib/plugin/manifest.d.mts +64 -16
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -16,6 +16,7 @@ export { type JsxDomExpressions, default as jsxDomExpressions, } from './options
|
|
|
16
16
|
export { type OptimizationSplitChunksOptions, default as splitChunk, } from './options/split-chunk.mjs';
|
|
17
17
|
export type { CompressionPluginOptions } from './plugin/compression.mjs';
|
|
18
18
|
export type { HtmlMeta, HtmlPluginOption } from './plugin/html-plugin.mjs';
|
|
19
|
+
export type { WebManifest } from './plugin/manifest.mjs';
|
|
19
20
|
export type { OverrideResolverOption } from './plugin/override-resolve.mjs';
|
|
20
21
|
export type { VirtualModulePluginOption } from './plugin/virtual-module.mjs';
|
|
21
22
|
export { APPTYPE, coreName, FRAMEWORK, isCI, isDev, isLibrary, isMicro, mainDirectory, packageJson, PACKAGENAME, } from './process-env.mjs';
|
|
@@ -1,37 +1,85 @@
|
|
|
1
1
|
import { type Compilation, type Compiler } from 'webpack';
|
|
2
|
+
interface Screenshot {
|
|
3
|
+
src: string;
|
|
4
|
+
type: string;
|
|
5
|
+
sizes: string;
|
|
6
|
+
platform?: 'wide' | string;
|
|
7
|
+
}
|
|
2
8
|
interface Icon {
|
|
3
9
|
src: string;
|
|
4
10
|
type: string;
|
|
5
11
|
sizes: string;
|
|
12
|
+
purpose?: 'any' | 'maskable' | string;
|
|
6
13
|
}
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
type Categories = 'books' | 'business' | 'education' | 'entertainment' | 'finance' | 'fitness' | 'food' | 'games' | 'government' | 'health' | 'kids' | 'lifestyle' | 'magazines' | 'medical' | 'music' | 'navigation' | 'news' | 'personalization' | 'photo' | 'politics' | 'productivity' | 'security' | 'shopping' | 'social' | 'sports' | 'travel' | 'utilities' | 'weather';
|
|
15
|
+
interface Shortcut {
|
|
16
|
+
name: string;
|
|
17
|
+
url: string;
|
|
18
|
+
short_name?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
icons?: Icon[];
|
|
21
|
+
}
|
|
22
|
+
interface ProtocolHandler {
|
|
23
|
+
protocol: string;
|
|
24
|
+
url: string;
|
|
25
|
+
}
|
|
26
|
+
interface RelatedApplication {
|
|
27
|
+
platform?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
interface ShareTarget {
|
|
32
|
+
action: string;
|
|
33
|
+
method?: 'GET' | 'POST';
|
|
34
|
+
enctype?: string;
|
|
35
|
+
params: {
|
|
36
|
+
title?: string;
|
|
37
|
+
url?: string;
|
|
38
|
+
text?: string;
|
|
39
|
+
files?: {
|
|
40
|
+
name?: string;
|
|
41
|
+
accept?: string[];
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
interface EdgeSidePanel {
|
|
46
|
+
preferred_width?: number;
|
|
47
|
+
}
|
|
48
|
+
type Orientation = 'any' | 'natural' | 'portrait' | 'landscape' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
49
|
+
type DisplayOverride = 'window-controls-overlay' | 'standalone' | 'browser';
|
|
50
|
+
type Dir = 'auto' | 'ltr' | 'rtl';
|
|
51
|
+
type Display = 'browser' | 'minimal-ui' | 'standalone' | 'fullscreen';
|
|
52
|
+
export interface WebManifest {
|
|
9
53
|
id?: string;
|
|
10
54
|
name?: string;
|
|
11
55
|
version?: string;
|
|
12
56
|
short_name?: string;
|
|
13
57
|
description?: string;
|
|
14
58
|
start_url?: string;
|
|
15
|
-
|
|
59
|
+
scope?: string;
|
|
60
|
+
dir?: Dir;
|
|
61
|
+
display?: Display;
|
|
62
|
+
display_override?: DisplayOverride[];
|
|
63
|
+
orientation?: Orientation;
|
|
64
|
+
lang?: string;
|
|
65
|
+
iarc_rating_id?: string;
|
|
16
66
|
background_color?: string;
|
|
17
67
|
theme_color?: string;
|
|
68
|
+
related_applications?: RelatedApplication[];
|
|
69
|
+
prefer_related_applications?: boolean;
|
|
18
70
|
icons?: Icon[];
|
|
19
|
-
shortcuts?:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
url: string;
|
|
24
|
-
icons: Icon[];
|
|
25
|
-
}[];
|
|
26
|
-
screenshots?: {
|
|
27
|
-
src: string;
|
|
28
|
-
type: string;
|
|
29
|
-
sizes: string;
|
|
30
|
-
form_factor: string;
|
|
31
|
-
}[];
|
|
71
|
+
shortcuts?: Shortcut[];
|
|
72
|
+
protocol_handlers?: ProtocolHandler[];
|
|
73
|
+
categories?: Categories[];
|
|
74
|
+
screenshots?: Screenshot[];
|
|
32
75
|
content_assets?: string[];
|
|
76
|
+
edge_side_panel?: EdgeSidePanel;
|
|
77
|
+
share_target?: ShareTarget;
|
|
33
78
|
[key: string]: unknown;
|
|
34
79
|
}
|
|
80
|
+
export interface ManifestPluginOption extends WebManifest {
|
|
81
|
+
filename: string;
|
|
82
|
+
}
|
|
35
83
|
export declare class ManifestPlugin {
|
|
36
84
|
private name;
|
|
37
85
|
private options;
|