@semcore/notice-bubble 17.0.0-prerelease.36 → 17.0.0-prerelease.39
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,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [17.0.0] - 2026-04-
|
|
5
|
+
## [17.0.0] - 2026-04-14
|
|
6
6
|
|
|
7
7
|
### BREAK
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- New major version.
|
|
10
10
|
|
|
11
11
|
## [16.2.1] - 2026-01-19
|
|
12
12
|
|
package/lib/esm/NoticeBubble.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import {
|
|
4
|
-
import { Portal,
|
|
3
|
+
import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
|
|
4
|
+
import { Box, Portal, Flex, Animation } from "@semcore/base-components";
|
|
5
5
|
import Button from "@semcore/button";
|
|
6
6
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
7
7
|
import fire from "@semcore/core/lib/utils/fire";
|
|
@@ -9,7 +9,7 @@ import { getFocusableIn } from "@semcore/core/lib/utils/focus-lock/getFocusableI
|
|
|
9
9
|
import isNode from "@semcore/core/lib/utils/isNode";
|
|
10
10
|
import { useForkRef } from "@semcore/core/lib/utils/ref";
|
|
11
11
|
import { contextThemeEnhance } from "@semcore/core/lib/utils/ThemeProvider";
|
|
12
|
-
import {
|
|
12
|
+
import { useFocusLock, setFocus } from "@semcore/core/lib/utils/use/useFocusLock";
|
|
13
13
|
import { cssVariableEnhance } from "@semcore/core/lib/utils/useCssVariable";
|
|
14
14
|
import { ZIndexStackingContextProvider, zIndexStackingEnhance } from "@semcore/core/lib/utils/zIndexStacking";
|
|
15
15
|
import CloseIcon from "@semcore/icon/Close/m";
|
|
@@ -17,7 +17,6 @@ import React from "react";
|
|
|
17
17
|
import noticeBubbleDefaultManager from "./NoticeBubbleManager.mjs";
|
|
18
18
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
19
19
|
import { Timer } from "./utils.mjs";
|
|
20
|
-
/*!__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
|
|
21
20
|
const style = (
|
|
22
21
|
/*__reshadow_css_start__*/
|
|
23
22
|
(sstyled.insert(
|
|
@@ -211,9 +210,8 @@ class ViewInfo extends Component {
|
|
|
211
210
|
this.timer.resume();
|
|
212
211
|
});
|
|
213
212
|
_defineProperty(this, "handleBodyMouseMove", (event) => {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const rect = (_b = this.ref.current) == null ? void 0 : _b.getBoundingClientRect();
|
|
213
|
+
if (!this.timer?.paused) return;
|
|
214
|
+
const rect = this.ref.current?.getBoundingClientRect();
|
|
217
215
|
if (!rect) return;
|
|
218
216
|
const mouseInRect = event.clientX >= rect.left && event.clientX <= rect.right && event.clientY >= rect.top && event.clientY <= rect.bottom;
|
|
219
217
|
if (mouseInRect) return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/notice-bubble",
|
|
3
3
|
"description": "Semrush NoticeBubble Component",
|
|
4
|
-
"version": "17.0.0-prerelease.
|
|
4
|
+
"version": "17.0.0-prerelease.39",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"exports": {
|
|
12
|
-
"
|
|
12
|
+
"types": "./lib/types/index.d.ts",
|
|
13
13
|
"import": "./lib/esm/index.mjs",
|
|
14
|
-
"
|
|
14
|
+
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "^17.0.0-prerelease.
|
|
17
|
+
"@semcore/button": "^17.0.0-prerelease.39"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@semcore/base-components": "^17.0.0 || ^17.0.0-0",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"directory": "semcore/notice-bubble"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@semcore/
|
|
29
|
+
"@semcore/base-components": "17.0.0-prerelease.39",
|
|
30
|
+
"@semcore/core": "17.0.0-prerelease.39",
|
|
30
31
|
"@semcore/testing-utils": "1.0.0",
|
|
31
|
-
"@semcore/
|
|
32
|
-
"@semcore/icon": "16.7.2-prerelease.36"
|
|
32
|
+
"@semcore/icon": "17.0.0-prerelease.39"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "pnpm semcore-builder && pnpm vite build"
|