@plasmicapp/react-web 0.2.236 → 0.2.239

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 (52) hide show
  1. package/dist/all.d.ts +2243 -2093
  2. package/dist/index.cjs.js +85 -104
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/react-web.esm.js +9 -6
  5. package/dist/react-web.esm.js.map +1 -1
  6. package/lib/auth/index.cjs.js +2 -6
  7. package/lib/auth/index.cjs.js.map +1 -1
  8. package/lib/data-sources/index.cjs.js +2 -6
  9. package/lib/data-sources/index.cjs.js.map +1 -1
  10. package/lib/host/index.cjs.js +2 -6
  11. package/lib/host/index.cjs.js.map +1 -1
  12. package/lib/prepass/index.cjs.js +2 -6
  13. package/lib/prepass/index.cjs.js.map +1 -1
  14. package/lib/query/index.cjs.js +2 -6
  15. package/lib/query/index.cjs.js.map +1 -1
  16. package/package.json +10 -10
  17. package/skinny/dist/{collection-utils-2f28e4eb.js → collection-utils-12be6625.js} +4 -4
  18. package/skinny/dist/{collection-utils-2f28e4eb.js.map → collection-utils-12be6625.js.map} +1 -1
  19. package/skinny/dist/{common-ed411407.js → common-e74df507.js} +4 -4
  20. package/skinny/dist/common-e74df507.js.map +1 -0
  21. package/skinny/dist/{context-034b8d25.js → context-e56b6773.js} +1 -1
  22. package/skinny/dist/{context-034b8d25.js.map → context-e56b6773.js.map} +1 -1
  23. package/skinny/dist/index.js +6 -7
  24. package/skinny/dist/index.js.map +1 -1
  25. package/skinny/dist/plume/button/index.js +2 -2
  26. package/skinny/dist/plume/button/index.js.map +1 -1
  27. package/skinny/dist/plume/checkbox/index.js +5 -5
  28. package/skinny/dist/plume/checkbox/index.js.map +1 -1
  29. package/skinny/dist/plume/menu/index.js +7 -7
  30. package/skinny/dist/plume/menu/index.js.map +1 -1
  31. package/skinny/dist/plume/menu-button/index.js +6 -6
  32. package/skinny/dist/plume/menu-button/index.js.map +1 -1
  33. package/skinny/dist/plume/select/index.js +7 -7
  34. package/skinny/dist/plume/select/index.js.map +1 -1
  35. package/skinny/dist/plume/switch/index.js +5 -5
  36. package/skinny/dist/plume/switch/index.js.map +1 -1
  37. package/skinny/dist/plume/text-input/index.js +2 -2
  38. package/skinny/dist/plume/text-input/index.js.map +1 -1
  39. package/skinny/dist/plume/triggered-overlay/index.js +6 -7
  40. package/skinny/dist/plume/triggered-overlay/index.js.map +1 -1
  41. package/skinny/dist/{plume-utils-e699cd08.js → plume-utils-3d2c0c98.js} +2 -2
  42. package/skinny/dist/{plume-utils-e699cd08.js.map → plume-utils-3d2c0c98.js.map} +1 -1
  43. package/skinny/dist/{props-utils-9d74371f.js → props-utils-30c7073a.js} +2 -2
  44. package/skinny/dist/{props-utils-9d74371f.js.map → props-utils-30c7073a.js.map} +1 -1
  45. package/skinny/dist/{react-utils-5ff031c2.js → react-utils-8796beba.js} +2 -2
  46. package/skinny/dist/{react-utils-5ff031c2.js.map → react-utils-8796beba.js.map} +1 -1
  47. package/skinny/dist/render/PlasmicHead/index.js.map +1 -1
  48. package/skinny/dist/render/PlasmicImg/index.js +8 -5
  49. package/skinny/dist/render/PlasmicImg/index.js.map +1 -1
  50. package/skinny/dist/{ssr-d19c2950.js → ssr-90db5fad.js} +2 -2
  51. package/skinny/dist/{ssr-d19c2950.js.map → ssr-90db5fad.js.map} +1 -1
  52. package/skinny/dist/common-ed411407.js.map +0 -1
@@ -11,7 +11,7 @@ import * as ReactDOM from 'react-dom';
11
11
  import ReactDOM__default from 'react-dom';
12
12
  import { SSRProvider, useIsSSR as useIsSSR$1 } from '@react-aria/ssr';
13
13
  import { useFocusRing, useFocusable, FocusScope } from '@react-aria/focus';
14
- import { proxy, ref, useSnapshot, getVersion, subscribe } from 'valtio';
14
+ import { proxy, useSnapshot, ref, getVersion, subscribe } from 'valtio';
15
15
  import clone from 'clone';
16
16
  import deepEqual from 'fast-deep-equal';
17
17
  import { useCheckbox as useCheckbox$1 } from '@react-aria/checkbox';
@@ -29,7 +29,7 @@ import { useSelectState } from '@react-stately/select';
29
29
  import { useSwitch as useSwitch$1 } from '@react-aria/switch';
30
30
  import { useOverlay, useOverlayPosition, DismissButton } from '@react-aria/overlays';
31
31
 
32
- /*! *****************************************************************************
32
+ /******************************************************************************
33
33
  Copyright (c) Microsoft Corporation.
34
34
 
35
35
  Permission to use, copy, modify, and/or distribute this software for any
@@ -99,7 +99,7 @@ function __generator(thisArg, body) {
99
99
  function verb(n) { return function (v) { return step([n, v]); }; }
100
100
  function step(op) {
101
101
  if (f) throw new TypeError("Generator is already executing.");
102
- while (_) try {
102
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
103
103
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
104
104
  if (y = 0, t) op = [op[0] & 2, t.value];
105
105
  switch (op[0]) {
@@ -1148,9 +1148,12 @@ var PlasmicImg = React__default.forwardRef(function PlasmicImg(props, outerRef)
1148
1148
  }), sizes = _b.sizes, widthDescs = _b.widthDescs;
1149
1149
  var imageLoader = getImageLoader(loader);
1150
1150
  var spacerSvg = "<svg width=\"".concat(spacerWidth, "\" height=\"").concat(spacerHeight, "\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"/>");
1151
- var spacerSvgBase64 = typeof window === "undefined"
1152
- ? Buffer.from(spacerSvg).toString("base64")
1153
- : window.btoa(spacerSvg);
1151
+ var spacerSvgBase64 =
1152
+ // if btoa exists, use btoa, as it works in browser and in
1153
+ // cloudflare edge workers. For node, use Buffer.from().
1154
+ typeof globalThis.btoa === "function"
1155
+ ? globalThis.btoa(spacerSvg)
1156
+ : Buffer.from(spacerSvg).toString("base64");
1154
1157
  var wrapperStyle = __assign({}, (style || {}));
1155
1158
  var spacerStyle = __assign({}, pick(style || {}, "objectFit", "objectPosition"));
1156
1159
  if (displayWidth != null && displayWidth !== "auto") {