@operato/scene-restful 10.0.0-beta.30 → 10.0.0-beta.68

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.
Files changed (2) hide show
  1. package/dist/restful.d.ts +16 -2
  2. package/package.json +3 -8
package/dist/restful.d.ts CHANGED
@@ -23,6 +23,8 @@ declare const Restful_base: (new (...args: any[]) => {
23
23
  added(parent: any): void;
24
24
  removed(parent: any): void;
25
25
  ready(): Promise<void>;
26
+ _readyInvoked: boolean;
27
+ invokeReady(): void | Promise<void>;
26
28
  touch(): void;
27
29
  clearCache(...attrs: any[]): void;
28
30
  removeSelf(completely: any): void;
@@ -51,6 +53,7 @@ declare const Restful_base: (new (...args: any[]) => {
51
53
  setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
52
54
  get model(): any;
53
55
  get state(): import("@hatiolab/things-scene").State;
56
+ get refid(): any;
54
57
  get hierarchy(): any;
55
58
  get volatile(): never[];
56
59
  _applyProps(target: any, props: any, options: any): any;
@@ -147,7 +150,7 @@ declare const Restful_base: (new (...args: any[]) => {
147
150
  findAll(s: string | ((c: import("@hatiolab/things-scene").Component) => boolean), ...others: any[]): any[] | undefined;
148
151
  capture(x: number, y: number, except?: (c: import("@hatiolab/things-scene").Component) => boolean): any;
149
152
  findAnchor(name: string): any;
150
- isDescendible(container: import("@hatiolab/things-scene").Component): boolean;
153
+ isDescendible(container: import("@hatiolab/things-scene").Component | any): boolean;
151
154
  getContext(component?: unknown): any;
152
155
  get root(): import("@hatiolab/things-scene").Component;
153
156
  get rootModel(): import("@hatiolab/things-scene").Component;
@@ -192,9 +195,13 @@ declare const Restful_base: (new (...args: any[]) => {
192
195
  toLocal(x: number, y: number, top?: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
193
196
  toGlobal(x: number, y: number, top?: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
194
197
  toOther(x: number, y: number, target: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
198
+ on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
195
199
  on(name: string | object, callback: Function, context?: any): any;
200
+ off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
196
201
  off(name?: string | object, callback?: Function, context?: any): any;
202
+ once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
197
203
  once(name: string | object, callback: Function, context?: any): any;
204
+ trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
198
205
  trigger(name: string, ...args: any[]): any;
199
206
  delegate_on(delegator: any): any;
200
207
  delegate_off(delegator: any): any;
@@ -266,6 +273,8 @@ declare const Restful_base: (new (...args: any[]) => {
266
273
  added(parent: any): void;
267
274
  removed(parent: any): void;
268
275
  ready(): Promise<void>;
276
+ _readyInvoked: boolean;
277
+ invokeReady(): void | Promise<void>;
269
278
  touch(): void;
270
279
  clearCache(...attrs: any[]): void;
271
280
  removeSelf(completely: any): void;
@@ -294,6 +303,7 @@ declare const Restful_base: (new (...args: any[]) => {
294
303
  setState(props: Partial<import("@hatiolab/things-scene").State> | string, propval?: any): any;
295
304
  get model(): any;
296
305
  get state(): import("@hatiolab/things-scene").State;
306
+ get refid(): any;
297
307
  get hierarchy(): any;
298
308
  get volatile(): never[];
299
309
  _applyProps(target: any, props: any, options: any): any;
@@ -384,7 +394,7 @@ declare const Restful_base: (new (...args: any[]) => {
384
394
  findAll(s: string | ((c: import("@hatiolab/things-scene").Component) => boolean), ...others: any[]): any[] | undefined;
385
395
  capture(x: number, y: number, except?: (c: import("@hatiolab/things-scene").Component) => boolean): any;
386
396
  findAnchor(name: string): any;
387
- isDescendible(container: import("@hatiolab/things-scene").Component): boolean;
397
+ isDescendible(container: import("@hatiolab/things-scene").Component | any): boolean;
388
398
  getContext(component?: unknown): any;
389
399
  get root(): import("@hatiolab/things-scene").Component;
390
400
  get rootModel(): import("@hatiolab/things-scene").Component;
@@ -428,9 +438,13 @@ declare const Restful_base: (new (...args: any[]) => {
428
438
  toLocal(x: number, y: number, top?: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
429
439
  toGlobal(x: number, y: number, top?: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
430
440
  toOther(x: number, y: number, target: import("@hatiolab/things-scene").Component): import("@hatiolab/things-scene").POINT;
441
+ on<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
431
442
  on(name: string | object, callback: Function, context?: any): any;
443
+ off<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback?: ((...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void) | undefined, context?: any): any;
432
444
  off(name?: string | object, callback?: Function, context?: any): any;
445
+ once<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, callback: (...args: import("@hatiolab/things-scene").ComponentEventMap[K]) => void, context?: any): any;
433
446
  once(name: string | object, callback: Function, context?: any): any;
447
+ trigger<K extends keyof import("@hatiolab/things-scene").ComponentEventMap>(name: K, ...args: import("@hatiolab/things-scene").ComponentEventMap[K]): any;
434
448
  trigger(name: string, ...args: any[]): any;
435
449
  delegate_on(delegator: any): any;
436
450
  delegate_off(delegator: any): any;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/scene-restful",
3
3
  "description": "Restful Client Component for Things Scene",
4
4
  "author": "heartyoh",
5
- "version": "10.0.0-beta.30",
5
+ "version": "10.0.0-beta.68",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
@@ -18,22 +18,17 @@
18
18
  "directory": "packages/restful"
19
19
  },
20
20
  "scripts": {
21
- "serve": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"things-factory-dev\"",
22
- "serve:dev": "npm run serve",
23
21
  "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
24
22
  "build": "tsc",
25
23
  "prepublishOnly": "tsc",
26
24
  "lint": "eslint src/ && prettier \"src/**/*.ts\" --check",
27
- "format": "eslint src/ --fix && prettier \"src/**/*.ts\" --write",
28
- "migration": "things-factory-migration"
25
+ "format": "eslint src/ --fix && prettier \"src/**/*.ts\" --write"
29
26
  },
30
27
  "dependencies": {
31
28
  "@hatiolab/things-scene": "^10.0.0-beta.1"
32
29
  },
33
30
  "devDependencies": {
34
31
  "@hatiolab/prettier-config": "^1.0.0",
35
- "@things-factory/builder": "^10.0.0-beta.1",
36
- "@things-factory/operato-board": "^10.0.0-beta.1",
37
32
  "@typescript-eslint/eslint-plugin": "^8.0.0",
38
33
  "@typescript-eslint/parser": "^8.0.0",
39
34
  "@web/dev-server": "^0.1.28",
@@ -58,5 +53,5 @@
58
53
  "prettier --write"
59
54
  ]
60
55
  },
61
- "gitHead": "06b35b1726ec4f27ee76657ce341c6c6f3ba1b3a"
56
+ "gitHead": "fce8d69d7bb8af85cfb2e2507a8eee14130d36d7"
62
57
  }