@open-pioneer/notifier 4.7.0-dev.20260713101438 → 4.7.0-dev.20260727091735

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,10 +1,14 @@
1
1
  # @open-pioneer/notifier
2
2
 
3
- ## 4.7.0-dev.20260713101438
3
+ ## 4.7.0-dev.20260727091735
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - e433296: Update Chakra UI to 3.36.0
7
+ - e433296: Update Chakra UI to 3.36.1
8
+
9
+ ### Patch Changes
10
+
11
+ - 9d84f1e: Migrated from eslint to oxlint.
8
12
 
9
13
  ## 4.6.0
10
14
 
@@ -68,29 +72,29 @@
68
72
  - 9f074d8: **Breaking**: The `position` property has moved from the `<Notifier />` component to package properties.
69
73
  In order to change to location of notifications, you need to customize the package properties.
70
74
 
71
- Before:
72
-
73
- ```jsx
74
- // App.jsx
75
- <Notifier position="top-right" />
76
- ```
77
-
78
- After:
79
-
80
- ```ts
81
- // app.ts
82
- const Element = createCustomElement({
83
- // ...
84
- config: {
85
- properties: {
86
- "@open-pioneer/notifier": {
87
- position: "top-right"
88
- } satisfies NotifierProperties
89
- }
90
- }
91
- // or use resolveConfig()
92
- });
93
- ```
75
+ Before:
76
+
77
+ ```jsx
78
+ // App.jsx
79
+ <Notifier position="top-right" />
80
+ ```
81
+
82
+ After:
83
+
84
+ ```ts
85
+ // app.ts
86
+ const Element = createCustomElement({
87
+ // ...
88
+ config: {
89
+ properties: {
90
+ "@open-pioneer/notifier": {
91
+ position: "top-right",
92
+ } satisfies NotifierProperties,
93
+ },
94
+ },
95
+ // or use resolveConfig()
96
+ });
97
+ ```
94
98
 
95
99
  ### Patch Changes
96
100
 
@@ -107,13 +111,13 @@
107
111
  ### Major Changes
108
112
 
109
113
  - 9477e54: Update dependencies
110
- - React 19
111
- - Vite 6
112
- - FormatJS 3
113
- - Open Pioneer Build Tools
114
- - ...
114
+ - React 19
115
+ - Vite 6
116
+ - FormatJS 3
117
+ - Open Pioneer Build Tools
118
+ - ...
115
119
 
116
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
120
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
117
121
 
118
122
  ## 2.4.0
119
123
 
@@ -121,13 +125,13 @@
121
125
 
122
126
  - e4ba048: Introduce new convenience methods on the `NotificationService` in addition to the existing `notify()` method:
123
127
 
124
- ```js
125
- const notifier = ...; // injected
126
- notifier.success(/* ... */)
127
- notifier.info(/* ... */)
128
- notifier.warning(/* ... */)
129
- notifier.error(/* ... */)
130
- ```
128
+ ```js
129
+ const notifier = ...; // injected
130
+ notifier.success(/* ... */)
131
+ notifier.info(/* ... */)
132
+ notifier.warning(/* ... */)
133
+ notifier.error(/* ... */)
134
+ ```
131
135
 
132
136
  ### Patch Changes
133
137
 
@@ -173,7 +177,7 @@
173
177
  ### Patch Changes
174
178
 
175
179
  - 4eac7c7: Move packages into core-packages repository.
176
- - @open-pioneer/runtime@2.1.2
180
+ - @open-pioneer/runtime@2.1.2
177
181
 
178
182
  ## 0.3.0
179
183
 
@@ -7,7 +7,7 @@ const PERSISTENT_TIMEOUT = 7 * 24 * 60 * 60 * 1e3;
7
7
  class NotificationServiceImpl {
8
8
  #uiPresent = false;
9
9
  #uiCheckTimeoutId;
10
- // eslint-disable-line @typescript-eslint/no-explicit-any
10
+ // oxlint-disable-line @typescript-eslint/no-explicit-any
11
11
  toaster;
12
12
  constructor({ properties }) {
13
13
  const typedProperties = properties;
@@ -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\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; // eslint-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":";;;;AAcA,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,CAAI,GAAA,IAAO,CAAC,MAAA,CAAA,IAAA,CAAY,IAAI,MAAA,EAAQ;AAChD,MAAA,IAAA,CAAK,iBAAA,GAAoB,WAAW,MAAM;AACtC,QAAA,IAAA,CAAK,oBAAA,EAAqB;AAC1B,QAAA,IAAA,CAAK,iBAAA,GAAoB,MAAA;AAAA,MAC7B,GAAG,GAAI,CAAA;AAAA,IACX;AAAA,EACJ;AAAA,EAEA,OAAA,GAAU;AACN,IAAA,YAAA,CAAa,KAAK,iBAAiB,CAAA;AACnC,IAAA,IAAA,CAAK,iBAAA,GA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AAI,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;;;;"}
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;AAEv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A,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\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":";;;;;;AAgDO,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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AA,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,IAA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AAO,EAAE,KAAA,EAAO,MAAA,EAAQ,QAAQ,MAAA,EAAO,EAAG,GACzD,CAAA,EACJ,CAAA;AAER;;;;"}
package/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from "react";
2
1
  import type { DeclaredService } from "@open-pioneer/runtime";
2
+ import type { ReactNode } from "react";
3
3
  /** Represents the severity or kind of a notification. */
4
4
  export type NotificationLevel = "success" | "info" | "warning" | "error";
5
5
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/notifier",
4
- "version": "4.7.0-dev.20260713101438",
4
+ "version": "4.7.0-dev.20260727091735",
5
5
  "description": "Provides support for application-wide notifications.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,12 +14,12 @@
14
14
  "directory": "src/packages/notifier"
15
15
  },
16
16
  "dependencies": {
17
- "@chakra-ui/react": "^3.36.0",
17
+ "@chakra-ui/react": "^3.36.1",
18
+ "react": "^19.2.8",
18
19
  "react-icons": "^5.7.0",
19
- "react": "^19.2.7",
20
- "@open-pioneer/runtime": "4.7.0-dev.20260713101438",
21
- "@open-pioneer/core": "4.7.0-dev.20260713101438",
22
- "@open-pioneer/react-utils": "4.7.0-dev.20260713101438"
20
+ "@open-pioneer/core": "4.7.0-dev.20260727091735",
21
+ "@open-pioneer/react-utils": "4.7.0-dev.20260727091735",
22
+ "@open-pioneer/runtime": "4.7.0-dev.20260727091735"
23
23
  },
24
24
  "exports": {
25
25
  "./package.json": "./package.json",