@open-pioneer/runtime 4.7.0 → 4.7.1-dev-test-snapshot-123.20260821142246

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,5 +1,11 @@
1
1
  # @open-pioneer/runtime
2
2
 
3
+ ## 4.7.1-dev-test-snapshot-123.20260821142246
4
+
5
+ ### Patch Changes
6
+
7
+ - 7d5283e: Updated dependencies.
8
+
3
9
  ## 4.7.0
4
10
 
5
11
  ### Minor Changes
@@ -9,12 +15,12 @@
9
15
  - e433296: Update Chakra UI to 3.36.1
10
16
  - 278515d: Add `runtime.LocaleService` and opt-in reactive locale switching.
11
17
 
12
- You can opt-in by configuring the property `advanced.enableLiveLocaleChanges` when calling `createCustomElement`.
13
- Once enabled, locale switches can be done without restarting the application.
14
- Use `LocaleService.changeLocale` to update the application's locale.
18
+ You can opt-in by configuring the property `advanced.enableLiveLocaleChanges` when calling `createCustomElement`.
19
+ Once enabled, locale switches can be done without restarting the application.
20
+ Use `LocaleService.changeLocale` to update the application's locale.
15
21
 
16
- Also export `parseLocale` and `tryParseLocale` algorithms.
17
- These can be used to construct a (cleaned up) `Intl.Locale` object from a string.
22
+ Also export `parseLocale` and `tryParseLocale` algorithms.
23
+ These can be used to construct a (cleaned up) `Intl.Locale` object from a string.
18
24
 
19
25
  ### Patch Changes
20
26
 
@@ -33,15 +39,15 @@
33
39
  - 05425c6: runtime - Introduce support for ServiceFactories, to provide constructor indirection during service creation
34
40
  - 63db133: Support for hot reloading of i18n messages (requires updated vite plugin).
35
41
  When i18n messages are updated:
36
- - React components rerender automatically with new `intl` object returned by `useIntl()`.
37
- - Services that use the new `serviceOptions.currentIntl` interface also receive a new `intl` object (if they are watching for changes).
38
- - Services that that still use the deprecated `serviceOptions.intl` interface cause the application to reload instead.
42
+ - React components rerender automatically with new `intl` object returned by `useIntl()`.
43
+ - Services that use the new `serviceOptions.currentIntl` interface also receive a new `intl` object (if they are watching for changes).
44
+ - Services that that still use the deprecated `serviceOptions.intl` interface cause the application to reload instead.
39
45
 
40
46
  ### Patch Changes
41
47
 
42
48
  - e6db101: Update to Chakra UI 3.35.0
43
- - update to Chakra UI @ 3.35.0, Ark UI @ 5.36.2, Zag JS @ 1.40.0
44
- - use TooltipProviderProps to override `openDelay` globally (instead of Tooltip snippet)
49
+ - update to Chakra UI @ 3.35.0, Ark UI @ 5.36.2, Zag JS @ 1.40.0
50
+ - use TooltipProviderProps to override `openDelay` globally (instead of Tooltip snippet)
45
51
 
46
52
  - b092b75: Declare css property `color-scheme` on the application root. This can be used by the browser to render builtin controls differently.
47
53
 
@@ -50,9 +56,9 @@
50
56
  ### Minor Changes
51
57
 
52
58
  - 89d743b: Provide `runtime.ThemeService`:
53
- - Supports switching between color modes `light` and `dark`.
54
- - Supports changing the chakra theme ("systemConfig") at runtime.
55
- - Supports reactive access to the preferred (system) color mode.
59
+ - Supports switching between color modes `light` and `dark`.
60
+ - Supports changing the chakra theme ("systemConfig") at runtime.
61
+ - Supports reactive access to the preferred (system) color mode.
56
62
 
57
63
  - 89d743b: Support for color modes (light and dark).
58
64
  The default color mode remains `light` for backwards compatibility.
@@ -101,7 +107,7 @@
101
107
 
102
108
  - b7a854d: Update dependencies
103
109
  - 3881d08: - Update Chakra UI from 3.22.0 to 3.24.2
104
- - Update to latest Chakra snippets
110
+ - Update to latest Chakra snippets
105
111
  - adf277b: Update dependencies
106
112
 
107
113
  ## 4.0.0
@@ -111,41 +117,41 @@
111
117
  - 9f074d8: Update to Chakra 3.x
112
118
  - 53c92ba: Introduce an advanced option to disable the shadow root.
113
119
 
114
- By default, trails applications use a shadow root to avoid conflicts (e.g. styles) with other parts of the site where the application may be embedded.
115
-
116
- Applications that use the entire browser viewport may not need this feature, since there may be no "other" parts that may conflict with the app. In this case, you can disable the shadow root by setting this property to `false`.
117
- - New option `advanced.enableShadowRoot`:
120
+ By default, trails applications use a shadow root to avoid conflicts (e.g. styles) with other parts of the site where the application may be embedded.
118
121
 
119
- ```ts
120
- import { createCustomElement } from "@open-pioneer/runtime";
121
- import * as appMetadata from "open-pioneer:app";
122
- import { AppUI } from "./AppUI";
122
+ Applications that use the entire browser viewport may not need this feature, since there may be no "other" parts that may conflict with the app. In this case, you can disable the shadow root by setting this property to `false`.
123
+ - New option `advanced.enableShadowRoot`:
123
124
 
124
- const element = createCustomElement({
125
- component: AppUI,
126
- appMetadata,
127
- advanced: {
128
- enableShadowRoot: false
129
- }
130
- });
131
-
132
- customElements.define("no-shadowroot-sample", element);
133
- ```
125
+ ```ts
126
+ import { createCustomElement } from "@open-pioneer/runtime";
127
+ import * as appMetadata from "open-pioneer:app";
128
+ import { AppUI } from "./AppUI";
129
+
130
+ const element = createCustomElement({
131
+ component: AppUI,
132
+ appMetadata,
133
+ advanced: {
134
+ enableShadowRoot: false,
135
+ },
136
+ });
137
+
138
+ customElements.define("no-shadowroot-sample", element);
139
+ ```
134
140
 
