@open-pioneer/notifier 4.8.0-dev.20260910101405 → 4.8.0

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
@@ -1,6 +1,6 @@
1
1
  # @open-pioneer/notifier
2
2
 
3
- ## 4.8.0-dev.20260910101405
3
+ ## 4.8.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -82,29 +82,29 @@
82
82
  - 9f074d8: **Breaking**: The `position` property has moved from the `<Notifier />` component to package properties.
83
83
  In order to change to location of notifications, you need to customize the package properties.
84
84
 
85
- Before:
86
-
87
- ```jsx
88
- // App.jsx
89
- <Notifier position="top-right" />
90
- ```
91
-
92
- After:
93
-
94
- ```ts
95
- // app.ts
96
- const Element = createCustomElement({
97
- // ...
98
- config: {
99
- properties: {
100
- "@open-pioneer/notifier": {
101
- position: "top-right",
102
- } satisfies NotifierProperties,
103
- },
104
- },
105
- // or use resolveConfig()
106
- });
107
- ```
85
+ Before:
86
+
87
+ ```jsx
88
+ // App.jsx
89
+ <Notifier position="top-right" />
90
+ ```
91
+
92
+ After:
93
+
94
+ ```ts
95
+ // app.ts
96
+ const Element = createCustomElement({
97
+ // ...
98
+ config: {
99
+ properties: {
100
+ "@open-pioneer/notifier": {
101
+ position: "top-right"
102
+ } satisfies NotifierProperties
103
+ }
104
+ }
105
+ // or use resolveConfig()
106
+ });
107
+ ```
108
108
 
109
109
  ### Patch Changes
110
110
 
@@ -121,13 +121,13 @@
121
121
  ### Major Changes
122
122
 
123
123
  - 9477e54: Update dependencies
124
- - React 19
125
- - Vite 6
126
- - FormatJS 3
127
- - Open Pioneer Build Tools
128
- - ...
124
+ - React 19
125
+ - Vite 6
126
+ - FormatJS 3
127
+ - Open Pioneer Build Tools
128
+ - ...
129
129
 
130
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
130
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
131
131
 
132
132
  ## 2.4.0
133
133
 
@@ -135,13 +135,13 @@
135
135
 
136
136
  - e4ba048: Introduce new convenience methods on the `NotificationService` in addition to the existing `notify()` method:
137
137
 
138
- ```js
139
- const notifier = ...; // injected
140
- notifier.success(/* ... */)
141
- notifier.info(/* ... */)
142
- notifier.warning(/* ... */)
143
- notifier.error(/* ... */)
144
- ```
138
+ ```js
139
+ const notifier = ...; // injected
140
+ notifier.success(/* ... */)
141
+ notifier.info(/* ... */)
142
+ notifier.warning(/* ... */)
143
+ notifier.error(/* ... */)
144
+ ```
145
145
 
146
146
  ### Patch Changes
147
147
 
@@ -187,7 +187,7 @@
187
187
  ### Patch Changes
188
188
 
189
189
  - 4eac7c7: Move packages into core-packages repository.
190
- - @open-pioneer/runtime@2.1.2
190
+ - @open-pioneer/runtime@2.1.2
191
191
 
192
192
  ## 0.3.0
