@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 +179 -173
- package/CustomElement.js +1 -1
- package/_virtual/source-info.js +10 -8
- package/_virtual/source-info.js.map +1 -1
- package/app/AppInstance.js +1 -1
- package/app/logErrors.js +6 -4
- package/app/logErrors.js.map +1 -1
- package/i18n/PackageIntl.js.map +1 -1
- package/package.json +9 -5
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
```ts
|
|
144
|
+
const ctx: ApplicationContext = ...; // injected
|
|
145
|
+
const shadowRoot = ctx.getShadowRoot(); // ShadowRoot | undefined
|
|
146
|
+
```
|
|
141
147
|
|
|
142
|
-
|
|
148
|
+
- New method on the `ApplicationContext` that returns _either_ the `ShadowRoot` _or_ the `Document` (if the shadow root is disabled):
|
|
143
149
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
228
|
+
- React 19
|
|
229
|
+
- Vite 6
|
|
230
|
+
- FormatJS 3
|
|
231
|
+
- Open Pioneer Build Tools
|
|
232
|
+
- ...
|
|
227
233
|
|
|
228
|
-
|
|
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
|
-
|
|
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
|
-
|
|
286
|
+
Example:
|
|
281
287
|
|
|
282
|
-
|
|
283
|
-
|
|
288
|
+
```ts
|
|
289
|
+
import { ApplicationContext } from "@open-pioneer/runtime";
|
|
284
290
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
291
|
+
const appCtx: ApplicationContext = ...; // injected
|
|
292
|
+
appCtx.setLocale("en-US");
|
|
293
|
+
```
|
|
288
294
|
|
|
289
|
-
|
|
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
|
-
|
|
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
|
-
|
|
320
|
-
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
328
|
+
```ts
|
|
329
|
+
// Exported from package
|
|
330
|
+
interface MyService extends DeclaredService<"my-package.SomeInterface"> {
|
|
331
|
+
method(): void;
|
|
332
|
+
}
|
|
327
333
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
|
|
337
|
-
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
352
|
+
From now on, you can write this instead:
|
|
347
353
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|
-
|
|
379
|
-
|
|
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
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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
|
-
|
|
392
|
-
|
|
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
|
-
|
|
395
|
-
|
|
400
|
+
```diff
|
|
401
|
+
+ import { DeclaredService } from "@open-pioneer/runtime";
|
|
396
402
|
|
|
397
|
-
|
|
398
|
-
|
|
403
|
+
- export interface HttpService {
|
|
404
|
+
+ export interface HttpService extends DeclaredService<"http.HttpService"> {
|
|
399
405
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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
|
-
|
|
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
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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$
|
|
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
|
|
package/_virtual/source-info.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
const sourceId$
|
|
1
|
+
const sourceId$7 = "@open-pioneer/runtime/CustomElement";
|
|
2
2
|
|
|
3
|
-
const sourceId$
|
|
3
|
+
const sourceId$6 = "@open-pioneer/runtime/app/AppInstance";
|
|
4
4
|
|
|
5
|
-
const sourceId$
|
|
5
|
+
const sourceId$5 = "@open-pioneer/runtime/i18n/AppIntl";
|
|
6
6
|
|
|
7
|
-
const sourceId$
|
|
7
|
+
const sourceId$4 = "@open-pioneer/runtime/builtin-services/ApplicationContextImpl";
|
|
8
8
|
|
|
9
|
-
const sourceId$
|
|
9
|
+
const sourceId$3 = "@open-pioneer/runtime/builtin-services/ApplicationLifecycleEventService";
|
|
10
10
|
|
|
11
|
-
const sourceId$
|
|
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
|
-
|
|
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":";;;;;;;;;;;;;;;;;;"}
|
package/app/AppInstance.js
CHANGED
|
@@ -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$
|
|
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
|
-
|
|
9
|
+
LOG.error(e);
|
|
8
10
|
return;
|
|
9
11
|
}
|
|
10
12
|
let n = 1;
|
|
11
13
|
for (const error of chain) {
|
|
12
|
-
|
|
14
|
+
LOG.error(`#${n}`, error);
|
|
13
15
|
++n;
|
|
14
16
|
}
|
|
15
17
|
} else {
|
|
16
|
-
|
|
18
|
+
LOG.error("Unexpected error", e);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
|
package/app/logErrors.js.map
CHANGED
|
@@ -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
|
|
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;;;;"}
|
package/i18n/PackageIntl.js.map
CHANGED
|
@@ -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":";;;AA0HO,SAAS,iBAAA,CACZ,MAAA,EACA,QAAA,EACA,OAAA,EAOW;AACX,EAAA,MAAM,QAAQ,eAAA,EAAgB;AAC9B,EAAA,MAAM,MAAA,GAAqB;A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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,QAA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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.
|
|
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.
|
|
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.
|
|
26
|
-
"@open-pioneer/
|
|
27
|
-
"@open-pioneer/
|
|
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",
|