135
- - **Breaking:** As a consequence, the `ApplicationContext`'s `getShadowRoot()` method will now return `undefined` if the shadow root is disabled (previous: always a `ShadowRoot`):
141
+ - **Breaking:** As a consequence, the `ApplicationContext`'s `getShadowRoot()` method will now return `undefined` if the shadow root is disabled (previous: always a `ShadowRoot`):
136
142
 
137
- ```ts
138
- const ctx: ApplicationContext = ...; // injected
139
- const shadowRoot = ctx.getShadowRoot(); // ShadowRoot | undefined
140
- ```
143
+ ```ts
144
+ const ctx: ApplicationContext = ...; // injected
145
+ const shadowRoot = ctx.getShadowRoot(); // ShadowRoot | undefined
146
+ ```
141
147
 
142
- - New method on the `ApplicationContext` that returns _either_ the `ShadowRoot` _or_ the `Document` (if the shadow root is disabled):
148
+ - New method on the `ApplicationContext` that returns _either_ the `ShadowRoot` _or_ the `Document` (if the shadow root is disabled):
143
149
 
144
- ```ts
145
- const ctx: ApplicationContext = ...; // injected
146
- const root = ctx.getRoot(); // Document | ShadowRoot
147
- root.getElementById("...") // always works
148
- ```
150
+ ```ts
151
+ const ctx: ApplicationContext = ...; // injected
152
+ const root = ctx.getRoot(); // Document | ShadowRoot
153
+ root.getElementById("...") // always works
154
+ ```
149
155
 
150
156
  - 9f074d8: **Breaking:** Rename `theme` option of `createCustomElement()` to `chakraSystemConfig`.
151
157
 
@@ -161,54 +167,54 @@
161
167
  In addition to primitive values, rich text formatting supports react values and custom react tags.
162
168
  It always returns a react node, so can only be used in combination with react components.
163
169
 
164
- _Example with react node as value:_
165
-
166
- ```tsx
167
- function Example() {
168
- const intl = useIntl();
169
- // Given i18n message "Hello, {name}!"
170
- // replaces 'name' with the given react node:
171
- const message = intl.formatRichMessage(
172
- { id: "foo" },
173
- {
174
- name: <FancyUserName />
175
- }
176
- );
177
- return <Box>{message}</Box>;
178
- }
179
- ```
180
-
181
- _Example with basic formatting:_
182
-
183
- ```tsx
184
- function Example() {
185
- const intl = useIntl();
186
- // Given i18n message "Hello, <strong>{name}</strong>!"
187
- // renders with actual <strong> html node:
188
- return <Box>{intl.formatRichMessage({ id: "foo" }, { name: "User" })}</Box>;
189
- }
190
- ```
191
-
192
- Note that only a few basic formatting tags are predefined ("b", "strong", "i", "em", "code", "br").
193
- If you need more advanced tags, you can define your own, see below.
194
- _Example with custom tag:_
195
-
196
- ```tsx
197
- function Example() {
198
- const intl = useIntl();
199
- // Given i18n message "Open <foo>the door</foo>!",
200
- // renders 'foo' using the formatter function below:
201
- const message = intl.formatRichMessage(
202
- { id: "foo" },
203
- {
204
- foo: (parts) => <FancyTag>{parts}</FancyTag>
205
- }
206
- );
207
- return <Box>{message}</Box>;
208
- }
209
- ```
210
-
211
- The TypeScript signature for the `intl.formatMessage()` function has been made a little bit stricter compared with FormatJS: only primitive values are allowed for the `values` argument (this should not affect users in practice).
170
+ _Example with react node as value:_
171
+
172
+ ```tsx
173
+ function Example() {
174
+ const intl = useIntl();
175
+ // Given i18n message "Hello, {name}!"
176
+ // replaces 'name' with the given react node:
177
+ const message = intl.formatRichMessage(
178
+ { id: "foo" },
179
+ {
180
+ name: <FancyUserName />,
181
+ },
182
+ );
183
+ return <Box>{message}</Box>;
184
+ }
185
+ ```
186
+
187
+ _Example with basic formatting:_
188
+
189
+ ```tsx
190
+ function Example() {
191
+ const intl = useIntl();
192
+ // Given i18n message "Hello, <strong>{name}</strong>!"
193
+ // renders with actual <strong> html node:
194
+ return <Box>{intl.formatRichMessage({ id: "foo" }, { name: "User" })}</Box>;
195
+ }
196
+ ```
197
+
198
+ Note that only a few basic formatting tags are predefined ("b", "strong", "i", "em", "code", "br").
199
+ If you need more advanced tags, you can define your own, see below.
200
+ _Example with custom tag:_
201
+
202
+ ```tsx
203
+ function Example() {
204
+ const intl = useIntl();
205
+ // Given i18n message "Open <foo>the door</foo>!",
206
+ // renders 'foo' using the formatter function below:
207
+ const message = intl.formatRichMessage(
208
+ { id: "foo" },
209
+ {
210
+ foo: (parts) => <FancyTag>{parts}</FancyTag>,
211
+ },
212
+ );
213
+ return <Box>{message}</Box>;
214
+ }
215
+ ```
216
+
217
+ The TypeScript signature for the `intl.formatMessage()` function has been made a little bit stricter compared with FormatJS: only primitive values are allowed for the `values` argument (this should not affect users in practice).
212
218
 
213
219
  ### Patch Changes
214
220
 
@@ -219,13 +225,13 @@
219
225
  ### Major Changes
220
226
 
221
227
  - 9477e54: Update dependencies
222
- - React 19
223
- - Vite 6
224
- - FormatJS 3
225
- - Open Pioneer Build Tools
226
- - ...
228
+ - React 19
229
+ - Vite 6
230
+ - FormatJS 3
231
+ - Open Pioneer Build Tools
232
+ - ...
227
233
 
228
- For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
234
+ For more details, see https://github.com/open-pioneer/trails-core-packages/pull/81
229
235
 
230
236
  ## 2.4.0
231
237
 
