-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: merge master and canary to get latest updates [HOMER-894] (#1300)
* chore(deps-dev): bump eslint-plugin-react from 7.29.4 to 7.30.0 (#1273) * chore(deps-dev): bump rollup from 2.73.0 to 2.74.1 (#1274) * chore(deps-dev): bump typescript from 4.6.4 to 4.7.2 (#1277) * chore(deps-dev): bump lint-staged from 12.4.1 to 12.4.2 (#1276) * chore(deps-dev): bump rollup from 2.74.1 to 2.75.3 (#1279) * chore(deps-dev): bump lint-staged from 12.4.2 to 12.4.3 (#1278) * chore(deps-dev): bump rollup from 2.75.3 to 2.75.4 (#1280) * feat: add option to include absolute elements in auto resizer (#901) * feat: introduce some additional logic for window.updateHeight method in order to count absolute positioned elements. * feat: check for absolute positioned elements with MutationObserver * test: add mocked Array<MutationRecord> to test file * refactor: apply review suggestions Co-authored-by: Andi Pätzold <[email protected]> * refactor: get height based on highest getBoundingClientRect.bottom * refactor: always run observer to store absolute elements * feat: update type definition for startAutoResizer * fix: call updateHeight after checkAbsoluteElements is updated * feat: do not check elements with negative bottom * Update lib/window.ts * fix: code readability * fix: ignore tranformed elements * Revert "fix: ignore tranformed elements" This reverts commit 624e9f3. * fix: do not check for negative bottom * docs: add warning about negative bottom and transformed elements * Update lib/types/window.types.ts Co-authored-by: Andi Pätzold <[email protected]> Co-authored-by: Renato Massao Yonamine <[email protected]> Co-authored-by: Renato Massao Yonamine <[email protected]> Co-authored-by: Andi Pätzold <[email protected]> * chore: 4.6.0 [skip ci] * add option to include absolute elements in auto resizer ([#901](#901)) ([0269b00](0269b00)) * chore(deps-dev): bump lint-staged from 12.4.3 to 13.0.0 (#1281) * chore(deps-dev): bump rollup from 2.75.4 to 2.75.5 (#1282) * chore(deps-dev): bump rollup-plugin-typescript2 from 0.31.2 to 0.32.0 (#1283) * chore(deps): bump semver-regex from 3.1.3 to 3.1.4 (#1285) * chore(deps): bump npm from 8.4.1 to 8.12.1 (#1286) * chore(deps-dev): bump contentful-management from 10.6.0 to 10.6.2 (#1287) * chore(deps-dev): bump typescript from 4.7.2 to 4.7.3 (#1288) * chore(deps-dev): bump rollup-plugin-typescript2 from 0.32.0 to 0.32.1 (#1289) * chore(deps-dev): bump rollup from 2.75.5 to 2.75.6 (#1290) * chore(deps-dev): bump lint-staged from 13.0.0 to 13.0.1 (#1292) * chore(deps-dev): bump semantic-release from 19.0.2 to 19.0.3 (#1291) * feat: added worflowdefinition type to exported entities and to api.types (#1294) * chore: 4.7.0 [skip ci] * added worflowdefinition type to exported entities and to api.types ([#1294](#1294)) ([b2d917f](b2d917f)) * chore(deps-dev): bump prettier from 2.6.2 to 2.7.0 (#1293) * chore(deps-dev): bump contentful-management from 10.6.2 to 10.6.3 (#1296) * feat: exported workflow definition type (#1295) * chore: 4.8.0 [skip ci] * exported workflow definition type ([#1295](#1295)) ([490e5db](490e5db)) * chore(deps-dev): bump prettier from 2.7.0 to 2.7.1 (#1298) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bohdan Hutsol <[email protected]> Co-authored-by: Renato Massao Yonamine <[email protected]> Co-authored-by: Renato Massao Yonamine <[email protected]> Co-authored-by: Andi Pätzold <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Maria Jaramillo <[email protected]>
- Loading branch information
1 parent
caf6383
commit b4ac65c
Showing
10 changed files
with
1,541 additions
and
13,135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ | |
.env | ||
.env.local | ||
.envrc | ||
|
||
# editors | ||
.vscode/ | ||
.idea/ |
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
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,8 +1,15 @@ | ||
export interface WindowAPI { | ||
/** Sets the iframe height to the given value in pixels or using scrollHeight if value is not passed */ | ||
updateHeight: (height?: number) => void | ||
/** Listens for DOM changes and updates height when the size changes. */ | ||
startAutoResizer: () => void | ||
/** | ||
* Listens for DOM changes and updates height when the size changes. | ||
* | ||
* When passing absoluteElements true, an infinite loop can happen if elements are always rendered below the height of the window. | ||
* e.g. transformed elements or absolute elements with negative bottom | ||
* @param {Object} opts - Options to be passed to auto resize | ||
* @param {Boolean} opts.absoluteElements - Defines if auto resize should consider absolut elements | ||
*/ | ||
startAutoResizer: ({ absoluteElements }?: { absoluteElements?: boolean }) => void | ||
/** Stops resizing the iframe automatically. */ | ||
stopAutoResizer: () => void | ||
} |
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.