# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## Changes included in next release

# 4.0.2

- [Chore] Upgrade dependencies

# 4.0.0

- [Breaking] Add required props `projectId`, `companyId`, `attachmentId`, `attachmentSource`, and optional props `itemId`, `itemType` (indicating attached tool).
  Valid attachmentSources include `document_revision`, `document_upload` and `prostore`.
  - [Warning] Analytics endpoint will now need to accept `attachment_source` in addition to `object_type`
    > All references to `object_type` should be migrated to `attachment_source`. The following are exceptions
  - Pusher channel name will continue to require the old style `object_type` key for document service sources until hydra client is removed
  - Pusher auth url query param will continue to require `object_type`
- [Chore] Bump dependencies to support core-react v11.4.0.

# 3.4.5

- [Chore] Remove `@procore/labs-jsskit` as a dependency

# 3.4.4

- [Chore] Upgrade dependencies

# 3.4.3

- [Chore] Upgrade dependencies

# 3.4.2

- [Chore] Upgrade dependencies

# 3.4.1

- [Chore] Upgrade dependencies

# 3.4.0

- [Feature] Configure scoped bugsnag project
- [Chore] Upgrade `@procore/labs-third-party-scripts` major dependency

# 3.3.0

- [Feature] Support any `item_type` param using `ProsotoreFilePlugin`
- [Feature] Add optional translated Document Viewer to meta title for MFE.

# 3.2.3

-[Fix] Upgrade flavor dependency with a bug fix on safari.

# 3.2.2

- [Chore] Upgrade dependencies, which includes cleaning up unnecessary props to `Flavors`: `companyId`, `projectId`, and `userId`

# 3.2.1

- [Fix] Bumps flavors (bug fix)

# 3.2.0

- [Feature] Add ProcoreEnvironmentProvider as a dependency and pass down new props to flavor

# 3.1.0

- [Feature] Adds inspection unified-viewer flavor

# 3.0.3

- [Chore] Upgrade dependencies

# 3.0.2

- [Chore] Upgrade dependencies

# 3.0.1

- [Chore] Upgrade dependencies

# 3.0.0

- [Breaking] Upgrade dependencies containing breaking change

# 2.5.2

- [Chore] Upgrade dependencies

# 2.5.1

- [Chore] Upgrade dependencies

# 2.5.0

- [Feature] Accepts new `viewer_service` url from the serviceUrl prop.

# 2.4.0

- [Feature] Parse url to handle mfe and monolith routes
- [Chore] Upgrade dependencies

# 2.3.1

- [Chore] Pass in `userId` to all flavors

# 2.3.0

- [Feature] Have one top level spinner to prevent flashing
- [Fix] Fix misaligned period in Error Viewer.

# 2.2.2

- [Chore] Upgrade dependencies

# 2.2.1

- [Fix] Move ErrorBoundary inside I18nProvider to avoid missing translations

# 2.2.0

- [Chore] Upgrade dependencies

# 2.1.0

- [Feature] Allows viewer to load if object type 'document_service:revision' is found. It should load the Revision flavor: `RevisionDocumentsViewerPlugin`.

# 2.0.0

- [Breaking] adds required prop `serviceUrls` to UnifiedViewer component
- [Refactor] Use `qs` library to parse query params from url, handle nested query params easily

## 1.7.6

- [Chore] Upgrade dependencies

## 1.7.5

- deprecated

## 1.7.4

- [Chore] Upgrade dependencies

## 1.7.3

- [Fix] Update third-party-scripts version to enable LD targeting by project_id and company_id

## 1.7.2

- [Chore] updated types

## 1.7.1

- [Fix] add back missing `launchDarklyFlags` to `BaseViewer`

## 1.7.0

- [Performance] Reduce secondary call to base document endpoint from unified viewer
- [Refactor] Remove call to base document endpoint from unified viewer
- [Refactor] Hardcode pusher auth endpoint and pusher channel names
- [Refactor] Hard code the analytics url and its data.
- [Refactor] Hard code `uniqueUserKey` instead of fetching from the backend

## 1.6.0

- [Chore] Upgrade dependencies

## 1.5.0

- [Chore] Hard code uniqueUserKey instead of fetching from the backend

## 1.4.0

- [Feature] Will now switch on `object_type` query param. The viewer will load the `UploadDocumentsViewerPlugin` if the `object_type` is `'documents-service:upload'`
- [Chore] Move document fetch into the dependency `@procore/unified-viewer-flavors`

## 1.3.1

- [Chore] Upgrade core-react dependency
- [Chore] Miragejs refactor/clean up and add new mock upload index request.

## 1.3.0

- [Chore] Upgrade dependencies

## 1.2.2

- [Chore] Upgrade dependencies

## 1.2.1

- [Chore] Upgrade dependencies

## 1.2.0

- [Feature] Add error boundary around whole app. Handles posting errors to bugsnag.

## 1.1.9

- [Chore] Upgrade dependencies

## 1.1.8

- [Chore] Upgrade dependencies

## 1.1.7

- [Fix] Forcing npm to republish after failures

## 1.1.6

- [Chore] Upgrade dependencies

## 1.1.5

- [Chore] Upgrade dependencies

## 1.1.4

- [Chore] Upgrade dependencies

## 1.1.3

- [Chore] Upgrade dependencies

## 1.1.1

- [Chore] Upgrade dependencies

## 1.1.0

- [Chore] Upgrade dependencies

## 1.0.9

- [Chore] Upgrade dependencies

## 1.0.8

- [Chore] Upgrade dependencies

## 1.0.7

- [Chore] Upgrade `@procore/labs-markup-toolbars` dependency

## 1.0.6

- [Chore] Upgrade dependencies

## 1.0.5

- [Chore] Upgrade dependencies

## 1.0.4

- [Fix] Fix IE regression

## 1.0.3

- [Chore] Update unified-viewer-flavors dependency to latest

## 1.0.2

- [Fix] Fix issue where custom event polyfill wasn't present, causing loading issues in IE11
- [Chore] Update dependencies to latest versions

## 1.0.0

- [Feature] Initial release
