@mhmo91/schmancy 0.10.39 → 0.10.40
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/agent/schmancy.agent.js +14 -7
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/boat-BJPl_Jti.cjs +34 -0
- package/dist/boat-BJPl_Jti.cjs.map +1 -0
- package/dist/{boat-fqodYt2n.js → boat-BeqA9_ms.js} +9 -4
- package/dist/boat-BeqA9_ms.js.map +1 -0
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{directives-Bb0S1DKZ.cjs → directives-BZIRQDBq.cjs} +1 -1
- package/dist/{directives-Bb0S1DKZ.cjs.map → directives-BZIRQDBq.cjs.map} +1 -1
- package/dist/{directives-Bfm1lkoy.js → directives-BvRTjCFa.js} +5 -3
- package/dist/{directives-Bfm1lkoy.js.map → directives-BvRTjCFa.js.map} +1 -1
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/{select-Cawz88lG.js → select-CGBsblDA.js} +1 -1
- package/dist/{select-Cawz88lG.js.map → select-CGBsblDA.js.map} +1 -1
- package/dist/{select-BWpV2iv-.cjs → select-LWdPs7b_.cjs} +1 -1
- package/dist/{select-BWpV2iv-.cjs.map → select-LWdPs7b_.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/skills/SKILL.md +4 -0
- package/dist/skills/chips.md +41 -1
- package/dist/skills/schmancy/SKILL.md +4 -0
- package/dist/skills/schmancy/chips.md +41 -1
- package/dist/{src-8VJ7eluk.js → src-Dmqjtcmp.js} +3 -3
- package/dist/{src-8VJ7eluk.js.map → src-Dmqjtcmp.js.map} +1 -1
- package/dist/{src-GJA8uSAS.cjs → src-SAXA4LEH.cjs} +1 -1
- package/dist/{src-GJA8uSAS.cjs.map → src-SAXA4LEH.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/package.json +2 -1
- package/skills/schmancy/SKILL.md +4 -0
- package/skills/schmancy/chips.md +41 -1
- package/src/boat/boat.ts +20 -5
- package/src/directives/reveal.ts +7 -1
- package/types/src/boat/boat.d.ts +1 -0
- package/types/src/directives/reveal.d.ts +2 -0
- package/dist/boat-DsFJNfPH.cjs +0 -34
- package/dist/boat-DsFJNfPH.cjs.map +0 -1
- package/dist/boat-fqodYt2n.js.map +0 -1
|
@@ -12767,14 +12767,16 @@ var Hl = B(class extends Ui {
|
|
|
12767
12767
|
gentle: Js
|
|
12768
12768
|
}, eu = B(class extends Ui {
|
|
12769
12769
|
constructor(e) {
|
|
12770
|
-
if (super(e), this.initialized = !1, this.teardown$ = new w(), this.firstUpdate = !0, e.type !== Qn) throw Error("reveal() can only be used on elements");
|
|
12770
|
+
if (super(e), this.initialized = !1, this.teardown$ = new w(), this.firstUpdate = !0, this.prevShow = void 0, e.type !== Qn) throw Error("reveal() can only be used on elements");
|
|
12771
12771
|
}
|
|
12772
12772
|
render(e, t) {
|
|
12773
12773
|
return R;
|
|
12774
12774
|
}
|
|
12775
12775
|
update(e, [t = !1, n = {}]) {
|
|
12776
12776
|
let r = e.element, { preset: i = "smooth", maxHeight: a, duration: o, easing: s } = n, c = a !== void 0, l = $l[i], u = o ?? l.duration, d = s ?? nc(l), f = Uc.value, p = this.firstUpdate;
|
|
12777
|
-
|
|
12777
|
+
this.firstUpdate = !1;
|
|
12778
|
+
let m = t !== this.prevShow;
|
|
12779
|
+
if (this.prevShow = t, this.initialized || (this.initialized = !0, r.style.transition = f ? "none" : [
|
|
12778
12780
|
`max-height ${u}ms ${d}`,
|
|
12779
12781
|
`opacity ${u}ms ${d}`,
|
|
12780
12782
|
`transform ${u}ms ${d}`,
|
|
@@ -12782,7 +12784,7 @@ var Hl = B(class extends Ui {
|
|
|
12782
12784
|
`margin ${u}ms ${d}`
|
|
12783
12785
|
].join(", ")), t) {
|
|
12784
12786
|
if (p) c ? (r.style.maxHeight = a, r.style.overflow = "auto") : (r.style.maxHeight = "", r.style.overflow = ""), r.style.opacity = "1", r.style.transform = "translateY(0) scale(1)";
|
|
12785
|
-
else if (f) c ? (r.style.maxHeight = a, r.style.overflow = "auto") : (r.style.maxHeight = "", r.style.overflow = ""), r.style.opacity = "1", r.style.transform = "translateY(0) scale(1)";
|
|
12787
|
+
else if (m) if (f) c ? (r.style.maxHeight = a, r.style.overflow = "auto") : (r.style.maxHeight = "", r.style.overflow = ""), r.style.opacity = "1", r.style.transform = "translateY(0) scale(1)";
|
|
12786
12788
|
else {
|
|
12787
12789
|
r.style.overflow = "hidden", r.style.maxHeight = "0", r.offsetHeight;
|
|
12788
12790
|
let e = c ? a : `${r.scrollHeight}px`;
|
|
@@ -13506,11 +13508,16 @@ var Pu = "schmancy-boat-", Fu = class extends K {
|
|
|
13506
13508
|
y: 16
|
|
13507
13509
|
}, this.containerRef = Fs(), this.triggerRef = Fs(), this.handleRef = Fs(), this.#e = !1, this.#n = [], this.onHandleSlotChange = () => {
|
|
13508
13510
|
this.hasHandle = this.handleNodes.length > 0;
|
|
13511
|
+
}, this.onDefaultSlotChange = () => {
|
|
13512
|
+
this.#t && this.#r && this.slotted.forEach((e) => {
|
|
13513
|
+
e.parentElement !== this.#r && (this.#n.push(e), this.#r.appendChild(e));
|
|
13514
|
+
});
|
|
13509
13515
|
};
|
|
13510
13516
|
}
|
|
13511
13517
|
#e;
|
|
13512
13518
|
#t;
|
|
13513
13519
|
#n;
|
|
13520
|
+
#r;
|
|
13514
13521
|
applyContainerPosition() {
|
|
13515
13522
|
let e = this.containerRef.value;
|
|
13516
13523
|
if (!e) return;
|
|
@@ -13570,15 +13577,15 @@ var Pu = "schmancy-boat-", Fu = class extends K {
|
|
|
13570
13577
|
}
|
|
13571
13578
|
openOverlay() {
|
|
13572
13579
|
if (this.#t) return;
|
|
13573
|
-
let e = this.containerRef.value
|
|
13574
|
-
|
|
13580
|
+
let e = this.containerRef.value;
|
|
13581
|
+
this.#r = document.createElement("div"), this.#r.className = "flex flex-col", this.#n = [...this.slotted], this.#n.forEach((e) => this.#r.appendChild(e)), this.#t = ku(this.#r, {
|
|
13575
13582
|
anchor: e ?? void 0,
|
|
13576
13583
|
dismissable: !0,
|
|
13577
13584
|
historyStrategy: "silent"
|
|
13578
13585
|
}).pipe(tn(() => this.restoreSlotted()), F(this.disconnecting)).subscribe(), this.dispatchScopedEvent("toggle", "open");
|
|
13579
13586
|
}
|
|
13580
13587
|
restoreSlotted() {
|
|
13581
|
-
this.#n.forEach((e) => this.appendChild(e)), this.#n = [], this.#t = void 0, this.open &&= !1, this.dispatchScopedEvent("toggle", "closed");
|
|
13588
|
+
this.#n.forEach((e) => this.appendChild(e)), this.#n = [], this.#r = void 0, this.#t = void 0, this.open &&= !1, this.dispatchScopedEvent("toggle", "closed");
|
|
13582
13589
|
}
|
|
13583
13590
|
connectedCallback() {
|
|
13584
13591
|
super.connectedCallback(), A(O(window, "resize").pipe(I(() => this.validateBounds())), sl.bottomOffset$.pipe(I(() => this.applyContainerPosition()))).pipe(F(this.disconnecting)).subscribe();
|
|
@@ -13667,7 +13674,7 @@ var Pu = "schmancy-boat-", Fu = class extends K {
|
|
|
13667
13674
|
|
|
13668
13675
|
<!-- Default-slot content parks here (hidden) while collapsed;
|
|
13669
13676
|
relocated into the show() overlay on open. -->
|
|
13670
|
-
<div hidden><slot></slot></div>
|
|
13677
|
+
<div hidden><slot @slotchange=${this.onDefaultSlotChange}></slot></div>
|
|
13671
13678
|
</schmancy-surface>
|
|
13672
13679
|
`;
|
|
13673
13680
|
}
|