@@ -266,7 +272,7 @@
266
272
  ### Patch Changes
267
273
 
268
274
  - e945264: Improve error message when metadata is missing (#55)
269
- - @open-pioneer/runtime-react-support@1.0.2
275
+ - @open-pioneer/runtime-react-support@1.0.2
270
276
 
271
277
  ## 2.1.5
272
278
 
@@ -277,16 +283,16 @@
277
283
  Note that with the current implementation, the application will simply restart with the new locale.
278
284
  The application's state will be lost.
279
285
 
280
- Example:
286
+ Example:
281
287
 
282
- ```ts
283
- import { ApplicationContext } from "@open-pioneer/runtime";
288
+ ```ts
289
+ import { ApplicationContext } from "@open-pioneer/runtime";
284
290
 
285
- const appCtx: ApplicationContext = ...; // injected
286
- appCtx.setLocale("en-US");
287
- ```
291
+ const appCtx: ApplicationContext = ...; // injected
292
+ appCtx.setLocale("en-US");
293
+ ```
288
294
 
289
- - @open-pioneer/runtime-react-support@1.0.2
295
+ - @open-pioneer/runtime-react-support@1.0.2
290
296
 
291
297
  ## 2.1.4
292
298
 
@@ -308,7 +314,7 @@
308
314
  ### Patch Changes
309
315
 
310
316
  - f749d96: Add a hint that `DECLARE_SERVICE_INTERFACE` should be imported via `import type`.
311
- - @open-pioneer/runtime-react-support@1.0.0
317
+ - @open-pioneer/runtime-react-support@1.0.0
312
318
 
313
319
  ## 2.1.0
314
320
 
@@ -316,46 +322,46 @@
316
322
 
317
323
  - 80cd62d: Improve TypeScript integration for service classes.
318
324
 
319
- Add a way for a service class to specify its interface name directly.
320
- Usually services used across package boundaries split their public interface and their implementation such as this:
325
+ Add a way for a service class to specify its interface name directly.
326
+ Usually services used across package boundaries split their public interface and their implementation such as this:
321
327
 
322
- ```ts
323
- // Exported from package
324
- interface MyService extends DeclaredService<"my-package.SomeInterface"> {
325
- method(): void;
326
- }
328
+ ```ts
329
+ // Exported from package
330
+ interface MyService extends DeclaredService<"my-package.SomeInterface"> {
331
+ method(): void;
332
+ }
327
333
 
328
- // In an implementation file, usually private.
329
- class MyServiceImpl implements MyService {
330
- method(): void {
331
- // ...
332
- }
334
+ // In an implementation file, usually private.
335
+ class MyServiceImpl implements MyService {
336
+ method(): void {
337
+ // ...
333
338
  }
334
- ```
339
+ }
340
+ ```
335
341
 
336
- Until now, there was no way for a service class to declare its interface directly.
337
- This could be convenient within a package, or with a group of tightly coupled packages:
342
+ Until now, there was no way for a service class to declare its interface directly.
343
+ This could be convenient within a package, or with a group of tightly coupled packages:
338
344
 
339
- ```ts
340
- // Error: Type 'MyServiceImpl' has no properties in common with type 'DeclaredService<"my-package.InterfaceName">'.
341
- class MyServiceImpl implements DeclaredService<"my-package.InterfaceName"> {
342
- method() {}
343
- }
344
- ```
345
+ ```ts
346
+ // Error: Type 'MyServiceImpl' has no properties in common with type 'DeclaredService<"my-package.InterfaceName">'.
347
+ class MyServiceImpl implements DeclaredService<"my-package.InterfaceName"> {
348
+ method() {}
349
+ }
350
+ ```
345
351
 
346
- From now on, you can write this instead:
352
+ From now on, you can write this instead:
347
353
 
348
- ```ts
349
- class MyServiceImpl {
350
- // Tells TypeScript which interface name must be used.
351
- // See documentation of `DECLARE_SERVICE_INTERFACE` for more details.
352
- declare [DECLARE_SERVICE_INTERFACE]: "my-package.InterfaceName";
353
-
354
- method(): void {
355
- // ...
356
- }
354
+ ```ts
355
+ class MyServiceImpl {
356
+ // Tells TypeScript which interface name must be used.
357
+ // See documentation of `DECLARE_SERVICE_INTERFACE` for more details.
358
+ declare [DECLARE_SERVICE_INTERFACE]: "my-package.InterfaceName";
359
+
360
+ method(): void {
361
+ // ...
357
362
  }
358
- ```
363
+ }
364
+ ```
359
365
 
360
366
  ### Patch Changes
361
367
 
@@ -375,51 +381,51 @@
375
381
  - 6f954e3: **Breaking Change**: change how services integrate into TypeScript (fixes #22).
376
382
  The old TypeScript integration had unexpected edge cases, see the linked issue.
377
383
 
378
- NOTE: The changes below have no impact on runtime behavior, but they may trigger TypeScript errors in your code.
379
- - To register a service's type with TypeScript, one previously used a block such as this:
384
+ NOTE: The changes below have no impact on runtime behavior, but they may trigger TypeScript errors in your code.
385
+ - To register a service's type with TypeScript, one previously used a block such as this:
380
386
 
381
- ```ts
382
- // OLD! Can be removed
383
- import "@open-pioneer/runtime";
384
- declare module "@open-pioneer/runtime" {
385
- interface ServiceRegistry {
386
- "http.HttpService": HttpService;
387
- }
388
- }
389
- ```
387
+ ```ts
388
+ // OLD! Can be removed
389
+ import "@open-pioneer/runtime";
390
+ declare module "@open-pioneer/runtime" {
391
+ interface ServiceRegistry {
392
+ "http.HttpService": HttpService;
393
+ }
394
+ }
395
+ ```
390
396
 
391
- The new method requires the developer to change the service's declaration.
392
- Simply add `extends DeclaredService<"SERVICE_ID">` to your service interface, where `SERVICE_ID` should match the service's interface name (`"provides"` in `build.config.mjs`).
397
+ The new method requires the developer to change the service's declaration.
398
+ Simply add `extends DeclaredService<"SERVICE_ID">` to your service interface, where `SERVICE_ID` should match the service's interface name (`"provides"` in `build.config.mjs`).
393
399
 
394
- ```diff
395
- + import { DeclaredService } from "@open-pioneer/runtime";
400
+ ```diff
401
+ + import { DeclaredService } from "@open-pioneer/runtime";
396
402
 
397
- - export interface HttpService {
398
- + export interface HttpService extends DeclaredService<"http.HttpService"> {
403
+ - export interface HttpService {
404
+ + export interface HttpService extends DeclaredService<"http.HttpService"> {
399
405
 
400
- - import "@open-pioneer/runtime";
401
- - declare module "@open-pioneer/runtime" {
402
- - interface ServiceRegistry {
403
- - "http.HttpService": HttpService;
404
- - }
405
- - }
406
- ```
406
+ - import "@open-pioneer/runtime";
407
+ - declare module "@open-pioneer/runtime" {
408
+ - interface ServiceRegistry {
409
+ - "http.HttpService": HttpService;
410
+ - }
411
+ - }
412
+ ```
407
413
 
408
- - To use a service from React code (i.e. `useService` and `useServices`), you must now use the explicit service type in the hook's generic parameter list. Otherwise the hook will simply return `unknown`:
414
+ - To use a service from React code (i.e. `useService` and `useServices`), you must now use the explicit service type in the hook's generic parameter list. Otherwise the hook will simply return `unknown`:
409
415
 
410
- ```diff
411
- + import { HttpService } from "@open-pioneer/http";
412
- - const httpService = useService("http.HttpService");
413
- + const httpService = useService<HttpService>("http.HttpService");
414
- ```
416
+ ```diff
417
+ + import { HttpService } from "@open-pioneer/http";
418
+ - const httpService = useService("http.HttpService");
419
+ + const httpService = useService<HttpService>("http.HttpService");
420
+ ```
415
421
 
416
- This change was necessary to fix an issue where the global registration of the service interface (and its association with the string constant) was not available.
422
+ This change was necessary to fix an issue where the global registration of the service interface (and its association with the string constant) was not available.
417
423
 
418
- The system will still check that the provided string matches the string constant used in the service's declaration (`DeclaredService<...>`), so type safety is preserved.
424
+ The system will still check that the provided string matches the string constant used in the service's declaration (`DeclaredService<...>`), so type safety is preserved.
419
425
 
420
- - The types `InterfaceName` and `ServiceType<I>` have been removed. Use explicit service interfaces instead.
421
- - The interfaces `ServiceRegistry` and `PropertiesRegistry` have been removed as global registration is no longer possible.
422
- - The type `RawApplicationProperties` has been removed. Use `ApplicationProperties` instead.
426
+ - The types `InterfaceName` and `ServiceType<I>` have been removed. Use explicit service interfaces instead.
427
+ - The interfaces `ServiceRegistry` and `PropertiesRegistry` have been removed as global registration is no longer possible.
428
+ - The type `RawApplicationProperties` has been removed. Use `ApplicationProperties` instead.
423
429
 
424
430
  ### Patch Changes
425
431
 
package/CustomElement.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createLogger, Error } from '@open-pioneer/core';
2
- import { sourceId$6 as sourceId } from './_virtual/source-info.js';
2
+ import { sourceId$7 as sourceId } from './_virtual/source-info.js';
3
3
  import { AppInstance } from './app/AppInstance.js';
4
4
  import { ErrorId } from './errors.js';
5
5
 
@@ -1,16 +1,18 @@
1
- const sourceId$6 = "@open-pioneer/runtime/CustomElement";
1
+ const sourceId$7 = "@open-pioneer/runtime/CustomElement";
2
2
 
3
- const sourceId$5 = "@open-pioneer/runtime/app/AppInstance";
3
+ const sourceId$6 = "@open-pioneer/runtime/app/AppInstance";
4
4
 
5
- const sourceId$4 = "@open-pioneer/runtime/i18n/AppIntl";
5
+ const sourceId$5 = "@open-pioneer/runtime/i18n/AppIntl";
6
6
 
7
- const sourceId$3 = "@open-pioneer/runtime/builtin-services/ApplicationContextImpl";
7
+ const sourceId$4 = "@open-pioneer/runtime/builtin-services/ApplicationContextImpl";
8
8
 
9
- const sourceId$2 = "@open-pioneer/runtime/builtin-services/ApplicationLifecycleEventService";
9
+ const sourceId$3 = "@open-pioneer/runtime/builtin-services/ApplicationLifecycleEventService";
10
10
 
11
- const sourceId$1 = "@open-pioneer/runtime/builtin-services/NumberParserServiceImpl";
11
+ const sourceId$2 = "@open-pioneer/runtime/builtin-services/NumberParserServiceImpl";
12
12
 
13
- const sourceId = "@open-pioneer/runtime/service-layer/ServiceLayer";
13
+ const sourceId$1 = "@open-pioneer/runtime/service-layer/ServiceLayer";
14
14
 
15
- export { sourceId$4 as sourceId, sourceId$3 as sourceId$1, sourceId$2, sourceId$1 as sourceId$3, sourceId as sourceId$4, sourceId$5, sourceId$6 };
15
+ const sourceId = "@open-pioneer/runtime/app/logErrors";
16
+
17
+ export { sourceId$5 as sourceId, sourceId$4 as sourceId$1, sourceId$3 as sourceId$2, sourceId$2 as sourceId$3, sourceId$1 as sourceId$4, sourceId as sourceId$5, sourceId$6, sourceId$7 };
16
18
  //# sourceMappingURL=source-info.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"source-info.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"source-info.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { watchValue, computed, constant, reactive, effect } from '@conterra/reactivity-core';
2
2
  import { createLogger, Error, createAbortError, destroyResource, createManualPromise, throwAbortError } from '@open-pioneer/core';
3
- import { sourceId$5 as sourceId } from '../_virtual/source-info.js';
3
+ import { sourceId$6 as sourceId } from '../_virtual/source-info.js';
4
4
  import { createElement } from 'react';
5
5
  import { createBuiltinPackage, RUNTIME_THEME_SERVICE, RUNTIME_API_SERVICE, RUNTIME_APPLICATION_LIFECYCLE_EVENT_SERVICE, RUNTIME_LOCALE_SERVICE, RUNTIME_AUTO_START } from '../builtin-services/index.js';
6
6
  import { DEFAULT_INITIAL_COLOR_MODE } from '../builtin-services/ThemeServiceImpl.js';
package/app/logErrors.js CHANGED
@@ -1,19 +1,21 @@
1
- import { getErrorChain } from '@open-pioneer/core';
1
+ import { createLogger, getErrorChain } from '@open-pioneer/core';
2
+ import { sourceId$5 as sourceId } from '../_virtual/source-info.js';
2
3
 
4
+ const LOG = createLogger(sourceId);
3
5
  function logError(e) {
4
6
  if (e instanceof Error) {
5
7
  const chain = getErrorChain(e).reverse();
6
8
  if (chain.length === 1) {
7
- console.error(e);
9
+ LOG.error(e);
8
10
  return;
9
11
  }
10
12
  let n = 1;
11
13
  for (const error of chain) {
12
- console.error(`#${n}`, error);
14
+ LOG.error(`#${n}`, error);
13
15
  ++n;
14
16
  }
15
17
  } else {
16
- console.error("Unexpected error", e);
18
+ LOG.error("Unexpected error", e);
17
19
  }
18
20
  }
19
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"logErrors.js","sources":["logErrors.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport { getErrorChain } from \"@open-pioneer/core\";\n\nexport function logError(e: unknown) {\n if (e instanceof Error) {\n const chain = getErrorChain(e).reverse();\n if (chain.length === 1) {\n console.error(e);\n return;\n }\n\n let n = 1;\n for (const error of chain) {\n console.error(`#${n}`, error);\n ++n;\n }\n } else {\n console.error(\"Unexpected error\", e);\n }\n}\n"],"names":[],"mappings":";;AAKO,SAAS,SAAS,CAAA,EAAY;AACjC,EAAA,IAAI,aAAa,KAAA,EAAO;AACpB,IAAA,MAAM,KAAA,GAAQ,aAAA,CAAc,CAAC,CAAA,CAAE,OAAA,EAAQ;AACvC,IAAA,IAAI,KAAA,CAAM,WAAW,CAAA,EAAG;AACpB,MAAA,OAAA,CAAQ,MAAM,CAAC,CAAA;AACf,MAAA;AAAA,IACJ;AAEA,IAAA,IAAI,CAAA,GAAI,CAAA;AACR,IAAA,KAAA,MAAW,SAAS,KAAA,EAAO;AACvB,MAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,CAAA,EAAI,CAAC,CAAA,CAAA,EAAI,KAAK,CAAA;AAC5B,MAAA,EAAE,CAAA;AAAA,IACN;AAAA,EACJ,CAAA,MAAO;AACH,IAAA,OAAA,CAAQ,KAAA,CAAM,oBAAoB,CAAC,CAAA;AAAA,EACvC;AACJ;;;;"}
1
+ {"version":3,"file":"logErrors.js","sources":["logErrors.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport { getErrorChain, createLogger } from \"@open-pioneer/core\";\nimport { sourceId } from \"open-pioneer:source-info\";\n\nconst LOG = createLogger(sourceId);\n\nexport function logError(e: unknown) {\n if (e instanceof Error) {\n const chain = getErrorChain(e).reverse();\n if (chain.length === 1) {\n LOG.error(e);\n return;\n }\n\n let n = 1;\n for (const error of chain) {\n LOG.error(`#${n}`, error);\n ++n;\n }\n } else {\n LOG.error(\"Unexpected error\", e);\n }\n}\n"],"names":[],"mappings":";;;AAMA,MAAM,GAAA,GAAM,aAAa,QAAQ,CAAA;AAE1B,SAAS,SAAS,CAAA,EAAY;AACjC,EAAA,IAAI,aAAa,KAAA,EAAO;AACpB,IAAA,MAAM,KAAA,GAAQ,aAAA,CAAc,CAAC,CAAA,CAAE,OAAA,EAAQ;AACvC,IAAA,IAAI,KAAA,CAAM,WAAW,CAAA,EAAG;AACpB,MAAA,GAAA,CAAI,MAAM,CAAC,CAAA;AACX,MAAA;AAAA,IACJ;AAEA,IAAA,IAAI,CAAA,GAAI,CAAA;AACR,IAAA,KAAA,MAAW,SAAS,KAAA,EAAO;AACvB,MAAA,GAAA,CAAI,KAAA,CAAM,CAAA,CAAA,EAAI,CAAC,CAAA,CAAA,EAAI,KAAK,CAAA;AACxB,MAAA,EAAE,CAAA;AAAA,IACN;AAAA,EACJ,CAAA,MAAO;AACH,IAAA,GAAA,CAAI,KAAA,CAAM,oBAAoB,CAAC,CAAA;AAAA,EACnC;AACJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PackageIntl.js","sources":["PackageIntl.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n createIntl,\n createIntlCache,\n IntlConfig,\n IntlErrorCode,\n IntlFormatters,\n IntlShape,\n MessageDescriptor,\n OnErrorFn\n} from \"@formatjs/intl\";\nimport {\n type FormatXMLElementFn,\n type Options as IntlMessageFormatOptions,\n type PrimitiveType\n} from \"intl-messageformat\"; // not a dependency, this is a dependency of formatjs\nimport { Children, createElement, Fragment, isValidElement, ReactNode } from \"react\";\n\ntype BaseIntl = Pick<IntlShape, \"locale\" | \"timeZone\"> &\n Omit<IntlFormatters<string>, \"formatMessage\">;\n\n/**\n * Gives access to the package's i18n messages for the current locale.\n *\n * See also https://formatjs.io/docs/intl\n */\nexport type PackageIntl = BaseIntl & PackageIntlExtensions;\n\n/**\n * Trails specific extensions to FormatJS' intl API.\n */\nexport interface PackageIntlExtensions {\n /**\n * Formats a message with the given descriptor and values.\n *\n * This is a method directly implemented by FormatJS see\n * - [Documentation](<https://formatjs.github.io/docs/intl/#formatmessage>)\n * - {@link IntlShape.formatMessage | Base Implementation}\n *\n * The typings here make the signature a little bit stricter: only primitive values\n * are allowed for formatting.\n *\n * If you need rich text (react) formatting, see {@link PackageIntlExtensions.formatRichMessage}.\n */\n formatMessage(\n this: void,\n descriptor: MessageDescriptor,\n values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>,\n opts?: IntlMessageFormatOptions\n ): string;\n\n /**\n * Similar to `formatMessage()`, but supports _rich text formatting_.\n *\n * React nodes are supported as input values, and custom tags can be implemented as react components.\n * Note that the output is always a single react node.\n *\n * *Example with react node as value:*\n *\n * ```tsx\n * function Example() {\n * const intl = useIntl();\n * // Given i18n message \"Hello, {name}!\"\n * // replaces 'name' with the given react node:\n * const message = intl.formatRichMessage({ id: \"foo\"}, {\n * name: <FancyUserName />\n * });\n * return <Box>{message}</Box>;\n * }\n * ```\n *\n * *Example with basic formatting:*\n *\n * ```tsx\n * function Example() {\n * const intl = useIntl();\n * // Given i18n message \"Hello, <strong>{name}</strong>!\"\n * // renders with actual <strong> html node:\n * return <Box>{intl.formatRichMessage({ id: \"foo\"}, { name: \"User\" })}</Box>;\n * }\n * ```\n *\n * Note that only a few basic formatting tags are predefined (\"b\", \"strong\", \"i\", \"em\", \"code\", \"br\").\n * If you need more advanced tags, you can define your own, see below.\n *\n * *Example with custom tag:*\n *\n * ```tsx\n * function Example() {\n * const intl = useIntl();\n * // Given i18n message \"Open <foo>the door</foo>!\",\n * // renders 'foo' using the formatter function below:\n * const message = intl.formatRichMessage({ id: \"foo\"}, {\n * foo: (parts) => <FancyTag>{parts}</FancyTag>\n * });\n * return <Box>{message}</Box>;\n * }\n * ```\n */\n formatRichMessage: (\n descriptor: MessageDescriptor,\n values?: Record<string, RichTextValue>,\n opts?: IntlMessageFormatOptions\n ) => ReactNode;\n}\n\n/**\n * Value types supported when rendering rich text messages.\n * Primitive values (or single react nodes) are used for normal values.\n * Functions are used to define how tags should be rendered.\n *\n * See {@link PackageIntlExtensions.formatRichMessage}\n */\nexport type RichTextValue = PrimitiveType | ReactNode | FormatXMLElementFn<ReactNode>;\n\n/**\n * Creates a package intl instance with the given locale and messages.\n *\n * @internal\n */\nexport function createPackageIntl(\n locale: string,\n messages: Record<string, string>,\n options?: {\n /** Used during testing to suppress console messages. */\n suppressNotFoundError?: boolean;\n\n /** Also used during testing */\n defaultLocale?: string;\n }\n): PackageIntl {\n const cache = createIntlCache();\n const config: IntlConfig = {\n locale,\n messages\n };\n if (options?.suppressNotFoundError) {\n config.onError = ignoreMissingTranslationError;\n }\n if (options?.defaultLocale) {\n config.defaultLocale = options.defaultLocale;\n }\n\n const intl = createIntl(config, cache) as unknown as PackageIntl;\n intl.formatRichMessage = formatRichMessage.bind(undefined, intl);\n return intl;\n}\n\n/** Creates an empty i18n instance, e.g. for tests. */\nexport function createEmptyPackageIntl(locale = \"en\"): PackageIntl {\n return createPackageIntl(locale, {});\n}\n\nconst RICH_TEXT_TAGS = Object.freeze({\n \"b\": renderTag(\"b\"),\n \"strong\": renderTag(\"strong\"),\n \"i\": renderTag(\"i\"),\n \"em\": renderTag(\"em\"),\n \"code\": renderTag(\"code\"),\n \"br\": renderTag(\"br\")\n});\n\nfunction formatRichMessage(\n intl: PackageIntl,\n descriptor: MessageDescriptor,\n values: Record<string, RichTextValue> | undefined,\n opts: IntlMessageFormatOptions | undefined\n): ReactNode {\n values = {\n ...RICH_TEXT_TAGS,\n ...values\n };\n\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const chunks: any = intl.formatMessage(descriptor, preprocessValues(values) as any, opts);\n const nodes = assignKeys(chunks);\n return createElement(Fragment, undefined, ...nodes);\n}\n\nfunction preprocessValues(values: Record<string, RichTextValue> | undefined) {\n if (!values) {\n return undefined;\n }\n\n const fixedValues: Record<string, RichTextValue> = {};\n for (const [key, valueOrFn] of Object.entries(values)) {\n let fixedValue = valueOrFn;\n if (typeof valueOrFn === \"function\") {\n fixedValue = (parts) => valueOrFn(assignKeys(parts));\n }\n fixedValues[key] = fixedValue;\n }\n return fixedValues;\n}\n\nfunction renderTag(tag: string): FormatXMLElementFn<ReactNode> {\n return function renderRichTag(parts) {\n return createElement(tag, undefined, ...parts);\n };\n}\n\n// Seems to be required to get rid of \"key\" warnings.\n// See https://github.com/formatjs/formatjs/pull/4895/files\n// oxlint-disable-next-line @typescript-eslint/no-explicit-any\nfunction assignKeys(chunks: any): any[] {\n const nodes = Children.map(chunks, assignKey) ?? [];\n return Children.toArray(nodes);\n}\n\nconst ANY_KEY = { key: 42 };\n\nfunction assignKey(reactNode: React.ReactNode) {\n return isValidElement(reactNode) ? createElement(Fragment, ANY_KEY, reactNode) : reactNode;\n}\n\n/** Hides missing translation errors during tests */\nconst ignoreMissingTranslationError: OnErrorFn = (err) => {\n if (err.code === IntlErrorCode.MISSING_TRANSLATION) {\n return;\n }\n\n console.error(err);\n};\n"],"names":[],"mappings":";;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AAqB;AAChD,IAAA;AAAA,EACJ;AAEA,EAAA,OAAA,CAAQ,MAAM,GAAG,CAAA;AACrB,CAAA;;;;"}
1
+ {"version":3,"file":"PackageIntl.js","sources":["PackageIntl.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n createIntl,\n createIntlCache,\n IntlConfig,\n IntlErrorCode,\n IntlFormatters,\n IntlShape,\n MessageDescriptor,\n OnErrorFn\n} from \"@formatjs/intl\";\nimport {\n type FormatXMLElementFn,\n type Options as IntlMessageFormatOptions,\n type PrimitiveType\n} from \"intl-messageformat\"; // not a dependency, this is a dependency of formatjs\nimport { Children, createElement, Fragment, isValidElement, ReactNode } from \"react\";\n\ntype BaseIntl = Pick<IntlShape, \"locale\" | \"timeZone\"> &\n Omit<IntlFormatters<string>, \"formatMessage\">;\n\n/**\n * Gives access to the package's i18n messages for the current locale.\n *\n * See also https://formatjs.io/docs/intl\n */\nexport type PackageIntl = BaseIntl & PackageIntlExtensions;\n\n/**\n * Trails specific extensions to FormatJS' intl API.\n */\nexport interface PackageIntlExtensions {\n /**\n * Formats a message with the given descriptor and values.\n *\n * This is a method directly implemented by FormatJS see\n * - [Documentation](<https://formatjs.github.io/docs/intl/#formatmessage>)\n * - {@link IntlShape.formatMessage | Base Implementation}\n *\n * The typings here make the signature a little bit stricter: only primitive values\n * are allowed for formatting.\n *\n * If you need rich text (react) formatting, see {@link PackageIntlExtensions.formatRichMessage}.\n */\n formatMessage(\n this: void,\n descriptor: MessageDescriptor,\n values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>,\n opts?: IntlMessageFormatOptions\n ): string;\n\n /**\n * Similar to `formatMessage()`, but supports _rich text formatting_.\n *\n * React nodes are supported as input values, and custom tags can be implemented as react components.\n * Note that the output is always a single react node.\n *\n * *Example with react node as value:*\n *\n * ```tsx\n * function Example() {\n * const intl = useIntl();\n * // Given i18n message \"Hello, {name}!\"\n * // replaces 'name' with the given react node:\n * const message = intl.formatRichMessage({ id: \"foo\"}, {\n * name: <FancyUserName />\n * });\n * return <Box>{message}</Box>;\n * }\n * ```\n *\n * *Example with basic formatting:*\n *\n * ```tsx\n * function Example() {\n * const intl = useIntl();\n * // Given i18n message \"Hello, <strong>{name}</strong>!\"\n * // renders with actual <strong> html node:\n * return <Box>{intl.formatRichMessage({ id: \"foo\"}, { name: \"User\" })}</Box>;\n * }\n * ```\n *\n * Note that only a few basic formatting tags are predefined (\"b\", \"strong\", \"i\", \"em\", \"code\", \"br\").\n * If you need more advanced tags, you can define your own, see below.\n *\n * *Example with custom tag:*\n *\n * ```tsx\n * function Example() {\n * const intl = useIntl();\n * // Given i18n message \"Open <foo>the door</foo>!\",\n * // renders 'foo' using the formatter function below:\n * const message = intl.formatRichMessage({ id: \"foo\"}, {\n * foo: (parts) => <FancyTag>{parts}</FancyTag>\n * });\n * return <Box>{message}</Box>;\n * }\n * ```\n */\n formatRichMessage: (\n descriptor: MessageDescriptor,\n values?: Record<string, RichTextValue>,\n opts?: IntlMessageFormatOptions\n ) => ReactNode;\n}\n\n/**\n * Value types supported when rendering rich text messages.\n * Primitive values (or single react nodes) are used for normal values.\n * Functions are used to define how tags should be rendered.\n *\n * See {@link PackageIntlExtensions.formatRichMessage}\n */\nexport type RichTextValue = PrimitiveType | ReactNode | FormatXMLElementFn<ReactNode>;\n\n/**\n * Creates a package intl instance with the given locale and messages.\n *\n * @internal\n */\nexport function createPackageIntl(\n locale: string,\n messages: Record<string, string>,\n options?: {\n /** Used during testing to suppress console messages. */\n suppressNotFoundError?: boolean;\n\n /** Also used during testing */\n defaultLocale?: string;\n }\n): PackageIntl {\n const cache = createIntlCache();\n const config: IntlConfig = {\n locale,\n messages\n };\n if (options?.suppressNotFoundError) {\n config.onError = ignoreMissingTranslationError;\n }\n if (options?.defaultLocale) {\n config.defaultLocale = options.defaultLocale;\n }\n\n const intl = createIntl(config, cache) as unknown as PackageIntl;\n intl.formatRichMessage = formatRichMessage.bind(undefined, intl);\n return intl;\n}\n\n/** Creates an empty i18n instance, e.g. for tests. */\nexport function createEmptyPackageIntl(locale = \"en\"): PackageIntl {\n return createPackageIntl(locale, {});\n}\n\nconst RICH_TEXT_TAGS = Object.freeze({\n \"b\": renderTag(\"b\"),\n \"strong\": renderTag(\"strong\"),\n \"i\": renderTag(\"i\"),\n \"em\": renderTag(\"em\"),\n \"code\": renderTag(\"code\"),\n \"br\": renderTag(\"br\")\n});\n\nfunction formatRichMessage(\n intl: PackageIntl,\n descriptor: MessageDescriptor,\n values: Record<string, RichTextValue> | undefined,\n opts: IntlMessageFormatOptions | undefined\n): ReactNode {\n values = {\n ...RICH_TEXT_TAGS,\n ...values\n };\n\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const chunks: any = intl.formatMessage(descriptor, preprocessValues(values) as any, opts);\n const nodes = assignKeys(chunks);\n return createElement(Fragment, undefined, ...nodes);\n}\n\nfunction preprocessValues(values: Record<string, RichTextValue> | undefined) {\n if (!values) {\n return undefined;\n }\n\n const fixedValues: Record<string, RichTextValue> = {};\n for (const [key, valueOrFn] of Object.entries(values)) {\n let fixedValue = valueOrFn;\n if (typeof valueOrFn === \"function\") {\n fixedValue = (parts) => valueOrFn(assignKeys(parts));\n }\n fixedValues[key] = fixedValue;\n }\n return fixedValues;\n}\n\nfunction renderTag(tag: string): FormatXMLElementFn<ReactNode> {\n return function renderRichTag(parts) {\n return createElement(tag, undefined, ...parts);\n };\n}\n\n// Seems to be required to get rid of \"key\" warnings.\n// See https://github.com/formatjs/formatjs/pull/4895/files\n// oxlint-disable-next-line @typescript-eslint/no-explicit-any\nfunction assignKeys(chunks: any): any[] {\n const nodes = Children.map(chunks, assignKey) ?? [];\n return Children.toArray(nodes);\n}\n\nconst ANY_KEY = { key: 42 };\n\nfunction assignKey(reactNode: React.ReactNode) {\n return isValidElement(reactNode) ? createElement(Fragment, ANY_KEY, reactNode) : reactNode;\n}\n\n/** Hides missing translation errors during tests */\nconst ignoreMissingTranslationError: OnErrorFn = (err) => {\n if (err.code === IntlErrorCode.MISSING_TRANSLATION) {\n return;\n }\n\n // oxlint-disable-next-line no-console\n console.error(err);\n};\n"],"names":[],"mappings":";;;AA0HO,SAAS,iBAAA,CACZ,MAAA,EACA,QAAA,EACA,OAAA,EAOW;AACX,EAAA,MAAM,QAAQ,eAAA,EAAgB;AAC9B,EAAA,MAAM,MAAA,GAAqB;AAAA,IACvB,MAAA;AAAA,IACA;AAAA,GACJ;AACA,EAAA,IAAI,SAAS,qBAAA,EAAuB;AAChC,IAAA,MAAA,CAAO,OAAA,GAAU,6BAAA;AAAA,EACrB;AACA,EAAA,IAAI,SAAS,aAAA,EAAe;AACxB,IAAA,MAAA,CAAO,gBAAgB,OAAA,CAAQ,aAAA;AAAA,EACnC;AAEA,EAAA,MAAM,IAAA,GAAO,UAAA,CAAW,MAAA,EAAQ,KAAK,CAAA;AACrC,EAAA,IAAA,CAAK,iBAAA,GAAoB,iBAAA,CAAkB,IAAA,CAAK,MAAA,EAAW,IAAI,CAAA;AAC/D,EAAA,OAAO,IAAA;AACX;AAGO,SAAS,sBAAA,CAAuB,SAAS,IAAA,EAAmB;AAC/D,EAAA,OAAO,iBAAA,CAAkB,MAAA,EAAQ,EAAE,CAAA;AACvC;AAEA,MAAM,cAAA,GAAiB,OAAO,MAAA,CAAO;AAAA,EACjC,GAAA,EAAK,UAAU,GAAG,CAAA;AAAA,EAClB,QAAA,EAAU,UAAU,QAAQ,CAAA;AAAA,EAC5B,GAAA,EAAK,UAAU,GAAG,CAAA;AAAA,EAClB,IAAA,EAAM,UAAU,IAAI,CAAA;AAAA,EACpB,MAAA,EAAQ,UAAU,MAAM,CAAA;AAAA,EACxB,IAAA,EAAM,UAAU,IAAI;AACxB,CAAC,CAAA;AAED,SAAS,iBAAA,CACL,IAAA,EACA,UAAA,EACA,MAAA,EACA,IAAA,EACS;AACT,EAAA,MAAA,GAAS;AAAA,IACL,GAAG,cAAA;AAA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EAAS,SAAS,CAAA,GAAI,SAAA;AACrF;AAGA,MAAM,6BAAA,GAA2C,CAAC,GAAA,KAAQ;AACtD,EAAA,IAAI,GAAA,CAAI,IAAA,KAAS,aAAA,CAAc,mBAAA,EAAqB;AAChD,IAAA;AAAA,EACJ;AAGA,EAAA,OAAA,CAAQ,MAAM,GAAG,CAAA;AACrB,CAAA;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/runtime",
4
- "version": "4.7.0",
4
+ "version": "4.7.1-dev-test-snapshot-123.20260821142246",
5
5
  "description": "Implements the runtime environment for Open Pioneer Trails apps.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -18,13 +18,17 @@
18
18
  "@conterra/reactivity-core": "^0.8.6",
19
19
  "@emotion/cache": "^11.14.0",
20
20
  "@emotion/react": "^11.14.0",
21
- "@formatjs/intl": "^4.1.17",
21
+ "@formatjs/intl": "^4.1.18",
22
22
  "@formatjs/intl-localematcher": "^0.8.13",
23
23
  "react": "^19.2.8",
24
24
  "react-dom": "^19.2.8",
25
- "@open-pioneer/base-theme": "4.7.0",
26
- "@open-pioneer/core": "4.7.0",
27
- "@open-pioneer/reactivity": "4.7.0"
25
+ "@open-pioneer/base-theme": "4.7.1-dev-test-snapshot-123.20260821142246",
26
+ "@open-pioneer/reactivity": "4.7.1-dev-test-snapshot-123.20260821142246",
27
+ "@open-pioneer/core": "4.7.1-dev-test-snapshot-123.20260821142246"
28
+ },
29
+ "publishConfig": {
30
+ "directory": "dist",
31
+ "linkDirectory": false
28
32
  },
29
33
  "exports": {
30
34
  "./package.json": "./package.json",