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