Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main #413

Merged
merged 43 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c62cd1f
fix(deps): update dependency @adobe/helix-importer to v3.4.3 (#368)
renovate[bot] Jun 7, 2024
30c886e
chore(release): 1.51.19 [skip ci]
semantic-release-bot Jun 7, 2024
2ab0bbd
fix(deps): update dependency @adobe/helix-importer to v3.4.4 (#369)
renovate[bot] Jun 7, 2024
d8af871
chore(release): 1.51.20 [skip ci]
semantic-release-bot Jun 7, 2024
62dfce5
chore(deps): update external fixes (#370)
renovate[bot] Jun 8, 2024
74595c8
fix(deps): update adobe fixes (#371)
renovate[bot] Jun 9, 2024
dd4d072
chore(release): 1.51.21 [skip ci]
semantic-release-bot Jun 9, 2024
b3f5849
fix(deps): update dependency @adobe/helix-importer to v3.4.6 (#372)
renovate[bot] Jun 9, 2024
2c04743
chore(release): 1.51.22 [skip ci]
semantic-release-bot Jun 9, 2024
0edd45b
fix(deps): update dependency @adobe/helix-importer to v3.4.7 (#373)
renovate[bot] Jun 9, 2024
2bb3499
chore(release): 1.51.23 [skip ci]
semantic-release-bot Jun 9, 2024
3f2c7f1
chore(deps): update dependency c8 to v10 (#374)
renovate[bot] Jun 11, 2024
dedbce8
fix(deps): update external fixes (#379)
renovate[bot] Jun 15, 2024
a46d549
chore(release): 1.51.24 [skip ci]
semantic-release-bot Jun 15, 2024
c5302c3
fix(deps): update external fixes (#384)
renovate[bot] Jun 22, 2024
62a5774
chore(release): 1.51.25 [skip ci]
semantic-release-bot Jun 22, 2024
dbcef27
fix(deps): update dependency @adobe/helix-importer to v3.4.8 (#385)
renovate[bot] Jun 22, 2024
015e807
chore(release): 1.51.26 [skip ci]
semantic-release-bot Jun 22, 2024
9087858
fix(deps): update dependency @adobe/helix-importer to v3.4.9 (#386)
renovate[bot] Jun 23, 2024
5b0b685
chore(release): 1.51.27 [skip ci]
semantic-release-bot Jun 23, 2024
9335765
fix(deps): update dependency @adobe/helix-importer to v3.4.10 (#388)
renovate[bot] Jun 29, 2024
60cdc3d
chore(release): 1.51.28 [skip ci]
semantic-release-bot Jun 29, 2024
34521ed
chore(deps): update dependency mocha to v10.5.2 (#389)
renovate[bot] Jun 29, 2024
d2c4622
fix(deps): update dependency @adobe/helix-importer to v3.4.11 (#390)
renovate[bot] Jul 5, 2024
0f926c3
chore(release): 1.51.29 [skip ci]
semantic-release-bot Jul 5, 2024
814c7c2
chore(deps): update dependency mocha to v10.6.0 (#392)
renovate[bot] Jul 6, 2024
e1a1dd1
fix(deps): update dependency @adobe/helix-importer to v3.4.12 (#393)
renovate[bot] Jul 8, 2024
e330a4f
chore(release): 1.51.30 [skip ci]
semantic-release-bot Jul 8, 2024
6422074
[Feat] #381 Also consider crawl filter as a regexp (#382)
atopper Jul 10, 2024
6c5ba80
chore(deps): update external fixes (#400)
renovate[bot] Jul 13, 2024
7e8208d
fix(deps): update dependency @adobe/helix-importer to v3.4.13 (#401)
renovate[bot] Jul 14, 2024
336b348
chore(release): 1.51.31 [skip ci]
semantic-release-bot Jul 14, 2024
b0ffd38
chore(deps): update external fixes (#403)
renovate[bot] Jul 20, 2024
e08cb06
chore(deps): update dependency mocha to v10.7.0 (#404)
renovate[bot] Jul 20, 2024
2d7f428
chore(deps): update dependency @babel/eslint-parser to v7.25.0 (#408)
renovate[bot] Jul 27, 2024
2a82bad
chore(deps): update external fixes (#409)
renovate[bot] Aug 3, 2024
f2619bb
fix(deps): update external fixes (#410)
renovate[bot] Aug 10, 2024
4275686
chore(release): 1.51.32 [skip ci]
semantic-release-bot Aug 10, 2024
c343bc4
fix(deps): update dependency @adobe/helix-importer to v3.4.14 (#412)
renovate[bot] Aug 13, 2024
5d5b464
chore(deps): update dependency webpack-merge to v6 (#394)
renovate[bot] Aug 13, 2024
8ab106c
chore(release): 1.51.33 [skip ci]
semantic-release-bot Aug 13, 2024
1d93cd1
Merge branch 'main' into feat-import-manual-mapping-flow2
catalan-adobe Aug 14, 2024
0fbd1da
chore(sm-import): merge main
catalan-adobe Aug 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
## [1.51.33](https://github.com/adobe/helix-importer-ui/compare/v1.51.32...v1.51.33) (2024-08-13)


### Bug Fixes

* **deps:** update dependency @adobe/helix-importer to v3.4.14 ([#412](https://github.com/adobe/helix-importer-ui/issues/412)) ([c343bc4](https://github.com/adobe/helix-importer-ui/commit/c343bc4c71d0e6fc827cccaddc3cfdb375ab6fc8))

## [1.51.32](https://github.com/adobe/helix-importer-ui/compare/v1.51.31...v1.51.32) (2024-08-10)


### Bug Fixes

* **deps:** update external fixes ([#410](https://github.com/adobe/helix-importer-ui/issues/410)) ([f2619bb](https://github.com/adobe/helix-importer-ui/commit/f2619bbb6e0fcc5b716379385ecd1e38778a330a))

## [1.51.31](https://github.com/adobe/helix-importer-ui/compare/v1.51.30...v1.51.31) (2024-07-14)


### Bug Fixes

* **deps:** update dependency @adobe/helix-importer to v3.4.13 ([#401](https://github.com/adobe/helix-importer-ui/issues/401)) ([7e8208d](https://github.com/adobe/helix-importer-ui/commit/7e8208dda9c4c4d96024c97c734b4fd4d021afe8))

## [1.51.30](https://github.com/adobe/helix-importer-ui/compare/v1.51.29...v1.51.30) (2024-07-08)


### Bug Fixes

* **deps:** update dependency @adobe/helix-importer to v3.4.12 ([#393](https://github.com/adobe/helix-importer-ui/issues/393)) ([e1a1dd1](https://github.com/adobe/helix-importer-ui/commit/e1a1dd1756962abbb7e71471fd9af7df05ad4f63))

## [1.51.29](https://github.com/adobe/helix-importer-ui/compare/v1.51.28...v1.51.29) (2024-07-05)


### Bug Fixes

* **deps:** update dependency @adobe/helix-importer to v3.4.11 ([#390](https://github.com/adobe/helix-importer-ui/issues/390)) ([d2c4622](https://github.com/adobe/helix-importer-ui/commit/d2c46220a16ed7fb631cd918f7877f18ddbd1286))

## [1.51.28](https://github.com/adobe/helix-importer-ui/compare/v1.51.27...v1.51.28) (2024-06-29)


### Bug Fixes

* **deps:** update dependency @adobe/helix-importer to v3.4.10 ([#388](https://github.com/adobe/helix-importer-ui/issues/388)) ([9335765](https://github.com/adobe/helix-importer-ui/commit/93357651dfa72e268793a5beb5eba155cdd90876))

## [1.51.27](https://github.com/adobe/helix-importer-ui/compare/v1.51.26...v1.51.27) (2024-06-23)


Expand Down
24 changes: 22 additions & 2 deletions js/crawl/crawl.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,26 @@ const getProxyURLSetup = (url, origin) => {
};
};

/**
* Test whether the given path matches the provided filter.
* @param path The path of the website page.
* @param filter The filter to test the path against, using 'startsWith' and RegExp's test.
* @returns {boolean}
*/
const pathnameMatchesFilter = (path, filter) => {
try {
if (!filter || filter.length === 0 || path.startsWith(filter)) {
return true;
}
return new RegExp(filter).test(path);
} catch (e) {
// eslint-disable-next-line no-console
console.error(`Could not test path ${path} with provided filter: ${filter}`, e);
alert.error(`Could not test path with provided filter: ${filter}`);
return false;
}
};

const getContentFrame = () => document.querySelector(`${PARENT_SELECTOR} iframe`);

const attachListeners = () => {
Expand Down Expand Up @@ -193,7 +213,7 @@ const attachListeners = () => {
if (!crawlStatus.urls.includes(found)
&& !urlsArray.includes(found)
&& current !== found
&& u.pathname.startsWith(config.fields['crawl-filter-pathname'])) {
&& pathnameMatchesFilter(u.pathname, config.fields['crawl-filter-pathname'])) {
urlsArray.push(found);
linksToFollow.push(found);
} else {
Expand Down Expand Up @@ -354,7 +374,7 @@ const attachListeners = () => {
sitemap: config.fields['crawl-sitemap-file'],
})).filter((url) => {
const u = new URL(url);
return u.pathname.startsWith(config.fields['crawl-filter-pathname']);
return pathnameMatchesFilter(u.pathname, config.fields['crawl-filter-pathname']);
});

crawlStatus.crawled = crawlStatus.urls.length;
Expand Down
4 changes: 2 additions & 2 deletions js/dist/225.spectrum-web-components.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/dist/523.spectrum-web-components.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions js/dist/694.spectrum-web-components.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions js/dist/775.spectrum-web-components.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/dist/904.spectrum-web-components.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/helix-importer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/helix-importer.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license MIT
*/

/*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */

/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */

Expand Down
302 changes: 137 additions & 165 deletions js/dist/spectrum-web-components.js

Large diffs are not rendered by default.

Loading