@adobe/exc-app 1.5.2 → 1.5.3
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/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/nest.d.ts +0 -28
- package/nest.js +0 -24
- package/nest.js.map +0 -1
- package/tests/capabilityapi.test.d.ts +0 -1
- package/tests/capabilityapi.test.js +0 -89
- package/tests/capabilityapi.test.js.map +0 -1
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* then your use, modification, or distribution of it requires the prior
|
|
9
9
|
* written permission of Adobe.
|
|
10
10
|
**************************************************************************/
|
|
11
|
-
declare const EXC_APP_VERSION = "1.5.
|
|
11
|
+
declare const EXC_APP_VERSION = "1.5.3";
|
|
12
12
|
export default EXC_APP_VERSION;
|
package/version.js
CHANGED
|
@@ -10,6 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
* then your use, modification, or distribution of it requires the prior
|
|
11
11
|
* written permission of Adobe.
|
|
12
12
|
**************************************************************************/
|
|
13
|
-
const EXC_APP_VERSION = '1.5.
|
|
13
|
+
const EXC_APP_VERSION = '1.5.3';
|
|
14
14
|
exports.default = EXC_APP_VERSION;
|
|
15
15
|
//# sourceMappingURL=version.js.map
|
package/nest.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*************************************************************************
|
|
2
|
-
* Copyright 2024 Adobe
|
|
3
|
-
* All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
6
|
-
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
|
-
* it. If you have received this file from a source other than Adobe,
|
|
8
|
-
* then your use, modification, or distribution of it requires the prior
|
|
9
|
-
* written permission of Adobe.
|
|
10
|
-
**************************************************************************/
|
|
11
|
-
export interface InitializationOptions {
|
|
12
|
-
id: string;
|
|
13
|
-
path?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface NestApi {
|
|
16
|
-
/**
|
|
17
|
-
* Initializes the Nest API.
|
|
18
|
-
*
|
|
19
|
-
* ***Example:***
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const frameUrl = await nest.initialize({id: 'platformAnalytics', path: '/workspace/edit/6230d3d4015694327f10aa6a'});
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
initialize: (options: InitializationOptions) => Promise<string>;
|
|
26
|
-
}
|
|
27
|
-
declare const nest: NestApi;
|
|
28
|
-
export default nest;
|
package/nest.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*************************************************************************
|
|
3
|
-
* Copyright 2024 Adobe
|
|
4
|
-
* All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
7
|
-
* accordance with the terms of the Adobe license agreement accompanying
|
|
8
|
-
* it. If you have received this file from a source other than Adobe,
|
|
9
|
-
* then your use, modification, or distribution of it requires the prior
|
|
10
|
-
* written permission of Adobe.
|
|
11
|
-
**************************************************************************/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
/**
|
|
14
|
-
* @packageDocumentation
|
|
15
|
-
* @module nest
|
|
16
|
-
*/
|
|
17
|
-
const Global_1 = require("./src/Global");
|
|
18
|
-
const nest = {
|
|
19
|
-
initialize: (options) => {
|
|
20
|
-
return (0, Global_1.getImpl)('nestApi')().initialize(options);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.default = nest;
|
|
24
|
-
//# sourceMappingURL=nest.js.map
|
package/nest.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest.js","sourceRoot":"","sources":["nest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;4EAS4E;;AAE5E;;;GAGG;AACH,yCAAqC;AAoBrC,MAAM,IAAI,GAAG;IACX,UAAU,EAAE,CAAC,OAA8B,EAAmB,EAAE;QAC9D,OAAO,IAAA,gBAAO,EAAC,SAAS,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;CACS,CAAC;AAEb,kBAAe,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
-
};
|
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
/*************************************************************************
|
|
39
|
-
* Copyright 2020 Adobe
|
|
40
|
-
* All Rights Reserved.
|
|
41
|
-
*
|
|
42
|
-
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
43
|
-
* accordance with the terms of the Adobe license agreement accompanying
|
|
44
|
-
* it. If you have received this file from a source other than Adobe,
|
|
45
|
-
* then your use, modification, or distribution of it requires the prior
|
|
46
|
-
* written permission of Adobe.
|
|
47
|
-
**************************************************************************/
|
|
48
|
-
const capabilityapi_1 = __importStar(require("../capabilityapi"));
|
|
49
|
-
const Global_1 = __importDefault(require("../src/Global"));
|
|
50
|
-
describe('capabilityapi', () => {
|
|
51
|
-
beforeEach(() => {
|
|
52
|
-
Global_1.default['exc-module-runtime'] = {
|
|
53
|
-
capabilityApi: () => {
|
|
54
|
-
return {
|
|
55
|
-
get: (type) => {
|
|
56
|
-
if (type === 'home' || type === 'Home') {
|
|
57
|
-
return {
|
|
58
|
-
capabilityId: 'home',
|
|
59
|
-
iconUrl: 'https://cdn.experience-stage.adobe.net/assets/CapabilityIcons.33cbb3cf.svg#Home'
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
if (type === 'assets' || type === 'Assets') {
|
|
63
|
-
return {
|
|
64
|
-
capabilityId: 'assets',
|
|
65
|
-
iconUrl: 'https://cdn.experience-stage.adobe.net/assets/CapabilityIcons.33cbb3cf.svg#Assets'
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
return {};
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
test('get', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
75
|
-
const homeById = yield capabilityapi_1.default.get(capabilityapi_1.CapabilityIds.HOME);
|
|
76
|
-
const homeByName = yield capabilityapi_1.default.get(capabilityapi_1.CapabilityNames.HOME);
|
|
77
|
-
const assetsById = yield capabilityapi_1.default.get(capabilityapi_1.CapabilityIds.ASSETS);
|
|
78
|
-
const assetsByName = yield capabilityapi_1.default.get(capabilityapi_1.CapabilityNames.ASSETS);
|
|
79
|
-
expect(homeById.capabilityId).toBe('home');
|
|
80
|
-
expect(homeByName.capabilityId).toBe('home');
|
|
81
|
-
expect(homeById.iconUrl).toBe('https://cdn.experience-stage.adobe.net/assets/CapabilityIcons.33cbb3cf.svg#Home');
|
|
82
|
-
expect(homeByName.iconUrl).toBe('https://cdn.experience-stage.adobe.net/assets/CapabilityIcons.33cbb3cf.svg#Home');
|
|
83
|
-
expect(assetsById.capabilityId).toBe('assets');
|
|
84
|
-
expect(assetsByName.capabilityId).toBe('assets');
|
|
85
|
-
expect(assetsById.iconUrl).toBe('https://cdn.experience-stage.adobe.net/assets/CapabilityIcons.33cbb3cf.svg#Assets');
|
|
86
|
-
expect(assetsByName.iconUrl).toBe('https://cdn.experience-stage.adobe.net/assets/CapabilityIcons.33cbb3cf.svg#Assets');
|
|
87
|
-
}));
|
|
88
|
-
});
|
|
89
|
-
//# sourceMappingURL=capabilityapi.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilityapi.test.js","sourceRoot":"","sources":["capabilityapi.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,kEAA+E;AAC/E,2D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