@3dsource/angular-unreal-module 0.0.64 → 0.0.66

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/README.md CHANGED
@@ -15,8 +15,8 @@ This package provides:
15
15
 
16
16
  ### Prerequisites
17
17
 
18
- - Angular 19+
19
- - NgRx store and effects
18
+ - Angular 18+
19
+ - NgRx store and effects (v18+)
20
20
 
21
21
  ### Peer Dependencies
22
22
 
@@ -25,14 +25,14 @@ This library requires the following peer dependencies (match or exceed versions)
25
25
  ```json
26
26
  {
27
27
  "@3dsource/source-ui-native": ">=1.0.9",
28
- "@3dsource/types-unreal": ">=0.0.5",
28
+ "@3dsource/types-unreal": ">=0.0.7",
29
29
  "@3dsource/utils": ">=1.0.21",
30
- "@angular/cdk": ">=19.0.0",
31
- "@angular/common": ">=19.0.0",
32
- "@angular/core": ">=19.0.0",
33
- "@angular/forms": ">=19.0.0",
34
- "@ngrx/effects": ">=19.0.0",
35
- "@ngrx/store": ">=19.0.0"
30
+ "@angular/cdk": ">=18.0.0",
31
+ "@angular/common": ">=18.0.0",
32
+ "@angular/core": ">=18.0.0",
33
+ "@angular/forms": ">=18.0.0",
34
+ "@ngrx/effects": ">=18.0.0",
35
+ "@ngrx/store": ">=18.0.0"
36
36
  }
37
37
  ```
38
38
 
@@ -65,7 +65,8 @@ export const appConfig: ApplicationConfig = {
65
65
  provideEffects(),
66
66
 
67
67
  // Unreal providers (adds feature state and effects internally)
68
- ...provideAngularUnrealModule(),
68
+ // Tip: pass { playwright: true } to switch to testing/dummy services
69
+ ...provideAngularUnrealModule({ playwright: false }),
69
70
 
70
71
  // Optional initial config
71
72
  {
@@ -76,6 +77,7 @@ export const appConfig: ApplicationConfig = {
76
77
  // regionsPingUrl?: string,
77
78
  // screenLockerContainerId?: string,
78
79
  // dataChannelConnectionTimeout?: number,
80
+ // playwright?: boolean, // mirrors the provider flag; can be used by services/effects
79
81
  },
80
82
  },
81
83
  ],
@@ -117,16 +119,16 @@ Outputs:
117
119
 
118
120
  ### 3) Send commands / interactions to Unreal
119
121
 
120
- Use UnrealCommunicatorPlaywrightService to send commands or UI interactions. Types for command packets are provided by @3dsource/types-unreal.
122
+ Inject `UnrealCommunicatorService` to send commands or UI interactions. Types for command packets are provided by `@3dsource/types-unreal`.
121
123
 
122
124
  ```ts
123
125
  import { Component, inject } from '@angular/core';
124
- import { UnrealCommunicatorPlaywrightService } from '@3dsource/angular-unreal-module';
126
+ import { UnrealCommunicatorService } from '@3dsource/angular-unreal-module';
125
127
  import type { MetaBoxCommandPacket } from '@3dsource/types-unreal';
126
128
 
127
129
  @Component({ standalone: true, template: '' })
128
130
  export class MyComponent {
129
- private unreal = inject(UnrealCommunicatorPlaywrightService);
131
+ private unreal = inject(UnrealCommunicatorService);
130
132
 
131
133
  sendSomeCommand() {
132
134
  const packet: MetaBoxCommandPacket = {
@@ -148,7 +150,7 @@ export class MyComponent {
148
150
  ## Features
149
151
 
150
152
  - Standalone Unreal Scene Component
151
- - Command and UI Interaction API via UnrealCommunicatorPlaywrightService
153
+ - Command and UI Interaction API via UnrealCommunicatorService
152
154
  - Event-driven status UI (freeze frame, video stats, play overlay)
153
155
  - NgRx-powered state management and effects
154
156
  - Optional initial configuration via UNREAL_CONFIG token
@@ -160,3 +162,8 @@ Check the demo application for complete usage examples:
160
162
  ```shell
161
163
  npm run demo:start
162
164
  ```
165
+
166
+ ## Engine requirements
167
+
168
+ - Node.js: >=20
169
+ - npm: >9