uikit 3.15.3-dev.45f4472ed → 3.15.3-dev.8c13c92d9

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 (47) 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 +2 -2
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +2 -2
  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 +2 -2
  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 +2 -2
  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 +6 -6
  36. package/dist/js/uikit-core.min.js +2 -2
  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 +7 -7
  40. package/dist/js/uikit.min.js +2 -2
  41. package/package.json +1 -1
  42. package/src/js/api/boot.js +2 -2
  43. package/src/js/api/component.js +2 -2
  44. package/src/js/core/accordion.js +1 -2
  45. package/src/js/mixin/slider.js +1 -2
  46. package/src/js/util/observer.js +1 -2
  47. package/tests/js/index.js +2 -2
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.15.3-dev.45f4472ed",
5
+ "version": "3.15.3-dev.8c13c92d9",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -1,5 +1,5 @@
1
1
  import { getComponentName } from './component';
2
- import { apply, fastdom, hasAttr, inBrowser } from 'uikit-util';
2
+ import { apply, hasAttr, inBrowser } from 'uikit-util';
3
3
 
4
4
  export default function (UIkit) {
5
5
  const { connect, disconnect } = UIkit;
@@ -8,7 +8,7 @@ export default function (UIkit) {
8
8
  return;
9
9
  }
10
10
 
11
- fastdom.read(function () {
11
+ requestAnimationFrame(function () {
12
12
  if (document.body) {
13
13
  apply(document.body, connect);
14
14
  }
@@ -1,4 +1,4 @@
1
- import { $$, camelize, fastdom, hyphenate, isPlainObject, memoize, startsWith } from 'uikit-util';
1
+ import { $$, camelize, hyphenate, isPlainObject, memoize, startsWith } from 'uikit-util';
2
2
 
3
3
  export default function (UIkit) {
4
4
  const DATA = UIkit.data;
@@ -49,7 +49,7 @@ export default function (UIkit) {
49
49
  opt.install?.(UIkit, opt, name);
50
50
 
51
51
  if (UIkit._initialized && !opt.functional) {
52
- fastdom.read(() => UIkit[name](`[uk-${id}],[data-uk-${id}]`));
52
+ requestAnimationFrame(() => UIkit[name](`[uk-${id}],[data-uk-${id}]`));
53
53
  }
54
54
 
55
55
  return (components[name] = isPlainObject(options) ? opt : options);
@@ -5,7 +5,6 @@ import {
5
5
  $,
6
6
  $$,
7
7
  attr,
8
- fastdom,
9
8
  filter,
10
9
  getIndex,
11
10
  hasClass,
@@ -144,7 +143,7 @@ export default {
144
143
 
145
144
  if (show) {
146
145
  const toggle = $(this.$props.toggle, el);
147
- fastdom.read(() => {
146
+ requestAnimationFrame(() => {
148
147
  if (!isInView(toggle)) {
149
148
  scrollIntoView(toggle, { offset: this.offset });
150
149
  }
@@ -6,7 +6,6 @@ import {
6
6
  $,
7
7
  $$,
8
8
  clamp,
9
- fastdom,
10
9
  getIndex,
11
10
  hasClass,
12
11
  isNumber,
@@ -137,7 +136,7 @@ export default {
137
136
  trigger(next, 'itemshown', [this]);
138
137
 
139
138
  return new Promise((resolve) => {
140
- fastdom.write(() => {
139
+ requestAnimationFrame(() => {
141
140
  stack.shift();
142
141
  if (stack.length) {
143
142
  this.show(stack.shift(), true);
@@ -1,6 +1,5 @@
1
1
  import { on } from './event';
2
2
  import { toNodes } from './lang';
3
- import { fastdom } from './fastdom';
4
3
  import { inBrowser } from './env';
5
4
 
6
5
  export function observeIntersection(targets, cb, options, intersecting = true) {
@@ -53,7 +52,7 @@ function initResizeListener() {
53
52
  return;
54
53
  }
55
54
  pendingResize = true;
56
- fastdom.read(() => (pendingResize = false));
55
+ requestAnimationFrame(() => (pendingResize = false));
57
56
  for (const listener of listeners) {
58
57
  listener();
59
58
  }
package/tests/js/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* global TESTS */
2
- import { addClass, css, fastdom, on, prepend, removeClass, ucfirst } from 'uikit-util';
2
+ import { addClass, css, on, prepend, removeClass, ucfirst } from 'uikit-util';
3
3
 
4
4
  const tests = TESTS;
5
5
  const storage = window.sessionStorage;
@@ -59,7 +59,7 @@ document.writeln(
59
59
  on(window, 'load', () =>
60
60
  setTimeout(
61
61
  () =>
62
- fastdom.write(() => {
62
+ requestAnimationFrame(() => {
63
63
  const $body = document.body;
64
64
  const $container = prepend(
65
65
  $body,