@procore/bim-webviewer-sdk 17.0.0-4d-scheduling-hackathon.0 → 17.0.0-ai-hackthon.0

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.
@@ -1,5 +1,323 @@
1
1
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2
2
 
3
+ /**
4
+ * @license
5
+ * Copyright 2021 Google LLC. All Rights Reserved.
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ * =============================================================================
18
+ */
19
+
20
+ /**
21
+ * @license
22
+ * Copyright 2017 Google LLC. All Rights Reserved.
23
+ * Licensed under the Apache License, Version 2.0 (the "License");
24
+ * you may not use this file except in compliance with the License.
25
+ * You may obtain a copy of the License at
26
+ *
27
+ * http://www.apache.org/licenses/LICENSE-2.0
28
+ *
29
+ * Unless required by applicable law or agreed to in writing, software
30
+ * distributed under the License is distributed on an "AS IS" BASIS,
31
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
+ * See the License for the specific language governing permissions and
33
+ * limitations under the License.
34
+ * =============================================================================
35
+ */
36
+
37
+ /**
38
+ * @license
39
+ * Copyright 2018 Google LLC
40
+ *
41
+ * Use of this source code is governed by an MIT-style
42
+ * license that can be found in the LICENSE file or at
43
+ * https://opensource.org/licenses/MIT.
44
+ * =============================================================================
45
+ */
46
+
47
+ /**
48
+ * @license
49
+ * Copyright 2018 Google LLC. All Rights Reserved.
50
+ * Licensed under the Apache License, Version 2.0 (the "License");
51
+ * you may not use this file except in compliance with the License.
52
+ * You may obtain a copy of the License at
53
+ *
54
+ * http://www.apache.org/licenses/LICENSE-2.0
55
+ *
56
+ * Unless required by applicable law or agreed to in writing, software
57
+ * distributed under the License is distributed on an "AS IS" BASIS,
58
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
+ * See the License for the specific language governing permissions and
60
+ * limitations under the License.
61
+ *
62
+ * =============================================================================
63
+ */
64
+
65
+ /**
66
+ * @license
67
+ * Copyright 2018 Google LLC. All Rights Reserved.
68
+ * Licensed under the Apache License, Version 2.0 (the "License");
69
+ * you may not use this file except in compliance with the License.
70
+ * You may obtain a copy of the License at
71
+ *
72
+ * http://www.apache.org/licenses/LICENSE-2.0
73
+ *
74
+ * Unless required by applicable law or agreed to in writing, software
75
+ * distributed under the License is distributed on an "AS IS" BASIS,
76
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77
+ * See the License for the specific language governing permissions and
78
+ * limitations under the License.
79
+ * =============================================================================
80
+ */
81
+
82
+ /**
83
+ * @license
84
+ * Copyright 2019 Google LLC
85
+ *
86
+ * Use of this source code is governed by an MIT-style
87
+ * license that can be found in the LICENSE file or at
88
+ * https://opensource.org/licenses/MIT.
89
+ * =============================================================================
90
+ */
91
+
92
+ /**
93
+ * @license
94
+ * Copyright 2019 Google LLC. All Rights Reserved.
95
+ * Licensed under the Apache License, Version 2.0 (the "License");
96
+ * you may not use this file except in compliance with the License.
97
+ * You may obtain a copy of the License at
98
+ *
99
+ * http://www.apache.org/licenses/LICENSE-2.0
100
+ *
101
+ * Unless required by applicable law or agreed to in writing, software
102
+ * distributed under the License is distributed on an "AS IS" BASIS,
103
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
+ * See the License for the specific language governing permissions and
105
+ * limitations under the License.
106
+ * =============================================================================
107
+ */
108
+
109
+ /**
110
+ * @license
111
+ * Copyright 2020 Google Inc. All Rights Reserved.
112
+ * Licensed under the Apache License, Version 2.0 (the "License");
113
+ * you may not use this file except in compliance with the License.
114
+ * You may obtain a copy of the License at
115
+ *
116
+ * http://www.apache.org/licenses/LICENSE-2.0
117
+ *
118
+ * Unless required by applicable law or agreed to in writing, software
119
+ * distributed under the License is distributed on an "AS IS" BASIS,
120
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121
+ * See the License for the specific language governing permissions and
122
+ * limitations under the License.
123
+ * =============================================================================
124
+ */
125
+
126
+ /**
127
+ * @license
128
+ * Copyright 2020 Google LLC
129
+ *
130
+ * Use of this source code is governed by an MIT-style
131
+ * license that can be found in the LICENSE file or at
132
+ * https://opensource.org/licenses/MIT.
133
+ * =============================================================================
134
+ */
135
+
136
+ /**
137
+ * @license
138
+ * Copyright 2020 Google LLC. All Rights Reserved.
139
+ * Licensed under the Apache License, Version 2.0 (the "License");
140
+ * you may not use this file except in compliance with the License.
141
+ * You may obtain a copy of the License at
142
+ *
143
+ * http://www.apache.org/licenses/LICENSE-2.0
144
+ *
145
+ * Unless required by applicable law or agreed to in writing, software
146
+ * distributed under the License is distributed on an "AS IS" BASIS,
147
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
148
+ * See the License for the specific language governing permissions and
149
+ * limitations under the License.
150
+ * =============================================================================
151
+ */
152
+
153
+ /**
154
+ * @license
155
+ * Copyright 2020 Google LLC. All Rights Reserved.
156
+ * Licensed under the Apache License, Version 2.0 (the License);
157
+ * you may not use this file except in compliance with the License.
158
+ * You may obtain a copy of the License at
159
+ *
160
+ * http://www.apache.org/licenses/LICENSE-2.0
161
+ *
162
+ * Unless required by applicable law or agreed to in writing, software
163
+ * distributed under the License is distributed on an AS IS BASIS,
164
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
165
+ * See the License for the specific language governing permissions and
166
+ * limitations under the License.
167
+ * =============================================================================
168
+ */
169
+
170
+ /**
171
+ * @license
172
+ * Copyright 2021 Google LLC. All Rights Reserved.
173
+ * Licensed under the Apache License, Version 2.0 (the "License");
174
+ * you may not use this file except in compliance with the License.
175
+ * You may obtain a copy of the License at
176
+ *
177
+ * http://www.apache.org/licenses/LICENSE-2.0
178
+ *
179
+ * Unless required by applicable law or agreed to in writing, software
180
+ * distributed under the License is distributed on an "AS IS" BASIS,
181
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
182
+ * See the License for the specific language governing permissions and
183
+ * limitations under the License.
184
+ * =============================================================================
185
+ */
186
+
187
+ /**
188
+ * @license
189
+ * Copyright 2021 Google LLC. All Rights Reserved.
190
+ * Licensed under the Apache License, Version 2.0 (the "License");
191
+ * you may not use this file except in compliance with the License.
192
+ * You may obtain a copy of the License at
193
+ *
194
+ * https://www.apache.org/licenses/LICENSE-2.0
195
+ *
196
+ * Unless required by applicable law or agreed to in writing, software
197
+ * distributed under the License is distributed on an "AS IS" BASIS,
198
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ * See the License for the specific language governing permissions and
200
+ * limitations under the License.
201
+ * =============================================================================
202
+ */
203
+
204
+ /**
205
+ * @license
206
+ * Copyright 2022 CodeSmith LLC
207
+ *
208
+ * Use of this source code is governed by an MIT-style
209
+ * license that can be found in the LICENSE file or at
210
+ * https://opensource.org/licenses/MIT.
211
+ * =============================================================================
212
+ */
213
+
214
+ /**
215
+ * @license
216
+ * Copyright 2022 Google Inc. All Rights Reserved.
217
+ * Licensed under the Apache License, Version 2.0 (the "License");
218
+ * you may not use this file except in compliance with the License.
219
+ * You may obtain a copy of the License at
220
+ *
221
+ * http://www.apache.org/licenses/LICENSE-2.0
222
+ *
223
+ * Unless required by applicable law or agreed to in writing, software
224
+ * distributed under the License is distributed on an "AS IS" BASIS,
225
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
+ * See the License for the specific language governing permissions and
227
+ * limitations under the License.
228
+ * =============================================================================
229
+ */
230
+
231
+ /**
232
+ * @license
233
+ * Copyright 2022 Google LLC
234
+ *
235
+ * Use of this source code is governed by an MIT-style
236
+ * license that can be found in the LICENSE file or at
237
+ * https://opensource.org/licenses/MIT.
238
+ * =============================================================================
239
+ */
240
+
241
+ /**
242
+ * @license
243
+ * Copyright 2022 Google LLC.
244
+ * Licensed under the Apache License, Version 2.0 (the "License");
245
+ * you may not use this file except in compliance with the License.
246
+ * You may obtain a copy of the License at
247
+ *
248
+ * http://www.apache.org/licenses/LICENSE-2.0
249
+ *
250
+ * Unless required by applicable law or agreed to in writing, software
251
+ * distributed under the License is distributed on an "AS IS" BASIS,
252
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
253
+ * See the License for the specific language governing permissions and
254
+ * limitations under the License.
255
+ * =============================================================================
256
+ */
257
+
258
+ /**
259
+ * @license
260
+ * Copyright 2022 Google LLC. All Rights Reserved.
261
+ * Licensed under the Apache License, Version 2.0 (the "License");
262
+ * you may not use this file except in compliance with the License.
263
+ * You may obtain a copy of the License at
264
+ *
265
+ * http://www.apache.org/licenses/LICENSE-2.0
266
+ *
267
+ * Unless required by applicable law or agreed to in writing, software
268
+ * distributed under the License is distributed on an "AS IS" BASIS,
269
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
270
+ * See the License for the specific language governing permissions and
271
+ * limitations under the License.
272
+ * =============================================================================
273
+ */
274
+
275
+ /**
276
+ * @license
277
+ * Copyright 2022 Google LLC. All Rights Reserved.
278
+ * Licensed under the Apache License, Version 2.0 (the 'License');
279
+ * you may not use this file except in compliance with the License.
280
+ * You may obtain a copy of the License at
281
+ *
282
+ * http://www.apache.org/licenses/LICENSE-2.0
283
+ *
284
+ * Unless required by applicable law or agreed to in writing, software
285
+ * distributed under the License is distributed on an 'AS IS' BASIS,
286
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
287
+ * See the License for the specific language governing permissions and
288
+ * limitations under the License.
289
+ * =============================================================================
290
+ */
291
+
292
+ /**
293
+ * @license
294
+ * Copyright 2023 CodeSmith LLC
295
+ *
296
+ * Use of this source code is governed by an MIT-style
297
+ * license that can be found in the LICENSE file or at
298
+ * https://opensource.org/licenses/MIT.
299
+ * =============================================================================
300
+ */
301
+
302
+ /**
303
+ * @license
304
+ * Copyright 2023 Google LLC.
305
+ * Licensed under the Apache License, Version 2.0 (the "License");
306
+ * you may not use this file except in compliance with the License.
307
+ * You may obtain a copy of the License at
308
+ *
309
+ * http://www.apache.org/licenses/LICENSE-2.0
310
+ *
311
+ * Unless required by applicable law or agreed to in writing, software
312
+ * distributed under the License is distributed on an "AS IS" BASIS,
313
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
314
+ * See the License for the specific language governing permissions and
315
+ * limitations under the License.
316
+ * =============================================================================
317
+ */
318
+
319
+ /** @license See the LICENSE file. */
320
+
3
321
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
4
322
 
