@semcore/notice-bubble 16.1.1 → 16.1.2-prerelease.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PortalProps } from '@semcore/portal';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\n\n/** @deprecated */\nexport interface INoticeBubbleContainerProps\n extends NoticeBubbleContainerProps,\n UnknownProperties {}\nexport type NoticeBubbleContainerProps = BoxProps &\n PortalProps & {\n /** Manager copy */\n manager?: NoticeBubbleManagerClass;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeBubbleProps extends NoticeBubbleProps, UnknownProperties {}\nexport type NoticeBubbleProps = BoxProps & {\n /**\n * Notice visibility.\n */\n visible?: boolean;\n /**\n * Control under the notice children.\n * */\n action?: React.ReactNode;\n /**\n * Callback triggered by \"Close\" icon click.\n * */\n onClose?: (e?: React.SyntheticEvent) => void;\n /**\n * Notice content.\n * */\n children?: React.ReactNode;\n manager?: NoticeBubbleManager;\n icon?: React.ReactElement;\n};\n/** @deprecated */\nexport interface INoticeBubbleInfoProps extends NoticeBubbleInfoProps, UnknownProperties {}\nexport type NoticeBubbleInfoProps = NoticeBubbleProps & {\n readonly type?: 'info';\n /**\n * Notice display duration. Set to 0 to disable auto-close.\n */\n duration?: number;\n /**\n * Enables animation on first rendering.\n * @default false\n */\n initialAnimation?: boolean;\n /**\n * Use it for complex notices with important controls.\n * If enabled, browser focus will be locked in the notice\n * until it's closed. After close focus should return to the element\n * where it was placed before notice appear.\n */\n focusLock?: boolean;\n};\n\n/** @deprecated */\nexport interface INoticeBubbleWarningProps extends NoticeBubbleWarningProps, UnknownProperties {}\nexport type NoticeBubbleWarningProps = NoticeBubbleProps & {\n readonly type?: 'warning';\n /**\n * Notice display duration.\n */\n duration?: number;\n /**\n * Enables animation on first rendering.\n * @default false\n */\n initialAnimation?: boolean;\n /**\n * Use it for complex notices with important controls.\n * If enabled, browser focus will be locked in the notice\n * until it's closed. After close focus should return to the element\n * where it was placed before notice appear.\n */\n focusLock?: boolean;\n};\n\n/** @deprecated */\nexport interface INoticeBubbleManager extends NoticeBubbleManagerClass, UnknownProperties {}\nexport type NoticeBubbleManagerClass = {\n /**\n * Creates and shows a notice.\n * */\n add: (props: NoticeBubbleInfoProps | NoticeBubbleWarningProps) => {\n uid: string;\n update: (props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>) => boolean;\n remove: () => boolean;\n ref: React.RefObject<HTMLDivElement>;\n focus: () => void;\n };\n /**\n * Updates notice by uid.\n * */\n update: (\n uid: string,\n props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>,\n ) => boolean;\n /**\n * Removes notice by uid.\n * */\n remove: (uid: string) => boolean;\n /**\n * Replace last notice (if it is existing)\n */\n replaceLast: (props: NoticeBubbleInfoProps | NoticeBubbleWarningProps) => void;\n};\n\n/**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\nexport declare const NoticeBubble: Intergalactic.Component<'div', NoticeBubbleInfoProps>;\n/**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\nexport declare const NoticeBubbleWarning: Intergalactic.Component<'div', NoticeBubbleWarningProps>;\nexport declare const NoticeBubbleContainer: Intergalactic.Component<\n 'div',\n NoticeBubbleContainerProps\n> & {\n /**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\n Info: typeof NoticeBubble;\n\n /**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\n Warning: typeof NoticeBubbleWarning;\n};\nexport declare class NoticeBubbleManager implements NoticeBubbleManagerClass {\n /**\n * Creates and shows a notice.\n * */\n add(props: NoticeBubbleInfoProps | NoticeBubbleWarningProps): {\n uid: string;\n update: (props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>) => boolean;\n remove: () => boolean;\n ref: React.RefObject<HTMLDivElement>;\n focus: () => void;\n };\n /**\n * Updates notice by uid.\n * */\n update(\n uid: string,\n props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>,\n ): boolean;\n /**\n * Removes notice by uid.\n * */\n remove(uid: string): boolean;\n /**\n * Replace last notice (if it is existing)\n */\n replaceLast: (props: NoticeBubbleInfoProps | NoticeBubbleWarningProps) => void;\n}\n\nexport declare const noticeBubbleDefaultManager: NoticeBubbleManager;\n\n/**\n * @deprecated Use `import { noticeBubbleDefaultManager } from ...` instead\n */\nexport default noticeBubbleDefaultManager;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { UnknownProperties, Intergalactic } from '@semcore/core';\nimport type { BoxProps } from '@semcore/flex-box';\nimport type { PortalProps } from '@semcore/portal';\n\n/** @deprecated */\nexport interface INoticeBubbleContainerProps\n extends NoticeBubbleContainerProps,\n UnknownProperties {}\nexport type NoticeBubbleContainerProps = BoxProps &\n PortalProps & {\n /** Manager copy */\n manager?: NoticeBubbleManagerClass;\n locale?: string;\n };\n\n/** @deprecated */\nexport interface INoticeBubbleProps extends NoticeBubbleProps, UnknownProperties {}\nexport type NoticeBubbleProps = BoxProps & {\n /**\n * Notice visibility.\n */\n visible?: boolean;\n /**\n * Control under the notice children.\n * */\n action?: React.ReactNode;\n /**\n * Callback triggered by \"Close\" icon click.\n * */\n onClose?: (e?: React.SyntheticEvent) => void;\n /**\n * Notice content.\n * */\n children?: React.ReactNode;\n manager?: NoticeBubbleManager;\n icon?: React.ReactElement;\n};\n/** @deprecated */\nexport interface INoticeBubbleInfoProps extends NoticeBubbleInfoProps, UnknownProperties {}\nexport type NoticeBubbleInfoProps = NoticeBubbleProps & {\n readonly type?: 'info';\n /**\n * Notice display duration. Set to 0 to disable auto-close.\n */\n duration?: number;\n /**\n * Enables animation on first rendering.\n * @default false\n */\n initialAnimation?: boolean;\n /**\n * Use it for complex notices with important controls.\n * If enabled, browser focus will be locked in the notice\n * until it's closed. After close focus should return to the element\n * where it was placed before notice appear.\n */\n focusLock?: boolean;\n};\n\n/** @deprecated */\nexport interface INoticeBubbleWarningProps extends NoticeBubbleWarningProps, UnknownProperties {}\nexport type NoticeBubbleWarningProps = NoticeBubbleProps & {\n readonly type?: 'warning';\n /**\n * Notice display duration.\n */\n duration?: number;\n /**\n * Enables animation on first rendering.\n * @default false\n */\n initialAnimation?: boolean;\n /**\n * Use it for complex notices with important controls.\n * If enabled, browser focus will be locked in the notice\n * until it's closed. After close focus should return to the element\n * where it was placed before notice appear.\n */\n focusLock?: boolean;\n};\n\n/** @deprecated */\nexport interface INoticeBubbleManager extends NoticeBubbleManagerClass, UnknownProperties {}\nexport type NoticeBubbleManagerClass = {\n /**\n * Creates and shows a notice.\n * */\n add: (props: NoticeBubbleInfoProps | NoticeBubbleWarningProps) => {\n uid: string;\n update: (props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>) => boolean;\n remove: () => boolean;\n ref: React.RefObject<HTMLDivElement>;\n focus: () => void;\n };\n /**\n * Updates notice by uid.\n * */\n update: (\n uid: string,\n props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>,\n ) => boolean;\n /**\n * Removes notice by uid.\n * */\n remove: (uid: string) => boolean;\n /**\n * Replace last notice (if it is existing)\n */\n replaceLast: (props: NoticeBubbleInfoProps | NoticeBubbleWarningProps) => void;\n};\n\n/**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\nexport declare const NoticeBubble: Intergalactic.Component<'div', NoticeBubbleInfoProps>;\n/**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\nexport declare const NoticeBubbleWarning: Intergalactic.Component<'div', NoticeBubbleWarningProps>;\nexport declare const NoticeBubbleContainer: Intergalactic.Component<\n 'div',\n NoticeBubbleContainerProps\n> & {\n /**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\n Info: typeof NoticeBubble;\n\n /**\n * @deprecated use `NoticeBubbleManager` instead.\n * */\n Warning: typeof NoticeBubbleWarning;\n};\nexport declare class NoticeBubbleManager implements NoticeBubbleManagerClass {\n /**\n * Creates and shows a notice.\n * */\n add(props: NoticeBubbleInfoProps | NoticeBubbleWarningProps): {\n uid: string;\n update: (props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>) => boolean;\n remove: () => boolean;\n ref: React.RefObject<HTMLDivElement>;\n focus: () => void;\n };\n /**\n * Updates notice by uid.\n * */\n update(\n uid: string,\n props: Partial<NoticeBubbleInfoProps> | Partial<NoticeBubbleWarningProps>,\n ): boolean;\n /**\n * Removes notice by uid.\n * */\n remove(uid: string): boolean;\n /**\n * Replace last notice (if it is existing)\n */\n replaceLast: (props: NoticeBubbleInfoProps | NoticeBubbleWarningProps) => void;\n}\n\nexport declare const noticeBubbleDefaultManager: NoticeBubbleManager;\n\n/**\n * @deprecated Use `import { noticeBubbleDefaultManager } from ...` instead\n */\nexport default noticeBubbleDefaultManager;\n"],"mappings":"","ignoreList":[]}
package/lib/es6/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as NoticeBubbleContainer } from './NoticeBubble';
2
- export * from './NoticeBubble';
3
2
  import { default as noticeBubbleDefaultManager } from './NoticeBubbleManager';
