@sprucelabs/heartwood-view-controllers 118.0.17 → 118.0.19
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/build/esm/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/tests/MockRtcPeerConnection.js +0 -4
- package/build/esm/tests/utilities/vcAssert.d.ts +1 -1
- package/build/esm/utilities/render.utility.d.ts +2 -1
- package/build/esm/viewControllers/Abstract.vc.js +2 -1
- package/build/esm/webRtcStreaming/WebRtcConnection.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/tests/MockRtcPeerConnection.js +0 -4
- package/build/tests/utilities/vcAssert.d.ts +1 -1
- package/build/utilities/render.utility.d.ts +2 -1
- package/build/viewControllers/Abstract.vc.js +2 -1
- package/build/webRtcStreaming/WebRtcConnection.js +1 -1
- package/package.json +4 -3
package/build/esm/index.d.ts
CHANGED
|
@@ -184,9 +184,9 @@ export { default as confirmTestPatcher } from './tests/utilities/confirmTestPatc
|
|
|
184
184
|
export { default as dialogTestPatcher } from './tests/utilities/dialogTestPatcher';
|
|
185
185
|
export { default as routerTestPatcher } from './tests/utilities/routerTestPatcher';
|
|
186
186
|
export { default as renderUtil } from './utilities/render.utility';
|
|
187
|
+
export * from './utilities/render.utility';
|
|
187
188
|
export { default as mapAssert } from './tests/utilities/mapAssert';
|
|
188
189
|
export { default as mapInteractor } from './tests/utilities/mapInteractor';
|
|
189
|
-
export * from './utilities/render.utility';
|
|
190
190
|
export { default as listUtil } from './viewControllers/list/list.utility';
|
|
191
191
|
export { default as splitCardsIntoLayouts } from './utilities/splitCardsIntoLayouts';
|
|
192
192
|
export { default as buildSkillViewLayout } from './utilities/buildSkillViewLayout';
|
package/build/esm/index.js
CHANGED
|
@@ -183,9 +183,9 @@ export { default as confirmTestPatcher } from './tests/utilities/confirmTestPatc
|
|
|
183
183
|
export { default as dialogTestPatcher } from './tests/utilities/dialogTestPatcher.js';
|
|
184
184
|
export { default as routerTestPatcher } from './tests/utilities/routerTestPatcher.js';
|
|
185
185
|
export { default as renderUtil } from './utilities/render.utility.js';
|
|
186
|
+
export * from './utilities/render.utility.js';
|
|
186
187
|
export { default as mapAssert } from './tests/utilities/mapAssert.js';
|
|
187
188
|
export { default as mapInteractor } from './tests/utilities/mapInteractor.js';
|
|
188
|
-
export * from './utilities/render.utility.js';
|
|
189
189
|
export { default as listUtil } from './viewControllers/list/list.utility.js';
|
|
190
190
|
export { default as splitCardsIntoLayouts } from './utilities/splitCardsIntoLayouts.js';
|
|
191
191
|
export { default as buildSkillViewLayout } from './utilities/buildSkillViewLayout.js';
|
|
@@ -286,6 +286,6 @@ export default vcAssert;
|
|
|
286
286
|
export declare function getViewId(c: ViewController<any>): any;
|
|
287
287
|
export declare function pullCardsFromSkillView(vc: SkillViewController<Record<string, any>>, factory: any): CardViewController[];
|
|
288
288
|
export declare function normalizeScopeFromVc(vc: SkillViewController<Record<string, any>>): ScopeFlag[];
|
|
289
|
-
export type AlertViewController = Pick<DialogViewController, 'hide' | 'getIsVisible' | 'getShouldShowCloseButton' | 'wait' | 'render'> & {
|
|
289
|
+
export type AlertViewController = Pick<DialogViewController, 'hide' | 'getIsVisible' | 'getShouldShowCloseButton' | 'wait' | 'render' | 'triggerRender' | 'setTriggerRenderHandler'> & {
|
|
290
290
|
alertOptions: AlertOptions;
|
|
291
291
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ViewController } from '../types/heartwood.types';
|
|
2
|
+
export type RenderUtilVc = Pick<ViewController<any>, 'render' | 'setTriggerRenderHandler'>;
|
|
2
3
|
declare const renderUtil: {
|
|
3
|
-
render<
|
|
4
|
+
render<Vc extends RenderUtilVc>(vc: Vc, options?: RenderOptions): ReturnType<Vc["render"]>;
|
|
4
5
|
};
|
|
5
6
|
export default renderUtil;
|
|
6
7
|
export interface RenderOptions {
|
|
@@ -125,7 +125,8 @@ export default class AbstractViewController {
|
|
|
125
125
|
}
|
|
126
126
|
this.activeAlert = Object.assign(Object.assign({}, options), { title });
|
|
127
127
|
const text = {};
|
|
128
|
-
|
|
128
|
+
const isHtml = message.includes('</');
|
|
129
|
+
if (isHtml) {
|
|
129
130
|
text.html = message;
|
|
130
131
|
}
|
|
131
132
|
else {
|
|
@@ -14,7 +14,7 @@ export default class WebRtcConnection {
|
|
|
14
14
|
return window.RTCPeerConnection;
|
|
15
15
|
}
|
|
16
16
|
static set RTCPeerConnection(value) {
|
|
17
|
-
window.RTCPeerConnection = value;
|
|
17
|
+
global.window.RTCPeerConnection = value;
|
|
18
18
|
}
|
|
19
19
|
static createOffer(options) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
package/build/index.d.ts
CHANGED
|
@@ -184,9 +184,9 @@ export { default as confirmTestPatcher } from './tests/utilities/confirmTestPatc
|
|
|
184
184
|
export { default as dialogTestPatcher } from './tests/utilities/dialogTestPatcher';
|
|
185
185
|
export { default as routerTestPatcher } from './tests/utilities/routerTestPatcher';
|
|
186
186
|
export { default as renderUtil } from './utilities/render.utility';
|
|
187
|
+
export * from './utilities/render.utility';
|
|
187
188
|
export { default as mapAssert } from './tests/utilities/mapAssert';
|
|
188
189
|
export { default as mapInteractor } from './tests/utilities/mapInteractor';
|
|
189
|
-
export * from './utilities/render.utility';
|
|
190
190
|
export { default as listUtil } from './viewControllers/list/list.utility';
|
|
191
191
|
export { default as splitCardsIntoLayouts } from './utilities/splitCardsIntoLayouts';
|
|
192
192
|
export { default as buildSkillViewLayout } from './utilities/buildSkillViewLayout';
|
package/build/index.js
CHANGED
|
@@ -370,11 +370,11 @@ var routerTestPatcher_1 = require("./tests/utilities/routerTestPatcher");
|
|
|
370
370
|
Object.defineProperty(exports, "routerTestPatcher", { enumerable: true, get: function () { return __importDefault(routerTestPatcher_1).default; } });
|
|
371
371
|
var render_utility_1 = require("./utilities/render.utility");
|
|
372
372
|
Object.defineProperty(exports, "renderUtil", { enumerable: true, get: function () { return __importDefault(render_utility_1).default; } });
|
|
373
|
+
__exportStar(require("./utilities/render.utility"), exports);
|
|
373
374
|
var mapAssert_1 = require("./tests/utilities/mapAssert");
|
|
374
375
|
Object.defineProperty(exports, "mapAssert", { enumerable: true, get: function () { return __importDefault(mapAssert_1).default; } });
|
|
375
376
|
var mapInteractor_1 = require("./tests/utilities/mapInteractor");
|
|
376
377
|
Object.defineProperty(exports, "mapInteractor", { enumerable: true, get: function () { return __importDefault(mapInteractor_1).default; } });
|
|
377
|
-
__exportStar(require("./utilities/render.utility"), exports);
|
|
378
378
|
var list_utility_1 = require("./viewControllers/list/list.utility");
|
|
379
379
|
Object.defineProperty(exports, "listUtil", { enumerable: true, get: function () { return __importDefault(list_utility_1).default; } });
|
|
380
380
|
var splitCardsIntoLayouts_1 = require("./utilities/splitCardsIntoLayouts");
|
|
@@ -286,6 +286,6 @@ export default vcAssert;
|
|
|
286
286
|
export declare function getViewId(c: ViewController<any>): any;
|
|
287
287
|
export declare function pullCardsFromSkillView(vc: SkillViewController<Record<string, any>>, factory: any): CardViewController[];
|
|
288
288
|
export declare function normalizeScopeFromVc(vc: SkillViewController<Record<string, any>>): ScopeFlag[];
|
|
289
|
-
export type AlertViewController = Pick<DialogViewController, 'hide' | 'getIsVisible' | 'getShouldShowCloseButton' | 'wait' | 'render'> & {
|
|
289
|
+
export type AlertViewController = Pick<DialogViewController, 'hide' | 'getIsVisible' | 'getShouldShowCloseButton' | 'wait' | 'render' | 'triggerRender' | 'setTriggerRenderHandler'> & {
|
|
290
290
|
alertOptions: AlertOptions;
|
|
291
291
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ViewController } from '../types/heartwood.types';
|
|
2
|
+
export type RenderUtilVc = Pick<ViewController<any>, 'render' | 'setTriggerRenderHandler'>;
|
|
2
3
|
declare const renderUtil: {
|
|
3
|
-
render<
|
|
4
|
+
render<Vc extends RenderUtilVc>(vc: Vc, options?: RenderOptions): ReturnType<Vc["render"]>;
|
|
4
5
|
};
|
|
5
6
|
export default renderUtil;
|
|
6
7
|
export interface RenderOptions {
|
|
@@ -10,7 +10,7 @@ class WebRtcConnection {
|
|
|
10
10
|
return window.RTCPeerConnection;
|
|
11
11
|
}
|
|
12
12
|
static set RTCPeerConnection(value) {
|
|
13
|
-
window.RTCPeerConnection = value;
|
|
13
|
+
global.window.RTCPeerConnection = value;
|
|
14
14
|
}
|
|
15
15
|
static async createOffer(options) {
|
|
16
16
|
const { offerOptions } = (0, schema_1.assertOptions)(options, ['offerOptions']);
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"description": "All the power of Heartwood in one, convenient package.",
|
|
16
|
-
"version": "118.0.
|
|
16
|
+
"version": "118.0.19",
|
|
17
17
|
"skill": {
|
|
18
18
|
"namespace": "HeartwoodViewControllers",
|
|
19
19
|
"commandOverrides": {
|
|
@@ -108,9 +108,7 @@
|
|
|
108
108
|
"@sprucelabs/test": "^9.0.77",
|
|
109
109
|
"@types/node": "^22.13.13",
|
|
110
110
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
111
|
-
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
112
111
|
"chokidar-cli": "^3.0.0",
|
|
113
|
-
"enzyme": "^3.11.0",
|
|
114
112
|
"eslint": "^9.23.0",
|
|
115
113
|
"eslint-config-spruce": "^11.2.26",
|
|
116
114
|
"jest": "^29.7.0",
|
|
@@ -125,6 +123,9 @@
|
|
|
125
123
|
},
|
|
126
124
|
"jest": {
|
|
127
125
|
"testRunner": "jest-circus/runner",
|
|
126
|
+
"setupFilesAfterEnv": [
|
|
127
|
+
"<rootDir>/src/__tests__/support/setup.js"
|
|
128
|
+
],
|
|
128
129
|
"maxWorkers": 6,
|
|
129
130
|
"testTimeout": 120000,
|
|
130
131
|
"testEnvironment": "node",
|