@procore/labs-file-select v2.5.15
File Select
An implementation of the Core FileSelect
component integrated with Procore endpoints to support local upload and Procore project sources: Drawings, Forms, Documents, & Photos, or support local upload and Procore company source Documents.
Installation
yarn add @procore/labs-file-select
Dependencies
@procore/core-react
and react
are listed as external peer dependencies. The package will not bundle the code, and requires the app client to provide it as a dependency
. The external peer dep is to assure React Context is consistent in a client's React tree, the child consumers can reference the correct parent provider. If the package uses latest features or bug fixes and a new minimum version of core-react is required, it should be considered a breaking change as the peer dependency version must be met.
Usage
import { I18nProvider } from '@procore/core-react';
import { ConnectedFileSelect } from '@procore/labs-file-select';
Provide both project
and company
for a Project level selection.
<I18nProvider>
<ConnectedFileSelect
company={{ name: '555 Megatall Building LLC', id: 5 }}
project={{ name: 'Space Scraper 10000', id: 100 }}
/>
</I18nProvider>
With Document-Service backend running locally
In the constants.ts
file, change the LOCAL_SERVER_ENABLED
flag to true
to point to a locally running instance of the document-service
backend. If not configured, the client code will use its built in mock server.
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
12 months ago
12 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago