@sprucelabs/heartwood-view-controllers 118.0.18 → 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.
@@ -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';
@@ -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<VC extends Pick<ViewController<any>, "render" | "setTriggerRenderHandler">>(vc: VC, options?: RenderOptions): ReturnType<VC["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
- if (message.includes('<')) {
128
+ const isHtml = message.includes('</');
129
+ if (isHtml) {
129
130
  text.html = message;
130
131
  }
131
132
  else {
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<VC extends Pick<ViewController<any>, "render" | "setTriggerRenderHandler">>(vc: VC, options?: RenderOptions): ReturnType<VC["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 {
@@ -112,7 +112,8 @@ class AbstractViewController {
112
112
  }
113
113
  this.activeAlert = { ...options, title };
114
114
  const text = {};
115
- if (message.includes('<')) {
115
+ const isHtml = message.includes('</');
116
+ if (isHtml) {
116
117
  text.html = message;
117
118
  }
118
119
  else {
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.18",
16
+ "version": "118.0.19",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {