Skip to content

Commit

Permalink
[Property grid]: update deps (#1090)
Browse files Browse the repository at this point in the history
* dependency update and deprication removal

* package version fix

* changeset

* extract-api

* revert accidental commit

* fixes

* lint fix

* Update packages/itwin/property-grid/src/hooks/UseContextMenu.tsx

Co-authored-by: Grigas <[email protected]>

* Update packages/itwin/property-grid/src/hooks/UseContextMenu.tsx

Co-authored-by: Grigas <[email protected]>

* test fixes

* useResizeObserver default height fix

* Test fix / changes to close

* adjustments

* update e2e snapshots

---------

Co-authored-by: Grigas <[email protected]>
  • Loading branch information
MartynasStrazdas and grigasp authored Nov 14, 2024
1 parent 4d3b429 commit ff8e71b
Show file tree
Hide file tree
Showing 18 changed files with 724 additions and 815 deletions.
7 changes: 7 additions & 0 deletions apps/learning-snippets/src/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import globalJsdom from "global-jsdom";
import * as jsdom from "jsdom";
import sinonChai from "sinon-chai";

// polyfill ResizeObserver
global.ResizeObserver = class ResizeObserver {
public observe() {}
public unobserve() {}
public disconnect() {}
};

// get rid of various xhr errors in the console
globalJsdom(undefined, {
virtualConsole: new jsdom.VirtualConsole().sendTo(console, { omitJSDOMErrors: true }),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "DevDependency update",
"packageName": "@itwin/property-grid-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
4 changes: 2 additions & 2 deletions packages/itwin/property-grid/api/property-grid-react.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { StagePanelLocation } from '@itwin/appui-react';
import { StagePanelSection } from '@itwin/appui-react';
import type { TranslationOptions } from '@itwin/core-common';
import type { UiItemsProvider } from '@itwin/appui-react';
import type { VirtualizedPropertyGridWithDataProviderProps } from '@itwin/components-react';
import { VirtualizedPropertyGridWithDataProvider } from '@itwin/components-react';
import type { Widget } from '@itwin/appui-react';

// @public
Expand Down Expand Up @@ -77,7 +77,7 @@ export interface FavoritePropertiesContextMenuItemProps extends DefaultContextMe
}

// @public
export interface FilteringPropertyGridProps extends VirtualizedPropertyGridWithDataProviderProps {
export interface FilteringPropertyGridProps extends React.ComponentProps<typeof VirtualizedPropertyGridWithDataProvider> {
autoExpandChildCategories?: boolean;
filterer: IPropertyDataFilterer;
}
Expand Down
92 changes: 46 additions & 46 deletions packages/itwin/property-grid/api/property-grid-react.exports.csv
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
sep=;
Release Tag;API Item
public;AddFavoritePropertyContextMenuItem({ field, imodel, scope, onSelect }: FavoritePropertiesContextMenuItemProps): JSX.Element | null
public;AncestorsNavigationControls({ navigateUp, navigateDown, canNavigateDown, canNavigateUp }: AncestorsNavigationControlsProps): JSX.Element | null
public;AncestorsNavigationControlsProps
public;ContextMenuItemProps
public;ContextMenuProps
public;CopyPropertyTextContextMenuItem({ record, onSelect }: DefaultContextMenuItemProps): JSX.Element
public;createPropertyGrid(propertyGridProps: PropertyGridWidgetProps): Widget
public;DataProviderProps
public;DefaultContextMenuItemProps
public;FavoritePropertiesContextMenuItemProps
public;FilteringPropertyGridProps
public;IModelAppUserPreferencesStorage
public;MultiElementPropertyGrid({ ancestorsNavigationControls, ...props }: MultiElementPropertyGridProps): JSX.Element
public;MultiElementPropertyGridProps
public;NullValueSettingContext({ children }: PropsWithChildren
public;PerformanceTrackedFeatures = "properties-load" | "elements-list-load"
public;PreferencesStorage
public;PropertyGrid({ createDataProvider, ...props }: PropertyGridProps): JSX.Element | null
public;PropertyGridComponent({ preferencesStorage, onPerformanceMeasured, onFeatureUsed, ...props }: PropertyGridComponentProps): JSX.Element | null
public;PropertyGridComponentProps
public;PropertyGridContentBaseProps
public;PropertyGridContentProps = PropertyGridContentBaseProps & ContextMenuProps & SettingsMenuProps
public;PropertyGridContextMenuItem({ id, children, title, onSelect }: PropsWithChildren
public;PropertyGridContextMenuItemProps
public;PropertyGridManager
public;PropertyGridPropertyUpdatedArgs
public;PropertyGridProps = Omit
public;PropertyGridSettingsMenuItem({ id, onClick, title, children }: PropsWithChildren
public;PropertyGridSettingsMenuItemProps
public;PropertyGridUiItemsProvider
deprecated;PropertyGridUiItemsProvider
public;PropertyGridUiItemsProviderProps
deprecated;PropertyGridUiItemsProviderProps
public;PropertyGridWidgetId = "vcr:PropertyGridComponent"
public;PropertyGridWidgetProps
public;RemoveFavoritePropertyContextMenuItem({ field, imodel, scope, onSelect }: FavoritePropertiesContextMenuItemProps): JSX.Element | null
public;SettingsMenuItemProps
public;SettingsMenuProps
public;ShowHideNullValuesSettingsMenuItem({ close, persist }: ShowHideNullValuesSettingsMenuItemProps): JSX.Element
public;ShowHideNullValuesSettingsMenuItemProps
public;SingleElementDataProviderProps
public;SingleElementPropertyGrid({ instanceKey, createDataProvider, ...props }: SingleElementPropertyGridProps): JSX.Element | null
public;SingleElementPropertyGridProps = Omit
public;TelemetryContextProvider({ onPerformanceMeasured, onFeatureUsed, children }: PropsWithChildren
public;usePropertyGridTransientState
Release Tag;API Item Type;API Item Name
public;function;AddFavoritePropertyContextMenuItem
public;function;AncestorsNavigationControls
public;interface;AncestorsNavigationControlsProps
public;interface;ContextMenuItemProps
public;interface;ContextMenuProps
public;function;CopyPropertyTextContextMenuItem
public;function;createPropertyGrid
public;interface;DataProviderProps
public;interface;DefaultContextMenuItemProps
public;interface;FavoritePropertiesContextMenuItemProps
public;interface;FilteringPropertyGridProps
public;class;IModelAppUserPreferencesStorage
public;function;MultiElementPropertyGrid
public;interface;MultiElementPropertyGridProps
public;function;NullValueSettingContext
public;type;PerformanceTrackedFeatures
public;interface;PreferencesStorage
public;function;PropertyGrid
public;function;PropertyGridComponent
public;interface;PropertyGridComponentProps
public;interface;PropertyGridContentBaseProps
public;type;PropertyGridContentProps
public;function;PropertyGridContextMenuItem
public;interface;PropertyGridContextMenuItemProps
public;class;PropertyGridManager
public;interface;PropertyGridPropertyUpdatedArgs
public;type;PropertyGridProps
public;function;PropertyGridSettingsMenuItem
public;interface;PropertyGridSettingsMenuItemProps
public;class;PropertyGridUiItemsProvider
deprecated;class;PropertyGridUiItemsProvider
public;interface;PropertyGridUiItemsProviderProps
deprecated;interface;PropertyGridUiItemsProviderProps
public;const;PropertyGridWidgetId
public;interface;PropertyGridWidgetProps
public;function;RemoveFavoritePropertyContextMenuItem
public;interface;SettingsMenuItemProps
public;interface;SettingsMenuProps
public;function;ShowHideNullValuesSettingsMenuItem
public;interface;ShowHideNullValuesSettingsMenuItemProps
public;interface;SingleElementDataProviderProps
public;function;SingleElementPropertyGrid
public;type;SingleElementPropertyGridProps
public;function;TelemetryContextProvider
public;function;usePropertyGridTransientState
42 changes: 21 additions & 21 deletions packages/itwin/property-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,32 +66,32 @@
"dependencies": {
"@itwin/itwinui-icons-react": "^2.8.0",
"@itwin/itwinui-illustrations-react": "^2.1.0",
"@itwin/itwinui-react": "^3.5.0",
"@itwin/itwinui-react": "^3.15.5",
"classnames": "^2.3.1",
"react-error-boundary": "^4.0.10"
},
"devDependencies": {
"@itwin/appui-abstract": "^4.4.0",
"@itwin/appui-react": "^4.9.0",
"@itwin/build-tools": "^4.4.0",
"@itwin/components-react": "^4.9.0",
"@itwin/core-bentley": "^4.4.0",
"@itwin/core-common": "^4.4.0",
"@itwin/core-frontend": "^4.4.0",
"@itwin/core-geometry": "^4.4.0",
"@itwin/core-i18n": "^4.4.0",
"@itwin/core-markup": "^4.4.0",
"@itwin/core-orbitgt": "^4.4.0",
"@itwin/core-quantity": "^4.4.0",
"@itwin/core-react": "^4.9.0",
"@itwin/core-telemetry": "^4.4.0",
"@itwin/ecschema-metadata": "^4.4.0",
"@itwin/appui-abstract": "^4.9.7",
"@itwin/appui-react": "^4.17.3",
"@itwin/build-tools": "^4.9.7",
"@itwin/components-react": "^4.17.3",
"@itwin/core-bentley": "^4.9.7",
"@itwin/core-common": "^4.9.7",
"@itwin/core-frontend": "^4.9.7",
"@itwin/core-geometry": "^4.9.7",
"@itwin/core-i18n": "^4.9.7",
"@itwin/core-markup": "^4.9.7",
"@itwin/core-orbitgt": "^4.9.7",
"@itwin/core-quantity": "^4.9.7",
"@itwin/core-react": "^4.17.3",
"@itwin/core-telemetry": "^4.9.7",
"@itwin/ecschema-metadata": "^4.9.7",
"@itwin/eslint-plugin": "^4.1.1",
"@itwin/imodel-components-react": "^4.9.0",
"@itwin/presentation-common": "^4.4.0",
"@itwin/presentation-components": "^5.4.0",
"@itwin/presentation-frontend": "^4.4.0",
"@itwin/webgl-compatibility": "^4.4.0",
"@itwin/imodel-components-react": "^4.17.3",
"@itwin/presentation-common": "^4.9.7",
"@itwin/presentation-components": "^5.6.0",
"@itwin/presentation-frontend": "^4.9.7",
"@itwin/webgl-compatibility": "^4.9.7",
"@playwright/test": "^1.48.2",
"@testing-library/dom": "^9.3.3",
"@testing-library/react": "^14.1.2",
Expand Down
Loading

0 comments on commit ff8e71b

Please sign in to comment.