@skirbi/sugar 0.1.6 → 0.1.7

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/Changes CHANGED
@@ -1,5 +1,11 @@
1
1
  Revision history for @skirbi/sugar
2
2
 
3
+ 0.1.7 2026-06-08 10:59:27Z
4
+
5
+ * Add moveSlot to sugar, multiple components start to create the same logic.
6
+ * Add keywords to dist.toml/package.json
7
+ * Add tests for aliases
8
+
3
9
  0.1.6 2026-06-08 01:05:36Z
4
10
 
5
11
  * Add attributeChangedCallback hook system
@@ -511,5 +511,19 @@ export class HTMLElementSugar extends HTMLElement {
511
511
  this._morphElement(this, frag);
512
512
  }
513
513
 
514
+ /**
515
+ * Move named slot children into the rendered target.
516
+ *
517
+ * @param {string} name
518
+ * @param {Element} target
519
+ * @returns {void}
520
+ */
521
+ moveSlot(name, target) {
522
+ for (const node of [...this.$$(`[slot="${name}"]`)]) {
523
+ node.removeAttribute('slot');
524
+ target.appendChild(node);
525
+ }
526
+ }
527
+
514
528
  }
515
529
 
package/lib/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.1.6";
5
+ const VERSION = "0.1.7";
6
6
 
7
7
  export { HTMLElementSugar } from './htmlelement.mjs';
8
8
  export { HTMLElementSugarInput } from './htmlelement-input.mjs';
package/package.json CHANGED
@@ -35,7 +35,10 @@
35
35
  "semantic",
36
36
  "htmlelementsugar",
37
37
  "html",
38
- "authoring"
38
+ "authoring",
39
+ "light dom",
40
+ "progressive enhancement",
41
+ "design system"
39
42
  ],
40
43
  "license": "MIT",
41
44
  "name": "@skirbi/sugar",
@@ -53,5 +56,5 @@
53
56
  },
54
57
  "sideEffects": true,
55
58
  "type": "module",
56
- "version": "0.1.6"
59
+ "version": "0.1.7"
57
60
  }