5
323
  //!\ DECLARE ALIAS AFTER assign prototype !
@@ -38,6 +38,7 @@ export declare class Webviewer {
38
38
  readonly LOADING: 13;
39
39
  readonly XRAY_MODE: 14;
40
40
  readonly SECTION_BOX: 15;
41
+ readonly AIChat: 16;
41
42
  };
42
43
  static readonly toolbar_enum: {
43
44
  readonly NONE: 0;
@@ -54,6 +55,7 @@ export declare class Webviewer {
54
55
  readonly CONTEXT_MENU: 11;
55
56
  readonly XRAY_MODE: 12;
56
57
  readonly SECTION_BOX: 13;
58
+ readonly AIChat: 14;
57
59
  };
58
60
  static readonly action: {
59
61
  readonly NONE: -1;
@@ -9,4 +9,6 @@ export declare function getHeaders(): Record<string, string>;
9
9
  export declare let client: HttpClient;
10
10
  export declare let cachedClient: HttpClient;
11
11
  export declare function initHttpClient(options: Options): void;
12
+ export declare let databrickClient: HttpClient;
13
+ export declare function initDatabrickHttpClient(): void;
12
14
  export declare function disposeHttpClient(): void;
@@ -0,0 +1 @@
1
+ export declare const getMasterFormat: () => Promise<Response>;
@@ -0,0 +1,11 @@
1
+ import '@tensorflow/tfjs-backend-webgl';
2
+ export declare class AIChatComponent {
3
+ useModel: any;
4
+ renderController: any;
5
+ constructor(renderController: any);
6
+ initModel: () => Promise<void>;
7
+ generateEmbeddings: () => Promise<any>;
8
+ cosineSimilarity: (a: any, b: any) => number;
9
+ classifyIntent: (input: string) => Promise<string>;
10
+ processInput: (input: string) => Promise<string>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import { WindowComponent } from '../WindowComponent';
2
+ import './style.css';
3
+ export declare class AIChatWindowComponent extends WindowComponent {
4
+ private aichat;
5
+ constructor(options: any, pubsub: any, renderController: any);
6
+ processInput(): Promise<void>;
7
+ onSelectTool(data: any): void;
8
+ onClose(): void;
9
+ }
@@ -0,0 +1,4 @@
1
+ export declare const intents: {
2
+ intent: string;
3
+ examples: string[];
4
+ }[];
@@ -0,0 +1 @@
1
+ export { AIChatWindowComponent } from './AIChatWindowComponent';
@@ -30,6 +30,7 @@ export class ContextMenuComponent {
30
30
  OnHideObject(): void;
31
31
  OnHideSimilar(): Promise<void>;
32
32
  OnSelectSimilar(): Promise<void>;
33
+ onSelectSimilarMasterFormat(): Promise<void>;
33
34
  OnIsolate(): Promise<void>;
34
35
  OnViewProperties(): void;
35
36
  ClearContextMenu(): void;
@@ -15,5 +15,6 @@ export declare const TOOL: {
15
15
  readonly LOADING: 13;
16
16
  readonly XRAY_MODE: 14;
17
17
  readonly SECTION_BOX: 15;
18
+ readonly AIChat: 16;
18
19
  };
19
20
  export type Tool = (typeof TOOL)[keyof typeof TOOL];
@@ -27,6 +27,7 @@ export class ToolBarComponent {
27
27
  4: any;
28
28
  12: any;
29
29
  13: any;
30
+ 14: "AI Chat";
30
31
  }>;
31
32
  toolIconMap: Readonly<{
32
33
  9: "nav-icon-views";
@@ -40,6 +41,7 @@ export class ToolBarComponent {
40
41
  4: "nav-icon-cursor-orbit";
41
42
  12: "nav-icon-xray-mode";
42
43
  13: "nav-icon-section-box";
44
+ 14: "nav-icon-aichat";
43
45
  }>;
44
46
  toolEnumMap: Readonly<{
45
47
  4: 9;
@@ -49,6 +51,7 @@ export class ToolBarComponent {
49
51
  15: 13;
50
52
  14: 12;
51
53
  9: 8;
54
+ 16: 14;
52
55
  }>;
53
56
  toolTimeout: any;
54
57
  onModelTypeDetermined(payload: any): void;
@@ -13,5 +13,6 @@ export declare const TOOL_BAR_TOOLS: {
13
13
  readonly CONTEXT_MENU: 11;
14
14
  readonly XRAY_MODE: 12;
15
15
  readonly SECTION_BOX: 13;
16
+ readonly AIChat: 14;
16
17
  };
17
18
  export type ToolBarTools = (typeof TOOL_BAR_TOOLS)[keyof typeof TOOL_BAR_TOOLS];
@@ -10,6 +10,7 @@ export class ApiController {
10
10
  modelRevisions: typeof ModelRevisions;
11
11
  fileExtractions: typeof FileExtractions;
12
12
  CheckBimPropertyService(): void;
13
+ GetMasterFormat(id: any): Promise<any>;
13
14
  GetBimObjectsFor(ids: any): Promise<any>;
14
15
  GetBimModelRevisionViewpoints(): void;
15
16
  GetBimFileViewFolders(bimfileId: any): void;
@@ -6,7 +6,7 @@ export type Color = {
6
6
  opacity: number;
7
7
  };
8
8
  export type Palette = {
9
- shaded?: Color;
9
+ default?: Color;
10
10
  xray?: Color;
11
11
  selected?: Color;
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/bim-webviewer-sdk",
3
- "version": "17.0.0-4d-scheduling-hackathon.0",
3
+ "version": "17.0.0-ai-hackthon.0",
4
4
  "description": "Procore BIM Webviewer SDK",
5
5
  "main": "dist/Procore.Bim.Webviewer.js",
6
6
  "types": "dist/Procore.Bim.Webviewer.d.ts",
@@ -12,4 +12,4 @@
12
12
  ],
13
13
  "author": "Procore Technologies",
14
14
  "license": "SEE LICENSE IN LICENSE"
15
- }
15
+ }