@lwrjs/router 0.17.2-alpha.1 → 0.17.2-alpha.10

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.
@@ -1,2 +1,2 @@
1
- function e(e){if(null==e)throw new TypeError("Provider must be defined.")}class t{constructor(e){this.infoMap=new WeakMap,this.defaultValue=e}getInfo(e){let t=this.infoMap.get(e);return void 0===t&&(t={consumers:new Set},this.infoMap.set(e,t)),t}setContext(t,n){e(t);const o=n,s=this.getInfo(t);s.contextValue=n,s.consumers.forEach((e=>e.provide(o))),0===s.consumers.size&&o?.onComplete&&o.onComplete()}getContext(t){e(t);const{contextValue:n}=this.getInfo(t);return void 0!==n?n:this.defaultValue}clearContext(t){e(t),this.infoMap.delete(t)}subscribeContext(t,n){e(t);const{consumers:o,contextValue:s}=this.getInfo(t);o.has(n)||(o.add(n),n.provide(s))}unsubscribeContext(t,n){e(t),this.getInfo(t).consumers.delete(n)}}const n="LWR",o=1;function s(e,t){return Array.isArray(t)?e.replace(/\{([0-9]+)\}/g,((e,n)=>t[n])):e}function a(e,t){return`${e.code}: ${s(e.message,t)}`}function i(e,t){const n={...e,message:s(e.message,t)};return e.address&&(n.address=s(e.address,t)),e.stack&&(n.stack=s(e.stack,t)),n}const r={INVALID_MIXIN_CMP:{code:`${n}4001`,message:"{0} must be an Element type",level:o},MISSING_CONTEXT:{code:`${n}4002`,message:"Could not find context to perform navigation action.",level:o},INVALID_CONTEXT:{code:`${n}4003`,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:o},MULTIPLE_ROOTS:{code:`${n}4004`,message:"Router connection failed. There can only be one root router.",level:o},MULTIPLE_CHILDREN:{code:`${n}4005`,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:o},MISSING_ROUTE:{code:`${n}4006`,message:'A route cannot be created to navigate to URL "{0}"',level:o,address:"{0}"},MISSING_URL:{code:`${n}4007`,message:'A URL cannot be created to navigate to route "{0}"',level:o,address:"{0}"},PRENAV_FAILED:{code:`${n}4008`,message:'A preNavigate hook listener blocked routing to "{0}"',level:2,address:"{0}"},MISSING_ROUTE_TEMPLATE:{code:`${n}4009`,message:'Route definition with id "{0}" is missing a "uri" property.',level:o,address:"{0}"},MISSING_ROUTE_CMP:{code:`${n}4016`,message:"Expected a route view component with a default export.",level:o},MISSING_DATA_CONTEXT:{code:`${n}4018`,message:"Could not find context to retrieve navigation data.",level:o},INVALID_ROUTE_QUERY:{code:`${n}4019`,message:"Invalid query param in route definition.",level:o},MISSING_PAGE_BINDING:{code:`${n}4020`,message:'Route definition with id "{0}" is missing a "page" binding.',level:o,address:"{0}"},INVALID_PAGE_BINDING:{code:`${n}4021`,message:'Route definition with id "{0}" has an invalid "page" binding.',level:o,address:"{0}"},INVALID_URI_SYNTAX:{code:`${n}4022`,message:'Route definition with id "{0}" has invalid "uri" syntax. URI cannot contain *, +, (, ), ',level:o,address:"{0}"},VIEW_IMPORT_FAILED:{code:`${n}4023`,message:'Error importing view with name "{0}", failure was: {1}',level:o,stack:"{2}"},VIEW_MISSING:{code:`${n}4024`,message:'Expected a view with name "{0}" in the viewset',level:o},VIEW_IMPORT_FAILED_WITH_SPECIFIER:{code:`${n}4025`,message:'Error importing module "{0}" from view with name "{1}", failure was: {2}',level:o,stack:"{3}"},NO_ROUTE_MATCH:{code:`${n}4026`,message:"A routing match cannot be found for: {0}",level:o},INVALID_ROUTE_HANDLER:{code:`${n}4027`,message:'Route definition "{0}" does not have a valid route handler module',level:o},DESTINATION_NOT_FOUND:{code:`${n}4028`,message:"Route handler returned 404: Not Found",level:o},DESTINATION_ERROR:{code:`${n}4029`,message:"Route handler returned error status {0}: {1}",level:o,stack:"{2}"},NO_INIT_URL:{code:`${n}4030`,message:'Cannot initialize a server router without a "url"',level:o}},c=new WeakMap;function l(e){const t=c.get(e);if(!t||!t.value)throw new Error(a(r.MISSING_CONTEXT));return t.value}function d(e,t){const n={id:e,value:t,update:e=>{n.value=e}};return c.set(n.id,n),n}function u(e){var t;return(t=class{constructor(e){this._callback=e}connect(){}disconnect(){}update(e,t){t&&this._callback(t)}static setContext(t,n){e.setContext(t,n)}static getContext(t){return e.getContext(t)}static clearContext(t){e.clearContext(t)}static subscribeContext(t,n){e.subscribeContext(t,n)}static unsubscribeContext(t,n){e.unsubscribeContext(t,n)}}).contextSchema={value:"required"},t}const I=u(new t(void 0)),v=u(new t(void 0)),g=new t(void 0),m=class extends(u(g)){async update(e,t){if(t){const n=e&&e.viewName?e.viewName:"default",o=t.viewset[n],s=o,a=s&&s.module||o;let c;if(a)try{const e=await a(),t=e&&e.default;if(!t||void 0===t.constructor)throw new Error("error occurred with view import");this._callback(t)}catch(e){const t=e;c=s.specifier?i(r.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[s.specifier,n,t.message,t.stack||""]):i(r.VIEW_IMPORT_FAILED,[n,t.message,t.stack||""])}else c=i(r.VIEW_MISSING,[n]);t.onComplete&&t.onComplete(c)}}};function h(e,t,n,o){l(e).navigate(t,n,o)}function f(e,t,n){return l(e).generateUrl(t,n)}const E=`universalcontainergetnavigationcontext${Math.floor(65536*(1+Math.random())).toString(16).substring(1)}`,_="undefined"==typeof window,N=Symbol("Navigate"),p=Symbol("GenerateUrl"),w=Symbol("NavContext"),C=Symbol("NavContext");function T(e){!function(e,t,n){if(!e)throw new Error(a(t,n))}("function"==typeof e.prototype.dispatchEvent,r.INVALID_MIXIN_CMP,[e.toString()]);return class extends e{[C](){if(!this[w]&&(this.dispatchEvent(new CustomEvent(E,{bubbles:!0,composed:!0,detail:{callback:e=>{this[w]=e}}})),!this[w]))throw new Error(a(r.MISSING_CONTEXT))}[N](e,t,n){_||(this[C](),h(this[w],e,t,n))}async[p](e,t){return _?null:(this[C](),f(this[w],e,t))}}}T.Navigate=N,T.GenerateUrl=p,T.NavContext=w;export{t as ContextInfo,v as CurrentPageReference,m as CurrentView,I as NavigationContext,T as NavigationMixin,u as generateContextualWireAdapter,f as generateUrl,l as getNavigationHelm,h as navigate,d as registerNavigationHelm};
1
+ function e(e){if(null==e)throw new TypeError("Provider must be defined.")}class t{constructor(e){this.infoMap=new WeakMap,this.defaultValue=e}getInfo(e){let t=this.infoMap.get(e);return void 0===t&&(t={consumers:new Set},this.infoMap.set(e,t)),t}setContext(t,n){e(t);const o=n,s=this.getInfo(t);s.contextValue=n,s.consumers.forEach((e=>e.provide(o))),0===s.consumers.size&&o?.onComplete&&o.onComplete()}getContext(t){e(t);const{contextValue:n}=this.getInfo(t);return void 0!==n?n:this.defaultValue}clearContext(t){e(t),this.infoMap.delete(t)}subscribeContext(t,n){e(t);const{consumers:o,contextValue:s}=this.getInfo(t);o.has(n)||(o.add(n),n.provide(s))}unsubscribeContext(t,n){e(t),this.getInfo(t).consumers.delete(n)}}const n="LWR",o=1;function s(e,t){return Array.isArray(t)?e.replace(/\{([0-9]+)\}/g,((e,n)=>t[n])):e}function a(e,t){return`${e.code}: ${s(e.message,t)}`}function i(e,t){const n={...e,message:s(e.message,t)};return e.address&&(n.address=s(e.address,t)),e.stack&&(n.stack=s(e.stack,t)),n}const r={INVALID_MIXIN_CMP:{code:`${n}4001`,message:"{0} must be an Element type",level:o},MISSING_CONTEXT:{code:`${n}4002`,message:"Could not find context to perform navigation action.",level:o},INVALID_CONTEXT:{code:`${n}4003`,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:o},MULTIPLE_ROOTS:{code:`${n}4004`,message:"Router connection failed. There can only be one root router.",level:o},MULTIPLE_CHILDREN:{code:`${n}4005`,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:o},MISSING_ROUTE:{code:`${n}4006`,message:'A route cannot be created to navigate to URL "{0}"',level:o,address:"{0}"},MISSING_URL:{code:`${n}4007`,message:'A URL cannot be created to navigate to route "{0}"',level:o,address:"{0}"},PRENAV_FAILED:{code:`${n}4008`,message:'A preNavigate hook listener blocked routing to "{0}"',level:2,address:"{0}"},MISSING_ROUTE_TEMPLATE:{code:`${n}4009`,message:'Route definition with id "{0}" is missing a "uri" property.',level:o,address:"{0}"},MISSING_ROUTE_CMP:{code:`${n}4016`,message:"Expected a route view component with a default export.",level:o},MISSING_DATA_CONTEXT:{code:`${n}4018`,message:"Could not find context to retrieve navigation data.",level:o},INVALID_ROUTE_QUERY:{code:`${n}4019`,message:"Invalid query param in route definition.",level:o},MISSING_PAGE_BINDING:{code:`${n}4020`,message:'Route definition with id "{0}" is missing a "page" binding.',level:o,address:"{0}"},INVALID_PAGE_BINDING:{code:`${n}4021`,message:'Route definition with id "{0}" has an invalid "page" binding.',level:o,address:"{0}"},INVALID_URI_SYNTAX:{code:`${n}4022`,message:'Route definition with id "{0}" has invalid "uri" syntax. URI cannot contain *, +, (, ), ',level:o,address:"{0}"},VIEW_IMPORT_FAILED:{code:`${n}4023`,message:'Error importing view with name "{0}", failure was: {1}',level:o,stack:"{2}"},VIEW_MISSING:{code:`${n}4024`,message:'Expected a view with name "{0}" in the viewset',level:o},VIEW_IMPORT_FAILED_WITH_SPECIFIER:{code:`${n}4025`,message:'Error importing module "{0}" from view with name "{1}", failure was: {2}',level:o,stack:"{3}"},NO_ROUTE_MATCH:{code:`${n}4026`,message:"A routing match cannot be found for: {0}",level:o},INVALID_ROUTE_HANDLER:{code:`${n}4027`,message:'Route definition "{0}" does not have a valid route handler module',level:o},DESTINATION_NOT_FOUND:{code:`${n}4028`,message:"Route handler returned 404: Not Found",level:o},DESTINATION_ERROR:{code:`${n}4029`,message:"Route handler returned error status {0}: {1}",level:o,stack:"{2}"},NO_INIT_URL:{code:`${n}4030`,message:'Cannot initialize a server router without a "url"',level:o}},c=new WeakMap;function l(e){const t=c.get(e);if(!t||!t.value)throw new Error(a(r.MISSING_CONTEXT));return t.value}function d(e,t){const n={id:e,value:t,update:e=>{n.value=e}};return c.set(n.id,n),n}function u(e){var t;return(t=class{constructor(e){this._callback=e}connect(){}disconnect(){}update(e,t){t&&this._callback(t)}static setContext(t,n){e.setContext(t,n)}static getContext(t){return e.getContext(t)}static clearContext(t){e.clearContext(t)}static subscribeContext(t,n){e.subscribeContext(t,n)}static unsubscribeContext(t,n){e.unsubscribeContext(t,n)}}).contextSchema={value:"required"},t}const I=u(new t(void 0)),v=u(new t(void 0)),g=new t(void 0),m=class extends(u(g)){async update(e,t){if(t){const n=e&&e.viewName?e.viewName:"default",o=t.viewset[n],s=o,a=s&&s.module||o;let c;if(a)try{const e=await a(),t=e&&e.default;if(!t||void 0===t.constructor)throw new Error("error occurred with view import");this._callback(t)}catch(e){const t=e;c=s.specifier?i(r.VIEW_IMPORT_FAILED_WITH_SPECIFIER,[s.specifier,n,t.message,t.stack||""]):i(r.VIEW_IMPORT_FAILED,[n,t.message,t.stack||""])}else c=i(r.VIEW_MISSING,[n]);t.onComplete&&t.onComplete(c)}}};function h(e,t,n,o){l(e).navigate(t,n,o)}function f(e,t,n){return l(e).generateUrl(t,n)}const E=`universalcontainergetnavigationcontext${Math.floor(65536*(1+Math.random())).toString(16).substring(1)}`,_=Symbol("Navigate"),N=Symbol("GenerateUrl"),p=Symbol("NavContext"),w=Symbol("NavContext"),C="undefined"==typeof window;function T(e){!function(e,t,n){if(!e)throw new Error(a(t,n))}("function"==typeof e.prototype.dispatchEvent,r.INVALID_MIXIN_CMP,[e.toString()]);return class extends e{[w](){if(!this[p]&&(this.dispatchEvent(new CustomEvent(E,{bubbles:!0,composed:!0,detail:{callback:e=>{this[p]=e}}})),!this[p]))throw new Error(a(r.MISSING_CONTEXT))}[_](e,t,n){C||(this[w](),h(this[p],e,t,n))}async[N](e,t){return C?null:(this[w](),f(this[p],e,t))}}}T.Navigate=_,T.GenerateUrl=N,T.NavContext=p;export{t as ContextInfo,v as CurrentPageReference,m as CurrentView,I as NavigationContext,T as NavigationMixin,u as generateContextualWireAdapter,f as generateUrl,l as getNavigationHelm,h as navigate,d as registerNavigationHelm};
2
2
  //# sourceMappingURL=navigation.js.map
