@thatopen/services 0.3.9 → 0.3.10

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/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "access": "public"
16
16
  },
17
17
  "private": false,
18
- "version": "0.3.9",
18
+ "version": "0.3.10",
19
19
  "main": "dist/index.cjs.js",
20
20
  "module": "dist/index.es.js",
21
21
  "types": "dist/index.d.ts",
@@ -192,7 +192,7 @@ const apiUrl = params.get("apiUrl");
192
192
  const projectId = params.get("projectId");
193
193
 
194
194
  if (accessToken && apiUrl && projectId) {
195
- const { EngineServicesClient } = await import("thatopen-services");
195
+ const { EngineServicesClient } = await import("@thatopen/services");
196
196
  const client = new EngineServicesClient(accessToken, apiUrl);
197
197
  cde.ctx = { client, projectId };
198
198
 
@@ -235,7 +235,7 @@ const apiUrl = params.get("apiUrl");
235
235
  const projectId = params.get("projectId");
236
236
 
237
237
  if (accessToken && apiUrl && projectId) {
238
- const { EngineServicesClient } = await import("thatopen-services");
238
+ const { EngineServicesClient } = await import("@thatopen/services");
239
239
  const client = new EngineServicesClient(accessToken, apiUrl);
240
240
  // Replace the mock context with the real one.
241
241
  cde.ctx = { client, projectId };
@@ -28,10 +28,8 @@ import * as OBC from "@thatopen/components";
28
28
  import * as OBF from "@thatopen/components-front";
29
29
  import * as FRAGS from "@thatopen/fragments";
30
30
  import * as BUI from "@thatopen/ui";
31
- import { PlatformClient } from "thatopen-services";
32
- import clashesManagerDef from "./index";
31
+ import { PlatformClient, ClashesManager } from "@thatopen/services";
33
32
 
34
- const ClashesManager = clashesManagerDef.componentDefinition;
35
33
 
36
34
  const client = PlatformClient.fromPlatformContext();
37
35
 
@@ -27,11 +27,9 @@ import * as OBC from "@thatopen/components";
27
27
  import * as OBF from "@thatopen/components-front";
28
28
  import * as FRAGS from "@thatopen/fragments";
29
29
  import * as BUI from "@thatopen/ui";
30
- import { PlatformClient } from "thatopen-services";
31
- import uiManagerDef from "../../index";
30
+ import { PlatformClient, UIManager } from "@thatopen/services";
32
31
  import type { App } from "./index";
33
32
 
34
- const UIManager = uiManagerDef.componentDefinition;
35
33
 
36
34
  const client = PlatformClient.fromPlatformContext();
37
35
 
@@ -29,8 +29,7 @@ import * as OBC from "@thatopen/components";
29
29
  import * as OBF from "@thatopen/components-front";
30
30
  import * as FRAGS from "@thatopen/fragments";
31
31
  import * as BUI from "@thatopen/ui";
32
- import { PlatformClient } from "thatopen-services";
33
- import uiManagerDef from "../../../../index";
32
+ import { PlatformClient, UIManager } from "@thatopen/services";
34
33
  import {
35
34
  appStateContext,
36
35
  AppState,
@@ -93,7 +92,6 @@ class ResultCounter extends LitElement {
93
92
 
94
93
  // ---- app wiring ----
95
94
 
96
- const UIManager = uiManagerDef.componentDefinition;
97
95
  const client = PlatformClient.fromPlatformContext();
98
96
  const { components } = (await client.setup(
99
97
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -28,8 +28,7 @@ import * as OBC from "@thatopen/components";
28
28
  import * as OBF from "@thatopen/components-front";
29
29
  import * as FRAGS from "@thatopen/fragments";
30
30
  import * as BUI from "@thatopen/ui";
31
- import { PlatformClient } from "thatopen-services";
32
- import uiManagerDef from "../../../../index";
31
+ import { PlatformClient, UIManager } from "@thatopen/services";
33
32
  import type { App } from "../../index";
34
33
 
35
34
  // A child component that controls a banner without holding a reference to top-app.
@@ -116,7 +115,6 @@ class BannerController extends LitElement {
116
115
 
117
116
  // ---- app wiring ----
118
117
 
119
- const UIManager = uiManagerDef.componentDefinition;
120
118
  const client = PlatformClient.fromPlatformContext();
121
119
  const { components } = (await client.setup(
122
120
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -27,8 +27,7 @@ import * as OBC from "@thatopen/components";
27
27
  import * as OBF from "@thatopen/components-front";
28
28
  import * as FRAGS from "@thatopen/fragments";
29
29
  import * as BUI from "@thatopen/ui";
30
- import { PlatformClient, ProjectData } from "thatopen-services";
31
- import uiManagerDef from "../../../../index";
30
+ import { PlatformClient, ProjectData, UIManager } from "@thatopen/services";
32
31
  import {
33
32
  componentsContext,
34
33
  clientContext,
@@ -78,7 +77,6 @@ class ProjectInfoPanel extends LitElement {
78
77
 
79
78
  // ---- app wiring ----
80
79
 
81
- const UIManager = uiManagerDef.componentDefinition;
82
80
  const client = PlatformClient.fromPlatformContext();
83
81
  const { components } = (await client.setup(
84
82
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -30,11 +30,9 @@ import * as OBC from "@thatopen/components";
30
30
  import * as OBF from "@thatopen/components-front";
31
31
  import * as FRAGS from "@thatopen/fragments";
32
32
  import * as BUI from "@thatopen/ui";
33
- import { PlatformClient } from "thatopen-services";
34
- import uiManagerDef from "../../../../index";
33
+ import { PlatformClient, UIManager } from "@thatopen/services";
35
34
  import type { App, AppReadyEvent } from "../../index";
36
35
 
37
- const UIManager = uiManagerDef.componentDefinition;
38
36
  const client = PlatformClient.fromPlatformContext();
39
37
  const { components } = (await client.setup(
40
38
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -26,11 +26,9 @@ import * as OBC from "@thatopen/components";
26
26
  import * as OBF from "@thatopen/components-front";
27
27
  import * as FRAGS from "@thatopen/fragments";
28
28
  import * as BUI from "@thatopen/ui";
29
- import { PlatformClient } from "thatopen-services";
30
- import uiManagerDef from "../../../../index";
29
+ import { PlatformClient, UIManager } from "@thatopen/services";
31
30
  import type { App } from "../../index";
32
31
 
33
- const UIManager = uiManagerDef.componentDefinition;
34
32
  const client = PlatformClient.fromPlatformContext();
35
33
  const { components } = (await client.setup(
36
34
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -27,8 +27,7 @@ import * as OBC from "@thatopen/components";
27
27
  import * as OBF from "@thatopen/components-front";
28
28
  import * as FRAGS from "@thatopen/fragments";
29
29
  import * as BUI from "@thatopen/ui";
30
- import { PlatformClient } from "thatopen-services";
31
- import uiManagerDef from "../../../../index";
30
+ import { PlatformClient, UIManager } from "@thatopen/services";
32
31
  import type { App } from "../../index";
33
32
 
34
33
  // A child component that triggers modals without holding a reference to top-app.
@@ -120,7 +119,6 @@ class ModalActions extends LitElement {
120
119
 
121
120
  // ---- app wiring ----
122
121
 
123
- const UIManager = uiManagerDef.componentDefinition;
124
122
  const client = PlatformClient.fromPlatformContext();
125
123
  const { components } = (await client.setup(
126
124
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -26,8 +26,7 @@ import * as OBC from "@thatopen/components";
26
26
  import * as OBF from "@thatopen/components-front";
27
27
  import * as FRAGS from "@thatopen/fragments";
28
28
  import * as BUI from "@thatopen/ui";
29
- import { PlatformClient } from "thatopen-services";
30
- import uiManagerDef from "../../../../index";
29
+ import { PlatformClient, UIManager } from "@thatopen/services";
31
30
  import type { App, AppReadyEvent } from "../../index";
32
31
 
33
32
  // A child component that dispatches top:notification to surface messages
@@ -83,7 +82,6 @@ class StatusReporter extends LitElement {
83
82
 
84
83
  // ---- app wiring ----
85
84
 
86
- const UIManager = uiManagerDef.componentDefinition;
87
85
  const client = PlatformClient.fromPlatformContext();
88
86
  const { components } = (await client.setup(
89
87
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -24,11 +24,9 @@ import * as OBC from "@thatopen/components";
24
24
  import * as OBF from "@thatopen/components-front";
25
25
  import * as FRAGS from "@thatopen/fragments";
26
26
  import * as BUI from "@thatopen/ui";
27
- import { PlatformClient } from "thatopen-services";
28
- import uiManagerDef from "../../../../index";
27
+ import { PlatformClient, UIManager } from "@thatopen/services";
29
28
  import type { App } from "../../index";
30
29
 
31
- const UIManager = uiManagerDef.componentDefinition;
32
30
  const client = PlatformClient.fromPlatformContext();
33
31
  const { components } = (await client.setup(
34
32
  { OBC, OBF, BUI, THREE, FRAGS },
@@ -26,13 +26,9 @@ import * as OBC from "@thatopen/components";
26
26
  import * as OBF from "@thatopen/components-front";
27
27
  import * as FRAGS from "@thatopen/fragments";
28
28
  import * as BUI from "@thatopen/ui";
29
- import { PlatformClient } from "thatopen-services";
30
- import uiManagerDef from "../../../index";
31
- import clashesManagerDef from "../../../ClashesManager/index";
29
+ import { PlatformClient, UIManager, ClashesManager } from "@thatopen/services";
32
30
  import type { App } from "../app/index";
33
31
 
34
- const UIManager = uiManagerDef.componentDefinition;
35
- const ClashesManager = clashesManagerDef.componentDefinition;
36
32
 
37
33
  /* MD
38
34
  ### ✅ Prerequisites
@@ -14,12 +14,10 @@ import * as OBC from "@thatopen/components";
14
14
  import * as OBF from "@thatopen/components-front";
15
15
  import * as FRAGS from "@thatopen/fragments";
16
16
  import * as BUI from "@thatopen/ui";
17
- import { PlatformClient } from "thatopen-services";
18
- import uiManagerDef from "../../index";
17
+ import { PlatformClient, UIManager } from "@thatopen/services";
19
18
  import type { App } from "../app/index";
20
19
  import type { ModelsList } from "./index";
21
20
 
22
- const UIManager = uiManagerDef.componentDefinition;
23
21
 
24
22
  const client = PlatformClient.fromPlatformContext();
25
23