@bigbinary/neeto-molecules 5.1.24 → 5.1.26

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 (89) hide show
  1. package/dist/arrow-left-B-s28MD1.js +18 -0
  2. package/dist/arrow-left-B-s28MD1.js.map +1 -0
  3. package/dist/cjs/arrow-left-gtCwH31u.js +20 -0
  4. package/dist/cjs/arrow-left-gtCwH31u.js.map +1 -0
  5. package/dist/cjs/v2/ImageWithFallback.js +51 -0
  6. package/dist/cjs/v2/ImageWithFallback.js.map +1 -0
  7. package/dist/cjs/v2/ProductEmbed.js +4 -17
  8. package/dist/cjs/v2/ProductEmbed.js.map +1 -1
  9. package/dist/cjs/v2/ShareRecordingPane.js +305 -0
  10. package/dist/cjs/v2/ShareRecordingPane.js.map +1 -0
  11. package/dist/cjs/v2/ShareViaEmail.js +387 -0
  12. package/dist/cjs/v2/ShareViaEmail.js.map +1 -0
  13. package/dist/cjs/v2/StatusDropdown.js +161 -0
  14. package/dist/cjs/v2/StatusDropdown.js.map +1 -0
  15. package/dist/cjs/v2/SubscriptionNotificationsContainer.js +72 -0
  16. package/dist/cjs/v2/SubscriptionNotificationsContainer.js.map +1 -0
  17. package/dist/cjs/v2/SubscriptionUpgradeRequestModal.js +90 -0
  18. package/dist/cjs/v2/SubscriptionUpgradeRequestModal.js.map +1 -0
  19. package/dist/cjs/v2/SuffixedInput.js +130 -0
  20. package/dist/cjs/v2/SuffixedInput.js.map +1 -0
  21. package/dist/cjs/v2/TimezoneMismatchModal.js +136 -0
  22. package/dist/cjs/v2/TimezoneMismatchModal.js.map +1 -0
  23. package/dist/cjs/v2/VersionHistory.js +210 -0
  24. package/dist/cjs/v2/VersionHistory.js.map +1 -0
  25. package/dist/v2/ImageWithFallback.js +49 -0
  26. package/dist/v2/ImageWithFallback.js.map +1 -0
  27. package/dist/v2/ProductEmbed.js +2 -15
  28. package/dist/v2/ProductEmbed.js.map +1 -1
  29. package/dist/v2/ShareRecordingPane.js +303 -0
  30. package/dist/v2/ShareRecordingPane.js.map +1 -0
  31. package/dist/v2/ShareViaEmail.js +366 -0
  32. package/dist/v2/ShareViaEmail.js.map +1 -0
  33. package/dist/v2/StatusDropdown.js +159 -0
  34. package/dist/v2/StatusDropdown.js.map +1 -0
  35. package/dist/v2/SubscriptionNotificationsContainer.js +70 -0
  36. package/dist/v2/SubscriptionNotificationsContainer.js.map +1 -0
  37. package/dist/v2/SubscriptionUpgradeRequestModal.js +88 -0
  38. package/dist/v2/SubscriptionUpgradeRequestModal.js.map +1 -0
  39. package/dist/v2/SuffixedInput.js +128 -0
  40. package/dist/v2/SuffixedInput.js.map +1 -0
  41. package/dist/v2/TimezoneMismatchModal.js +134 -0
  42. package/dist/v2/TimezoneMismatchModal.js.map +1 -0
  43. package/dist/v2/VersionHistory.js +208 -0
  44. package/dist/v2/VersionHistory.js.map +1 -0
  45. package/package.json +1 -1
  46. package/src/translations/ar.json +10 -3
  47. package/src/translations/bg.json +10 -3
  48. package/src/translations/ca.json +10 -3
  49. package/src/translations/cs.json +10 -3
  50. package/src/translations/da.json +10 -3
  51. package/src/translations/de.json +10 -3
  52. package/src/translations/es-MX.json +10 -3
  53. package/src/translations/es.json +10 -3
  54. package/src/translations/et.json +10 -3
  55. package/src/translations/fi.json +10 -3
  56. package/src/translations/fil.json +10 -3
  57. package/src/translations/fr.json +10 -3
  58. package/src/translations/he.json +10 -3
  59. package/src/translations/hi.json +10 -3
  60. package/src/translations/hr.json +10 -3
  61. package/src/translations/hu.json +10 -3
  62. package/src/translations/id.json +10 -3
  63. package/src/translations/it.json +10 -3
  64. package/src/translations/ja.json +9 -2
  65. package/src/translations/ko.json +9 -2
  66. package/src/translations/nl.json +10 -3
  67. package/src/translations/pl.json +10 -3
  68. package/src/translations/pt-BR.json +10 -3
  69. package/src/translations/pt.json +10 -3
  70. package/src/translations/ro.json +10 -3
  71. package/src/translations/ru.json +10 -3
  72. package/src/translations/sk.json +10 -3
  73. package/src/translations/sl.json +10 -3
  74. package/src/translations/sv.json +10 -3
  75. package/src/translations/th.json +9 -2
  76. package/src/translations/tr.json +10 -3
  77. package/src/translations/uk.json +10 -3
  78. package/src/translations/vi.json +10 -3
  79. package/src/translations/zh-CN.json +10 -3
  80. package/src/translations/zh-TW.json +10 -3
  81. package/types/v2/ImageWithFallback.d.ts +9 -0
  82. package/types/v2/ShareRecordingPane.d.ts +16 -0
  83. package/types/v2/ShareViaEmail.d.ts +34 -0
  84. package/types/v2/StatusDropdown.d.ts +16 -0
  85. package/types/v2/SubscriptionNotificationsContainer.d.ts +5 -0
  86. package/types/v2/SubscriptionUpgradeRequestModal.d.ts +8 -0
  87. package/types/v2/SuffixedInput.d.ts +16 -0
  88. package/types/v2/TimezoneMismatchModal.d.ts +8 -0
  89. package/types/v2/VersionHistory.d.ts +44 -0
