@schemastore/web-manifest 0.0.5 → 0.0.6
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/LICENSE +21 -0
- package/README.md +1 -1
- package/index.d.ts +65 -57
- package/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Florian Imdahl. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
package/README.md
CHANGED
|
@@ -8,5 +8,5 @@ This package contains type definitions for web-manifest.
|
|
|
8
8
|
Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/web-manifest.
|
|
9
9
|
|
|
10
10
|
## Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, Feb 24, 2023, 11:23:42 GMT
|
|
12
12
|
* Dependencies: none
|
package/index.d.ts
CHANGED
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-disable */
|
|
2
2
|
/**
|
|
3
3
|
* This file was automatically generated by json-schema-to-typescript.
|
|
4
4
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* The platform it is associated to.
|
|
10
|
-
*/
|
|
11
|
-
export type Platform = "play" | "itunes" | "windows";
|
|
12
|
-
|
|
13
8
|
export interface JSONSchemaForWebApplicationManifestFiles {
|
|
14
9
|
/**
|
|
15
10
|
* The background_color member describes the expected background color of the web application.
|
|
16
11
|
*/
|
|
17
12
|
background_color?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Describes the expected application categories to which the web application belongs.
|
|
20
|
-
*/
|
|
21
|
-
categories?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* Description of the purpose of the web application
|
|
24
|
-
*/
|
|
25
|
-
description?: string;
|
|
26
13
|
/**
|
|
27
14
|
* The base direction of the manifest.
|
|
28
15
|
*/
|
|
@@ -31,14 +18,10 @@ export interface JSONSchemaForWebApplicationManifestFiles {
|
|
|
31
18
|
* The item represents the developer's preferred display mode for the web application.
|
|
32
19
|
*/
|
|
33
20
|
display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
|
|
34
|
-
/**
|
|
35
|
-
* Represents an ID value of the IARC rating of the web application. It is intended to be used to determine which ages the web application is appropriate for.
|
|
36
|
-
*/
|
|
37
|
-
iarc_rating_id?: string;
|
|
38
21
|
/**
|
|
39
22
|
* The icons member is an array of icon objects that can serve as iconic representations of the web application in various contexts.
|
|
40
23
|
*/
|
|
41
|
-
icons
|
|
24
|
+
icons?: ManifestImageResource[];
|
|
42
25
|
/**
|
|
43
26
|
* The primary language for the values of the manifest.
|
|
44
27
|
*/
|
|
@@ -46,7 +29,7 @@ export interface JSONSchemaForWebApplicationManifestFiles {
|
|
|
46
29
|
/**
|
|
47
30
|
* The name of the web application.
|
|
48
31
|
*/
|
|
49
|
-
name
|
|
32
|
+
name?: string;
|
|
50
33
|
/**
|
|
51
34
|
* The orientation member is a string that serves as the default orientation for all top-level browsing contexts of the web application.
|
|
52
35
|
*/
|
|
@@ -66,41 +49,19 @@ export interface JSONSchemaForWebApplicationManifestFiles {
|
|
|
66
49
|
/**
|
|
67
50
|
* Array of application accessible to the underlying application platform that has a relationship with the web application.
|
|
68
51
|
*/
|
|
69
|
-
related_applications?:
|
|
52
|
+
related_applications?: ExternalApplicationResource[];
|
|
70
53
|
/**
|
|
71
54
|
* A string that represents the navigation scope of this web application's application context.
|
|
72
55
|
*/
|
|
73
56
|
scope?: string;
|
|
74
|
-
/**
|
|
75
|
-
* The screenshots member is an array of image objects represent the web application in common usage scenarios.
|
|
76
|
-
*/
|
|
77
|
-
screenshots?: Image[];
|
|
78
|
-
/**
|
|
79
|
-
* The service worker of the web application.
|
|
80
|
-
*/
|
|
81
|
-
serviceworker?: {
|
|
82
|
-
/**
|
|
83
|
-
* URL representing a service worker.
|
|
84
|
-
*/
|
|
85
|
-
src?: string;
|
|
86
|
-
/**
|
|
87
|
-
* The service worker's associated scope URL.
|
|
88
|
-
*/
|
|
89
|
-
scope?: string;
|
|
90
|
-
/**
|
|
91
|
-
* The service worker's worker type.
|
|
92
|
-
*/
|
|
93
|
-
type?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Determines whether the user agent cache should be used when fetching the service worker.
|
|
96
|
-
*/
|
|
97
|
-
use_cache?: boolean;
|
|
98
|
-
[k: string]: any;
|
|
99
|
-
};
|
|
100
57
|
/**
|
|
101
58
|
* A string that represents a short version of the name of the web application.
|
|
102
59
|
*/
|
|
103
60
|
short_name?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Array of shortcut items that provide access to key tasks within a web application.
|
|
63
|
+
*/
|
|
64
|
+
shortcuts?: ShortcutItem[];
|
|
104
65
|
/**
|
|
105
66
|
* Represents the URL that the developer would prefer the user agent load when the user launches the web application.
|
|
106
67
|
*/
|
|
@@ -109,9 +70,13 @@ export interface JSONSchemaForWebApplicationManifestFiles {
|
|
|
109
70
|
* The theme_color member serves as the default theme color for an application context.
|
|
110
71
|
*/
|
|
111
72
|
theme_color?: string;
|
|
112
|
-
|
|
73
|
+
/**
|
|
74
|
+
* A string that represents the id of the web application.
|
|
75
|
+
*/
|
|
76
|
+
id?: string;
|
|
77
|
+
[k: string]: unknown;
|
|
113
78
|
}
|
|
114
|
-
export interface
|
|
79
|
+
export interface ManifestImageResource {
|
|
115
80
|
/**
|
|
116
81
|
* The sizes member is a string consisting of an unordered set of unique space-separated tokens which are ASCII case-insensitive that represents the dimensions of an image for visual media.
|
|
117
82
|
*/
|
|
@@ -119,17 +84,34 @@ export interface Image {
|
|
|
119
84
|
/**
|
|
120
85
|
* The src member of an image is a URL from which a user agent can fetch the icon's data.
|
|
121
86
|
*/
|
|
122
|
-
src
|
|
87
|
+
src: string;
|
|
123
88
|
/**
|
|
124
89
|
* The type member of an image is a hint as to the media type of the image.
|
|
125
90
|
*/
|
|
126
91
|
type?: string;
|
|
127
|
-
purpose?:
|
|
128
|
-
|
|
129
|
-
|
|
92
|
+
purpose?:
|
|
93
|
+
| "monochrome"
|
|
94
|
+
| "maskable"
|
|
95
|
+
| "any"
|
|
96
|
+
| "monochrome maskable"
|
|
97
|
+
| "monochrome any"
|
|
98
|
+
| "maskable monochrome"
|
|
99
|
+
| "maskable any"
|
|
100
|
+
| "any monochrome"
|
|
101
|
+
| "any maskable"
|
|
102
|
+
| "monochrome maskable any"
|
|
103
|
+
| "monochrome any maskable"
|
|
104
|
+
| "maskable monochrome any"
|
|
105
|
+
| "maskable any monochrome"
|
|
106
|
+
| "any monochrome maskable"
|
|
107
|
+
| "any maskable monochrome";
|
|
108
|
+
[k: string]: unknown;
|
|
130
109
|
}
|
|
131
|
-
export interface
|
|
132
|
-
|
|
110
|
+
export interface ExternalApplicationResource {
|
|
111
|
+
/**
|
|
112
|
+
* The platform it is associated to.
|
|
113
|
+
*/
|
|
114
|
+
platform: "chrome_web_store" | "play" | "itunes" | "windows";
|
|
133
115
|
/**
|
|
134
116
|
* The URL where the application can be found.
|
|
135
117
|
*/
|
|
@@ -148,7 +130,33 @@ export interface RelatedApplication {
|
|
|
148
130
|
fingerprints?: {
|
|
149
131
|
type?: string;
|
|
150
132
|
value?: string;
|
|
151
|
-
[k: string]:
|
|
133
|
+
[k: string]: unknown;
|
|
152
134
|
}[];
|
|
153
|
-
[k: string]:
|
|
135
|
+
[k: string]: unknown;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A shortcut item represents a link to a key task or page within a web app. A user agent can use these values to assemble a context menu to be displayed by the operating system when a user engages with the web app's icon.
|
|
139
|
+
*/
|
|
140
|
+
export interface ShortcutItem {
|
|
141
|
+
/**
|
|
142
|
+
* The name member of a shortcut item is a string that represents the name of the shortcut as it is usually displayed to the user in a context menu.
|
|
143
|
+
*/
|
|
144
|
+
name: string;
|
|
145
|
+
/**
|
|
146
|
+
* The short_name member of a shortcut item is a string that represents a short version of the name of the shortcut. It is intended to be used where there is insufficient space to display the full name of the shortcut.
|
|
147
|
+
*/
|
|
148
|
+
short_name?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The description member of a shortcut item is a string that allows the developer to describe the purpose of the shortcut.
|
|
151
|
+
*/
|
|
152
|
+
description?: string;
|
|
153
|
+
/**
|
|
154
|
+
* The url member of a shortcut item is a URL within scope of a processed manifest that opens when the associated shortcut is activated.
|
|
155
|
+
*/
|
|
156
|
+
url: string;
|
|
157
|
+
/**
|
|
158
|
+
* The icons member of a shortcut item serves as iconic representations of the shortcut in various contexts.
|
|
159
|
+
*/
|
|
160
|
+
icons?: ManifestImageResource[];
|
|
161
|
+
[k: string]: unknown;
|
|
154
162
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "Florian
|
|
2
|
+
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
3
|
"dependencies": {},
|
|
4
4
|
"description": "TypeScript definitions for web-manifest.",
|
|
5
5
|
"license": "MIT",
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"name": "@schemastore/web-manifest",
|
|
8
8
|
"repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/web-manifest",
|
|
9
9
|
"scripts": {},
|
|
10
|
-
"typesPublisherContentHash": "
|
|
10
|
+
"typesPublisherContentHash": "7375c60e24ae02e2838f3fa20396adc53059f3476df506570349cf00eec232e9",
|
|
11
11
|
"types": "index.d.ts",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.6",
|
|
13
13
|
"typeScriptVersion": "2.2"
|
|
14
14
|
}
|