@adobe/ccweb-add-on-manifest 2.2.0 → 2.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/AddOnManifest.d.ts +4 -4
- package/dist/AddOnManifest.d.ts.map +1 -1
- package/dist/AddOnManifest.js.map +1 -1
- package/dist/AddOnManifestTypes.d.ts +22 -20
- package/dist/AddOnManifestTypes.d.ts.map +1 -1
- package/dist/AddOnManifestTypes.js +3 -4
- package/dist/AddOnManifestTypes.js.map +1 -1
- package/dist/AddOnManifestValidator.js.map +1 -1
- package/dist/ValidationUtils.js.map +1 -1
- package/dist/generated/validateManifestSchema.d.mts.map +1 -1
- package/dist/generated/validateManifestSchema.mjs +9 -9
- package/dist/generated/validateManifestSchema.mjs.map +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.d.ts +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.d.ts.map +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.js.map +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.d.ts +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.d.ts.map +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.js.map +1 -1
- package/dist/test/utils/TestManifests.d.ts +3 -3
- package/dist/test/utils/TestManifests.d.ts.map +1 -1
- package/dist/test/utils/TestManifests.js +34 -11
- package/dist/test/utils/TestManifests.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
package/dist/AddOnManifest.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ import { AddOnManifestRequirement } from "./manifest-field/AddOnManifestRequirem
|
|
|
29
29
|
* More details on the schema and fields are present here:
|
|
30
30
|
* https://wiki.corp.adobe.com/display/WXP/Add-in+Manifest+and+Structure
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type AddOnManifestV1 = {
|
|
33
33
|
readonly id: string;
|
|
34
34
|
readonly name: string | LocalisedStrings;
|
|
35
35
|
readonly version: string;
|
|
@@ -39,7 +39,7 @@ export declare type AddOnManifestV1 = {
|
|
|
39
39
|
readonly entryPoints: readonly EntrypointV1[];
|
|
40
40
|
readonly authorInfo?: AuthorInfo;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type AddOnManifestV2 = {
|
|
43
43
|
readonly testId?: string;
|
|
44
44
|
readonly name?: string;
|
|
45
45
|
readonly version: string;
|
|
@@ -55,8 +55,8 @@ interface AddOnManifestTypeMap {
|
|
|
55
55
|
[ManifestVersion.V1]: AddOnManifestV1;
|
|
56
56
|
[ManifestVersion.V2]: AddOnManifestV2;
|
|
57
57
|
}
|
|
58
|
-
export
|
|
59
|
-
export
|
|
58
|
+
export type AddOnManifestType<T extends ManifestVersion> = AddOnManifestTypeMap[T];
|
|
59
|
+
export type CreateManifestResult = {
|
|
60
60
|
manifestValidationResult: ManifestValidationResult;
|
|
61
61
|
manifest?: AddOnManifest;
|
|
62
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddOnManifest.d.ts","sourceRoot":"","sources":["../src/AddOnManifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAElF,OAAO,EACH,SAAS,EACT,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAExF;;;;GAIG;AAGH,
|
|
1
|
+
{"version":3,"file":"AddOnManifest.d.ts","sourceRoot":"","sources":["../src/AddOnManifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAElF,OAAO,EACH,SAAS,EACT,cAAc,EACd,aAAa,EACb,UAAU,EAC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AI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;gBAC5C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC;YACpG,CAAC,CAAC,CAAC;QACP,CAAC;QACD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,IAAI,UAAU;QACV,QAAQ,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;YACrC,KAAK,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;gBACtB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,SAAkD,CAAC;gBAC/E,OAAO,UAAU,CAAC;YACtB,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACN,OAAO,SAAS,CAAC;YACrB,CAAC;QACL,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
* More details on the schema here and the fiels are present here:
|
|
26
26
|
* https://wiki.corp.adobe.com/display/WXP/Add-in+Manifest+and+Structure
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type RequirementsV1 = {
|
|
29
29
|
readonly apps: string[];
|
|
30
30
|
readonly experimentalApis?: boolean;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type App = {
|
|
33
33
|
readonly name: string;
|
|
34
34
|
readonly apiVersion: number;
|
|
35
35
|
readonly supportedDeviceClass?: string[];
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type TrustedPartnerApis = {
|
|
38
38
|
readonly messaging?: boolean;
|
|
39
39
|
readonly expressPrint?: boolean;
|
|
40
40
|
readonly addOnLifecycle?: boolean;
|
|
41
41
|
readonly toastNotifications?: boolean;
|
|
42
42
|
readonly tiktokcml?: boolean;
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type RequirementsV2 = {
|
|
45
45
|
readonly apps: readonly App[];
|
|
46
46
|
readonly experimentalApis?: boolean;
|
|
47
47
|
readonly supportsTouch?: boolean;
|
|
@@ -50,7 +50,7 @@ export declare type RequirementsV2 = {
|
|
|
50
50
|
readonly _blessedPartnerAccess?: string;
|
|
51
51
|
readonly trustedPartnerApis?: TrustedPartnerApis;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type IconType = {
|
|
54
54
|
/** * icon width */
|
|
55
55
|
readonly width?: number;
|
|
56
56
|
/** * icon height */
|
|
@@ -60,33 +60,33 @@ export declare type IconType = {
|
|
|
60
60
|
/** * icon theme ex. ["all","light"] */
|
|
61
61
|
readonly theme?: readonly string[];
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export type Size = {
|
|
64
64
|
readonly width: number;
|
|
65
65
|
readonly height: number;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type Resizing = {
|
|
68
68
|
readonly prefersConstrainedResize: boolean;
|
|
69
69
|
readonly maxHeight?: number;
|
|
70
70
|
readonly maxWidth?: number;
|
|
71
71
|
readonly minHeight?: number;
|
|
72
72
|
readonly minWidth?: number;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type LocalisedStrings = {
|
|
75
75
|
readonly default: string;
|
|
76
76
|
readonly [k: string]: string;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type Position = {
|
|
79
79
|
readonly x: number;
|
|
80
80
|
readonly y: number;
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type Permissions = {
|
|
83
83
|
readonly sandbox?: string[];
|
|
84
84
|
readonly oauth?: string[];
|
|
85
85
|
readonly camera?: string;
|
|
86
86
|
readonly microphone?: string;
|
|
87
87
|
readonly clipboard?: string[];
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type EntrypointV1 = {
|
|
90
90
|
readonly type: string;
|
|
91
91
|
readonly id: string;
|
|
92
92
|
readonly label: string | LocalisedStrings;
|
|
@@ -94,7 +94,7 @@ export declare type EntrypointV1 = {
|
|
|
94
94
|
readonly defaultSize?: Size;
|
|
95
95
|
readonly main: string;
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export type EntrypointV2 = Omit<EntrypointV1, "label"> & {
|
|
98
98
|
/**
|
|
99
99
|
* @deprecated Use `documentSandbox` instead.
|
|
100
100
|
*/
|
|
@@ -103,8 +103,8 @@ export declare type EntrypointV2 = Omit<EntrypointV1, "label"> & {
|
|
|
103
103
|
readonly discoverable?: boolean;
|
|
104
104
|
readonly hostDomain?: string;
|
|
105
105
|
};
|
|
106
|
-
export
|
|
107
|
-
export
|
|
106
|
+
export type ManifestEntrypoint = EntrypointV1 | EntrypointV2;
|
|
107
|
+
export type ManifestRequirements = RequirementsV1 | RequirementsV2;
|
|
108
108
|
/**
|
|
109
109
|
* Note: This enum expects values wrt manifest permission properties to support iframe allow permissions.
|
|
110
110
|
*/
|
|
@@ -118,9 +118,11 @@ export declare enum EntrypointType {
|
|
|
118
118
|
COMMAND = "command",
|
|
119
119
|
PANEL = "panel",
|
|
120
120
|
SHARE = "share",
|
|
121
|
-
CONTENT_HUB = "content-hub"
|
|
121
|
+
CONTENT_HUB = "content-hub",
|
|
122
|
+
MOBILE_MEDIA_AUDIO = "mobile.media.audio",
|
|
123
|
+
MOBILE_YOUR_STUFF_FILES = "mobile.your-stuff.files"
|
|
122
124
|
}
|
|
123
|
-
export
|
|
125
|
+
export type AuthorInfo = {
|
|
124
126
|
/** Author name */
|
|
125
127
|
readonly name: string;
|
|
126
128
|
/** Author email address */
|
|
@@ -134,13 +136,13 @@ export declare type AuthorInfo = {
|
|
|
134
136
|
* params: Params property is the object with the additional information about error
|
|
135
137
|
* message: Error message for the failure
|
|
136
138
|
*/
|
|
137
|
-
export
|
|
139
|
+
export type ManifestError = {
|
|
138
140
|
instancePath?: string;
|
|
139
141
|
keyword?: string;
|
|
140
142
|
params?: unknown;
|
|
141
143
|
message?: string;
|
|
142
144
|
};
|
|
143
|
-
|
|
145
|
+
type ManifestErrorType = {
|
|
144
146
|
[key: string]: ManifestError;
|
|
145
147
|
};
|
|
146
148
|
/**
|
|
@@ -152,7 +154,7 @@ export declare const OTHER_MANIFEST_ERRORS: ManifestErrorType;
|
|
|
152
154
|
* errorDetails: contains all error logs from validation
|
|
153
155
|
* warningDetails: contains all warning logs from validation
|
|
154
156
|
*/
|
|
155
|
-
export
|
|
157
|
+
export type ManifestValidationResult = {
|
|
156
158
|
success: boolean;
|
|
157
159
|
errorDetails?: ManifestError[];
|
|
158
160
|
warningDetails?: ManifestError[];
|
|
@@ -175,7 +177,7 @@ export declare enum AddOnLogLevel {
|
|
|
175
177
|
warning = "warning",
|
|
176
178
|
error = "error"
|
|
177
179
|
}
|
|
178
|
-
export
|
|
180
|
+
export type AddOnLogAction = (...args: unknown[]) => unknown;
|
|
179
181
|
export declare function isIframeEntryPointType(entryPointType: EntrypointType): boolean;
|
|
180
182
|
export {};
|
|
181
183
|
//# sourceMappingURL=AddOnManifestTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddOnManifestTypes.d.ts","sourceRoot":"","sources":["../src/AddOnManifestTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAElF;;;GAGG;AAEH,
|
|
1
|
+
{"version":3,"file":"AddOnManifestTypes.d.ts","sourceRoot":"","sources":["../src/AddOnManifestTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAElF;;;GAGG;AAEH,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IACd,QAAQ,CAAC,IAAI,EAAE,MAAM,CAA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AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACtB,QAAQ,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;IACxC,cAAc,EAAE,mBAAmB,CAAC;CACvC;AAED,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAE7D,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAE9E"}
|
|
@@ -37,6 +37,8 @@ export var EntrypointType;
|
|
|
37
37
|
EntrypointType["PANEL"] = "panel";
|
|
38
38
|
EntrypointType["SHARE"] = "share";
|
|
39
39
|
EntrypointType["CONTENT_HUB"] = "content-hub";
|
|
40
|
+
EntrypointType["MOBILE_MEDIA_AUDIO"] = "mobile.media.audio";
|
|
41
|
+
EntrypointType["MOBILE_YOUR_STUFF_FILES"] = "mobile.your-stuff.files";
|
|
40
42
|
})(EntrypointType || (EntrypointType = {}));
|
|
41
43
|
/**
|
|
42
44
|
* Defines the Error Type other than avj libray validations for the Manifest
|
|
@@ -94,9 +96,6 @@ export var AddOnLogLevel;
|
|
|
94
96
|
AddOnLogLevel["error"] = "error";
|
|
95
97
|
})(AddOnLogLevel || (AddOnLogLevel = {}));
|
|
96
98
|
export function isIframeEntryPointType(entryPointType) {
|
|
97
|
-
return
|
|
98
|
-
entryPointType === EntrypointType.WIDGET ||
|
|
99
|
-
entryPointType === EntrypointType.SHARE ||
|
|
100
|
-
entryPointType === EntrypointType.CONTENT_HUB);
|
|
99
|
+
return entryPointType !== EntrypointType.COMMAND;
|
|
101
100
|
}
|
|
102
101
|
//# sourceMappingURL=AddOnManifestTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddOnManifestTypes.js","sourceRoot":"","sources":["../src/AddOnManifestTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAoGlF;;GAEG;AACH,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACb,0BAAiB,CAAA;IACjB,kCAAyB,CAAA;IACzB,gCAAuB,CAAA;AAC3B,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AAED,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"AddOnManifestTypes.js","sourceRoot":"","sources":["../src/AddOnManifestTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAoGlF;;GAEG;AACH,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACb,0BAAiB,CAAA;IACjB,kCAAyB,CAAA;IACzB,gCAAuB,CAAA;AAC3B,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AAED,MAAM,CAAN,IAAY,cAQX;AARD,WAAY,cAAc;IACtB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,6CAA2B,CAAA;IAC3B,2DAAyC,CAAA;IACzC,qEAAmD,CAAA;AACvD,CAAC,EARW,cAAc,KAAd,cAAc,QAQzB;AA4BD;;GAEG;AACH,MAAM,CAAC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":"","sources":["../src/ValidationUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkB,aAAa,EAA2C,MAAM,yBAAyB,CAAC;AACjH,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAErG,yEAAyE;AACzE,MAAM,0BAA0B,GAAG,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,CAAC;AAEjF,SAAS,SAAS,CACd,cAAuB,EACvB,WAA2D;IAE3D,MAAM,cAAc,GAAI,cAAmC,CAAC,MAAM,CAAC;IACnE,MAAM,QAAQ,GAAG,WAAW,EAAE,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACvD,IAAI,QAAQ,KAAK,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"ValidationUtils.js","sourceRoot":"","sources":["../src/ValidationUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;kFAsBkF;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAkB,aAAa,EAA2C,MAAM,yBAAyB,CAAC;AACjH,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAErG,yEAAyE;AACzE,MAAM,0BAA0B,GAAG,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,CAAC;AAEjF,SAAS,SAAS,CACd,cAAuB,EACvB,WAA2D;IAE3D,MAAM,cAAc,GAAI,cAAmC,CAAC,MAAM,CAAC;IACnE,MAAM,QAAQ,GAAG,WAAW,EAAE,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACvD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC7B,CAAC;IACD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,cAAc,CAAC,CAAC;IAC7D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,0BAA0B,CACtC,QAAuC,EACvC,WAA2D;IAE3D,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,IAAI,eAAe,CAAC,EAAE,CAAC;IACvE,MAAM,eAAe,GAAG,0BAA0B,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,OAAO,SAAS,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,gBAAkD;IAClF,MAAM,MAAM,GAAoB,EAAE,CAAC;IACnC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,QAAuC,EAAE,gBAAyB;IACjG,IAAI,gBAAgB,EAAE,CAAC;QACnB,OAAO,QAAQ,CAAC,eAAe,IAAI,eAAe,CAAC,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,QAAQ,CAAC,eAAe,CAAC;AACpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateManifestSchema.d.mts","sourceRoot":"","sources":["../../src/generated/validateManifestSchema.mjs"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validateManifestSchema.d.mts","sourceRoot":"","sources":["../../src/generated/validateManifestSchema.mjs"],"names":[],"mappings":"AAAs0F;;;;;YAA41gC;AAAg9E;;;;;YAA25/B;AAAknF;;;;;YAAoz0B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
export const validateSchemaV1 = validate10;
|
|
3
|
-
const schema11 = { "$id": "#/definitions/manifestSchemaV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "name", "version", "manifestVersion", "requirements", "icon", "entryPoints"], "additionalProperties": false };
|
|
3
|
+
const schema11 = { "$id": "#/definitions/manifestSchemaV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "name", "version", "manifestVersion", "requirements", "icon", "entryPoints"], "additionalProperties": false };
|
|
4
4
|
const pattern0 = new RegExp("^(Express)$", "u");
|
|
5
5
|
const pattern1 = new RegExp("^(lightest|light|medium|dark|darkest|all)$", "u");
|
|
6
|
-
const pattern3 = new RegExp("^(panel|share|content-hub)$", "u");
|
|
6
|
+
const pattern3 = new RegExp("^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$", "u");
|
|
7
7
|
const pattern4 = new RegExp("^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$", "u");
|
|
8
8
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaV1" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
9
9
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -738,7 +738,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
738
738
|
if (errors === _errs69) {
|
|
739
739
|
if (typeof data27 === "string") {
|
|
740
740
|
if (!pattern3.test(data27)) {
|
|
741
|
-
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
741
|
+
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" + "\"" }];
|
|
742
742
|
return false;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
@@ -1165,7 +1165,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1165
1165
|
}
|
|
1166
1166
|
} validate10.errors = vErrors; return errors === 0; }
|
|
1167
1167
|
export const validateSchemaDeveloperV1 = validate11;
|
|
1168
|
-
const schema12 = { "$id": "#/definitions/manifestSchemaDeveloperV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "externalURL": { "type": "string" }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "entryPoints"], "additionalProperties": true };
|
|
1168
|
+
const schema12 = { "$id": "#/definitions/manifestSchemaDeveloperV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "externalURL": { "type": "string" }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "entryPoints"], "additionalProperties": true };
|
|
1169
1169
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaDeveloperV1" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
1170
1170
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1171
1171
|
let missing0;
|
|
@@ -1890,7 +1890,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1890
1890
|
if (errors === _errs69) {
|
|
1891
1891
|
if (typeof data27 === "string") {
|
|
1892
1892
|
if (!pattern3.test(data27)) {
|
|
1893
|
-
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
1893
|
+
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" + "\"" }];
|
|
1894
1894
|
return false;
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
@@ -2329,10 +2329,10 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2329
2329
|
}
|
|
2330
2330
|
} validate11.errors = vErrors; return errors === 0; }
|
|
2331
2331
|
export const validateSchemaV2 = validate12;
|
|
2332
|
-
const schema13 = { "$id": "#/definitions/manifestSchemaV2", "type": "object", "properties": { "testId": { "type": "string" }, "name": { "type": "string", "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$" }, "version": { "type": "string", "pattern": "^[0-9]+.[0-9]+.[0-9]+$" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^(Express)$" }, "apiVersion": { "type": "number" }, "supportedDeviceClass": { "type": "array", "items": { "type": "string", "pattern": "^(desktop|mobile|app)$" } } }, "required": ["name", "apiVersion"], "additionalProperties": false } }, "experimentalApis": { "type": "boolean" }, "supportsTouch": { "type": "boolean" }, "renditionPreview": { "type": "boolean" }, "privilegedApis": { "type": "boolean" }, "_blessedPartnerAccess": { "type": "string" }, "trustedPartnerApis": { "type": "object", "properties": { "messaging": { "type": "boolean" }, "expressPrint": { "type": "boolean" }, "toastNotifications": { "type": "boolean" }, "addOnLifecycle": { "type": "boolean" }, "tiktokcml": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false }, "discoverable": { "type": "boolean" } }, "required": ["type", "id", "main"], "additionalProperties": false } } }, "required": ["version", "manifestVersion", "requirements", "entryPoints"], "additionalProperties": true };
|
|
2332
|
+
const schema13 = { "$id": "#/definitions/manifestSchemaV2", "type": "object", "properties": { "testId": { "type": "string" }, "name": { "type": "string", "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$" }, "version": { "type": "string", "pattern": "^[0-9]+.[0-9]+.[0-9]+$" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^(Express)$" }, "apiVersion": { "type": "number" }, "supportedDeviceClass": { "type": "array", "items": { "type": "string", "pattern": "^(desktop|mobile|app|mobile-ios|mobile-android)$" } } }, "required": ["name", "apiVersion"], "additionalProperties": false } }, "experimentalApis": { "type": "boolean" }, "supportsTouch": { "type": "boolean" }, "renditionPreview": { "type": "boolean" }, "privilegedApis": { "type": "boolean" }, "_blessedPartnerAccess": { "type": "string" }, "trustedPartnerApis": { "type": "object", "properties": { "messaging": { "type": "boolean" }, "expressPrint": { "type": "boolean" }, "toastNotifications": { "type": "boolean" }, "addOnLifecycle": { "type": "boolean" }, "tiktokcml": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false }, "discoverable": { "type": "boolean" } }, "required": ["type", "id", "main"], "additionalProperties": false } } }, "required": ["version", "manifestVersion", "requirements", "entryPoints"], "additionalProperties": true };
|
|
2333
2333
|
const pattern10 = new RegExp("^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$", "u");
|
|
2334
2334
|
const pattern11 = new RegExp("^[0-9]+.[0-9]+.[0-9]+$", "u");
|
|
2335
|
-
const pattern13 = new RegExp("^(desktop|mobile|app)$", "u");
|
|
2335
|
+
const pattern13 = new RegExp("^(desktop|mobile|app|mobile-ios|mobile-android)$", "u");
|
|
2336
2336
|
const pattern16 = new RegExp("^(clipboard-write|clipboard-read)$", "u");
|
|
2337
2337
|
const func2 = Object.prototype.hasOwnProperty;
|
|
2338
2338
|
function validate12(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaV2" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
@@ -2504,7 +2504,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2504
2504
|
if (errors === _errs24) {
|
|
2505
2505
|
if (typeof data10 === "string") {
|
|
2506
2506
|
if (!pattern13.test(data10)) {
|
|
2507
|
-
validate12.errors = [{ instancePath: instancePath + "/requirements/apps/" + i0 + "/supportedDeviceClass/" + i1, schemaPath: "#/properties/requirements/properties/apps/items/properties/supportedDeviceClass/items/pattern", keyword: "pattern", params: { pattern: "^(desktop|mobile|app)$" }, message: "must match pattern \"" + "^(desktop|mobile|app)$" + "\"" }];
|
|
2507
|
+
validate12.errors = [{ instancePath: instancePath + "/requirements/apps/" + i0 + "/supportedDeviceClass/" + i1, schemaPath: "#/properties/requirements/properties/apps/items/properties/supportedDeviceClass/items/pattern", keyword: "pattern", params: { pattern: "^(desktop|mobile|app|mobile-ios|mobile-android)$" }, message: "must match pattern \"" + "^(desktop|mobile|app|mobile-ios|mobile-android)$" + "\"" }];
|
|
2508
2508
|
return false;
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
@@ -2758,7 +2758,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2758
2758
|
if (errors === _errs54) {
|
|
2759
2759
|
if (typeof data24 === "string") {
|
|
2760
2760
|
if (!pattern3.test(data24)) {
|
|
2761
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub)$" }, message: "must match pattern \"" + "^(panel|share|content-hub)$" + "\"" }];
|
|
2761
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio)$" + "\"" }];
|
|
2762
2762
|
return false;
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|