@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.
Files changed (33) hide show
  1. package/dist/legacy/adapters/hub-data-loader.d.mts +22 -0
  2. package/dist/legacy/adapters/hub-data-loader.d.ts +22 -0
  3. package/dist/legacy/adapters/hub-data-loader.js +273 -0
  4. package/dist/legacy/adapters/hub-data-loader.mjs +273 -0
  5. package/dist/legacy/chunk-6DZX6EAA.mjs +37 -0
  6. package/dist/legacy/chunk-QGM4M3NI.js +37 -0
  7. package/dist/legacy/index.d.mts +13 -2
  8. package/dist/legacy/index.d.ts +13 -2
  9. package/dist/legacy/index.js +549 -471
  10. package/dist/legacy/index.mjs +223 -192
  11. package/dist/legacy/transport/default.d.mts +15 -0
  12. package/dist/legacy/transport/default.d.ts +15 -0
  13. package/dist/legacy/transport/default.js +104 -0
  14. package/dist/legacy/transport/default.mjs +104 -0
  15. package/dist/legacy/types-BWhJ-on3.d.mts +109 -0
  16. package/dist/legacy/types-BWhJ-on3.d.ts +109 -0
  17. package/dist/modern/adapters/hub-data-loader.d.mts +22 -0
  18. package/dist/modern/adapters/hub-data-loader.d.ts +22 -0
  19. package/dist/modern/adapters/hub-data-loader.js +270 -0
  20. package/dist/modern/adapters/hub-data-loader.mjs +270 -0
  21. package/dist/modern/chunk-6DZX6EAA.mjs +37 -0
  22. package/dist/modern/chunk-QGM4M3NI.js +37 -0
  23. package/dist/modern/index.d.mts +13 -2
  24. package/dist/modern/index.d.ts +13 -2
  25. package/dist/modern/index.js +606 -528
  26. package/dist/modern/index.mjs +223 -192
  27. package/dist/modern/transport/default.d.mts +15 -0
  28. package/dist/modern/transport/default.d.ts +15 -0
  29. package/dist/modern/transport/default.js +104 -0
  30. package/dist/modern/transport/default.mjs +104 -0
  31. package/dist/modern/types-BWhJ-on3.d.mts +109 -0
  32. package/dist/modern/types-BWhJ-on3.d.ts +109 -0
  33. package/package.json +35 -2
@@ -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 };
@@ -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 };