@sprucelabs/spruce-test-fixtures 62.2.25 → 62.2.26
Sign up to get free protection for your applications and to get access to all the features.
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/tests/FakeThemeManager.d.ts +8 -0
- package/build/esm/tests/FakeThemeManager.js +37 -0
- package/build/esm/tests/fixtures/ViewFixture.d.ts +1 -1
- package/build/esm/tests/routers/TestRouter.d.ts +1 -1
- package/build/esm/tests/routers/TestRouter.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/tests/FakeThemeManager.d.ts +8 -0
- package/build/tests/FakeThemeManager.js +40 -0
- package/build/tests/fixtures/ViewFixture.d.ts +1 -1
- package/build/tests/routers/TestRouter.d.ts +1 -1
- package/build/tests/routers/TestRouter.js +1 -1
- package/package.json +3 -3
package/build/esm/index.d.ts
CHANGED
@@ -20,7 +20,7 @@ export { default as install } from './tests/decorators/install';
|
|
20
20
|
export { default as fake } from './tests/decorators/fake';
|
21
21
|
export { default as eventFaker } from './tests/eventFaker';
|
22
22
|
export { default as ClientProxyDecorator } from './ClientProxyDecorator';
|
23
|
-
export { default as FakeThemeManager } from './
|
23
|
+
export { default as FakeThemeManager } from './tests/FakeThemeManager';
|
24
24
|
export { default as SpyScope } from './tests/fixtures/SpyScope';
|
25
25
|
export { default as FakeAuthorizer } from './tests/FakeAuthorizer';
|
26
26
|
export { default as SpyViewControllerFactory } from './tests/SpyViewControllerFactory';
|
package/build/esm/index.js
CHANGED
@@ -20,7 +20,7 @@ export { default as install } from './tests/decorators/install.js';
|
|
20
20
|
export { default as fake } from './tests/decorators/fake.js';
|
21
21
|
export { default as eventFaker } from './tests/eventFaker.js';
|
22
22
|
export { default as ClientProxyDecorator } from './ClientProxyDecorator.js';
|
23
|
-
export { default as FakeThemeManager } from './
|
23
|
+
export { default as FakeThemeManager } from './tests/FakeThemeManager.js';
|
24
24
|
export { default as SpyScope } from './tests/fixtures/SpyScope.js';
|
25
25
|
export { default as FakeAuthorizer } from './tests/FakeAuthorizer.js';
|
26
26
|
export { default as SpyViewControllerFactory } from './tests/SpyViewControllerFactory.js';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { SpruceSchemas, ThemeManager } from '@sprucelabs/heartwood-view-controllers';
|
2
|
+
type Theme = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme;
|
3
|
+
export default class FakeThemeManager implements ThemeManager {
|
4
|
+
private theme;
|
5
|
+
setTheme(theme: Theme): void;
|
6
|
+
getTheme(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme;
|
7
|
+
}
|
8
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export default class FakeThemeManager {
|
2
|
+
constructor() {
|
3
|
+
this.theme = {
|
4
|
+
name: 'Heartwood',
|
5
|
+
props: {
|
6
|
+
color1: '#ffffff',
|
7
|
+
color1Inverse: '#0f4c8a',
|
8
|
+
color1InverseGradient: 'linear-gradient(to left, #24c6dc, #514a9d)',
|
9
|
+
color2: '#757575',
|
10
|
+
color2Transparent: 'rgba(0,0,0,0.2)',
|
11
|
+
color2Inverse: 'white',
|
12
|
+
color2InverseTransparent: 'rgba(255,255,255,0.9)',
|
13
|
+
color3: '#303030',
|
14
|
+
color3Inverse: 'transparent',
|
15
|
+
color3Compliment: '#a7a7a7',
|
16
|
+
color4: '#626262',
|
17
|
+
color4Compliment: 'white',
|
18
|
+
color4ComplimentTransparent: 'rgba(0,0,0,0.1)',
|
19
|
+
color4Inverse: 'white',
|
20
|
+
color4InverseCompliment: '#c7c7c7',
|
21
|
+
controlBarColor1: 'black',
|
22
|
+
controlBarColor2: 'white',
|
23
|
+
toolBeltColor2: '#f1f1f1',
|
24
|
+
errorColor1: '#fff',
|
25
|
+
errorColor1Inverse: '#FF3326',
|
26
|
+
warningColor1: '#A16B14',
|
27
|
+
warningColor1Inverse: '#F7D352',
|
28
|
+
},
|
29
|
+
};
|
30
|
+
}
|
31
|
+
setTheme(theme) {
|
32
|
+
this.theme = Object.assign({}, theme);
|
33
|
+
}
|
34
|
+
getTheme() {
|
35
|
+
return this.theme;
|
36
|
+
}
|
37
|
+
}
|
@@ -59,7 +59,7 @@ export default class ViewFixture {
|
|
59
59
|
private static resetMaps;
|
60
60
|
static resetAuth(): void;
|
61
61
|
load<Svc extends SkillViewController = SkillViewController>(vc: Pick<Svc, 'load' | 'getScope'>, args?: ArgsFromSvc<Svc>): Promise<void>;
|
62
|
-
getThemes(): import("
|
62
|
+
getThemes(): import("../FakeThemeManager").default;
|
63
63
|
private assertScopeRequirementsMet;
|
64
64
|
setScope(scope: Scope): void;
|
65
65
|
getScope(): SpyScope;
|
@@ -2,7 +2,7 @@ import { Locale } from '@sprucelabs/calendar-utils';
|
|
2
2
|
import { Authorizer, Router, Scope, SkillViewController, SkillViewControllerArgs, SkillViewControllerId, SkillViewControllerLoadOptions, SkillViewControllerMap, ViewControllerFactory } from '@sprucelabs/heartwood-view-controllers';
|
3
3
|
import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter';
|
4
4
|
import { MercuryEventEmitter } from '@sprucelabs/mercury-types';
|
5
|
-
import FakeThemeManager from '
|
5
|
+
import FakeThemeManager from '../FakeThemeManager';
|
6
6
|
export default class TestRouter extends AbstractEventEmitter<Contract> implements Router, MercuryEventEmitter<Contract> {
|
7
7
|
private vcFactory;
|
8
8
|
private presentVc?;
|
@@ -11,7 +11,7 @@ import { AuthenticatorImpl, routerTestPatcher, } from '@sprucelabs/heartwood-vie
|
|
11
11
|
import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter';
|
12
12
|
import { buildEventContract, } from '@sprucelabs/mercury-types';
|
13
13
|
import testRouterEmitPayloadSchema from './../../.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema.js';
|
14
|
-
import FakeThemeManager from '
|
14
|
+
import FakeThemeManager from '../FakeThemeManager.js';
|
15
15
|
class TestRouter extends AbstractEventEmitter {
|
16
16
|
static setShouldThrowWhenRedirectingToBadSvc(shouldThrow) {
|
17
17
|
this.shouldThrowWhenRedirectingToBadSvc = shouldThrow;
|
package/build/index.d.ts
CHANGED
@@ -20,7 +20,7 @@ export { default as install } from './tests/decorators/install';
|
|
20
20
|
export { default as fake } from './tests/decorators/fake';
|
21
21
|
export { default as eventFaker } from './tests/eventFaker';
|
22
22
|
export { default as ClientProxyDecorator } from './ClientProxyDecorator';
|
23
|
-
export { default as FakeThemeManager } from './
|
23
|
+
export { default as FakeThemeManager } from './tests/FakeThemeManager';
|
24
24
|
export { default as SpyScope } from './tests/fixtures/SpyScope';
|
25
25
|
export { default as FakeAuthorizer } from './tests/FakeAuthorizer';
|
26
26
|
export { default as SpyViewControllerFactory } from './tests/SpyViewControllerFactory';
|
package/build/index.js
CHANGED
@@ -59,7 +59,7 @@ var eventFaker_1 = require("./tests/eventFaker");
|
|
59
59
|
Object.defineProperty(exports, "eventFaker", { enumerable: true, get: function () { return __importDefault(eventFaker_1).default; } });
|
60
60
|
var ClientProxyDecorator_1 = require("./ClientProxyDecorator");
|
61
61
|
Object.defineProperty(exports, "ClientProxyDecorator", { enumerable: true, get: function () { return __importDefault(ClientProxyDecorator_1).default; } });
|
62
|
-
var FakeThemeManager_1 = require("./
|
62
|
+
var FakeThemeManager_1 = require("./tests/FakeThemeManager");
|
63
63
|
Object.defineProperty(exports, "FakeThemeManager", { enumerable: true, get: function () { return __importDefault(FakeThemeManager_1).default; } });
|
64
64
|
var SpyScope_1 = require("./tests/fixtures/SpyScope");
|
65
65
|
Object.defineProperty(exports, "SpyScope", { enumerable: true, get: function () { return __importDefault(SpyScope_1).default; } });
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { SpruceSchemas, ThemeManager } from '@sprucelabs/heartwood-view-controllers';
|
2
|
+
type Theme = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme;
|
3
|
+
export default class FakeThemeManager implements ThemeManager {
|
4
|
+
private theme;
|
5
|
+
setTheme(theme: Theme): void;
|
6
|
+
getTheme(): SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme;
|
7
|
+
}
|
8
|
+
export {};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
class FakeThemeManager {
|
4
|
+
constructor() {
|
5
|
+
this.theme = {
|
6
|
+
name: 'Heartwood',
|
7
|
+
props: {
|
8
|
+
color1: '#ffffff',
|
9
|
+
color1Inverse: '#0f4c8a',
|
10
|
+
color1InverseGradient: 'linear-gradient(to left, #24c6dc, #514a9d)',
|
11
|
+
color2: '#757575',
|
12
|
+
color2Transparent: 'rgba(0,0,0,0.2)',
|
13
|
+
color2Inverse: 'white',
|
14
|
+
color2InverseTransparent: 'rgba(255,255,255,0.9)',
|
15
|
+
color3: '#303030',
|
16
|
+
color3Inverse: 'transparent',
|
17
|
+
color3Compliment: '#a7a7a7',
|
18
|
+
color4: '#626262',
|
19
|
+
color4Compliment: 'white',
|
20
|
+
color4ComplimentTransparent: 'rgba(0,0,0,0.1)',
|
21
|
+
color4Inverse: 'white',
|
22
|
+
color4InverseCompliment: '#c7c7c7',
|
23
|
+
controlBarColor1: 'black',
|
24
|
+
controlBarColor2: 'white',
|
25
|
+
toolBeltColor2: '#f1f1f1',
|
26
|
+
errorColor1: '#fff',
|
27
|
+
errorColor1Inverse: '#FF3326',
|
28
|
+
warningColor1: '#A16B14',
|
29
|
+
warningColor1Inverse: '#F7D352',
|
30
|
+
},
|
31
|
+
};
|
32
|
+
}
|
33
|
+
setTheme(theme) {
|
34
|
+
this.theme = Object.assign({}, theme);
|
35
|
+
}
|
36
|
+
getTheme() {
|
37
|
+
return this.theme;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
exports.default = FakeThemeManager;
|
@@ -59,7 +59,7 @@ export default class ViewFixture {
|
|
59
59
|
private static resetMaps;
|
60
60
|
static resetAuth(): void;
|
61
61
|
load<Svc extends SkillViewController = SkillViewController>(vc: Pick<Svc, 'load' | 'getScope'>, args?: ArgsFromSvc<Svc>): Promise<void>;
|
62
|
-
getThemes(): import("
|
62
|
+
getThemes(): import("../FakeThemeManager").default;
|
63
63
|
private assertScopeRequirementsMet;
|
64
64
|
setScope(scope: Scope): void;
|
65
65
|
getScope(): SpyScope;
|
@@ -2,7 +2,7 @@ import { Locale } from '@sprucelabs/calendar-utils';
|
|
2
2
|
import { Authorizer, Router, Scope, SkillViewController, SkillViewControllerArgs, SkillViewControllerId, SkillViewControllerLoadOptions, SkillViewControllerMap, ViewControllerFactory } from '@sprucelabs/heartwood-view-controllers';
|
3
3
|
import { AbstractEventEmitter } from '@sprucelabs/mercury-event-emitter';
|
4
4
|
import { MercuryEventEmitter } from '@sprucelabs/mercury-types';
|
5
|
-
import FakeThemeManager from '
|
5
|
+
import FakeThemeManager from '../FakeThemeManager';
|
6
6
|
export default class TestRouter extends AbstractEventEmitter<Contract> implements Router, MercuryEventEmitter<Contract> {
|
7
7
|
private vcFactory;
|
8
8
|
private presentVc?;
|
@@ -7,7 +7,7 @@ const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-control
|
|
7
7
|
const mercury_event_emitter_1 = require("@sprucelabs/mercury-event-emitter");
|
8
8
|
const mercury_types_1 = require("@sprucelabs/mercury-types");
|
9
9
|
const testRouterEmitPayload_schema_1 = __importDefault(require("./../../.spruce/schemas/spruceTestFixtures/v2021_07_19/testRouterEmitPayload.schema"));
|
10
|
-
const FakeThemeManager_1 = __importDefault(require("
|
10
|
+
const FakeThemeManager_1 = __importDefault(require("../FakeThemeManager"));
|
11
11
|
class TestRouter extends mercury_event_emitter_1.AbstractEventEmitter {
|
12
12
|
static setShouldThrowWhenRedirectingToBadSvc(shouldThrow) {
|
13
13
|
this.shouldThrowWhenRedirectingToBadSvc = shouldThrow;
|
package/package.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
"@sprucelabs/spruce-test-fixtures"
|
14
14
|
]
|
15
15
|
},
|
16
|
-
"version": "62.2.
|
16
|
+
"version": "62.2.26",
|
17
17
|
"files": [
|
18
18
|
"build/**/*",
|
19
19
|
"!build/__tests__",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"@sprucelabs/spruce-core-schemas": "^40.1.55",
|
72
72
|
"@sprucelabs/spruce-event-utils": "^40.0.126",
|
73
73
|
"@sprucelabs/spruce-permission-utils": "^8.0.184",
|
74
|
-
"@sprucelabs/spruce-skill-booter": "^62.2.
|
74
|
+
"@sprucelabs/spruce-skill-booter": "^62.2.26",
|
75
75
|
"@sprucelabs/spruce-skill-utils": "^31.0.127",
|
76
76
|
"@sprucelabs/test-utils": "^5.1.2",
|
77
77
|
"dotenv": "^16.4.5",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
115
115
|
}
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "44dcb86f4a6c2fd38cf95607e0df092e79305545"
|
118
118
|
}
|