-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into KZN-2846/codemod--upgrade-button
- Loading branch information
Showing
20 changed files
with
527 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@kaizen/components", | ||
"version": "1.70.19", | ||
"version": "1.70.23", | ||
"description": "Kaizen component library", | ||
"author": "Geoffrey Chong <[email protected]>", | ||
"homepage": "https://cultureamp.design", | ||
|
@@ -81,6 +81,11 @@ | |
"require": "./dist/cjs/reactAriaComponentsV3.cjs", | ||
"types": "./dist/types/__react-aria-components__/index.d.ts" | ||
}, | ||
"./v3/utilities": { | ||
"import": "./dist/esm/utilitiesV3.mjs", | ||
"require": "./dist/cjs/utilitiesV3.cjs", | ||
"types": "./dist/types/__utilities__/v3.d.ts" | ||
}, | ||
"./dist/styles.css": { | ||
"import": "./dist/styles.css", | ||
"require": "./dist/styles.css", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './subcomponents/FilterButtonBase' | ||
export * from './FilterButton' | ||
export * from './FilterButtonRemovable' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/components/src/RichTextEditor/utils/commands/fixtures/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './mockRangeForBoundingRect' | ||
export * from './helpers' |
32 changes: 32 additions & 0 deletions
32
packages/components/src/RichTextEditor/utils/commands/fixtures/mockRangeForBoundingRect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import { vi } from 'vitest' | ||
|
||
/* | ||
** This is used handle the JSDom type error issue you may encounter in testing | ||
** See https://github.com/jsdom/jsdom/issues/3002 | ||
*/ | ||
export const mockRangeForBoundingRect = (): void => { | ||
vi.spyOn(document, 'createRange').mockImplementation(() => { | ||
const range = new Range() | ||
|
||
range.getBoundingClientRect = () => ({ | ||
x: 0, | ||
y: 0, | ||
bottom: 0, | ||
height: 0, | ||
left: 0, | ||
right: 0, | ||
top: 0, | ||
width: 0, | ||
toJSON: () => undefined, | ||
}) | ||
|
||
range.getClientRects = () => ({ | ||
item: () => null, | ||
length: 0, | ||
[Symbol.iterator]: vi.fn(), | ||
}) | ||
|
||
return range | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.