193
193
 
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationServiceImpl.js","sources":["NotificationServiceImpl.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createToaster, CreateToasterProps, CreateToasterReturn } from \"@chakra-ui/react\";\nimport { createLogger, Resource } from \"@open-pioneer/core\";\nimport { ApplicationContext, ServiceOptions } from \"@open-pioneer/runtime\";\nimport { sourceId } from \"open-pioneer:source-info\";\nimport type {\n NotificationLevel,\n NotificationOptions,\n NotificationService,\n NotifierProperties,\n OffsetsObject,\n SimpleNotificationOptions\n} from \"./api\";\nconst LOG = createLogger(sourceId);\n\nexport type ToasterObject = CreateToasterReturn;\n\nexport interface ToastMeta {\n closable: boolean;\n}\n\nexport interface InternalNotificationAPI extends NotificationService {\n // Toasts in here carry `ToastMeta` metadata\n readonly toaster: ToasterObject;\n registerUI(): Resource | undefined;\n}\n\ninterface References {\n appCtx: ApplicationContext;\n}\n\n// 7 days. Needed because there is no \"indefinite\" timeout for tooltips in current chakra.\nconst PERSISTENT_TIMEOUT = 7 * 24 * 60 * 60 * 1000;\n\nexport class NotificationServiceImpl implements InternalNotificationAPI {\n #uiPresent = false;\n #uiCheckTimeoutId: any; // oxlint-disable-line @typescript-eslint/no-explicit-any\n\n readonly toaster: ToasterObject;\n\n constructor({ properties }: ServiceOptions<References>) {\n const typedProperties = properties as NotifierProperties;\n\n this.toaster = createToaster({\n placement: getPlacement(typedProperties.position),\n offsets: getOffsets(typedProperties.offsets),\n pauseOnPageIdle: true\n });\n\n if (import.meta.env.DEV && !import.meta.env.VITEST) {\n this.#uiCheckTimeoutId = setTimeout(() => {\n this.#checkUiNotification();\n this.#uiCheckTimeoutId = undefined;\n }, 5000);\n }\n }\n\n destroy() {\n clearTimeout(this.#uiCheckTimeoutId);\n this.#uiCheckTimeoutId = undefined;\n }\n\n notify(options: NotificationOptions): void {\n // Slightly delay the create call.\n // `toaster.create` currently calls `React.flushSync` somewhere deep inside zag-js.\n // This causes warnings when calling `notify()` in a useEffect().\n queueMicrotask(() => {\n this.toaster.create({\n type: options.level ?? \"info\",\n title: options.title,\n description: options.message,\n\n // Chakra currently has no concept of persistent toasts (other than type \"loading\"),\n // so we just use a very long timeout instead.\n // Note: MAX_VALUE or Infinity does not work either (probably too big for some computations made internally).\n duration: options.displayDuration ?? PERSISTENT_TIMEOUT,\n\n // Additional data for the toast (can be arbitrary)\n meta: {\n closable: true\n } satisfies ToastMeta\n });\n });\n }\n\n success(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"success\", options);\n }\n\n info(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"info\", options);\n }\n\n warning(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"warning\", options);\n }\n\n error(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"error\", options);\n }\n\n #sendSimpleNotification(level: NotificationLevel, options: SimpleNotificationOptions): void {\n if (typeof options === \"string\") {\n options = { message: options };\n }\n this.notify({ ...options, level });\n }\n\n closeAll(): void {\n this.toaster.dismiss();\n }\n\n registerUI(): Resource | undefined {\n // We only support exactly one handler.\n if (this.#uiPresent) {\n LOG.warn(\n \"A notifier UI has already been registered; this new component will be ignored.\\n\" +\n \"The <Notifier /> component has likely been used twice in your application.\"\n );\n return undefined;\n }\n\n this.#uiPresent = true;\n let destroyed = false;\n return {\n destroy: () => {\n if (destroyed) {\n return;\n }\n\n destroyed = true;\n this.#uiPresent = false;\n }\n };\n }\n\n #checkUiNotification() {\n if (!this.#uiPresent) {\n LOG.warn(\n `No notifier UI has been registered: notifications will not be visible.\\n` +\n `Make sure that your app contains the <Notifier /> component.`\n );\n }\n }\n}\n\n// Map to chakra placement\nfunction getPlacement(\n configPosition: NotifierProperties[\"position\"] = \"top-right\"\n): CreateToasterProps[\"placement\"] {\n switch (configPosition) {\n case \"top\":\n return \"top\";\n case \"top-left\":\n return \"top-start\";\n case \"top-right\":\n return \"top-end\";\n case \"bottom\":\n return \"bottom\";\n case \"bottom-left\":\n return \"bottom-start\";\n case \"bottom-right\":\n return \"bottom-end\";\n default:\n return \"top-end\";\n }\n}\n\nfunction getOffsets(offsetsConfig: NotifierProperties[\"offsets\"]): OffsetsObject | undefined {\n if (!offsetsConfig) {\n return undefined;\n }\n\n if (typeof offsetsConfig === \"string\") {\n return {\n left: offsetsConfig,\n top: offsetsConfig,\n right: offsetsConfig,\n bottom: offsetsConfig\n };\n }\n\n if (typeof offsetsConfig !== \"object\") {\n throw new Error(\"Unexpected 'offsets' property value: must be a string or an object.\");\n }\n checkProp(offsetsConfig, \"left\");\n checkProp(offsetsConfig, \"top\");\n checkProp(offsetsConfig, \"right\");\n checkProp(offsetsConfig, \"bottom\");\n return offsetsConfig;\n}\n\nfunction checkProp(obj: Partial<OffsetsObject>, prop: keyof OffsetsObject) {\n if (!obj[prop]) {\n throw new Error(`Offset '${prop}' is required.`);\n }\n}\n"],"names":[],"mappings":";;;;AAeA,MAAM,GAAA,GAAM,aAAa,QAAQ,CAAA;AAmBjC,MAAM,kBAAA,GAAqB,CAAA,GAAI,EAAA,GAA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AM,CAAA,QAAA,EAAW,IAAI,CAAA,cAAA,CAAgB,CAAA;AAAA,EACnD;AACJ;;;;"}
1
+ {"version":3,"file":"NotificationServiceImpl.js","sources":["NotificationServiceImpl.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport { createToaster, CreateToasterProps, CreateToasterReturn } from \"@chakra-ui/react\";\nimport { createLogger, Resource } from \"@open-pioneer/core\";\nimport { ApplicationContext, ServiceOptions } from \"@open-pioneer/runtime\";\nimport { sourceId } from \"open-pioneer:source-info\";\nimport type {\n NotificationLevel,\n NotificationOptions,\n NotificationService,\n NotifierProperties,\n OffsetsObject,\n SimpleNotificationOptions\n} from \"./api\";\nconst LOG = createLogger(sourceId);\n\nexport type ToasterObject = CreateToasterReturn;\n\nexport interface ToastMeta {\n closable: boolean;\n}\n\nexport interface InternalNotificationAPI extends NotificationService {\n // Toasts in here carry `ToastMeta` metadata\n readonly toaster: ToasterObject;\n registerUI(): Resource | undefined;\n}\n\ninterface References {\n appCtx: ApplicationContext;\n}\n\n// 7 days. Needed because there is no \"indefinite\" timeout for tooltips in current chakra.\nconst PERSISTENT_TIMEOUT = 7 * 24 * 60 * 60 * 1000;\n\nexport class NotificationServiceImpl implements InternalNotificationAPI {\n #uiPresent = false;\n #uiCheckTimeoutId: any; // oxlint-disable-line @typescript-eslint/no-explicit-any\n\n readonly toaster: ToasterObject;\n\n constructor({ properties }: ServiceOptions<References>) {\n const typedProperties = properties as NotifierProperties;\n\n this.toaster = createToaster({\n placement: getPlacement(typedProperties.position),\n offsets: getOffsets(typedProperties.offsets),\n pauseOnPageIdle: true\n });\n\n if (import.meta.env.DEV && !import.meta.env.VITEST) {\n this.#uiCheckTimeoutId = setTimeout(() => {\n this.#checkUiNotification();\n this.#uiCheckTimeoutId = undefined;\n }, 5000);\n }\n }\n\n destroy() {\n clearTimeout(this.#uiCheckTimeoutId);\n this.#uiCheckTimeoutId = undefined;\n }\n\n notify(options: NotificationOptions): void {\n // Slightly delay the create call.\n // `toaster.create` currently calls `React.flushSync` somewhere deep inside zag-js.\n // This causes warnings when calling `notify()` in a useEffect().\n queueMicrotask(() => {\n this.toaster.create({\n type: options.level ?? \"info\",\n title: options.title,\n description: options.message,\n\n // Chakra currently has no concept of persistent toasts (other than type \"loading\"),\n // so we just use a very long timeout instead.\n // Note: MAX_VALUE or Infinity does not work either (probably too big for some computations made internally).\n duration: options.displayDuration ?? PERSISTENT_TIMEOUT,\n\n // Additional data for the toast (can be arbitrary)\n meta: {\n closable: true\n } satisfies ToastMeta\n });\n });\n }\n\n success(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"success\", options);\n }\n\n info(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"info\", options);\n }\n\n warning(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"warning\", options);\n }\n\n error(options: SimpleNotificationOptions): void {\n this.#sendSimpleNotification(\"error\", options);\n }\n\n #sendSimpleNotification(level: NotificationLevel, options: SimpleNotificationOptions): void {\n if (typeof options === \"string\") {\n options = { message: options };\n }\n this.notify({ ...options, level });\n }\n\n closeAll(): void {\n this.toaster.dismiss();\n }\n\n registerUI(): Resource | undefined {\n // We only support exactly one handler.\n if (this.#uiPresent) {\n LOG.warn(\n \"A notifier UI has already been registered; this new component will be ignored.\\n\" +\n \"The <Notifier /> component has likely been used twice in your application.\"\n );\n return undefined;\n }\n\n this.#uiPresent = true;\n let destroyed = false;\n return {\n destroy: () => {\n if (destroyed) {\n return;\n }\n\n destroyed = true;\n this.#uiPresent = false;\n }\n };\n }\n\n #checkUiNotification() {\n if (!this.#uiPresent) {\n LOG.warn(\n `No notifier UI has been registered: notifications will not be visible.\\n` +\n `Make sure that your app contains the <Notifier /> component.`\n );\n }\n }\n}\n\n// Map to chakra placement\nfunction getPlacement(\n configPosition: NotifierProperties[\"position\"] = \"top-right\"\n): CreateToasterProps[\"placement\"] {\n switch (configPosition) {\n case \"top\":\n return \"top\";\n case \"top-left\":\n return \"top-start\";\n case \"top-right\":\n return \"top-end\";\n case \"bottom\":\n return \"bottom\";\n case \"bottom-left\":\n return \"bottom-start\";\n case \"bottom-right\":\n return \"bottom-end\";\n default:\n return \"top-end\";\n }\n}\n\nfunction getOffsets(offsetsConfig: NotifierProperties[\"offsets\"]): OffsetsObject | undefined {\n if (!offsetsConfig) {\n return undefined;\n }\n\n if (typeof offsetsConfig === \"string\") {\n return {\n left: offsetsConfig,\n top: offsetsConfig,\n right: offsetsConfig,\n bottom: offsetsConfig\n };\n }\n\n if (typeof offsetsConfig !== \"object\") {\n throw new Error(\"Unexpected 'offsets' property value: must be a string or an object.\");\n }\n checkProp(offsetsConfig, \"left\");\n checkProp(offsetsConfig, \"top\");\n checkProp(offsetsConfig, \"right\");\n checkProp(offsetsConfig, \"bottom\");\n return offsetsConfig;\n}\n\nfunction checkProp(obj: Partial<OffsetsObject>, prop: keyof OffsetsObject) {\n if (!obj[prop]) {\n throw new Error(`Offset '${prop}' is required.`);\n }\n}\n"],"names":[],"mappings":";;;;AAeA,MAAM,GAAA,GAAM,aAAa,QAAQ,CAAA;AAmBjC,MAAM,kBAAA,GAAqB,CAAA,GAAI,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK,GAAA;AAEvC,MAAM,uBAAA,CAA2D;AAAA,EACpE,UAAA,GAAa,KAAA;AAAA,EACb,iBAAA;AAAA;AAAA,EAES,OAAA;AAAA,EAET,WAAA,CAAY,EAAE,UAAA,EAAW,EAA+B;AACpD,IAAA,MAAM,eAAA,GAAkB,UAAA;AAExB,IAAA,IAAA,CAAK,UAAU,aAAA,CAAc;AAAA,MACzB,SAAA,EAAW,YAAA,CAAa,eAAA,CAAgB,QAAQ,CAAA;AAAA,MAChD,OAAA,EAAS,UAAA,CAAW,eAAA,CAAgB,OAAO,CAAA;AAAA,MAC3C,eAAA,EAAiB;AAAA,KACpB,CAAA;AAED,IAAA,IAAI,YAAY,GAAA,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AA,IACX;AACI,MAAA,OAAO,SAAA;AAAA;AAEnB;AAEA,SAAS,WAAW,aAAA,EAAyE;AACzF,EAAA,IAAI,CAAC,aAAA,EAAe;AAChB,IAAA,OAAO,MAAA;AAAA,EACX;AAEA,EAAA,IAAI,OAAO,kBAAkB,QAAA,EAAU;AACnC,IAAA,OAAO;AAAA,MACH,IAAA,EAAM,aAAA;AAAA,MACN,GAAA,EAAK,aAAA;AAAA,MACL,KAAA,EAAO,aAAA;AAAA,MACP,MAAA,EAAQ;AAAA,KACZ;AAAA,EACJ;AAEA,EAAA,IAAI,OAAO,kBAAkB,QAAA,EAAU;AACnC,IAAA,MAAM,IAAI,MAAM,qEAAqE,CAAA;AAAA,EACzF;AACA,EAAA,SAAA,CAAU,eAAe,MAAM,CAAA;AAC/B,EAAA,SAAA,CAAU,eAAe,KAAK,CAAA;AAC9B,EAAA,SAAA,CAAU,eAAe,OAAO,CAAA;AAChC,EAAA,SAAA,CAAU,eAAe,QAAQ,CAAA;AACjC,EAAA,OAAO,aAAA;AACX;AAEA,SAAS,SAAA,CAAU,KAA6B,IAAA,EAA2B;AACvE,EAAA,IAAI,CAAC,GAAA,CAAI,IAAI,CAAA,EAAG;AACZ,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA,QAAA,EAAW,IAAI,CAAA,cAAA,CAAgB,CAAA;AAAA,EACnD;AACJ;;"}
package/Notifier.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Notifier.js","sources":["Notifier.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n BoxProps,\n Toaster as ChakraToaster,\n Icon,\n Portal,\n Spinner,\n Stack,\n Toast,\n ToasterProps,\n useToastStyles\n} from \"@chakra-ui/react\";\nimport { useIntl, useService } from \"open-pioneer:react-hooks\";\nimport { memo, useEffect, useState } from \"react\";\nimport { LuCircleAlert, LuCircleCheck, LuInfo, LuTriangleAlert } from \"react-icons/lu\";\nimport { InternalNotificationAPI, ToasterObject } from \"./NotificationServiceImpl\";\n\n/** Props supported by the {@link Notifier} component. */\nexport interface NotifierProps {\n /**\n * Props to be added to the notifier's root container.\n *\n * NOTE: Chakra's toaster currently hard codes many style properties using element styles.\n * These styles cannot be easily overwritten, unless one uses `!important`.\n **/\n rootProps?: BoxProps;\n}\n\n/**\n * Shows notifications sent via the `NotificationService`.\n *\n * Only one instance of `<Notifier />` should be present in the application.\n * It currently does not matter where the Notifier is located in the react tree.\n *\n * ```ts\n * import { Notifier } from \"@open-pioneer/notifier\";\n *\n * export function AppUI() {\n * return (\n * <>\n * <Notifier />\n * <h1>Your application</h1>\n * </>\n * );\n * }\n * ```\n */\nexport function Notifier(props: NotifierProps) {\n const notificationService = useService(\n \"notifier.NotificationService\"\n ) as InternalNotificationAPI;\n const [active, setActive] = useState(false);\n\n useEffect(() => {\n const handle = notificationService.registerUI();\n if (!handle) {\n return;\n }\n\n setActive(true);\n return () => {\n setActive(false);\n handle.destroy();\n };\n }, [notificationService]);\n\n return active && <Toaster rootProps={props.rootProps} toaster={notificationService.toaster} />;\n}\n\nconst Toaster = memo(function Toaster(props: { rootProps?: BoxProps; toaster: ToasterObject }) {\n const { rootProps, toaster } = props;\n const intl = useIntl();\n\n return (\n <Portal>\n <ChakraToaster\n insetInline={{ mdDown: \"4\" }}\n aria-label={intl.formatMessage({\n id: \"regionLabel\"\n })}\n className=\"notifier-toast-group\"\n {...(rootProps as ToasterProps | undefined)}\n toaster={toaster}\n >\n {(toast) => (\n <Toast.Root className=\"notifier-toast\" width={{ md: \"sm\" }} alignItems=\"center\">\n {toast.type === \"loading\" ? (\n <Spinner size=\"sm\" color=\"blue.solid\" />\n ) : (\n <ToastIndicator type={toast.type ?? \"\"} />\n )}\n {/* Adjust max width down from 100% (should match internal gaps). Otherwise, the container may grow too large for its parent. */}\n <Stack gap=\"1\" flex=\"1\" maxWidth={\"calc( 100% - {sizes.5} - {spacing.2} )\"}>\n {toast.title && <Toast.Title>{toast.title}</Toast.Title>}\n {toast.description && (\n <Toast.Description>{toast.description}</Toast.Description>\n )}\n </Stack>\n {toast.action && (\n <Toast.ActionTrigger>{toast.action.label}</Toast.ActionTrigger>\n )}\n {toast.meta?.closable && (\n <Toast.CloseTrigger\n cursor=\"pointer\"\n aria-label={intl.formatMessage({\n id: \"notification.close\"\n })}\n />\n )}\n </Toast.Root>\n )}\n </ChakraToaster>\n </Portal>\n );\n});\n\nconst icons: Record<string, React.ElementType> = {\n info: LuInfo,\n success: LuCircleCheck,\n warning: LuCircleAlert,\n error: LuTriangleAlert\n};\n\nfunction ToastIndicator(props: { type: string }) {\n const styles = useToastStyles();\n\n const Component = icons[props.type];\n if (!Component) return null;\n\n return (\n <Icon css={styles.indicator}>\n <span>\n <Component style={{ width: \"100%\", height: \"100%\" }} />\n </span>\n </Icon>\n );\n}\n"],"names":["Toaster","ChakraToaster"],"mappings":";;;;;;AAiDO,SAAS,SAAS,KAAA,EAAsB;AAC3C,EAAA,MAAM,mBAAA,GAAsB,UAAA;AAAA,IACxB;AAAA,GACJ;AACA,EAAA,MAAM,CAAC,MAAA,EAAQ,SAAS,CAAA,GAAI,SAAS,KAAK,CAAA;AAE1C,EAAA,SAAA,CAAU,MAAM;AACZ,IAAA,MAAM,MAAA,GAAS,oBAAoB,UAAA,EAAW;AAC9C,IAAA,IAAI,CAAC,MAAA,EAAQ;AACT,MAAA;AAAA,IACJ;AAEA,IAAA,SAAA,CAAU,IAAI,CAAA;AACd,IAAA,OAAO,MAAM;AACT,MAAA,SAAA,CAAU,KAAK,CAAA;AACf,MAAA,MAAA,CAAO,OAAA,EAAQ;AAAA,IACnB,CAAA;AAAA,EACJ,CAAA,EAAG,CAAC,mBAAmB,CAAC,CAAA;AAExB,EAAA,OAAO,MAAA,wBAAW,OAAA,EAAA,EAAQ,SAAA,EAAW,MAAM,SAAA,EAAW,OAAA,EAAS,oBAAoB,OAAA,EAAS,CAAA;AAChG;AAEA,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N,EAAqB,QAAA,EAAA,KAAA,CAAM,OAAO,KAAA,EAAM,CAAA;AAAA,QAE5C,KAAA,CAAM,MAAM,QAAA,oBACT,GAAA;AAAA,UAAC,KAAA,CAAM,YAAA;AAAA,UAAN;AAAA,YACG,MAAA,EAAO,SAAA;AAAA,YACP,YAAA,EAAY,KAAK,aAAA,CAAc;AAAA,cAC3B,EAAA,EAAI;AAAA,aACP;AAAA;AAAA;AACL,OAAA,EAER;AAAA;AAAA,GAER,EACJ,CAAA;AAER,CAAC,CAAA;AAED,MAAM,KAAA,GAA2C;AAAA,EAC7C,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,OAAA,EAAS,aAAA;AAAA,EACT,KAAA,EAAO;AACX,CAAA;AAEA,SAAS,eAAe,KAAA,EAAyB;AAC7C,EAAA,MAAM,SAAS,cAAA,EAAe;AAE9B,EAAA,MAAM,SAAA,GAAY,KAAA,CAAM,KAAA,CAAM,IAAI,CAAA;AAClC,EAAA,IAAI,CAAC,WAAW,OAAO,IAAA;AAEvB,EAAA,2BACK,IAAA,EAAA,EAAK,GAAA,EAAK,MAAA,CAAO,SAAA,EACd,8BAAC,MAAA,EAAA,EACG,QAAA,kBAAA,GAAA,CAAC,SAAA,EAAA,EAAU,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,EAAQ,QAAQ,MAAA,EAAO,EAAG,GACzD,CAAA,EACJ,CAAA;AAER;;;;"}
1
+ {"version":3,"file":"Notifier.js","sources":["Notifier.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n BoxProps,\n Toaster as ChakraToaster,\n Icon,\n Portal,\n Spinner,\n Stack,\n Toast,\n ToasterProps,\n useToastStyles\n} from \"@chakra-ui/react\";\nimport { useIntl, useService } from \"open-pioneer:react-hooks\";\nimport { memo, useEffect, useState } from \"react\";\nimport { LuCircleAlert, LuCircleCheck, LuInfo, LuTriangleAlert } from \"react-icons/lu\";\nimport { InternalNotificationAPI, ToasterObject } from \"./NotificationServiceImpl\";\n\n/** Props supported by the {@link Notifier} component. */\nexport interface NotifierProps {\n /**\n * Props to be added to the notifier's root container.\n *\n * NOTE: Chakra's toaster currently hard codes many style properties using element styles.\n * These styles cannot be easily overwritten, unless one uses `!important`.\n **/\n rootProps?: BoxProps;\n}\n\n/**\n * Shows notifications sent via the `NotificationService`.\n *\n * Only one instance of `<Notifier />` should be present in the application.\n * It currently does not matter where the Notifier is located in the react tree.\n *\n * ```ts\n * import { Notifier } from \"@open-pioneer/notifier\";\n *\n * export function AppUI() {\n * return (\n * <>\n * <Notifier />\n * <h1>Your application</h1>\n * </>\n * );\n * }\n * ```\n */\nexport function Notifier(props: NotifierProps) {\n const notificationService = useService(\n \"notifier.NotificationService\"\n ) as InternalNotificationAPI;\n const [active, setActive] = useState(false);\n\n useEffect(() => {\n const handle = notificationService.registerUI();\n if (!handle) {\n return;\n }\n\n setActive(true);\n return () => {\n setActive(false);\n handle.destroy();\n };\n }, [notificationService]);\n\n return active && <Toaster rootProps={props.rootProps} toaster={notificationService.toaster} />;\n}\n\nconst Toaster = memo(function Toaster(props: { rootProps?: BoxProps; toaster: ToasterObject }) {\n const { rootProps, toaster } = props;\n const intl = useIntl();\n\n return (\n <Portal>\n <ChakraToaster\n insetInline={{ mdDown: \"4\" }}\n aria-label={intl.formatMessage({\n id: \"regionLabel\"\n })}\n className=\"notifier-toast-group\"\n {...(rootProps as ToasterProps | undefined)}\n toaster={toaster}\n >\n {(toast) => (\n <Toast.Root className=\"notifier-toast\" width={{ md: \"sm\" }} alignItems=\"center\">\n {toast.type === \"loading\" ? (\n <Spinner size=\"sm\" color=\"blue.solid\" />\n ) : (\n <ToastIndicator type={toast.type ?? \"\"} />\n )}\n {/* Adjust max width down from 100% (should match internal gaps). Otherwise, the container may grow too large for its parent. */}\n <Stack gap=\"1\" flex=\"1\" maxWidth={\"calc( 100% - {sizes.5} - {spacing.2} )\"}>\n {toast.title && <Toast.Title>{toast.title}</Toast.Title>}\n {toast.description && (\n <Toast.Description>{toast.description}</Toast.Description>\n )}\n </Stack>\n {toast.action && (\n <Toast.ActionTrigger>{toast.action.label}</Toast.ActionTrigger>\n )}\n {toast.meta?.closable && (\n <Toast.CloseTrigger\n cursor=\"pointer\"\n aria-label={intl.formatMessage({\n id: \"notification.close\"\n })}\n />\n )}\n </Toast.Root>\n )}\n </ChakraToaster>\n </Portal>\n );\n});\n\nconst icons: Record<string, React.ElementType> = {\n info: LuInfo,\n success: LuCircleCheck,\n warning: LuCircleAlert,\n error: LuTriangleAlert\n};\n\nfunction ToastIndicator(props: { type: string }) {\n const styles = useToastStyles();\n\n const Component = icons[props.type];\n if (!Component) return null;\n\n return (\n <Icon css={styles.indicator}>\n <span>\n <Component style={{ width: \"100%\", height: \"100%\" }} />\n </span>\n </Icon>\n );\n}\n"],"names":["Toaster","ChakraToaster"],"mappings":";;;;;;AAiDO,SAAS,SAAS,KAAA,EAAsB;AAC3C,EAAA,MAAM,mBAAA,GAAsB,UAAA;AAAA,IACxB;AAAA,GACJ;AACA,EAAA,MAAM,CAAC,MAAA,EAAQ,SAAS,CAAA,GAAI,SAAS,KAAK,CAAA;AAE1C,EAAA,SAAA,CAAU,MAAM;AACZ,IAAA,MAAM,MAAA,GAAS,oBAAoB,UAAA,EAAW;AAC9C,IAAA,IAAI,CAAC,MAAA,EAAQ;AACT,MAAA;AAAA,IACJ;AAEA,IAAA,SAAA,CAAU,IAAI,CAAA;AACd,IAAA,OAAO,MAAM;AACT,MAAA,SAAA,CAAU,KAAK,CAAA;AACf,MAAA,MAAA,CAAO,OAAA,EAAQ;AAAA,IACnB,CAAA;AAAA,EACJ,CAAA,EAAG,CAAC,mBAAmB,CAAC,CAAA;AAExB,EAAA,OAAO,MAAA,wBAAW,OAAA,EAAA,EAAQ,SAAA,EAAW,MAAM,SAAA,EAAW,OAAA,EAAS,oBAAoB,OAAA,EAAS,CAAA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AA,CAAM,eAAN,EAAqB,QAAA,EAAA,KAAA,CAAM,OAAO,KAAA,EAAM,CAAA;AAAA,QAE5C,KAAA,CAAM,MAAM,QAAA,oBACT,GAAA;AAAA,UAAC,KAAA,CAAM,YAAA;AAAA,UAAN;AAAA,YACG,MAAA,EAAO,SAAA;AAAA,YACP,YAAA,EAAY,KAAK,aAAA,CAAc;AAAA,cAC3B,EAAA,EAAI;AAAA,aACP;AAAA;AAAA;AACL,OAAA,EAER;AAAA;AAAA,GAER,EACJ,CAAA;AAER,CAAC,CAAA;AAED,MAAM,KAAA,GAA2C;AAAA,EAC7C,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,aAAA;AAAA,EACT,OAAA,EAAS,aAAA;AAAA,EACT,KAAA,EAAO;AACX,CAAA;AAEA,SAAS,eAAe,KAAA,EAAyB;AAC7C,EAAA,MAAM,SAAS,cAAA,EAAe;AAE9B,EAAA,MAAM,SAAA,GAAY,KAAA,CAAM,KAAA,CAAM,IAAI,CAAA;AAClC,EAAA,IAAI,CAAC,WAAW,OAAO,IAAA;AAEvB,EAAA,2BACK,IAAA,EAAA,EAAK,GAAA,EAAK,MAAA,CAAO,SAAA,EACd,8BAAC,MAAA,EAAA,EACG,QAAA,kBAAA,GAAA,CAAC,SAAA,EAAA,EAAU,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,EAAQ,QAAQ,MAAA,EAAO,EAAG,GACzD,CAAA,EACJ,CAAA;AAER;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"source-info.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"source-info.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/notifier",
4
- "version": "4.8.0-dev.20260910101405",
4
+ "version": "4.8.0",
5
5
  "description": "Provides support for application-wide notifications.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@chakra-ui/react": "^3.37.0",
18
- "@open-pioneer/core": "4.8.0-dev.20260910101405",
19
- "@open-pioneer/react-utils": "4.8.0-dev.20260910101405",
20
- "@open-pioneer/runtime": "4.8.0-dev.20260910101405",
21
- "react": "^19.2.8",
18
+ "@open-pioneer/core": "4.8.0",
19
+ "@open-pioneer/react-utils": "4.8.0",
20
+ "@open-pioneer/runtime": "4.8.0",
21
+ "react": "^19.3.0",
22
22
  "react-icons": "^5.7.0"
23
23
  },
24
24
  "publishConfig": {