@semcore/feature-popover 2.6.4 → 2.6.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [2.6.5] - 2022-04-28
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/icon` [2.20.0 ~> 2.21.0]).
10
+
5
11
  ## [2.6.4] - 2022-04-03
6
12
 
7
13
  ### Changed
@@ -0,0 +1,29 @@
1
+ import { PropGetterFn, CProps, ReturnEl } from '@semcore/core';
2
+ import Popper, { IPopperContext, IPopperPopperProps, IPopperProps } from '@semcore/popper';
3
+ import { Box } from '@semcore/flex-box';
4
+
5
+ export interface IFeaturePopoverPopperProps extends IPopperPopperProps {
6
+ /**
7
+ * The property responsible for the visibility of the closing icon
8
+ * @default false
9
+ */
10
+ closeIcon?: boolean;
11
+ /** Animation display duration in `ms`
12
+ * @default 200
13
+ */
14
+ duration?: number;
15
+ }
16
+
17
+ export interface IFeaturePopoverContext extends IPopperContext {
18
+ getSpotProps: PropGetterFn;
19
+ }
20
+
21
+ declare const FeaturePopover: ((
22
+ props: CProps<IPopperProps, IFeaturePopoverContext>,
23
+ ) => ReturnEl) & {
24
+ Trigger: typeof Popper.Trigger;
25
+ Popper: <T>(props: IFeaturePopoverPopperProps & T) => ReturnEl;
26
+ Spot: typeof Box;
27
+ };
28
+
29
+ export default FeaturePopover;
package/lib/cjs/index.js CHANGED
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime/helpers/typeof");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- var _exportNames = {};
9
8
  Object.defineProperty(exports, "default", {
10
9
  enumerable: true,
11
10
  get: function get() {
@@ -13,21 +12,5 @@ Object.defineProperty(exports, "default", {
13
12
  }
14
13
  });
15
14
 
16
- var _FeaturePopover = _interopRequireWildcard(require("./FeaturePopover"));
17
-
18
- Object.keys(_FeaturePopover).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
21
- if (key in exports && exports[key] === _FeaturePopover[key]) return;
22
- Object.defineProperty(exports, key, {
23
- enumerable: true,
24
- get: function get() {
25
- return _FeaturePopover[key];
26
- }
27
- });
28
- });
29
-
30
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
-
32
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ var _FeaturePopover = _interopRequireDefault(require("./FeaturePopover"));
33
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { default } from './FeaturePopover';\nexport * from './FeaturePopover';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './FeaturePopover';\n"],"file":"index.js"}
@@ -0,0 +1,29 @@
1
+ import { PropGetterFn, CProps, ReturnEl } from '@semcore/core';
2
+ import Popper, { IPopperContext, IPopperPopperProps, IPopperProps } from '@semcore/popper';
3
+ import { Box } from '@semcore/flex-box';
4
+
5
+ export interface IFeaturePopoverPopperProps extends IPopperPopperProps {
6
+ /**
7
+ * The property responsible for the visibility of the closing icon
8
+ * @default false
9
+ */
10
+ closeIcon?: boolean;
11
+ /** Animation display duration in `ms`
12
+ * @default 200
13
+ */
14
+ duration?: number;
15
+ }
16
+
17
+ export interface IFeaturePopoverContext extends IPopperContext {
18
+ getSpotProps: PropGetterFn;
19
+ }
20
+
21
+ declare const FeaturePopover: ((
22
+ props: CProps<IPopperProps, IFeaturePopoverContext>,
23
+ ) => ReturnEl) & {
24
+ Trigger: typeof Popper.Trigger;
25
+ Popper: <T>(props: IFeaturePopoverPopperProps & T) => ReturnEl;
26
+ Spot: typeof Box;
27
+ };
28
+
29
+ export default FeaturePopover;
package/lib/es6/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export { default } from './FeaturePopover';
2
- export * from './FeaturePopover';
3
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.js"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,kBAAxB;AACA,cAAc,kBAAd","sourcesContent":["export { default } from './FeaturePopover';\nexport * from './FeaturePopover';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../src/index.js"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,kBAAxB","sourcesContent":["export { default } from './FeaturePopover';\n"],"file":"index.js"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/feature-popover",
3
3
  "description": "SEMRush FeaturePopover Component",
4
- "version": "2.6.4",
4
+ "version": "2.6.5",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -30,5 +30,8 @@
30
30
  "type": "git",
31
31
  "url": "https://github.com/semrush/intergalactic.git",
32
32
  "directory": "semcore/feature-popover"
33
+ },
34
+ "devDependencies": {
35
+ "@semcore/jest-preset-ui": "1.0.0"
33
36
  }
34
37
  }
package/src/index.js CHANGED
@@ -1,2 +1 @@
1
1
  export { default } from './FeaturePopover';
2
- export * from './FeaturePopover';