@procore/bim-webviewer-sdk 17.3.0 → 17.4.0-BM-923-request-persistent-storage.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/Procore.Bim.Webviewer.d.ts +1 -4
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/api/analytic_events/analyticKeys.d.ts +1 -0
  5. package/dist/types/src/api/analytic_events/payloadFactories.d.ts +3 -1
  6. package/dist/types/src/api/bim_viewpoints.d.ts +5 -0
  7. package/dist/types/src/api/types/FileExtraction.d.ts +1 -0
  8. package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +1 -0
  9. package/dist/types/src/components/LoadingComponent/LoadingComponent.d.ts +8 -6
  10. package/dist/types/src/components/ShortestDistanceComponent.d.ts +1 -0
  11. package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +0 -1
  12. package/dist/types/src/controllers/PubSubController.d.ts +2 -1
  13. package/dist/types/src/controllers/RenderController.d.ts +1 -0
  14. package/dist/types/src/controllers/RenderControllerProxy.d.ts +1 -2
  15. package/dist/types/src/measuring/FeatureTooltip/FeatureTooltip.d.ts +2 -0
  16. package/dist/types/src/measuring/MeasureToolUtils.d.ts +2 -0
  17. package/dist/types/src/measuring/MeasurementInterface.d.ts +1 -0
  18. package/dist/types/src/measuring/MeasurementManager.d.ts +4 -1
  19. package/dist/types/src/measuring/PointToPointController.d.ts +4 -1
  20. package/dist/types/src/measuring/PointToPointManager.d.ts +3 -0
  21. package/dist/types/src/measuring/__tests__/PointToPointFixtures.d.ts +1 -0
  22. package/dist/types/src/picking/PickingController.d.ts +9 -1
  23. package/dist/types/src/procoregl/MeshTopology/__tests__/TopologyFixtures.d.ts +2 -1
  24. package/dist/types/src/sectioning/__tests__/fixtures.d.ts +4 -0
  25. package/dist/types/src/types/WebviewerOptions.d.ts +0 -4
  26. package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +4 -0
  27. package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +3 -2
  28. package/dist/types/src/utils/ApiMetaData/index.d.ts +1 -0
  29. package/dist/types/src/utils/requestPersistentStorage/__tests__/requestPersistentStorage.test.d.ts +1 -0
  30. package/dist/types/src/utils/requestPersistentStorage/index.d.ts +1 -0
  31. package/dist/types/src/utils/requestPersistentStorage/requestPersistentStorage.d.ts +1 -0
  32. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,47 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - ([#1492](https://github.com/procore/bim-webviewer/pull/1492)) Make a request for persistent storage (`navigator.storage.persist`) during load time.
13
+ - In Firefox, this will prompt the user to allow persistent storage, which, when granted, will increase the amount of disk space made available to the current origin. While this prompt is displayed, the loading screen (enabled with `tools: [Webviewer.tools.LOADING]`) will display a message directing the user to "Allow Persistent Storage".
14
+
15
+ ### Changed
16
+
17
+ - ([#1486](https://github.com/procore/bim-webviewer/pull/1486)) [Internal] Loading screen no longer listens to `launchedAnimationLoop` event as it did not seem necessary.
18
+
19
+ ### Fixed
20
+
21
+ - ([#1479](https://github.com/procore/bim-webviewer/pull/1479)) `model.addSectionPlane` and `model.setSectionsData` will now normalize plane directions.
22
+ - Prior to this change, passing non-normalized plane directions was basically bad data and would yield surprising results.
23
+ - ([#1477](https://github.com/procore/bim-webviewer/pull/1477)) Subsequent calls to Cache.removeModel will no longer result in an error
24
+ - ([#1475](https://github.com/procore/bim-webviewer/pull/1475)) Fixed an issue where the right click context menu would remain open after the measurement tool has been enabled.
25
+ - ([#1481](https://github.com/procore/bim-webviewer/pull/1481)) Fixed an erroneous interaction between any active measurement mode and the home viewpoint button. Now the measurement mode gets deactivated and fixed orbit, if active, will switch to default navigation when the home viewpoint button is clicked (also works for hotkeys).
26
+ - ([#1489](https://github.com/procore/bim-webviewer/pull/1489)) [Internal][QA Ignore] Fix cypress test for the events test on the measure button in the bottom toolbar.
27
+
28
+ ### Removed
29
+
30
+ - ([#1492](https://github.com/procore/bim-webviewer/pull/1492)) [Breaking Change] Removed `launchedAnimationLoop` event. You can instead listen to `renderReady` event.
31
+ - ([#1480](https://github.com/procore/bim-webviewer/pull/1480)) Removed the feature flag `enablePointToPoint` as Point to Point is now a standard feature.
32
+
33
+ ## [17.4.0] 2025-01-31
34
+
35
+ ### Added
36
+
37
+ - ([#1466](https://github.com/procore/bim-webviewer/pull/1466)) Point to point measurement will now snap to intersections between meshes.
38
+ - ([#1469](https://github.com/procore/bim-webviewer/pull/1469)) Models loaded with a `fileExtractionId` now apply the viewpoint associated with that file extraction (if there is one) when the model is loaded.
39
+
40
+ ### Changed
41
+
42
+ - ([#1460](https://github.com/procore/bim-webviewer/pull/1460)) Measurement Tool will no longer display any visuals prior to making a measurement while hovering over a section plane when the Section Box tool is enabled. This is to prevent confusion over the interactions between the two tools.
43
+ - ([#1467](https://github.com/procore/bim-webviewer/pull/1467)) [Internal][QA Ignore] `updateProcore` script now updates `document-viewer-ui-service`.
44
+
45
+ ### Fixed
46
+
47
+ - ([#1476](https://github.com/procore/bim-webviewer/pull/1476)) While measurement tool is enabled, quick switch to a different navigation mode using the keyboard/mouse shortcuts no longer disables the measurement tool.
48
+
8
49
  ## [17.3.0] 2025-01-17
9
50
 
10
51
  ### Added
@@ -178,10 +178,6 @@ export declare namespace ErrorLogger {
178
178
  }
179
179
 
180
180
  export declare type FeatureFlags = {
181
- /**
182
- * @beta Enables the new measurement mode Point to Point, which allows users to measure the distance between two points in the model.
183
- */
184
- enablePointToPoint: boolean;
185
181
  /**
186
182
  * @beta Enables writing mesh data to OPFS for partitioned models, which allows users to use features that use mesh data, notably Point to Point.
187
183
  */
@@ -196,6 +192,7 @@ export declare type FileExtraction = {
196
192
  id: number;
197
193
  extraction_items: FileExtractionItem[];
198
194
  bim_file_upload: BimFileUpload;
195
+ viewpoint_id?: number | null;
199
196
  };
200
197
 
201
198
  export declare type FileExtractionItem = WebFormatExtractionItem | PropertiesExtractionItem;