@procore/saved-views 6.1.0 → 6.2.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.
- package/dist/legacy/adapters/hub-data-loader.d.mts +22 -0
- package/dist/legacy/adapters/hub-data-loader.d.ts +22 -0
- package/dist/legacy/adapters/hub-data-loader.js +273 -0
- package/dist/legacy/adapters/hub-data-loader.mjs +273 -0
- package/dist/legacy/chunk-6DZX6EAA.mjs +37 -0
- package/dist/legacy/chunk-QGM4M3NI.js +37 -0
- package/dist/legacy/index.d.mts +13 -2
- package/dist/legacy/index.d.ts +13 -2
- package/dist/legacy/index.js +549 -471
- package/dist/legacy/index.mjs +223 -192
- package/dist/legacy/transport/default.d.mts +15 -0
- package/dist/legacy/transport/default.d.ts +15 -0
- package/dist/legacy/transport/default.js +104 -0
- package/dist/legacy/transport/default.mjs +104 -0
- package/dist/legacy/types-BWhJ-on3.d.mts +109 -0
- package/dist/legacy/types-BWhJ-on3.d.ts +109 -0
- package/dist/modern/adapters/hub-data-loader.d.mts +22 -0
- package/dist/modern/adapters/hub-data-loader.d.ts +22 -0
- package/dist/modern/adapters/hub-data-loader.js +270 -0
- package/dist/modern/adapters/hub-data-loader.mjs +270 -0
- package/dist/modern/chunk-6DZX6EAA.mjs +37 -0
- package/dist/modern/chunk-QGM4M3NI.js +37 -0
- package/dist/modern/index.d.mts +13 -2
- package/dist/modern/index.d.ts +13 -2
- package/dist/modern/index.js +606 -528
- package/dist/modern/index.mjs +223 -192
- package/dist/modern/transport/default.d.mts +15 -0
- package/dist/modern/transport/default.d.ts +15 -0
- package/dist/modern/transport/default.js +104 -0
- package/dist/modern/transport/default.mjs +104 -0
- package/dist/modern/types-BWhJ-on3.d.mts +109 -0
- package/dist/modern/types-BWhJ-on3.d.ts +109 -0
- package/package.json +35 -2
package/dist/legacy/index.d.mts
CHANGED
|
@@ -6,6 +6,8 @@ import { ColumnState, FilterModel, GridApi } from 'ag-grid-community';
|
|
|
6
6
|
import * as _procore_core_react_dist_Panel_Panel_types from '@procore/core-react/dist/Panel/Panel.types';
|
|
7
7
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
8
|
import * as _procore_core_react from '@procore/core-react';
|
|
9
|
+
import { S as SavedViewsTransport } from './types-BWhJ-on3.mjs';
|
|
10
|
+
export { a as SavedViewsCacheControl, b as SavedViewsHttpRequest, c as SavedViewsMutationArgs, d as SavedViewsMutationResult, e as SavedViewsQueryArgs, f as SavedViewsQueryResult, g as SavedViewsUrlAdapter } from './types-BWhJ-on3.mjs';
|
|
9
11
|
|
|
10
12
|
declare function getTranslations(envLocale: Locale): Record<string, object>;
|
|
11
13
|
|
|
@@ -65,6 +67,15 @@ interface IBaseSavedViewsProps {
|
|
|
65
67
|
projectId?: number;
|
|
66
68
|
companyId: number;
|
|
67
69
|
stickyViewsKey: string;
|
|
70
|
+
/**
|
|
71
|
+
* Optional transport that injects HTTP, query/mutation, cache, and URL
|
|
72
|
+
* adapters. Defaults to a transport backed by `@procore/core-http`,
|
|
73
|
+
* `@tanstack/react-query`, and `react-router-dom` (today's behavior).
|
|
74
|
+
*
|
|
75
|
+
* Hub Card consumers should pass the result of `createHubDataLoaderTransport`
|
|
76
|
+
* from `@procore/saved-views/adapters/hub-data-loader`.
|
|
77
|
+
*/
|
|
78
|
+
transport?: SavedViewsTransport;
|
|
68
79
|
}
|
|
69
80
|
interface ISavedViewsProps extends Omit<IBaseSavedViewsProps, 'stickyViewsKey'> {
|
|
70
81
|
defaultView: ISavedView;
|
|
@@ -166,7 +177,7 @@ declare const ExpandedPanel: styled_components_dist_types.IStyledComponentBase<"
|
|
|
166
177
|
|
|
167
178
|
declare const PanelContent: (props: IPanelContentProps) => React__default.JSX.Element;
|
|
168
179
|
|
|
169
|
-
declare const SavedViews: (props: ISavedViewsProps) => React__default.JSX.Element;
|
|
180
|
+
declare const SavedViews: (props: ISavedViewsProps) => React__default.JSX.Element | null;
|
|
170
181
|
|
|
171
182
|
type Props = {
|
|
172
183
|
onDelete(): void;
|
|
@@ -197,4 +208,4 @@ interface IDataTableSavedViewsRef {
|
|
|
197
208
|
}
|
|
198
209
|
declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
|
|
199
210
|
|
|
200
|
-
export { DataTableSavedViews, ExpandedPanel, FormModal, type IDataTableDefaultViewConfig, type IDataTableSavedViewsRef, type ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, type SavedViewsSelectionContextValue, SavedViewsSelectionProvider, SmartGridSavedViews, getTranslations, useSavedViewsPanel, useSavedViewsSelection };
|
|
211
|
+
export { DataTableSavedViews, ExpandedPanel, FormModal, type IDataTableDefaultViewConfig, type IDataTableSavedViewsRef, type ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, type SavedViewsSelectionContextValue, SavedViewsSelectionProvider, SavedViewsTransport, SmartGridSavedViews, getTranslations, useSavedViewsPanel, useSavedViewsSelection };
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { ColumnState, FilterModel, GridApi } from 'ag-grid-community';
|
|
|
6
6
|
import * as _procore_core_react_dist_Panel_Panel_types from '@procore/core-react/dist/Panel/Panel.types';
|
|
7
7
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
8
|
import * as _procore_core_react from '@procore/core-react';
|
|
9
|
+
import { S as SavedViewsTransport } from './types-BWhJ-on3.js';
|
|
10
|
+
export { a as SavedViewsCacheControl, b as SavedViewsHttpRequest, c as SavedViewsMutationArgs, d as SavedViewsMutationResult, e as SavedViewsQueryArgs, f as SavedViewsQueryResult, g as SavedViewsUrlAdapter } from './types-BWhJ-on3.js';
|
|
9
11
|
|
|
10
12
|
declare function getTranslations(envLocale: Locale): Record<string, object>;
|
|
11
13
|
|
|
@@ -65,6 +67,15 @@ interface IBaseSavedViewsProps {
|
|
|
65
67
|
projectId?: number;
|
|
66
68
|
companyId: number;
|
|
67
69
|
stickyViewsKey: string;
|
|
70
|
+
/**
|
|
71
|
+
* Optional transport that injects HTTP, query/mutation, cache, and URL
|
|
72
|
+
* adapters. Defaults to a transport backed by `@procore/core-http`,
|
|
73
|
+
* `@tanstack/react-query`, and `react-router-dom` (today's behavior).
|
|
74
|
+
*
|
|
75
|
+
* Hub Card consumers should pass the result of `createHubDataLoaderTransport`
|
|
76
|
+
* from `@procore/saved-views/adapters/hub-data-loader`.
|
|
77
|
+
*/
|
|
78
|
+
transport?: SavedViewsTransport;
|
|
68
79
|
}
|
|
69
80
|
interface ISavedViewsProps extends Omit<IBaseSavedViewsProps, 'stickyViewsKey'> {
|
|
70
81
|
defaultView: ISavedView;
|
|
@@ -166,7 +177,7 @@ declare const ExpandedPanel: styled_components_dist_types.IStyledComponentBase<"
|
|
|
166
177
|
|
|
167
178
|
declare const PanelContent: (props: IPanelContentProps) => React__default.JSX.Element;
|
|
168
179
|
|
|
169
|
-
declare const SavedViews: (props: ISavedViewsProps) => React__default.JSX.Element;
|
|
180
|
+
declare const SavedViews: (props: ISavedViewsProps) => React__default.JSX.Element | null;
|
|
170
181
|
|
|
171
182
|
type Props = {
|
|
172
183
|
onDelete(): void;
|
|
@@ -197,4 +208,4 @@ interface IDataTableSavedViewsRef {
|
|
|
197
208
|
}
|
|
198
209
|
declare const DataTableSavedViews: React__default.ForwardRefExoticComponent<IDataTableSavedViewsExternalConsumerProps & React__default.RefAttributes<IDataTableSavedViewsRef>>;
|
|
199
210
|
|
|
200
|
-
export { DataTableSavedViews, ExpandedPanel, FormModal, type IDataTableDefaultViewConfig, type IDataTableSavedViewsRef, type ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, type SavedViewsSelectionContextValue, SavedViewsSelectionProvider, SmartGridSavedViews, getTranslations, useSavedViewsPanel, useSavedViewsSelection };
|
|
211
|
+
export { DataTableSavedViews, ExpandedPanel, FormModal, type IDataTableDefaultViewConfig, type IDataTableSavedViewsRef, type ISmartGridDefaultViewConfig, PanelContent, SavedViewCollectionMenuItem, SavedViews, SavedViewsDeleteConfirmationModalShared, type SavedViewsSelectionContextValue, SavedViewsSelectionProvider, SavedViewsTransport, SmartGridSavedViews, getTranslations, useSavedViewsPanel, useSavedViewsSelection };
|