uikit 3.21.13 → 3.21.14-dev.8422cc139

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.
Files changed (42) hide show
  1. package/dist/css/uikit-core-rtl.css +1 -1
  2. package/dist/css/uikit-core-rtl.min.css +1 -1
  3. package/dist/css/uikit-core.css +1 -1
  4. package/dist/css/uikit-core.min.css +1 -1
  5. package/dist/css/uikit-rtl.css +1 -1
  6. package/dist/css/uikit-rtl.min.css +1 -1
  7. package/dist/css/uikit.css +1 -1
  8. package/dist/css/uikit.min.css +1 -1
  9. package/dist/js/components/countdown.js +1 -1
  10. package/dist/js/components/countdown.min.js +1 -1
  11. package/dist/js/components/filter.js +1 -1
  12. package/dist/js/components/filter.min.js +1 -1
  13. package/dist/js/components/lightbox-panel.js +1 -1
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +1 -1
  16. package/dist/js/components/lightbox.min.js +1 -1
  17. package/dist/js/components/notification.js +1 -1
  18. package/dist/js/components/notification.min.js +1 -1
  19. package/dist/js/components/parallax.js +1 -1
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +1 -1
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +1 -1
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +1 -1
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +1 -1
  28. package/dist/js/components/slideshow.min.js +1 -1
  29. package/dist/js/components/sortable.js +1 -1
  30. package/dist/js/components/sortable.min.js +1 -1
  31. package/dist/js/components/tooltip.js +1 -1
  32. package/dist/js/components/tooltip.min.js +1 -1
  33. package/dist/js/components/upload.js +1 -1
  34. package/dist/js/components/upload.min.js +1 -1
  35. package/dist/js/uikit-core.js +19 -22
  36. package/dist/js/uikit-core.min.js +1 -1
  37. package/dist/js/uikit-icons.js +1 -1
  38. package/dist/js/uikit-icons.min.js +1 -1
  39. package/dist/js/uikit.js +19 -22
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +2 -2
  42. package/src/js/api/boot.js +16 -20
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.21.13",
5
+ "version": "3.21.14-dev.8422cc139",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -22,7 +22,7 @@
22
22
  "devDependencies": {
23
23
  "@eslint/js": "^9.6.0",
24
24
  "@rollup/plugin-alias": "^5.1.0",
25
- "@rollup/plugin-replace": "^5.0.5",
25
+ "@rollup/plugin-replace": "^6.0.1",
26
26
  "archiver": "^7.0.1",
27
27
  "camelcase": "^8.0.0",
28
28
  "chokidar-cli": "^3.0.0",
@@ -24,37 +24,33 @@ function init(App) {
24
24
  apply(document.body, connect);
25
25
  }
26
26
 
27
- new MutationObserver((records) => records.forEach(applyChildListMutation)).observe(document, {
27
+ new MutationObserver(handleMutation).observe(document, {
28
28
  subtree: true,
29
29
  childList: true,
30
- });
31
-
32
- new MutationObserver((records) => records.forEach(applyAttributeMutation)).observe(document, {
33
- subtree: true,
34
30
  attributes: true,
35
31
  });
36
32
 
37
33
  App._initialized = true;
38
34
  }
39
35
 
40
- function applyChildListMutation({ addedNodes, removedNodes }) {
41
- for (const node of addedNodes) {
42
- apply(node, connect);
43
- }
36
+ function handleMutation(records) {
37
+ for (const { addedNodes, removedNodes, target, attributeName } of records) {
38
+ for (const node of addedNodes) {
39
+ apply(node, connect);
40
+ }
44
41
 
45
- for (const node of removedNodes) {
46
- apply(node, disconnect);
47
- }
48
- }
42
+ for (const node of removedNodes) {
43
+ apply(node, disconnect);
44
+ }
49
45
 
50
- function applyAttributeMutation({ target, attributeName }) {
51
- const name = getComponentName(attributeName);
46
+ const name = attributeName && getComponentName(attributeName);
52
47
 
53
- if (name) {
54
- if (hasAttr(target, attributeName)) {
55
- createComponent(name, target);
56
- } else {
57
- getComponent(target, name)?.$destroy();
48
+ if (name) {
49
+ if (hasAttr(target, attributeName)) {
50
+ createComponent(name, target);
51
+ } else {
52
+ getComponent(target, name)?.$destroy();
53
+ }
58
54
  }
59
55
  }
60
56
  }