@@ -0,0 +1,19 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {get: all[name], enumerable: true});
6
+ };
7
+
8
+ // packages/@lwrjs/router/src/modules/lwr/navigation/constants.ts
9
+ __markAsModule(exports);
10
+ __export(exports, {
11
+ GenerateUrl: () => GenerateUrl,
12
+ GetContext: () => GetContext,
13
+ NavContext: () => NavContext,
14
+ Navigate: () => Navigate
15
+ });
16
+ var Navigate = Symbol("Navigate");
17
+ var GenerateUrl = Symbol("GenerateUrl");
18
+ var NavContext = Symbol("NavContext");
19
+ var GetContext = Symbol("NavContext");
@@ -29,42 +29,39 @@ __export(exports, {
29
29
  var import_routerErrors = __toModule(require("lwr/routerErrors"));
30
30
  var import_navigationApi = __toModule(require("./navigationApi.cjs"));
31
31
  var import_navigationMixinHacks = __toModule(require("lwr/navigationMixinHacks"));
32
+ var import_constants = __toModule(require("./constants.cjs"));
32
33
  var isSSR = typeof window === "undefined";
33
- var Navigate = Symbol("Navigate");
34
- var GenerateUrl = Symbol("GenerateUrl");
35
- var NavContext = Symbol("NavContext");
36
- var GetContext = Symbol("NavContext");
37
34
  function NavigationMixin(Base) {
38
35
  (0, import_routerErrors.invariant)(typeof Base.prototype.dispatchEvent === "function", import_routerErrors.messages.INVALID_MIXIN_CMP, [
39
36
  Base.toString()
40
37
  ]);
41
38
  class Mixin extends Base {
42
- [GetContext]() {
43
- if (!this[NavContext]) {
39
+ [import_constants.GetContext]() {
40
+ if (!this[import_constants.NavContext]) {
44
41
  this.dispatchEvent(new CustomEvent(import_navigationMixinHacks.CONTEXT_ID_BACKDOOR, {
45
42
  bubbles: true,
46
43
  composed: true,
47
44
  detail: {
48
45
  callback: (contextId) => {
49
- this[NavContext] = contextId;
46
+ this[import_constants.NavContext] = contextId;
50
47
  }
51
48
  }
52
49
  }));
53
- if (!this[NavContext]) {
50
+ if (!this[import_constants.NavContext]) {
54
51
  throw new Error((0, import_routerErrors.generateMessage)(import_routerErrors.messages.MISSING_CONTEXT));
55
52
  }
56
53
  }
57
54
  }
58
- [Navigate](pageRef, replace, options) {
55
+ [import_constants.Navigate](pageRef, replace, options) {
59
56
  if (!isSSR) {
60
- this[GetContext]();
61
- (0, import_navigationApi.navigate)(this[NavContext], pageRef, replace, options);
57
+ this[import_constants.GetContext]();
58
+ (0, import_navigationApi.navigate)(this[import_constants.NavContext], pageRef, replace, options);
62
59
  }
63
60
  }
64
- async [GenerateUrl](pageRef, options) {
61
+ async [import_constants.GenerateUrl](pageRef, options) {
65
62
  if (!isSSR) {
66
- this[GetContext]();
67
- return (0, import_navigationApi.generateUrl)(this[NavContext], pageRef, options);
63
+ this[import_constants.GetContext]();
64
+ return (0, import_navigationApi.generateUrl)(this[import_constants.NavContext], pageRef, options);
68
65
  } else {
69
66
  return null;
70
67
  }
@@ -72,6 +69,6 @@ function NavigationMixin(Base) {
72
69
  }
73
70
  return Mixin;
74
71
  }
75
- NavigationMixin.Navigate = Navigate;
76
- NavigationMixin.GenerateUrl = GenerateUrl;
77
- NavigationMixin.NavContext = NavContext;
72
+ NavigationMixin.Navigate = import_constants.Navigate;
73
+ NavigationMixin.GenerateUrl = import_constants.GenerateUrl;
74
+ NavigationMixin.NavContext = import_constants.NavContext;
@@ -123,8 +123,6 @@ function getClientRoutes(path) {
123
123
  routerConfigJsonCache.set(path, json);
124
124
  return json;
125
125
  } catch (e) {
126
- throw (0, import_diagnostics.createSingleDiagnosticError)({
127
- description: import_diagnostics.descriptions.UNRESOLVABLE.ROUTES_MODULE(path, e.message)
128
- }, import_diagnostics.LwrUnresolvableError);
126
+ throw new import_diagnostics.LwrUnresolvableError(import_diagnostics.descriptions.UNRESOLVABLE.ROUTES_MODULE(path, e.message), "module");
129
127
  }
130
128
  }
@@ -0,0 +1,5 @@
1
+ export declare const Navigate: unique symbol;
2
+ export declare const GenerateUrl: unique symbol;
3
+ export declare const NavContext: unique symbol;
4
+ export declare const GetContext: unique symbol;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1,5 @@
1
+ export const Navigate = Symbol('Navigate');
2
+ export const GenerateUrl = Symbol('GenerateUrl');
3
+ export const NavContext = Symbol('NavContext');
4
+ export const GetContext = Symbol('NavContext');
5
+ //# sourceMappingURL=constants.js.map
@@ -5,11 +5,19 @@
5
5
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6
6
  */
7
7
  import type { Constructor } from 'lwr/routerUtils';
8
+ /**
9
+ * Provides navigate() and generateUrl() functionality.
10
+ * Here, navigate() can take either a route OR a string URL.
11
+ * Functionality pulled in from the current navigation context.
12
+ * Used by components as a Mixin to extend their own functionality.
13
+ *
14
+ * @param {HTMLElement} Base - A class instance
15
+ */
8
16
  declare function NavigationMixin<TBase extends Constructor>(Base: TBase): TBase;
9
17
  declare namespace NavigationMixin {
10
- var Navigate: unique symbol;
11
- var GenerateUrl: unique symbol;
12
- var NavContext: unique symbol;
18
+ var Navigate: typeof import("./constants.js").Navigate;
19
+ var GenerateUrl: typeof import("./constants.js").GenerateUrl;
20
+ var NavContext: typeof import("./constants.js").NavContext;
13
21
  }
14
22
  export { NavigationMixin };
15
23
  //# sourceMappingURL=navigationMixin.d.ts.map
@@ -10,6 +10,7 @@
10
10
  import { invariant, generateMessage, messages } from 'lwr/routerErrors';
11
11
  import { generateUrl, navigate } from './navigationApi.js';
12
12
  import { CONTEXT_ID_BACKDOOR } from 'lwr/navigationMixinHacks';
13
+ import { Navigate, GenerateUrl, NavContext, GetContext } from './constants.js';
13
14
  // eslint-disable-next-line lwr/no-unguarded-apis
14
15
  const isSSR = typeof window === 'undefined';
15
16
  /*
@@ -24,10 +25,6 @@ const isSSR = typeof window === 'undefined';
24
25
  *
25
26
  * @param {HTMLElement} Base - A class instance
26
27
  */
27
- const Navigate = Symbol('Navigate');
28
- const GenerateUrl = Symbol('GenerateUrl');
29
- const NavContext = Symbol('NavContext');
30
- const GetContext = Symbol('NavContext');
31
28
  function NavigationMixin(Base) {
32
29
  invariant(typeof Base.prototype.dispatchEvent === 'function', messages.INVALID_MIXIN_CMP, [
33
30
  Base.toString(),
@@ -1,7 +1,7 @@
1
1
  import Ajv from 'ajv';
2
2
  import { existsSync } from 'fs';
3
3
  import { readFile } from '@lwrjs/shared-utils';
4
- import { LwrUnresolvableError, createSingleDiagnosticError, descriptions } from '@lwrjs/diagnostics';
4
+ import { LwrUnresolvableError, descriptions } from '@lwrjs/diagnostics';
5
5
  export const DEFAULT_SCHEMA = 'pageReference_v1';
6
6
  // JSON Schema for the interfaces above
7
7
  const RouteDefinitionSchema = {
@@ -106,9 +106,7 @@ export function getClientRoutes(path) {
106
106
  return json;
107
107
  }
108
108
  catch (e) {
109
- throw createSingleDiagnosticError({
110
- description: descriptions.UNRESOLVABLE.ROUTES_MODULE(path, e.message),
111
- }, LwrUnresolvableError);
109
+ throw new LwrUnresolvableError(descriptions.UNRESOLVABLE.ROUTES_MODULE(path, e.message), 'module');
112
110
  }
113
111
  }
114
112
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ export const Navigate = Symbol('Navigate');
2
+ export const GenerateUrl = Symbol('GenerateUrl');
3
+ export const NavContext = Symbol('NavContext');
4
+ export const GetContext = Symbol('NavContext');
@@ -12,6 +12,7 @@
12
12
  import { invariant, generateMessage, messages } from 'lwr/routerErrors';
13
13
  import { generateUrl, navigate } from './navigationApi.js';
14
14
  import { CONTEXT_ID_BACKDOOR } from 'lwr/navigationMixinHacks';
15
+ import { Navigate, GenerateUrl, NavContext, GetContext } from './constants.js';
15
16
  // eslint-disable-next-line lwr/no-unguarded-apis
16
17
  const isSSR = typeof window === 'undefined';
17
18
 
@@ -28,10 +29,6 @@ const isSSR = typeof window === 'undefined';
28
29
  *
29
30
  * @param {HTMLElement} Base - A class instance
30
31
  */
31
- const Navigate = Symbol('Navigate');
32
- const GenerateUrl = Symbol('GenerateUrl');
33
- const NavContext = Symbol('NavContext');
34
- const GetContext = Symbol('NavContext');
35
32
  function NavigationMixin(Base) {
36
33
  invariant(typeof Base.prototype.dispatchEvent === 'function', messages.INVALID_MIXIN_CMP, [Base.toString()]);
37
34
  class Mixin extends Base {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.17.2-alpha.1",
8
+ "version": "0.17.2-alpha.10",
9
9
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
10
10
  "repository": {
11
11
  "type": "git",
@@ -53,21 +53,21 @@
53
53
  "test:server": "jest --config ./jest.server.config.cjs"
54
54
  },
55
55
  "dependencies": {
56
- "@lwrjs/client-modules": "0.17.2-alpha.1",
57
- "@lwrjs/diagnostics": "0.17.2-alpha.1",
58
- "@lwrjs/shared-utils": "0.17.2-alpha.1",
56
+ "@lwrjs/client-modules": "0.17.2-alpha.10",
57
+ "@lwrjs/diagnostics": "0.17.2-alpha.10",
58
+ "@lwrjs/shared-utils": "0.17.2-alpha.10",
59
59
  "ajv": "6.12.6"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@lwc/jest-preset": "^16.1.0",
63
- "@lwrjs/fs-watch": "0.17.2-alpha.1",
63
+ "@lwrjs/fs-watch": "0.17.2-alpha.10",
64
64
  "@rollup/plugin-typescript": "^11.1.6",
65
- "jest": "^26.6.3",
65
+ "jest": "29.7.0",
66
66
  "memfs": "^4.13.0",
67
67
  "rollup": "^2.79.2",
68
- "ts-jest": "^26.5.6",
68
+ "ts-jest": "^29.2.5",
69
69
  "typescript": "^4.9.5",
70
- "utam": "3.2.1"
70
+ "utam": "3.2.2"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "lwc": ">= 2.x"
@@ -99,5 +99,5 @@
99
99
  "volta": {
100
100
  "extends": "../../../package.json"
101
101
  },
102
- "gitHead": "bba15ca717a242b0375decaa378af06bdee813b5"
102
+ "gitHead": "3938f97f31973d7953bb61cff8388c71980c22c7"
103
103
  }