@@ -0,0 +1,18 @@
1
+ import { c as createLucideIcon } from './createLucideIcon-mNMhCCpf.js';
2
+
3
+ /**
4
+ * @license lucide-react v1.7.0 - ISC
5
+ *
6
+ * This source code is licensed under the ISC license.
7
+ * See the LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+
11
+ const __iconNode = [
12
+ ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
13
+ ["path", { d: "M19 12H5", key: "x3x0zl" }]
14
+ ];
15
+ const ArrowLeft = createLucideIcon("arrow-left", __iconNode);
16
+
17
+ export { ArrowLeft as A };
18
+ //# sourceMappingURL=arrow-left-B-s28MD1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-left-B-s28MD1.js","sources":["../node_modules/lucide-react/dist/esm/icons/arrow-left.js"],"sourcesContent":["/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m12 19-7-7 7-7\", key: \"1l729n\" }],\n [\"path\", { d: \"M19 12H5\", key: \"x3x0zl\" }]\n];\nconst ArrowLeft = createLucideIcon(\"arrow-left\", __iconNode);\n\nexport { __iconNode, ArrowLeft as default };\n//# sourceMappingURL=arrow-left.js.map\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,gBAAgB,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAClD,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE;AAC3C,CAAC;AACI,MAAC,SAAS,GAAG,gBAAgB,CAAC,YAAY,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var createLucideIcon = require('./createLucideIcon-DBDhE7kE.js');
4
+
5
+ /**
6
+ * @license lucide-react v1.7.0 - ISC
7
+ *
8
+ * This source code is licensed under the ISC license.
9
+ * See the LICENSE file in the root directory of this source tree.
10
+ */
11
+
12
+
13
+ const __iconNode = [
14
+ ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
15
+ ["path", { d: "M19 12H5", key: "x3x0zl" }]
16
+ ];
17
+ const ArrowLeft = createLucideIcon.createLucideIcon("arrow-left", __iconNode);
18
+
19
+ exports.ArrowLeft = ArrowLeft;
20
+ //# sourceMappingURL=arrow-left-gtCwH31u.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-left-gtCwH31u.js","sources":["../../node_modules/lucide-react/dist/esm/icons/arrow-left.js"],"sourcesContent":["/**\n * @license lucide-react v1.7.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"m12 19-7-7 7-7\", key: \"1l729n\" }],\n [\"path\", { d: \"M19 12H5\", key: \"x3x0zl\" }]\n];\nconst ArrowLeft = createLucideIcon(\"arrow-left\", __iconNode);\n\nexport { __iconNode, ArrowLeft as default };\n//# sourceMappingURL=arrow-left.js.map\n"],"names":["createLucideIcon"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,gBAAgB,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAClD,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE;AAC3C,CAAC;AACI,MAAC,SAAS,GAAGA,iCAAgB,CAAC,YAAY,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
5
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
+ var React = require('react');
7
+ var classnames = require('classnames');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ var _excluded$1 = ["className"];
11
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
+ var ImagePlaceholder = function ImagePlaceholder(_ref) {
14
+ var _ref$className = _ref.className,
15
+ className = _ref$className === void 0 ? "" : _ref$className,
16
+ props = _objectWithoutProperties(_ref, _excluded$1);
17
+ return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread$1({
18
+ className: classnames("bg-muted", _defineProperty({}, className, className)),
19
+ "data-testid": "fallback-image"
20
+ }, props));
21
+ };
22
+
23
+ var _excluded = ["src", "fallback"];
24
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26
+ var ImageWithFallback = function ImageWithFallback(_ref) {
27
+ var src = _ref.src,
28
+ fallback = _ref.fallback,
29
+ otherProps = _objectWithoutProperties(_ref, _excluded);
30
+ var _useState = React.useState(false),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ isLoaded = _useState2[0],
33
+ setIsLoaded = _useState2[1];
34
+ React.useEffect(function () {
35
+ var img = new Image();
36
+ img.onload = function () {
37
+ setIsLoaded(true);
38
+ };
39
+ img.src = src;
40
+ }, [src]);
41
+ return isLoaded ? /*#__PURE__*/jsxRuntime.jsx("img", _objectSpread({
42
+ "data-testid": "original-image"
43
+ }, _objectSpread({
44
+ src: src
45
+ }, otherProps))) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
46
+ children: fallback || /*#__PURE__*/jsxRuntime.jsx(ImagePlaceholder, _objectSpread({}, otherProps))
47
+ });
48
+ };
49
+
50
+ module.exports = ImageWithFallback;
51
+ //# sourceMappingURL=ImageWithFallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageWithFallback.js","sources":["../../../src/v2/components/ImageWithFallback/ImagePlaceholder.jsx","../../../src/v2/components/ImageWithFallback/index.jsx"],"sourcesContent":["import classnames from \"classnames\";\n\nconst ImagePlaceholder = ({ className = \"\", ...props }) => (\n <div\n className={classnames(\"bg-muted\", { [className]: className })}\n data-testid=\"fallback-image\"\n {...props}\n />\n);\n\nexport default ImagePlaceholder;\n","import { useEffect, useState } from \"react\";\n\nimport PropTypes from \"prop-types\";\n\nimport ImagePlaceholder from \"./ImagePlaceholder\";\n\nconst ImageWithFallback = ({ src, fallback, ...otherProps }) => {\n const [isLoaded, setIsLoaded] = useState(false);\n\n useEffect(() => {\n const img = new Image();\n img.onload = () => {\n setIsLoaded(true);\n };\n img.src = src;\n }, [src]);\n\n return isLoaded ? (\n <img data-testid=\"original-image\" {...{ src, ...otherProps }} />\n ) : (\n <>{fallback || <ImagePlaceholder {...otherProps} />}</>\n );\n};\n\nImageWithFallback.propTypes = {\n /**\n * The provide the source of the image.\n */\n src: PropTypes.string,\n /**\n * Displays a fallback component in case no image is available.\n */\n fallback: PropTypes.node,\n};\n\nexport default ImageWithFallback;\n"],"names":["ImagePlaceholder","_ref","_ref$className","className","props","_objectWithoutProperties","_excluded","_jsx","_objectSpread","classnames","_defineProperty","ImageWithFallback","src","fallback","otherProps","_useState","useState","_useState2","_slicedToArray","isLoaded","setIsLoaded","useEffect","img","Image","onload","_Fragment","children"],"mappings":";;;;;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAAC,cAAA,GAAAD,IAAA,CAAME,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;AAAKE,IAAAA,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,WAAA,CAAA;EAAA,oBAClDC,cAAA,QAAAC,eAAA,CAAA;IACEL,SAAS,EAAEM,UAAU,CAAC,UAAU,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-commons-frontend/v2/initializers');
26
26
  var v2_BrowserPreview = require('./BrowserPreview.js');
