@semcore/notice-bubble 4.2.8 → 4.2.10
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 +10 -6
- package/lib/cjs/NoticeBubble.js +11 -11
- package/lib/cjs/index.d.js +10 -0
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/NoticeBubble.js +11 -11
- package/lib/es6/index.d.js +7 -0
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +4 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.2.
|
|
5
|
+
## [4.2.10] - 2022-11-24
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Fixed
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Replaced `NoticeBubbleManager` instance typings with `NoticeBubbleManager` typing.
|
|
10
10
|
|
|
11
|
-
## [4.2.
|
|
11
|
+
## [4.2.9] - 2022-11-17
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Export of `NoticeBubbleManager` was missing in typings.
|
|
16
|
+
|
|
17
|
+
## [4.2.8] - 2022-11-14
|
|
14
18
|
|
|
15
19
|
### Changed
|
|
16
20
|
|
|
17
|
-
- Version patch update due to children dependencies update (`@semcore/
|
|
21
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [3.2.0 ~> 3.3.0]).
|
|
18
22
|
|
|
19
23
|
## [4.2.0] - 2022-10-10
|
|
20
24
|
|
package/lib/cjs/NoticeBubble.js
CHANGED
|
@@ -67,20 +67,20 @@ var style = (
|
|
|
67
67
|
/*__reshadow_css_start__*/
|
|
68
68
|
_core.sstyled.insert(
|
|
69
69
|
/*__inner_css_start__*/
|
|
70
|
-
".
|
|
70
|
+
".___SInfo_1n3ro_gg_,.___SView_1n3ro_gg_,.___SWarning_1n3ro_gg_{position:relative;margin-bottom:12px;padding:12px 28px 12px 12px;width:100%;min-height:44px;border-radius:6px;overflow:hidden;box-sizing:border-box}.___SInfo_1n3ro_gg_{background:#191b23}.___SWarning_1n3ro_gg_{background:#ff4953}.___SMessage_1n3ro_gg_{font-size:14px;color:#fff;line-height:1.33}.___SDismiss_1n3ro_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:8px;color:#ffffff}.___SDismiss_1n3ro_gg_:hover{color:#e0e1e9}.___SAction_1n3ro_gg_{margin-top:8px}.___SNoticeBubble_1n3ro_gg_{width:300px;position:fixed;z-index:1010;right:12px;top:12px}@media (max-width:767px){.___SNoticeBubble_1n3ro_gg_{width:calc(100% - 24px)}}@keyframes enter_1n3ro{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes exit_1n3ro{0%{opacity:1}to{opacity:0}}"
|
|
71
71
|
/*__inner_css_end__*/
|
|
72
|
-
, "
|
|
72
|
+
, "1n3ro_gg_")
|
|
73
73
|
/*__reshadow_css_end__*/
|
|
74
74
|
, {
|
|
75
|
-
"__SInfo": "
|
|
76
|
-
"__SView": "
|
|
77
|
-
"__SWarning": "
|
|
78
|
-
"__SMessage": "
|
|
79
|
-
"__SDismiss": "
|
|
80
|
-
"__SAction": "
|
|
81
|
-
"__SNoticeBubble": "
|
|
82
|
-
"@enter": "
|
|
83
|
-
"@exit": "
|
|
75
|
+
"__SInfo": "___SInfo_1n3ro_gg_",
|
|
76
|
+
"__SView": "___SView_1n3ro_gg_",
|
|
77
|
+
"__SWarning": "___SWarning_1n3ro_gg_",
|
|
78
|
+
"__SMessage": "___SMessage_1n3ro_gg_",
|
|
79
|
+
"__SDismiss": "___SDismiss_1n3ro_gg_",
|
|
80
|
+
"__SAction": "___SAction_1n3ro_gg_",
|
|
81
|
+
"__SNoticeBubble": "___SNoticeBubble_1n3ro_gg_",
|
|
82
|
+
"@enter": "enter_1n3ro",
|
|
83
|
+
"@exit": "exit_1n3ro"
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
var Notices = function Notices(props) {
|
package/lib/cjs/index.d.js
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
6
|
+
|
|
7
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
8
|
+
|
|
9
|
+
var NoticeBubbleManager = /*#__PURE__*/(0, _createClass2["default"])(function NoticeBubbleManager() {
|
|
10
|
+
(0, _classCallCheck2["default"])(this, NoticeBubbleManager);
|
|
11
|
+
});
|
|
2
12
|
//# sourceMappingURL=index.d.js.map
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (
|
|
1
|
+
{"version":3,"file":"index.d.js","names":["NoticeBubbleManager"],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (props: object) => {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update: (uid: string, props: object) => boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove: (uid: string) => boolean;\n}\n\ndeclare const NoticeBubble: <T>(props: INoticeBubbleInfoProps & T) => ReturnEl;\ndeclare const NoticeBubbleWarning: <T>(props: INoticeBubbleWarningProps & T) => ReturnEl;\ndeclare const NoticeBubbleContainer: (<T>(\n props: CProps<INoticeBubbleContainerProps & T>,\n) => ReturnEl) & {\n Info: typeof NoticeBubble;\n Warning: typeof NoticeBubbleWarning;\n};\n\ndeclare class NoticeBubbleManager implements INoticeBubbleManager {}\n\nexport { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning, NoticeBubbleManager };\nexport default NoticeBubbleManager;\n"],"mappings":";;;;;;;;IA6EcA,mB"}
|
package/lib/es6/NoticeBubble.js
CHANGED
|
@@ -36,20 +36,20 @@ var style = (
|
|
|
36
36
|
/*__reshadow_css_start__*/
|
|
37
37
|
_sstyled.insert(
|
|
38
38
|
/*__inner_css_start__*/
|
|
39
|
-
".
|
|
39
|
+
".___SInfo_1n3ro_gg_,.___SView_1n3ro_gg_,.___SWarning_1n3ro_gg_{position:relative;margin-bottom:12px;padding:12px 28px 12px 12px;width:100%;min-height:44px;border-radius:6px;overflow:hidden;box-sizing:border-box}.___SInfo_1n3ro_gg_{background:#191b23}.___SWarning_1n3ro_gg_{background:#ff4953}.___SMessage_1n3ro_gg_{font-size:14px;color:#fff;line-height:1.33}.___SDismiss_1n3ro_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:8px;color:#ffffff}.___SDismiss_1n3ro_gg_:hover{color:#e0e1e9}.___SAction_1n3ro_gg_{margin-top:8px}.___SNoticeBubble_1n3ro_gg_{width:300px;position:fixed;z-index:1010;right:12px;top:12px}@media (max-width:767px){.___SNoticeBubble_1n3ro_gg_{width:calc(100% - 24px)}}@keyframes enter_1n3ro{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes exit_1n3ro{0%{opacity:1}to{opacity:0}}"
|
|
40
40
|
/*__inner_css_end__*/
|
|
41
|
-
, "
|
|
41
|
+
, "1n3ro_gg_")
|
|
42
42
|
/*__reshadow_css_end__*/
|
|
43
43
|
, {
|
|
44
|
-
"__SInfo": "
|
|
45
|
-
"__SView": "
|
|
46
|
-
"__SWarning": "
|
|
47
|
-
"__SMessage": "
|
|
48
|
-
"__SDismiss": "
|
|
49
|
-
"__SAction": "
|
|
50
|
-
"__SNoticeBubble": "
|
|
51
|
-
"@enter": "
|
|
52
|
-
"@exit": "
|
|
44
|
+
"__SInfo": "___SInfo_1n3ro_gg_",
|
|
45
|
+
"__SView": "___SView_1n3ro_gg_",
|
|
46
|
+
"__SWarning": "___SWarning_1n3ro_gg_",
|
|
47
|
+
"__SMessage": "___SMessage_1n3ro_gg_",
|
|
48
|
+
"__SDismiss": "___SDismiss_1n3ro_gg_",
|
|
49
|
+
"__SAction": "___SAction_1n3ro_gg_",
|
|
50
|
+
"__SNoticeBubble": "___SNoticeBubble_1n3ro_gg_",
|
|
51
|
+
"@enter": "enter_1n3ro",
|
|
52
|
+
"@exit": "exit_1n3ro"
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
var Notices = function Notices(props) {
|
package/lib/es6/index.d.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
+
|
|
4
|
+
var NoticeBubbleManager = /*#__PURE__*/_createClass(function NoticeBubbleManager() {
|
|
5
|
+
_classCallCheck(this, NoticeBubbleManager);
|
|
6
|
+
});
|
|
7
|
+
|
|
1
8
|
export {};
|
|
2
9
|
//# sourceMappingURL=index.d.js.map
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (
|
|
1
|
+
{"version":3,"file":"index.d.js","names":["NoticeBubbleManager"],"sources":["../../src/index.d.ts"],"sourcesContent":["import { IPortalProps } from '@semcore/portal';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface INoticeBubbleContainerProps extends IBoxProps, IPortalProps {\n /** Manager copy */\n manager?: INoticeBubbleManager;\n}\n\nexport interface INoticeBubbleInfoProps extends INoticeBubbleProps {\n readonly type?: 'info';\n /** Notice display duration\n * @default 5000\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleWarningProps extends INoticeBubbleProps {\n readonly type?: 'warning';\n /**\n * Notice display duration\n * @default 0\n */\n duration?: number;\n}\n\nexport interface INoticeBubbleProps extends IBoxProps {\n /**\n * Manager instance\n * @default NoticeBubbleManager()\n */\n manager?: INoticeBubbleManager;\n /**\n * Notice visibility\n */\n visible?: boolean;\n /** Adds controls (buttons, etc.) */\n action?: React.ReactNode;\n\n /** Triggered when the notice is closed */\n onClose?: (e?: React.SyntheticEvent) => void;\n}\n\nexport interface INoticeBubbleManager {\n /**\n * Adding a notice.\n * Takes the props properties of NoticeBubble.\n * Returns an object with the uid and the update, remove functions.\n * */\n add: (props: object) => {\n uid: string;\n update: (props: object) => boolean;\n remove: () => boolean;\n };\n /**\n * Updates the notice by uid.\n * Takes the uid-unique identifier and the props-properties of NoticeBubble.\n * Returns a successful or unsuccessful update.\n * */\n update: (uid: string, props: object) => boolean;\n /**\n * Deletes the notice by uid.\n * Takes an uid-unique identifier.\n * Returns a successful or unsuccessful deletion.\n * */\n remove: (uid: string) => boolean;\n}\n\ndeclare const NoticeBubble: <T>(props: INoticeBubbleInfoProps & T) => ReturnEl;\ndeclare const NoticeBubbleWarning: <T>(props: INoticeBubbleWarningProps & T) => ReturnEl;\ndeclare const NoticeBubbleContainer: (<T>(\n props: CProps<INoticeBubbleContainerProps & T>,\n) => ReturnEl) & {\n Info: typeof NoticeBubble;\n Warning: typeof NoticeBubbleWarning;\n};\n\ndeclare class NoticeBubbleManager implements INoticeBubbleManager {}\n\nexport { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning, NoticeBubbleManager };\nexport default NoticeBubbleManager;\n"],"mappings":";;;IA6EcA,mB"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -47,9 +47,7 @@ export interface INoticeBubbleManager {
|
|
|
47
47
|
* Takes the props properties of NoticeBubble.
|
|
48
48
|
* Returns an object with the uid and the update, remove functions.
|
|
49
49
|
* */
|
|
50
|
-
add: (
|
|
51
|
-
props: object,
|
|
52
|
-
) => {
|
|
50
|
+
add: (props: object) => {
|
|
53
51
|
uid: string;
|
|
54
52
|
update: (props: object) => boolean;
|
|
55
53
|
remove: () => boolean;
|
|
@@ -77,7 +75,7 @@ declare const NoticeBubbleContainer: (<T>(
|
|
|
77
75
|
Warning: typeof NoticeBubbleWarning;
|
|
78
76
|
};
|
|
79
77
|
|
|
80
|
-
declare
|
|
78
|
+
declare class NoticeBubbleManager implements INoticeBubbleManager {}
|
|
81
79
|
|
|
82
|
-
export { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning };
|
|
83
|
-
export default
|
|
80
|
+
export { NoticeBubbleContainer, NoticeBubble, NoticeBubbleWarning, NoticeBubbleManager };
|
|
81
|
+
export default NoticeBubbleManager;
|