@startinblox/boilerplate 6.0.4 → 6.0.6
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/.storybook/preview.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -675,12 +675,12 @@ class _ extends lt {
|
|
|
675
675
|
document.readyState === "complete" ? r() : document.addEventListener("readystatechange", r);
|
|
676
676
|
}
|
|
677
677
|
async _attach(t, e, i) {
|
|
678
|
-
if (!this.orbit && window.orbit
|
|
679
|
-
if (Ae({
|
|
678
|
+
if (!this.orbit && window.orbit) {
|
|
679
|
+
if (this.orbit = window.orbit, e && (Ae({
|
|
680
680
|
component: this,
|
|
681
681
|
defaultRoute: t,
|
|
682
682
|
ignoreRouter: i
|
|
683
|
-
}), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component))
|
|
683
|
+
}), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component)))
|
|
684
684
|
for (const r of this.orbit.components)
|
|
685
685
|
r.uniq === this.component.uniq && (r.instance = this);
|
|
686
686
|
return await this._afterAttach(), this.ready = !0, this.dispatchEvent(
|
package/package.json
CHANGED
|
@@ -98,20 +98,19 @@ export default class extends ComponentObjectsHandler {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
await this._afterAttach();
|
|
103
|
-
|
|
104
|
-
this.ready = true;
|
|
105
|
-
this.dispatchEvent(
|
|
106
|
-
new CustomEvent("component-ready", {
|
|
107
|
-
detail: {
|
|
108
|
-
component: this.component,
|
|
109
|
-
},
|
|
110
|
-
}),
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
return Promise.resolve(true);
|
|
114
101
|
}
|
|
102
|
+
await this._afterAttach();
|
|
103
|
+
|
|
104
|
+
this.ready = true;
|
|
105
|
+
this.dispatchEvent(
|
|
106
|
+
new CustomEvent("component-ready", {
|
|
107
|
+
detail: {
|
|
108
|
+
component: this.component,
|
|
109
|
+
},
|
|
110
|
+
}),
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
return Promise.resolve(true);
|
|
115
114
|
}
|
|
116
115
|
}
|
|
117
116
|
return Promise.resolve(false);
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
|
|
3
|
-
import type { Meta, StoryObj } from "@storybook/web-components-vite";
|
|
4
|
-
|
|
5
1
|
import {
|
|
6
|
-
SampleObjects,
|
|
7
2
|
type ComponentProps,
|
|
3
|
+
SampleObjects,
|
|
8
4
|
} from "@components/ui/sample-objects";
|
|
9
5
|
|
|
10
|
-
import "@
|
|
6
|
+
import type { Meta, StoryObj } from "@storybook/web-components-vite";
|
|
7
|
+
import { html } from "lit";
|
|
11
8
|
|
|
12
9
|
const meta: Meta<{ objects: ComponentProps[] }> = {
|
|
13
10
|
title: "components/sample-objects",
|