27
27
  var v2_Container = require('./Container.js');
28
28
  var v2_Header = require('./Header.js');
29
- var createLucideIcon = require('../createLucideIcon-DBDhE7kE.js');
29
+ var arrowLeft = require('../arrow-left-gtCwH31u.js');
30
30
  require('../circle-question-mark-kxBMPyWQ.js');
31
+ require('../createLucideIcon-DBDhE7kE.js');
31
32
  require('@bigbinary/neeto-commons-frontend/v2/react-utils/useBreakpoints');
32
33
  require('react-syntax-highlighter/dist/esm/languages/prism/javascript');
33
34
  require('react-syntax-highlighter/dist/esm/prism-light.js');
@@ -49,20 +50,6 @@ require('@bigbinary/neeto-commons-frontend/v2/react-utils/useUpdateEffect');
49
50
  require('@bigbinary/neeto-commons-frontend/v2/utils');
50
51
  require('../search-BBuFYdmG.js');
51
52
 
52
- /**
53
- * @license lucide-react v1.7.0 - ISC
54
- *
55
- * This source code is licensed under the ISC license.
56
- * See the LICENSE file in the root directory of this source tree.
57
- */
58
-
59
-
60
- const __iconNode = [
61
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
62
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
63
- ];
64
- const ArrowLeft = createLucideIcon.createLucideIcon("arrow-left", __iconNode);
65
-
66
53
  var FLOATING_BUTTON_POSITIONS = [{
67
54
  label: i18next.t("neetoMolecules.productEmbed.floatingPopup.position.bottomLeft"),
68
55
  value: "bottomLeft"
@@ -1673,7 +1660,7 @@ var EmbedRenderer = function EmbedRenderer(_ref) {
1673
1660
  children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
1674
1661
  className: "mb-4",
1675
1662
  "data-testid": "back-to-embed-selection-button",
1676
- icon: ArrowLeft,
1663
+ icon: arrowLeft.ArrowLeft,
1677
1664
  iconPosition: "left",
1678
1665
  label: t("neetoMolecules.productEmbed.backToEmbedSelection"),
1679
1666
  size: "sm",
@@ -1738,7 +1725,7 @@ var EmbedSelector = function EmbedSelector(_ref) {
1738
1725
  children: [goBackLink && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
1739
1726
  className: "mb-4",
1740
1727
  "data-testid": "back-button",
1741
- icon: ArrowLeft,
1728
+ icon: arrowLeft.ArrowLeft,
1742
1729
  iconPosition: "left",
1743
1730
  label: t("neetoMolecules.productEmbed.backToShare"),
1744
1731
  size: "sm",