3
+ export * from './NoticeBubble';
4
4
  export * from './NoticeBubbleManager';
5
5
  export default noticeBubbleDefaultManager;
6
6
  export { NoticeBubbleContainer, noticeBubbleDefaultManager };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","NoticeBubbleContainer","noticeBubbleDefaultManager"],"sources":["../../src/index.js"],"sourcesContent":["import { default as NoticeBubbleContainer } from './NoticeBubble';\nexport * from './NoticeBubble';\n\nimport { default as noticeBubbleDefaultManager } from './NoticeBubbleManager';\n\nexport * from './NoticeBubbleManager';\n\nexport default noticeBubbleDefaultManager;\nexport { NoticeBubbleContainer, noticeBubbleDefaultManager };\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,qBAAqB,QAAQ,gBAAgB;AACjE,cAAc,gBAAgB;AAE9B,SAASD,OAAO,IAAIE,0BAA0B,QAAQ,uBAAuB;AAE7E,cAAc,uBAAuB;AAErC,eAAeA,0BAA0B;AACzC,SAASD,qBAAqB,EAAEC,0BAA0B"}
1
+ {"version":3,"file":"index.js","names":["default","NoticeBubbleContainer","noticeBubbleDefaultManager"],"sources":["../../src/index.js"],"sourcesContent":["import { default as NoticeBubbleContainer } from './NoticeBubble';\nimport { default as noticeBubbleDefaultManager } from './NoticeBubbleManager';\n\nexport * from './NoticeBubble';\n\nexport * from './NoticeBubbleManager';\n\nexport default noticeBubbleDefaultManager;\nexport { NoticeBubbleContainer, noticeBubbleDefaultManager };\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,qBAAqB,QAAQ,gBAAgB;AACjE,SAASD,OAAO,IAAIE,0BAA0B,QAAQ,uBAAuB;AAE7E,cAAc,gBAAgB;AAE9B,cAAc,uBAAuB;AAErC,eAAeA,0BAA0B;AACzC,SAASD,qBAAqB,EAAEC,0BAA0B","ignoreList":[]}
@@ -6,12 +6,12 @@ import it from './it.json';
6
6
  import ja from './ja.json';
7
7
  import ko from './ko.json';
8
8
  import nl from './nl.json';
9
+ import pl from './pl.json';
9
10
  import pt from './pt.json';
11
+ import sv from './sv.json';
10
12
  import tr from './tr.json';
11
13
  import vi from './vi.json';
12
14
  import zh from './zh.json';
13
- import pl from './pl.json';
14
- import sv from './sv.json';
15
15
  export var localizedMessages = {
16
16
  de: de,
17
17
  en: en,
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pt","tr","vi","zh","pl","sv","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pt from './pt.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\nimport pl from './pl.json';\nimport sv from './sv.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bd,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA;AACF,CAAC"}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","sv","tr","vi","zh","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bd,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFL,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
package/lib/es6/utils.js CHANGED
@@ -9,7 +9,7 @@ var Timer = /*#__PURE__*/function () {
9
9
  this.paused = false;
10
10
  this.resume();
11
11
  }
12
- _createClass(Timer, [{
12
+ return _createClass(Timer, [{
13
13
  key: "pause",
14
14
  value: function pause() {
15
15
  clearTimeout(this.timerId);
@@ -36,7 +36,6 @@ var Timer = /*#__PURE__*/function () {
36
36
  clearTimeout(this.timerId);
37
37
  }
38
38
  }]);
39
- return Timer;
40
39
  }();
41
40
  export { Timer };
42
41
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["Timer","callback","delay","_classCallCheck","remaining","paused","resume","_createClass","key","value","pause","clearTimeout","timerId","Date","now","start","setTimeout","reset","clear"],"sources":["../../src/utils.js"],"sourcesContent":["class Timer {\n constructor(callback, delay) {\n this.callback = callback;\n this.delay = delay;\n this.remaining = delay;\n this.paused = false;\n this.resume();\n }\n\n pause() {\n clearTimeout(this.timerId);\n this.remaining -= Date.now() - this.start;\n this.paused = true;\n }\n\n resume() {\n this.start = Date.now();\n this.paused = false;\n clearTimeout(this.timerId);\n this.timerId = setTimeout(this.callback, this.remaining);\n }\n\n reset() {\n this.remaining = this.delay;\n this.resume();\n }\n\n clear() {\n clearTimeout(this.timerId);\n }\n}\n\nexport { Timer };\n"],"mappings":";;IAAMA,KAAK;EACT,SAAAA,MAAYC,QAAQ,EAAEC,KAAK,EAAE;IAAAC,eAAA,OAAAH,KAAA;IAC3B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACE,SAAS,GAAGF,KAAK;IACtB,IAAI,CAACG,MAAM,GAAG,KAAK;IACnB,IAAI,CAACC,MAAM,EAAE;EACf;EAACC,YAAA,CAAAP,KAAA;IAAAQ,GAAA;IAAAC,KAAA,EAED,SAAAC,MAAA,EAAQ;MACNC,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;MAC1B,IAAI,CAACR,SAAS,IAAIS,IAAI,CAACC,GAAG,EAAE,GAAG,IAAI,CAACC,KAAK;MACzC,IAAI,CAACV,MAAM,GAAG,IAAI;IACpB;EAAC;IAAAG,GAAA;IAAAC,KAAA,EAED,SAAAH,OAAA,EAAS;MACP,IAAI,CAACS,KAAK,GAAGF,IAAI,CAACC,GAAG,EAAE;MACvB,IAAI,CAACT,MAAM,GAAG,KAAK;MACnBM,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;MAC1B,IAAI,CAACA,OAAO,GAAGI,UAAU,CAAC,IAAI,CAACf,QAAQ,EAAE,IAAI,CAACG,SAAS,CAAC;IAC1D;EAAC;IAAAI,GAAA;IAAAC,KAAA,EAED,SAAAQ,MAAA,EAAQ;MACN,IAAI,CAACb,SAAS,GAAG,IAAI,CAACF,KAAK;MAC3B,IAAI,CAACI,MAAM,EAAE;IACf;EAAC;IAAAE,GAAA;IAAAC,KAAA,EAED,SAAAS,MAAA,EAAQ;MACNP,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;IAC5B;EAAC;EAAA,OAAAZ,KAAA;AAAA;AAGH,SAASA,KAAK"}
1
+ {"version":3,"file":"utils.js","names":["Timer","callback","delay","_classCallCheck","remaining","paused","resume","_createClass","key","value","pause","clearTimeout","timerId","Date","now","start","setTimeout","reset","clear"],"sources":["../../src/utils.js"],"sourcesContent":["class Timer {\n constructor(callback, delay) {\n this.callback = callback;\n this.delay = delay;\n this.remaining = delay;\n this.paused = false;\n this.resume();\n }\n\n pause() {\n clearTimeout(this.timerId);\n this.remaining -= Date.now() - this.start;\n this.paused = true;\n }\n\n resume() {\n this.start = Date.now();\n this.paused = false;\n clearTimeout(this.timerId);\n this.timerId = setTimeout(this.callback, this.remaining);\n }\n\n reset() {\n this.remaining = this.delay;\n this.resume();\n }\n\n clear() {\n clearTimeout(this.timerId);\n }\n}\n\nexport { Timer };\n"],"mappings":";;IAAMA,KAAK;EACT,SAAAA,MAAYC,QAAQ,EAAEC,KAAK,EAAE;IAAAC,eAAA,OAAAH,KAAA;IAC3B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACE,SAAS,GAAGF,KAAK;IACtB,IAAI,CAACG,MAAM,GAAG,KAAK;IACnB,IAAI,CAACC,MAAM,CAAC,CAAC;EACf;EAAC,OAAAC,YAAA,CAAAP,KAAA;IAAAQ,GAAA;IAAAC,KAAA,EAED,SAAAC,KAAKA,CAAA,EAAG;MACNC,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;MAC1B,IAAI,CAACR,SAAS,IAAIS,IAAI,CAACC,GAAG,CAAC,CAAC,GAAG,IAAI,CAACC,KAAK;MACzC,IAAI,CAACV,MAAM,GAAG,IAAI;IACpB;EAAC;IAAAG,GAAA;IAAAC,KAAA,EAED,SAAAH,MAAMA,CAAA,EAAG;MACP,IAAI,CAACS,KAAK,GAAGF,IAAI,CAACC,GAAG,CAAC,CAAC;MACvB,IAAI,CAACT,MAAM,GAAG,KAAK;MACnBM,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;MAC1B,IAAI,CAACA,OAAO,GAAGI,UAAU,CAAC,IAAI,CAACf,QAAQ,EAAE,IAAI,CAACG,SAAS,CAAC;IAC1D;EAAC;IAAAI,GAAA;IAAAC,KAAA,EAED,SAAAQ,KAAKA,CAAA,EAAG;MACN,IAAI,CAACb,SAAS,GAAG,IAAI,CAACF,KAAK;MAC3B,IAAI,CAACI,MAAM,CAAC,CAAC;IACf;EAAC;IAAAE,GAAA;IAAAC,KAAA,EAED,SAAAS,KAAKA,CAAA,EAAG;MACNP,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;IAC5B;EAAC;AAAA;AAGH,SAASZ,KAAK","ignoreList":[]}
@@ -2,56 +2,60 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
8
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
9
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
10
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
10
- import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
11
- import React from "react";
12
- import Portal from "@semcore/portal";
13
- import noticeBubbleDefaultManager from "./NoticeBubbleManager.mjs";
11
+ import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
14
12
  import { Animation } from "@semcore/animation";
15
- import { Box, Flex } from "@semcore/flex-box";
16
- import fire from "@semcore/core/lib/utils/fire";
17
- import isNode from "@semcore/core/lib/utils/isNode";
13
+ import Button from "@semcore/button";
18
14
  import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
19
- import CloseIcon from "@semcore/icon/Close/m";
20
- import { Timer } from "./utils.mjs";
21
- import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
22
15
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
23
- import { useCssVariable } from "@semcore/core/lib/utils/useCssVariable";
16
+ import fire from "@semcore/core/lib/utils/fire";
17
+ import { getFocusableIn } from "@semcore/core/lib/utils/focus-lock/getFocusableIn";
18
+ import isNode from "@semcore/core/lib/utils/isNode";
19
+ import { forkRef, useForkRef } from "@semcore/core/lib/utils/ref";
24
20
  import { contextThemeEnhance } from "@semcore/core/lib/utils/ThemeProvider";
25
- import Button from "@semcore/button";
26
21
  import { setFocus, useFocusLock } from "@semcore/core/lib/utils/use/useFocusLock";
27
- import { zIndexStackingEnhance, ZIndexStackingContextProvider } from "@semcore/core/lib/utils/zIndexStacking";
28
- import { forkRef, useForkRef } from "@semcore/core/lib/utils/ref";
29
- import { getFocusableIn } from "@semcore/core/lib/utils/focus-lock/getFocusableIn";
22
+ import { useCssVariable } from "@semcore/core/lib/utils/useCssVariable";
23
+ import { ZIndexStackingContextProvider, zIndexStackingEnhance } from "@semcore/core/lib/utils/zIndexStacking";
24
+ import { Box, Flex } from "@semcore/flex-box";
25
+ import CloseIcon from "@semcore/icon/Close/m";
26
+ import Portal from "@semcore/portal";
27
+ import React from "react";
28
+ import noticeBubbleDefaultManager from "./NoticeBubbleManager.mjs";
29
+ import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
30
+ import { Timer } from "./utils.mjs";
30
31
  var _excluded = ["focusLock"], _excluded2 = ["forwardRef", "styles", "onMouseEnter", "onMouseLeave", "getI18nText", "icon", "children", "action", "type"];
32
+ function _callSuper(t, o, e) {
33
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
34
+ }
31
35
  /*!__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
32
36
  var style = (
33
37
  /*__reshadow_css_start__*/
34
38
  (sstyled.insert(
35
39
  /*__inner_css_start__*/
36
- "@keyframes enter_1axjv{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1axjv{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1axjv_gg_,.___SView_1axjv_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px);padding-right:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px));width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box;color:var(--intergalactic-text-primary-invert, #ffffff);gap:var(--intergalactic-spacing-2x, 8px)}.___SBubble_1axjv_gg_._type_info_1axjv_gg_,.___SView_1axjv_gg_._type_info_1axjv_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1axjv_gg_._type_warning_1axjv_gg_,.___SView_1axjv_gg_._type_warning_1axjv_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1axjv_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1axjv_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1axjv_gg_{cursor:pointer;position:absolute;right:0;top:0;margin-top:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px);margin-bottom:var(--intergalactic-spacing-2x, 8px);flex-shrink:0;border:0;background:0 0}.___SDismiss_1axjv_gg_.__use_1axjv_gg_{padding:0 1px}.___SIcon_1axjv_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1axjv_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1axjv_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1axjv_gg_.__disablePortal_1axjv_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1axjv_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1axjv_gg_{display:contents}",
40
+ "@keyframes enter_1ve9q{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1ve9q{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1ve9q_gg_,.___SView_1ve9q_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px);padding-right:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px));width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box;color:var(--intergalactic-text-primary-invert, #ffffff);gap:var(--intergalactic-spacing-2x, 8px)}.___SBubble_1ve9q_gg_._type_info_1ve9q_gg_,.___SView_1ve9q_gg_._type_info_1ve9q_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1ve9q_gg_._type_warning_1ve9q_gg_,.___SView_1ve9q_gg_._type_warning_1ve9q_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1ve9q_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1ve9q_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1ve9q_gg_{cursor:pointer;position:absolute;right:0;top:0;margin-top:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px);margin-bottom:var(--intergalactic-spacing-2x, 8px);flex-shrink:0;border:0;background:0 0}.___SDismiss_1ve9q_gg_.__use_1ve9q_gg_{padding:0 1px}.___SIcon_1ve9q_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1ve9q_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1ve9q_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1ve9q_gg_.__disablePortal_1ve9q_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1ve9q_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1ve9q_gg_{display:contents}",
37
41
  /*__inner_css_end__*/
38
- "1axjv_gg_"
42
+ "1ve9q_gg_"
39
43
  ), /*__reshadow_css_end__*/
40
44
  {
41
- "__SContent": "___SContent_1axjv_gg_",
42
- "__SMessage": "___SMessage_1axjv_gg_",
43
- "__SDismiss": "___SDismiss_1axjv_gg_",
44
- "_use": "__use_1axjv_gg_",
45
- "__SIcon": "___SIcon_1axjv_gg_",
46
- "__SNoticeBubble": "___SNoticeBubble_1axjv_gg_",
47
- "_disablePortal": "__disablePortal_1axjv_gg_",
48
- "__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1axjv_gg_",
49
- "@enter": "enter_1axjv",
50
- "@exit": "exit_1axjv",
51
- "__SBubble": "___SBubble_1axjv_gg_",
52
- "__SView": "___SView_1axjv_gg_",
53
- "_type_info": "_type_info_1axjv_gg_",
54
- "_type_warning": "_type_warning_1axjv_gg_"
45
+ "__SContent": "___SContent_1ve9q_gg_",
46
+ "__SMessage": "___SMessage_1ve9q_gg_",
47
+ "__SDismiss": "___SDismiss_1ve9q_gg_",
48
+ "_use": "__use_1ve9q_gg_",
49
+ "__SIcon": "___SIcon_1ve9q_gg_",
50
+ "__SNoticeBubble": "___SNoticeBubble_1ve9q_gg_",
51
+ "_disablePortal": "__disablePortal_1ve9q_gg_",
52
+ "__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1ve9q_gg_",
53
+ "@enter": "enter_1ve9q",
54
+ "@exit": "exit_1ve9q",
55
+ "__SBubble": "___SBubble_1ve9q_gg_",
56
+ "__SView": "___SView_1ve9q_gg_",
57
+ "_type_info": "_type_info_1ve9q_gg_",
58
+ "_type_warning": "_type_warning_1ve9q_gg_"
55
59
  })
56
60
  );
57
61
  var Notices = function Notices2(props) {
@@ -59,7 +63,7 @@ var Notices = function Notices2(props) {
59
63
  var ref = React.useRef();
60
64
  var durationStr = useCssVariable("--intergalactic-duration-popper", "200", ref);
61
65
  var duration = React.useMemo(function() {
62
- return parseInt(durationStr, 10);
66
+ return Number.parseInt(durationStr, 10);
63
67
  }, [durationStr]);
64
68
  return data.map(function(notice) {
65
69
  var _ref2, _notice$visible;
@@ -77,26 +81,24 @@ var Notices = function Notices2(props) {
77
81
  });
78
82
  };
79
83
  var NoticeBubbleContainerRoot = /* @__PURE__ */ function(_Component) {
80
- _inherits(NoticeBubbleContainerRoot2, _Component);
81
- var _super = _createSuper(NoticeBubbleContainerRoot2);
82
84
  function NoticeBubbleContainerRoot2() {
83
85
  var _this;
84
86
  _classCallCheck(this, NoticeBubbleContainerRoot2);
85
87
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
86
88
  args[_key] = arguments[_key];
87
89
  }
88
- _this = _super.call.apply(_super, [this].concat(args));
89
- _defineProperty(_assertThisInitialized(_this), "_unsubscribe", null);
90
- _defineProperty(_assertThisInitialized(_this), "state", {
90
+ _this = _callSuper(this, NoticeBubbleContainerRoot2, [].concat(args));
91
+ _defineProperty(_this, "_unsubscribe", null);
92
+ _defineProperty(_this, "state", {
91
93
  notices: [],
92
94
  warnings: []
93
95
  });
94
- _defineProperty(_assertThisInitialized(_this), "componentWillUnmount", function() {
96
+ _defineProperty(_this, "componentWillUnmount", function() {
95
97
  if (_this._unsubscribe) {
96
98
  _this._unsubscribe();
97
99
  }
98
100
  });
99
- _defineProperty(_assertThisInitialized(_this), "handleChange", function(notices) {
101
+ _defineProperty(_this, "handleChange", function(notices) {
100
102
  var info = notices.filter(function(notice) {
101
103
  return notice.type === "info";
102
104
  });
@@ -110,7 +112,8 @@ var NoticeBubbleContainerRoot = /* @__PURE__ */ function(_Component) {
110
112
  });
111
113
  return _this;
112
114
  }
113
- _createClass(NoticeBubbleContainerRoot2, [{
115
+ _inherits(NoticeBubbleContainerRoot2, _Component);
116
+ return _createClass(NoticeBubbleContainerRoot2, [{
114
117
  key: "componentDidMount",
115
118
  value: function componentDidMount() {
116
119
  this._unsubscribe = this.asProps.manager.addListener(this.handleChange);
@@ -148,7 +151,6 @@ var NoticeBubbleContainerRoot = /* @__PURE__ */ function(_Component) {
148
151
  }))))));
149
152
  }
150
153
  }]);
151
- return NoticeBubbleContainerRoot2;
152
154
  }(Component);
153
155
  _defineProperty(NoticeBubbleContainerRoot, "displayName", "NoticeBubbleContainer");
154
156
  _defineProperty(NoticeBubbleContainerRoot, "style", style);
@@ -168,36 +170,34 @@ var FocusLock = /* @__PURE__ */ React.forwardRef(function(props, outerRef) {
168
170
  }, other));
169
171
  });
170
172
  var ViewInfo = /* @__PURE__ */ function(_Component2) {
171
- _inherits(ViewInfo2, _Component2);
172
- var _super2 = _createSuper(ViewInfo2);
173
173
  function ViewInfo2() {
174
174
  var _this2;
175
175
  _classCallCheck(this, ViewInfo2);
176
176
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
177
177
  args[_key2] = arguments[_key2];
178
178
  }
179
- _this2 = _super2.call.apply(_super2, [this].concat(args));
180
- _defineProperty(_assertThisInitialized(_this2), "timer", null);
181
- _defineProperty(_assertThisInitialized(_this2), "ref", /* @__PURE__ */ React.createRef());
182
- _defineProperty(_assertThisInitialized(_this2), "closeButtonRef", /* @__PURE__ */ React.createRef());
183
- _defineProperty(_assertThisInitialized(_this2), "handleClose", function(e) {
184
- fire(_assertThisInitialized(_this2), "onClose", e);
179
+ _this2 = _callSuper(this, ViewInfo2, [].concat(args));
180
+ _defineProperty(_this2, "timer", null);
181
+ _defineProperty(_this2, "ref", /* @__PURE__ */ React.createRef());
182
+ _defineProperty(_this2, "closeButtonRef", /* @__PURE__ */ React.createRef());
183
+ _defineProperty(_this2, "handleClose", function(e) {
184
+ fire(_this2, "onClose", e);
185
185
  _this2.clearTimer();
186
186
  });
187
- _defineProperty(_assertThisInitialized(_this2), "handleKeydown", function(e) {
187
+ _defineProperty(_this2, "handleKeydown", function(e) {
188
188
  if (e.key === "Escape") {
189
189
  _this2.handleClose(e);
190
190
  }
191
191
  });
192
- _defineProperty(_assertThisInitialized(_this2), "handleMouseEnter", function() {
192
+ _defineProperty(_this2, "handleMouseEnter", function() {
193
193
  if (!_this2.timer) return;
194
194
  _this2.timer.pause();
195
195
  });
196
- _defineProperty(_assertThisInitialized(_this2), "handleMouseLeave", function() {
196
+ _defineProperty(_this2, "handleMouseLeave", function() {
197
197
  if (!_this2.timer) return;
198
198
  _this2.timer.resume();
199
199
  });
200
- _defineProperty(_assertThisInitialized(_this2), "handleBodyMouseMove", function(event) {
200
+ _defineProperty(_this2, "handleBodyMouseMove", function(event) {
201
201
  var _this2$timer;
202
202
  if (!((_this2$timer = _this2.timer) !== null && _this2$timer !== void 0 && _this2$timer.paused)) return;
203
203
  var rect = _this2.ref.current.getBoundingClientRect();
@@ -207,7 +207,8 @@ var ViewInfo = /* @__PURE__ */ function(_Component2) {
207
207
  });
208
208
  return _this2;
209
209
  }
210
- _createClass(ViewInfo2, [{
210
+ _inherits(ViewInfo2, _Component2);
211
+ return _createClass(ViewInfo2, [{
211
212
  key: "componentDidMount",
212
213
  value: function componentDidMount() {
213
214
  var _this3 = this;
@@ -259,36 +260,30 @@ var ViewInfo = /* @__PURE__ */ function(_Component2) {
259
260
  "onMouseLeave": callAllEventHandlers(onMouseLeave, this.handleMouseLeave),
260
261
  "onKeyDown": this.handleKeydown,
261
262
  "role": type === "warning" ? "alert" : this.props.role
262
- })), /* @__PURE__ */ React.createElement(
263
- SDismiss,
264
- _ref4.cn("SDismiss", {
265
- "aria-haspopup": void 0,
266
- "type": "button",
267
- "use": "tertiary",
268
- "size": "m",
269
- "theme": "invert",
270
- "onClick": this.handleClose,
271
- "aria-label": getI18nText("close"),
272
- "active": false,
273
- "title": getI18nText("close"),
274
- "ref": this.closeButtonRef
275
- }),
276
- /* @__PURE__ */ React.createElement(Button.Addon, {
277
- tag: CloseIcon,
278
- color: "icon-primary-invert"
279
- })
280
- ), isNode(icon) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SIcon, _ref4.cn("SIcon", {}), icon), /* @__PURE__ */ React.createElement(SContent, _ref4.cn("SContent", {}), /* @__PURE__ */ React.createElement(SMessage, _ref4.cn("SMessage", {}), children), isNode(actionNode) ? /* @__PURE__ */ React.createElement(SAction, _ref4.cn("SAction", {}), actionNode) : null)) : /* @__PURE__ */ React.createElement(SContent, _ref4.cn("SContent", {}), /* @__PURE__ */ React.createElement(SMessage, _ref4.cn("SMessage", {}), children), isNode(actionNode) ? /* @__PURE__ */ React.createElement(SAction, _ref4.cn("SAction", {}), actionNode) : null));
263
+ })), /* @__PURE__ */ React.createElement(SDismiss, _ref4.cn("SDismiss", {
264
+ "aria-haspopup": void 0,
265
+ "type": "button",
266
+ "use": "tertiary",
267
+ "size": "m",
268
+ "theme": "invert",
269
+ "onClick": this.handleClose,
270
+ "aria-label": getI18nText("close"),
271
+ "active": false,
272
+ "title": getI18nText("close"),
273
+ "ref": this.closeButtonRef
274
+ }), /* @__PURE__ */ React.createElement(Button.Addon, {
275
+ tag: CloseIcon,
276
+ color: "icon-primary-invert"
277
+ })), isNode(icon) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SIcon, _ref4.cn("SIcon", {}), icon), /* @__PURE__ */ React.createElement(SContent, _ref4.cn("SContent", {}), /* @__PURE__ */ React.createElement(SMessage, _ref4.cn("SMessage", {}), children), isNode(actionNode) ? /* @__PURE__ */ React.createElement(SAction, _ref4.cn("SAction", {}), actionNode) : null)) : /* @__PURE__ */ React.createElement(SContent, _ref4.cn("SContent", {}), /* @__PURE__ */ React.createElement(SMessage, _ref4.cn("SMessage", {}), children), isNode(actionNode) ? /* @__PURE__ */ React.createElement(SAction, _ref4.cn("SAction", {}), actionNode) : null));
281
278
  }
282
279
  }]);
283
- return ViewInfo2;
284
280
  }(Component);
285
- var ViewWarning = /* @__PURE__ */ function(_ViewInfo) {
286
- _inherits(ViewWarning2, _ViewInfo);
287
- var _super3 = _createSuper(ViewWarning2);
281
+ var ViewWarning = /* @__PURE__ */ function(_ViewInfo2) {
288
282
  function ViewWarning2() {
289
283
  _classCallCheck(this, ViewWarning2);
290
- return _super3.apply(this, arguments);
284
+ return _callSuper(this, ViewWarning2, arguments);
291
285
  }
286
+ _inherits(ViewWarning2, _ViewInfo2);
292
287
  return _createClass(ViewWarning2);
293
288
  }(ViewInfo);
294
289
  _defineProperty(ViewWarning, "defaultProps", {
@@ -296,19 +291,18 @@ _defineProperty(ViewWarning, "defaultProps", {
296
291
  duration: 0
297
292
  });
298
293
  var NoticeBubbleView = /* @__PURE__ */ function(_Component3) {
299
- _inherits(NoticeBubbleView2, _Component3);
300
- var _super4 = _createSuper(NoticeBubbleView2);
301
294
  function NoticeBubbleView2() {
302
295
  var _this4;
303
296
  _classCallCheck(this, NoticeBubbleView2);
304
297
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
305
298
  args[_key3] = arguments[_key3];
306
299
  }
307
- _this4 = _super4.call.apply(_super4, [this].concat(args));
308
- _defineProperty(_assertThisInitialized(_this4), "_notice", null);
300
+ _this4 = _callSuper(this, NoticeBubbleView2, [].concat(args));
301
+ _defineProperty(_this4, "_notice", null);
309
302
  return _this4;
310
303
  }
311
- _createClass(NoticeBubbleView2, [{
304
+ _inherits(NoticeBubbleView2, _Component3);
305
+ return _createClass(NoticeBubbleView2, [{
312
306
  key: "componentDidMount",
313
307
  value: function componentDidMount() {
314
308
  this._notice = this.asProps.manager.add(this.asProps);
@@ -333,20 +327,18 @@ var NoticeBubbleView = /* @__PURE__ */ function(_Component3) {
333
327
  return null;
334
328
  }
335
329
  }]);
336
- return NoticeBubbleView2;
337
330
  }(Component);
338
331
  _defineProperty(NoticeBubbleView, "defaultProps", {
339
332
  duration: 5e3,
340
333
  type: "info",
341
334
  manager: noticeBubbleDefaultManager
342
335
  });
343
- var NoticeBubbleWarningView = /* @__PURE__ */ function(_NoticeBubbleView) {
344
- _inherits(NoticeBubbleWarningView2, _NoticeBubbleView);
345
- var _super5 = _createSuper(NoticeBubbleWarningView2);
336
+ var NoticeBubbleWarningView = /* @__PURE__ */ function(_NoticeBubbleView2) {
346
337
  function NoticeBubbleWarningView2() {
347
338
  _classCallCheck(this, NoticeBubbleWarningView2);
348
- return _super5.apply(this, arguments);
339
+ return _callSuper(this, NoticeBubbleWarningView2, arguments);
349
340
  }
341
+ _inherits(NoticeBubbleWarningView2, _NoticeBubbleView2);
350
342
  return _createClass(NoticeBubbleWarningView2);
351
343
  }(NoticeBubbleView);
352
344
  _defineProperty(NoticeBubbleWarningView, "defaultProps", {
@@ -2,8 +2,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/esm/createClass";
4
4
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
- import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
6
5
  import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
6
+ import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
7
7
  import { setFocus } from "@semcore/core/lib/utils/use/useFocusLock";
8
8
  import React from "react";
9
9
  var EVENT_NAME = "CHANGE";
@@ -16,7 +16,7 @@ var NoticeBubbleManager = /* @__PURE__ */ function() {
16
16
  _defineProperty(this, "replaceTimer", 0);
17
17
  this.emitter = new EventEmitter();
18
18
  }
19
- _createClass(NoticeBubbleManager2, [{
19
+ return _createClass(NoticeBubbleManager2, [{
20
20
  key: "addListener",
21
21
  value: function addListener(fn) {
22
22
  return this.emitter.subscribe(EVENT_NAME, fn);
@@ -113,7 +113,6 @@ var NoticeBubbleManager = /* @__PURE__ */ function() {
113
113
  return false;
114
114
  }
115
115
  }]);
116
- return NoticeBubbleManager2;
117
116
  }();
118
117
  var noticeBubbleDefaultManager = new NoticeBubbleManager();
119
118
  export {
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
6
6
  import ja from "./ja.json.mjs";
7
7
  import ko from "./ko.json.mjs";
8
8
  import nl from "./nl.json.mjs";
9
+ import pl from "./pl.json.mjs";
9
10
  import pt from "./pt.json.mjs";
11
+ import sv from "./sv.json.mjs";
10
12
  import tr from "./tr.json.mjs";
11
13
  import vi from "./vi.json.mjs";
12
14
  import zh from "./zh.json.mjs";
13
- import pl from "./pl.json.mjs";
14
- import sv from "./sv.json.mjs";
15
15
  var localizedMessages = {
16
16
  de,
17
17
  en,
package/lib/esm/utils.mjs CHANGED
@@ -9,7 +9,7 @@ var Timer = /* @__PURE__ */ function() {
9
9
  this.paused = false;
10
10
  this.resume();
11
11
  }
12
- _createClass(Timer2, [{
12
+ return _createClass(Timer2, [{
13
13
  key: "pause",
14
14
  value: function pause() {
15
15
  clearTimeout(this.timerId);
@@ -36,7 +36,6 @@ var Timer = /* @__PURE__ */ function() {
36
36
  clearTimeout(this.timerId);
37
37
  }
38
38
  }]);
39
- return Timer2;
40
39
  }();
41
40
  export {
42
41
  Timer
@@ -1,11 +1,11 @@
1
- import { PortalProps } from '@semcore/portal';
2
- import { UnknownProperties, Intergalactic } from '@semcore/core';
3
- import { BoxProps } from '@semcore/flex-box';
1
+ import type { UnknownProperties, Intergalactic } from '@semcore/core';
2
+ import type { BoxProps } from '@semcore/flex-box';
3
+ import type { PortalProps } from '@semcore/portal';
4
4
 
5
5
  /** @deprecated */
6
6
  export interface INoticeBubbleContainerProps
7
7
  extends NoticeBubbleContainerProps,
8
- UnknownProperties {}
8
+ UnknownProperties {}
9
9
  export type NoticeBubbleContainerProps = BoxProps &
10
10
  PortalProps & {
11
11
  /** Manager copy */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/notice-bubble",
3
3
  "description": "Semrush NoticeBubble Component",
4
- "version": "16.1.1",
4
+ "version": "16.1.2-prerelease.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,14 +14,14 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/icon": "16.2.0",
18
- "@semcore/portal": "16.0.1",
19
- "@semcore/flex-box": "16.0.1",
20
- "@semcore/animation": "16.0.1",
21
- "@semcore/button": "16.0.1"
17
+ "@semcore/icon": "16.2.1-prerelease.1",
18
+ "@semcore/portal": "16.0.2-prerelease.1",
19
+ "@semcore/flex-box": "16.0.2-prerelease.1",
20
+ "@semcore/animation": "16.0.2-prerelease.1",
21
+ "@semcore/button": "16.0.2-prerelease.1"
22
22
  },
23
23
  "peerDependencies": {
24
- "@semcore/base-components": "^16.0.0"
24
+ "@semcore/base-components": "^16.0.2-prerelease.1"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "directory": "semcore/notice-bubble"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/react": "18.0.21",
32
+ "@semcore/core": "16.0.0",
33
33
  "@semcore/testing-utils": "1.0.0"
34
34
  },
35
35
  "scripts": {