@kodaris/krubble-app-components 1.0.152 → 1.0.153
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/dist/chatbot.d.ts +5 -0
- package/dist/chatbot.d.ts.map +1 -1
- package/dist/chatbot.js +1 -1
- package/dist/chatbot.js.map +1 -1
- package/dist/krubble-app.bundled.js +15 -4
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +3 -3
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +15 -4
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +3 -3
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/dist/router.d.ts +1 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +14 -3
- package/dist/router.js.map +1 -1
- package/package.json +1 -1
package/dist/krubble-app.umd.js
CHANGED
|
@@ -6002,7 +6002,7 @@
|
|
|
6002
6002
|
` : A}
|
|
6003
6003
|
${global ? b `
|
|
6004
6004
|
<div class="skill-card__footer">
|
|
6005
|
-
<span class="skill-card__price"
|
|
6005
|
+
<span class="skill-card__price">${skill.priceLabel}</span>
|
|
6006
6006
|
<kr-button
|
|
6007
6007
|
class="skill-card__install-btn"
|
|
6008
6008
|
size="small"
|
|
@@ -12313,6 +12313,13 @@
|
|
|
12313
12313
|
static configure(config) {
|
|
12314
12314
|
KRRouter.base = config.base;
|
|
12315
12315
|
KRRouter.routes = config.routes;
|
|
12316
|
+
// Point the page's outlet class at this router. The Operations shell loads krubble globally while
|
|
12317
|
+
// an embedded app bundles its own copy, so the kr-router-outlet that won registration may belong
|
|
12318
|
+
// to the other copy; whichever it is, its outlets must register with the router that has routes.
|
|
12319
|
+
const outletClass = customElements.get('kr-router-outlet');
|
|
12320
|
+
if (outletClass) {
|
|
12321
|
+
outletClass.router = KRRouter;
|
|
12322
|
+
}
|
|
12316
12323
|
// Intercept <a> clicks for client-side navigation
|
|
12317
12324
|
window.addEventListener('click', (e) => {
|
|
12318
12325
|
const anchor = e.composedPath().find(el => el instanceof HTMLAnchorElement);
|
|
@@ -12747,11 +12754,11 @@
|
|
|
12747
12754
|
}
|
|
12748
12755
|
}
|
|
12749
12756
|
this.level = level;
|
|
12750
|
-
|
|
12757
|
+
KRRouterOutlet.router.registerOutlet(this.level, this);
|
|
12751
12758
|
}
|
|
12752
12759
|
disconnectedCallback() {
|
|
12753
12760
|
super.disconnectedCallback();
|
|
12754
|
-
|
|
12761
|
+
KRRouterOutlet.router.unregisterOutlet(this.level, this);
|
|
12755
12762
|
}
|
|
12756
12763
|
activate(el) {
|
|
12757
12764
|
this.el = el;
|
|
@@ -12772,12 +12779,16 @@
|
|
|
12772
12779
|
height: 100%;
|
|
12773
12780
|
}
|
|
12774
12781
|
`;
|
|
12782
|
+
// The router outlets register with. KRRouter.configure() sets this on whichever outlet class is
|
|
12783
|
+
// registered on the page, which may be another copy of krubble's; this copy's router is the default.
|
|
12784
|
+
KRRouterOutlet.router = KRRouter;
|
|
12775
12785
|
__decorate([
|
|
12776
12786
|
r()
|
|
12777
12787
|
], KRRouterOutlet.prototype, "el", void 0);
|
|
12778
12788
|
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
12779
12789
|
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
12780
|
-
// own copy) doesn't throw. First definition wins.
|
|
12790
|
+
// own copy) doesn't throw. First definition wins; KRRouter.configure() then points that class at
|
|
12791
|
+
// the configured router.
|
|
12781
12792
|
if (!customElements.get('kr-router-outlet')) {
|
|
12782
12793
|
customElements.define('kr-router-outlet', KRRouterOutlet);
|
|
12783
12794
|
}
|