From 274eed4eb6995392c4dc9f3b211463625af8abb5 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Wed, 18 Oct 2023 17:58:08 +0300 Subject: [PATCH 001/236] UHF-9113: Add drupal 10 compatible custom patches --- ..._strip_debug_mode_whitespaces_10.1.x.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 patches/drupal_core_strip_debug_mode_whitespaces_10.1.x.patch diff --git a/patches/drupal_core_strip_debug_mode_whitespaces_10.1.x.patch b/patches/drupal_core_strip_debug_mode_whitespaces_10.1.x.patch new file mode 100644 index 000000000..e40768c2e --- /dev/null +++ b/patches/drupal_core_strip_debug_mode_whitespaces_10.1.x.patch @@ -0,0 +1,37 @@ +diff --git a/core/themes/engines/twig/twig.engine b/core/themes/engines/twig/twig.engine +index cb32cbaa95..e73e9c498f 100644 +--- a/core/themes/engines/twig/twig.engine ++++ b/core/themes/engines/twig/twig.engine +@@ -63,8 +63,8 @@ function twig_render_template($template_file, array $variables) { + throw $e; + } + if ($twig_service->isDebug()) { +- $output['debug_prefix'] .= "\n\n"; +- $output['debug_prefix'] .= "\n"; ++ $output['debug_prefix'] .= ""; ++ $output['debug_prefix'] .= ""; + // If there are theme suggestions, reverse the array so more specific + // suggestions are shown first. + if (!empty($variables['theme_hook_suggestions'])) { +@@ -106,17 +106,17 @@ function twig_render_template($template_file, array $variables) { + $prefix = ($template == $current_template) ? 'x' : '*'; + $suggestion = $prefix . ' ' . $template; + } +- $output['debug_info'] .= "\n"; ++ $output['debug_info'] .= ""; + + if (!empty($invalid_suggestions)) { +- $output['debug_info'] .= "\n"; + } + } +- $output['debug_info'] .= "\n\n"; +- $output['debug_suffix'] .= "\n\n\n"; ++ $output['debug_info'] .= "\n"; ++ $output['debug_suffix'] .= "\n\n"; + } + // This output has already been rendered and is therefore considered safe. + return Markup::create(implode('', $output)); From 4276290da0701dd544e562e4220554753a0c1c7d Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Wed, 18 Oct 2023 17:03:53 +0300 Subject: [PATCH 002/236] UHF-9113: add drupal 10 patches --- composer.json | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 4b04c9fcb..17bb642a5 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "minimum-stability": "dev", "require": { "ext-curl": "*", - "drupal/core": "^9.5", + "drupal/core": "^10.1.5", "drupal/admin_toolbar": "^3.0", "drupal/allowed_formats": "^2.0", "drupal/config_ignore": "^2.3", @@ -66,18 +66,16 @@ "extra": { "patches": { "drupal/content_lock": { - "[#UHF-4553] Fix unlock content button redirect": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/82081691e4a6d05b3716052d5fff46a04027bdc3/patches/content-lock-uhf-4553.patch" + "[#UHF-4553] Fix unlock content button redirect": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/82081691e4a6d05b3716052d5fff46a04027bdc3/patches/content-lock-uhf-4553.patch", + "https://www.drupal.org/project/content_lock/issues/3343964": "https://www.drupal.org/files/issues/2023-05-22/3343964-5.patch" }, "drupal/core": { - "[#UHF-181] Hide untranslated menu links": "https://www.drupal.org/files/issues/2021-03-05/3091246-allow-menu-tree-manipulators-alter-12-1.patch", - "[#UHF-920] Token for base URL (https://www.drupal.org/project/drupal/issues/1088112). @todo This can be removed in D10": "https://www.drupal.org/files/issues/2020-10-06/1088112-63.patch", - "[#UHF-3812] Ajax exposed filters not working for multiple instances of the same Views block placed on one page (https://www.drupal.org/project/drupal/issues/3163299)": "https://www.drupal.org/files/issues/2023-05-07/3163299-104-D9.patch", - "[#UHF-3087] Non-published menu links as parent (https://www.drupal.org/project/drupal/issues/2807629). @todo This can be removed in D10": "https://www.drupal.org/files/issues/2022-12-16/2807629-75.patch", - "[#UHF-4325] Strip whitespaces from twig debug comments": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/f7c0e380e2deb9a1b46bdf779fb27a945b466575/patches/drupal_core_strip_debug_mode_whitespaces_9.3.x.patch", + "[#UHF-181] Hide untranslated menu links (https://www.drupal.org/project/drupal/issues/3091246)": "https://www.drupal.org/files/issues/2023-10-02/3091246--allow-menu-tree-manipulators-alter--23.patch", + "[#UHF-3812] Ajax exposed filters not working for multiple instances of the same Views block placed on one page (https://www.drupal.org/project/drupal/issues/3163299)": "https://www.drupal.org/files/issues/2023-05-07/3163299-104-D10.patch", + "[#UHF-4325] Strip whitespaces from twig debug comments": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/b628bc051d82a1883768364050aa833824bd48c8/patches/drupal_core_strip_debug_mode_whitespaces_10.1.x.patch", "[#UHF-7008] Core localization file download URL is wrong (https://www.drupal.org/project/drupal/issues/3022876)": "https://git.drupalcode.org/project/drupal/-/commit/40a96136b2dfe4322338508dffa636f6cb407900.patch", "[#UHF-7008] Add multilingual support for caching basefield definitions (https://www.drupal.org/project/drupal/issues/3114824)": "https://www.drupal.org/files/issues/2020-02-20/3114824_2.patch", - "[#UHF-7008] Admin toolbar and contextual links should always be rendered in the admin language (https://www.drupal.org/project/drupal/issues/2313309)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/a42c905a162c8510348b17cdf60000a0a7f82037/patches/drupal-2313309-render-admin-toolbar-with-admin-language.patch", - "[#UHF-8334]": "https://www.drupal.org/files/issues/2023-03-17/2706241-74.patch" + "[#UHF-7008] Admin toolbar and contextual links should always be rendered in the admin language (https://www.drupal.org/project/drupal/issues/2313309)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/a42c905a162c8510348b17cdf60000a0a7f82037/patches/drupal-2313309-render-admin-toolbar-with-admin-language.patch" }, "drupal/default_content": { "https://www.drupal.org/project/default_content/issues/2640734#comment-14638943": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/main/patches/default_content_2.0.0-alpha2-2640734_manual_imports-e164a354.patch" From 8cb52d3f4df2e28eda6cc53cfbc8dcb260dd7256 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 23 Oct 2023 09:21:57 +0300 Subject: [PATCH 003/236] UHF-9113: Require ckeditor4 contrib module for drupal 10 --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 17bb642a5..3f51f7168 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,7 @@ "drupal/config_rewrite": "^1.4", "drupal/content_lock": "^2.2", "drupal/crop": "^2.1", + "drupal/ckeditor": "^1.0", "drupal/default_content": "^2.0.0-alpha2", "drupal/diff": "^1.0", "drupal/easy_breadcrumb": "^2.0", From 0b76aeb0f44b2b2254feb95964ed311a263d2f6a Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 23 Oct 2023 11:34:21 +0300 Subject: [PATCH 004/236] UHF-9113: Make tests Drupal 10 compatible --- .../src/Plugin/ExternalEntities/StorageClient/Announcements.php | 2 +- modules/helfi_media_map/tests/src/Functional/MediaMapTest.php | 2 +- .../helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php b/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php index 31072e763..58338060b 100644 --- a/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php +++ b/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php @@ -166,7 +166,7 @@ private function request(array $parameters, string $langcode) : array { try { $uri = vsprintf('%s/jsonapi/node/announcement?%s', [ $this->environment->getInternalAddress($langcode), - \GuzzleHttp\http_build_query($parameters), + \http_build_query($parameters), ]); $content = $this->client->request('GET', $uri); $json = Utils::jsonDecode($content->getBody()->getContents(), TRUE); diff --git a/modules/helfi_media_map/tests/src/Functional/MediaMapTest.php b/modules/helfi_media_map/tests/src/Functional/MediaMapTest.php index 9453396b1..4d186fe64 100644 --- a/modules/helfi_media_map/tests/src/Functional/MediaMapTest.php +++ b/modules/helfi_media_map/tests/src/Functional/MediaMapTest.php @@ -28,7 +28,7 @@ class MediaMapTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected $defaultTheme = 'stable'; + protected $defaultTheme = 'stark'; /** * {@inheritdoc} diff --git a/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php b/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php index 7f1c542d7..e055d2426 100644 --- a/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php +++ b/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php @@ -301,7 +301,7 @@ protected function request( $uri = vsprintf('%s%s?%s', [ $this->environment->getInternalAddress($langcode), $this->endpoint, - \GuzzleHttp\http_build_query($parameters), + \http_build_query($parameters), ]); $content = $this->client->request('GET', $uri, [ From 6ae7f0fb12815bc30e527a42c749887f86ad553a Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 23 Oct 2023 09:13:44 +0300 Subject: [PATCH 005/236] UHF-9113: Try running the tests on Drupal 10 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 187aceb1a..92ee0f691 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: - name: Clone platform run: | - git clone --depth=1 https://github.com/City-of-Helsinki/drupal-helfi-platform.git $DRUPAL_ROOT + git clone --depth=1 -b UHF-9113-drupal-10 https://github.com/City-of-Helsinki/drupal-helfi-platform.git $DRUPAL_ROOT rm -rf $DRUPAL_ROOT/.git - name: Install required composer dependencies From 4540507d8739daba22f14c90285c81affbf31cd4 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Tue, 24 Oct 2023 07:52:20 +0300 Subject: [PATCH 006/236] UHF-9113: Fix deprecated code https://www.drupal.org/node/3159012 --- src/Plugin/Block/SocialMediaSharingBlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/Block/SocialMediaSharingBlock.php b/src/Plugin/Block/SocialMediaSharingBlock.php index 24263ab8b..377c22ac6 100644 --- a/src/Plugin/Block/SocialMediaSharingBlock.php +++ b/src/Plugin/Block/SocialMediaSharingBlock.php @@ -75,7 +75,7 @@ public function build() : array { // Call pre_execute event before doing anything. $event = new SocialMediaEvent($social_medias); - $this->eventDispatcher->dispatch('social_media.pre_execute', $event); + $this->eventDispatcher->dispatch($event, 'social_media.pre_execute'); $social_medias = $event->getElement(); $social_medias = $this->sortSocialMedias($social_medias); @@ -122,7 +122,7 @@ public function build() : array { } $event = new SocialMediaEvent($elements); - $this->eventDispatcher->dispatch('social_media.pre_render', $event); + $this->eventDispatcher->dispatch($event, 'social_media.pre_render'); $elements = $event->getElement(); $build['social_sharing_block'] = [ From 5a78dfcef6ca029d73fff803858693665a1b9b74 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Wed, 25 Oct 2023 08:22:37 +0300 Subject: [PATCH 007/236] UHF-9113: Fix hook_modules_installed breaking database updates on drupal 10 --- helfi_platform_config.module | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/helfi_platform_config.module b/helfi_platform_config.module index 2de696a83..a7d4d5d61 100644 --- a/helfi_platform_config.module +++ b/helfi_platform_config.module @@ -12,6 +12,7 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Breadcrumb\Breadcrumb; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityInterface; +use Drupal\Core\Field\BaseFieldDefinition; use Drupal\Core\Field\FieldConfigBase; use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Link; @@ -129,9 +130,17 @@ function helfi_platform_config_update_paragraph_target_types() : void { continue; } $field = $definitions[$type->field]; - // Save the field to trigger re-build of target_bundles. - // @see helfi_platform_config_field_config_presave(). - $field->save(); + // Base fields use BaseFieldDefinition instances while configurable fields + // use FieldConfig instances. For BaseFieldDefinition, save the + // BaseFieldOverride to trigger re-build of target_bundles. + if ($field instanceof BaseFieldDefinition) { + $field->getConfig($type->bundle)->save(); + } + else { + // Save the field to trigger re-build of target_bundles. + // @see helfi_platform_config_field_config_presave(). + $field->save(); + } } } From b05cc5da10c8a9ddf6991e85f223a69155bbb4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:10:58 +0300 Subject: [PATCH 008/236] UHF-9113: Updated the responsive image configurations to accommodate the changes described at https://www.drupal.org/node/3274803. --- .../responsive_image.styles.content_cards.yml | 12 +++++++----- .../responsive_image.styles.gallery_thumbnail.yml | 12 +++++++----- .../responsive_image.styles.hero__background.yml | 12 +++++++----- .../install/responsive_image.styles.hero__bottom.yml | 12 +++++++----- .../responsive_image.styles.hero__diagonal.yml | 12 +++++++----- .../responsive_image.styles.hero__left_right.yml | 12 +++++++----- .../install/responsive_image.styles.image__3_2.yml | 12 +++++++----- ...sponsive_image.styles.image__3_2_content_area.yml | 12 +++++++----- ...ponsive_image.styles.list_of_links__thumbnail.yml | 10 ++++++---- .../install/responsive_image.styles.original.yml | 12 +++++++----- 10 files changed, 69 insertions(+), 49 deletions(-) diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.content_cards.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.content_cards.yml index f2fa8a9ca..ea13fc5ef 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.content_cards.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.content_cards.yml @@ -6,6 +6,8 @@ dependencies: - image.style.3_2_xs_2x - image.style.3_2_xxs - image.style.3_2_xxs_2x + module: + - helfi_image_styles id: content_cards label: 'Content cards' image_style_mappings: @@ -14,16 +16,16 @@ image_style_mappings: image_mapping: 3_2_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 3_2_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 3_2_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 3_2_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 3_2_xxs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.gallery_thumbnail.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.gallery_thumbnail.yml index 06d8e83d6..3031077d6 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.gallery_thumbnail.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.gallery_thumbnail.yml @@ -4,6 +4,8 @@ dependencies: config: - image.style.1_1_thumbnail - image.style.1_1_thumbnail_2x + module: + - helfi_image_styles id: gallery_thumbnail label: 'Gallery thumbnail' image_style_mappings: @@ -12,16 +14,16 @@ image_style_mappings: image_mapping: 1_1_thumbnail breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 1_1_thumbnail_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 1_1_thumbnail breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 1_1_thumbnail_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 1_1_thumbnail_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__background.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__background.yml index f64d7f825..37711ef75 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__background.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__background.yml @@ -12,6 +12,8 @@ dependencies: - image.style.23_10_xl_2x - image.style.23_10_xs - image.style.23_10_xs_2x + module: + - helfi_image_styles id: hero__background label: 'Hero Background' image_style_mappings: @@ -60,16 +62,16 @@ image_style_mappings: image_mapping: 23_10_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 23_10_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 23_10_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__bottom.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__bottom.yml index 5d038d97d..d3d6a9f28 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__bottom.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__bottom.yml @@ -14,6 +14,8 @@ dependencies: - image.style.23_10_xs_2x - image.style.23_10_xxs - image.style.23_10_xxs_2x + module: + - helfi_image_styles id: hero__bottom label: 'Hero Bottom' image_style_mappings: @@ -62,16 +64,16 @@ image_style_mappings: image_mapping: 23_10_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 23_10_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 23_10_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xxs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__diagonal.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__diagonal.yml index 111f2a345..b0fa1f0c2 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__diagonal.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__diagonal.yml @@ -14,6 +14,8 @@ dependencies: - image.style.23_10_xs_2x - image.style.23_10_xxs - image.style.23_10_xxs_2x + module: + - helfi_image_styles id: hero__diagonal label: 'Hero Diagonal' image_style_mappings: @@ -62,16 +64,16 @@ image_style_mappings: image_mapping: 23_10_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 23_10_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 23_10_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xxs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__left_right.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__left_right.yml index 27953f7ea..61d9b3024 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.hero__left_right.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.hero__left_right.yml @@ -8,6 +8,8 @@ dependencies: - image.style.3_2_s_2x - image.style.3_2_xs - image.style.3_2_xs_2x + module: + - helfi_image_styles id: hero__left_right label: 'Hero Left/Right' image_style_mappings: @@ -26,16 +28,16 @@ image_style_mappings: image_mapping: 3_2_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 3_2_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 3_2_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_xxs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2.yml index fa3f5bf2f..511d7c97f 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2.yml @@ -12,6 +12,8 @@ dependencies: - image.style.3_2_xs_2x - image.style.3_2_xxs - image.style.3_2_xxs_2x + module: + - helfi_image_styles id: image__3_2 label: 'Image 3:2' image_style_mappings: @@ -50,16 +52,16 @@ image_style_mappings: image_mapping: 3_2_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 3_2_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 3_2_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 3_2_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 3_2_xxs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2_content_area.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2_content_area.yml index cdc2c490a..f117ee6a8 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2_content_area.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.image__3_2_content_area.yml @@ -10,6 +10,8 @@ dependencies: - image.style.3_2_xs_2x - image.style.3_2_xxs - image.style.3_2_xxs_2x + module: + - helfi_image_styles id: image__3_2_content_area label: 'Image 3:2 (content area)' image_style_mappings: @@ -38,16 +40,16 @@ image_style_mappings: image_mapping: 3_2_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: 3_2_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: 3_2_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 3_2_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 3_2_xxs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.list_of_links__thumbnail.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.list_of_links__thumbnail.yml index b3551351a..5cef523c2 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.list_of_links__thumbnail.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.list_of_links__thumbnail.yml @@ -6,6 +6,8 @@ dependencies: - image.style.1_1_s_2x - image.style.1_1_xs - image.style.1_1_xs_2x + module: + - helfi_image_styles id: list_of_links__thumbnail label: 'List of Links Thumbnail' image_style_mappings: @@ -27,13 +29,13 @@ image_style_mappings: - image_mapping_type: image_style image_mapping: 1_1_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x + breakpoint_id: helfi_image_styles.xxs + multiplier: 1x - image_mapping_type: image_style image_mapping: 1_1_xs_2x - breakpoint_id: helfi_image_styles.xxs - multiplier: 1x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: 1_1_xs_2x diff --git a/modules/helfi_image_styles/config/install/responsive_image.styles.original.yml b/modules/helfi_image_styles/config/install/responsive_image.styles.original.yml index 4c903f2b3..4cb97a6e9 100644 --- a/modules/helfi_image_styles/config/install/responsive_image.styles.original.yml +++ b/modules/helfi_image_styles/config/install/responsive_image.styles.original.yml @@ -12,6 +12,8 @@ dependencies: - image.style.original_xs_2x - image.style.original_xxs - image.style.original_xxs_2x + module: + - helfi_image_styles id: original label: Original image_style_mappings: @@ -50,16 +52,16 @@ image_style_mappings: image_mapping: original_xs breakpoint_id: helfi_image_styles.xs multiplier: 1x - - - image_mapping_type: image_style - image_mapping: original_xs_2x - breakpoint_id: helfi_image_styles.xs - multiplier: 2x - image_mapping_type: image_style image_mapping: original_xxs breakpoint_id: helfi_image_styles.xxs multiplier: 1x + - + image_mapping_type: image_style + image_mapping: original_xs_2x + breakpoint_id: helfi_image_styles.xs + multiplier: 2x - image_mapping_type: image_style image_mapping: original_xxs_2x From 8502a88ed247ad93037d4b89d2fcf4052ea74077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:13:03 +0300 Subject: [PATCH 009/236] UHF-9113: Changed the watchdog_exception() to use \Drupal\Core\Utility\Error::logException() instead. --- .../Plugin/ExternalEntities/StorageClient/Announcements.php | 4 +++- .../src/Plugin/Field/FieldFormatter/ChartFormatter.php | 5 +++-- .../Field/FieldFormatter/ChartMediaLibraryFormatter.php | 5 +++-- .../src/HelfiExternalEntityBase.php | 4 +++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php b/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php index 58338060b..749e16d43 100644 --- a/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php +++ b/modules/helfi_global_announcement/src/Plugin/ExternalEntities/StorageClient/Announcements.php @@ -7,6 +7,7 @@ use Drupal\Core\Entity\EntityStorageException; use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Language\LanguageManagerInterface; +use Drupal\Core\Utility\Error; use Drupal\external_entities\ExternalEntityInterface; use Drupal\external_entities\StorageClient\ExternalEntityStorageClientBase; use Drupal\helfi_api_base\Environment\Environment; @@ -173,7 +174,8 @@ private function request(array $parameters, string $langcode) : array { return $json['data']; } catch (RequestException | GuzzleException $e) { - watchdog_exception('helfi_announcements', $e); + $logger = \Drupal::logger('helfi_announcements'); + Error::logException($logger, $e); } return []; } diff --git a/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartFormatter.php b/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartFormatter.php index 29fc9f986..9efddf7ae 100644 --- a/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartFormatter.php +++ b/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartFormatter.php @@ -6,6 +6,7 @@ use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Field\FormatterBase; +use Drupal\Core\Utility\Error; use Drupal\helfi_media_chart\UrlParserTrait; /** @@ -37,8 +38,8 @@ public function viewElements(FieldItemListInterface $items, $langcode) :array { $url = $this->mediaUrlToUri($uri); } catch (\InvalidArgumentException $e) { - watchdog_exception('helfi_chart', $e); - + $logger = \Drupal::logger('helfi_chart'); + Error::logException($logger, $e); continue; } $element[$delta] = [ diff --git a/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartMediaLibraryFormatter.php b/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartMediaLibraryFormatter.php index c213ef6ae..8c9e3f765 100644 --- a/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartMediaLibraryFormatter.php +++ b/modules/helfi_media_chart/src/Plugin/Field/FieldFormatter/ChartMediaLibraryFormatter.php @@ -6,6 +6,7 @@ use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Field\FormatterBase; +use Drupal\Core\Utility\Error; use Drupal\helfi_media_chart\UrlParserTrait; /** @@ -36,8 +37,8 @@ public function viewElements(FieldItemListInterface $items, $langcode) :array { $url = $this->mediaUrlToUri($uri); } catch (\InvalidArgumentException $e) { - watchdog_exception('helfi_chart', $e); - + $logger = \Drupal::logger('helfi_chart'); + Error::logException($logger, $e); continue; } diff --git a/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php b/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php index e055d2426..176eb1fc9 100644 --- a/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php +++ b/modules/helfi_paragraphs_news_list/src/HelfiExternalEntityBase.php @@ -6,6 +6,7 @@ use Drupal\Core\Entity\EntityStorageException; use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Language\LanguageManagerInterface; +use Drupal\Core\Utility\Error; use Drupal\external_entities\ExternalEntityInterface; use Drupal\external_entities\StorageClient\ExternalEntityStorageClientBase; use Drupal\helfi_api_base\Environment\Environment; @@ -311,7 +312,8 @@ protected function request( return $this->formatResponse($json, $langcode); } catch (RequestException | GuzzleException $e) { - watchdog_exception('helfi_external_entity', $e); + $logger = \Drupal::logger('helfi_external_entity'); + Error::logException($logger, $e); } return []; } From caba75845ecf9d20d323247d6853e5f8d2a98497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:22:04 +0300 Subject: [PATCH 010/236] UHF-9113: Updated views with tooltip and time_diff configurations. Also reordered views.view.news.yml to the way D10 exports it. --- .../config/rewrite/views.view.content.yml | 9 + .../rewrite/views.view.media_library.yml | 15 +- .../config/optional/views.view.news.yml | 236 +++++++++--------- .../install/views.view.service_list.yml | 2 +- .../views.view.tpr_errand_service_list.yml | 9 + .../views.view.tpr_service_channel_list.yml | 9 + .../rewrite/views.view.tpr_service_list.yml | 9 + .../rewrite/views.view.tpr_unit_list.yml | 12 +- 8 files changed, 182 insertions(+), 119 deletions(-) diff --git a/modules/hdbt_admin_tools/config/rewrite/views.view.content.yml b/modules/hdbt_admin_tools/config/rewrite/views.view.content.yml index 3b88f454b..82bf2798f 100644 --- a/modules/hdbt_admin_tools/config/rewrite/views.view.content.yml +++ b/modules/hdbt_admin_tools/config/rewrite/views.view.content.yml @@ -250,6 +250,15 @@ display: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 operations: id: operations table: node diff --git a/modules/helfi_media/config/rewrite/views.view.media_library.yml b/modules/helfi_media/config/rewrite/views.view.media_library.yml index 15fd06c81..5763be673 100644 --- a/modules/helfi_media/config/rewrite/views.view.media_library.yml +++ b/modules/helfi_media/config/rewrite/views.view.media_library.yml @@ -1037,7 +1037,7 @@ display: replace_spaces: false path_case: none trim_whitespace: false - alt: 'Edit {{ name }}. {{ ''Opens in a new tab''|t }}' + alt: "Edit {{ name }}. {{ 'Opens in a new tab'|t }}" rel: '' link_class: '' prefix: '' @@ -1066,9 +1066,9 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - absolute: 0 - output_url_as_text: 0 text: Edit + output_url_as_text: false + absolute: false pager: type: full options: @@ -1372,6 +1372,15 @@ display: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 access: type: perm options: diff --git a/modules/helfi_node_news_item/config/optional/views.view.news.yml b/modules/helfi_node_news_item/config/optional/views.view.news.yml index e8814ca7b..a6d58c5e6 100644 --- a/modules/helfi_node_news_item/config/optional/views.view.news.yml +++ b/modules/helfi_node_news_item/config/optional/views.view.news.yml @@ -17,52 +17,12 @@ base_table: node_field_data base_field: nid display: default: - display_plugin: default id: default display_title: Default + display_plugin: default position: 0 display_options: - access: - type: perm - options: - perm: 'access content' - cache: - type: tag - options: { } - query: - type: views_query - options: - disable_sql_rewrite: false - distinct: false - replica: false - query_comment: '' - query_tags: { } - exposed_form: - type: basic - options: - submit_button: Apply - reset_button: false - reset_button_label: Reset - exposed_sorts_label: 'Sort by' - expose_sort_order: true - sort_asc_label: Asc - sort_desc_label: Desc - pager: - type: some - options: - items_per_page: 5 - offset: 0 - style: - type: default - options: - row_class: '' - default_row_class: true - uses_fields: true - row: - type: 'entity:node' - options: - relationship: none - view_mode: tiny_teaser + title: 'Latest news' fields: published_at: id: published_at @@ -71,6 +31,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: node + entity_field: published_at + plugin_id: field label: '' exclude: false alter: @@ -118,6 +81,15 @@ display: date_format: medium custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true @@ -128,9 +100,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: node - entity_field: published_at - plugin_id: field field_main_image: id: field_main_image table: node__field_main_image @@ -138,6 +107,7 @@ display: relationship: none group_type: group admin_label: '' + plugin_id: field label: '' exclude: false alter: @@ -193,7 +163,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - plugin_id: field view_node: id: view_node table: node @@ -201,6 +170,8 @@ display: relationship: none group_type: group admin_label: '' + entity_type: node + plugin_id: entity_link label: '' exclude: false alter: @@ -245,31 +216,106 @@ display: text: view output_url_as_text: true absolute: false + pager: + type: some + options: + offset: 0 + items_per_page: 5 + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + empty: { } + sorts: + published_at: + id: published_at + table: node_field_data + field: published_at + relationship: none + group_type: group + admin_label: '' entity_type: node - plugin_id: entity_link + entity_field: published_at + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: published_at + exposed: false + granularity: second + arguments: + nid: + id: nid + table: node_field_data + field: nid + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: nid + plugin_id: node_nid + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: node + default_argument_options: { } + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: true filters: status: - value: '1' + id: status table: node_field_data field: status - plugin_id: boolean entity_type: node entity_field: status - id: status + plugin_id: boolean + value: '1' + group: 1 expose: operator: '' operator_limit_selection: false operator_list: { } - group: 1 type: id: type table: node_field_data field: type - value: - news_item: news_item entity_type: node entity_field: type plugin_id: bundle + value: + news_item: news_item expose: operator_limit_selection: false operator_list: { } @@ -280,6 +326,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: node + entity_field: langcode + plugin_id: language operator: in value: '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' @@ -312,67 +361,28 @@ display: default_group: All default_group_multiple: { } group_items: { } - entity_type: node - entity_field: langcode - plugin_id: language - sorts: - published_at: - id: published_at - table: node_field_data - field: published_at + style: + type: default + options: + row_class: '' + default_row_class: true + uses_fields: true + row: + type: 'entity:node' + options: relationship: none - group_type: group - admin_label: '' - order: DESC - exposed: false - expose: - label: '' - granularity: second - entity_type: node - entity_field: published_at - plugin_id: date - title: 'Latest news' + view_mode: tiny_teaser + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } header: { } footer: { } - empty: { } - relationships: { } - arguments: - nid: - id: nid - table: node_field_data - field: nid - relationship: none - group_type: group - admin_label: '' - default_action: default - exception: - value: all - title_enable: false - title: All - title_enable: false - title: '' - default_argument_type: node - default_argument_options: { } - default_argument_skip_url: false - summary_options: - base_path: '' - count: true - items_per_page: 25 - override: false - summary: - sort_order: asc - number_of_records: 0 - format: default_summary - specify_validation: false - validate: - type: none - fail: 'not found' - validate_options: { } - break_phrase: false - not: true - entity_type: node - entity_field: nid - plugin_id: node_nid display_extenders: { } cache_metadata: max-age: -1 @@ -385,13 +395,13 @@ display: tags: - 'config:field.storage.node.field_main_image' latest_news: - display_plugin: block id: latest_news display_title: 'Latest news' + display_plugin: block position: 1 display_options: - display_extenders: { } display_description: '' + display_extenders: { } cache_metadata: max-age: -1 contexts: diff --git a/modules/helfi_tpr_config/config/install/views.view.service_list.yml b/modules/helfi_tpr_config/config/install/views.view.service_list.yml index 11c9567ab..a862663c7 100644 --- a/modules/helfi_tpr_config/config/install/views.view.service_list.yml +++ b/modules/helfi_tpr_config/config/install/views.view.service_list.yml @@ -357,13 +357,13 @@ display: display_plugin: block position: 1 display_options: - display_extenders: { } pager: type: none options: offset: 0 defaults: pager: false + display_extenders: { } cache_metadata: max-age: -1 contexts: diff --git a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_errand_service_list.yml b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_errand_service_list.yml index 3e2d178a4..dc74a5bc9 100644 --- a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_errand_service_list.yml +++ b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_errand_service_list.yml @@ -393,6 +393,15 @@ display: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true diff --git a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_channel_list.yml b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_channel_list.yml index 01daff3ce..2407d8db1 100644 --- a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_channel_list.yml +++ b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_channel_list.yml @@ -393,6 +393,15 @@ display: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true diff --git a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_list.yml b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_list.yml index dbef72ba6..709b6b819 100644 --- a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_list.yml +++ b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_service_list.yml @@ -393,6 +393,15 @@ display: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true diff --git a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_unit_list.yml b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_unit_list.yml index 404a4180a..7629e447d 100644 --- a/modules/helfi_tpr_config/config/rewrite/views.view.tpr_unit_list.yml +++ b/modules/helfi_tpr_config/config/rewrite/views.view.tpr_unit_list.yml @@ -5,8 +5,6 @@ dependencies: - helfi_tpr - user - views_bulk_operations - - views_bulk_edit - - content_lock id: tpr_unit_list label: 'TPR unit list' module: views @@ -75,6 +73,7 @@ display: batch: true batch_size: 50 form_step: true + ajax_loader: false buttons: false action_title: Action clear_on_exposed: true @@ -426,6 +425,15 @@ display: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 group_column: value group_columns: { } group_rows: true From 518b84ba13ca7c29aab588d2182b211b8de66666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:23:36 +0300 Subject: [PATCH 011/236] UHF-9113: Added image_loading settings to responsive_image fields. --- .../core.entity_view_display.media.image.image.yml | 2 ++ ...entity_view_display.media.remote_video.default.yml | 2 ++ ...ty_view_display.media.image.image_content_area.yml | 11 +++++++---- ...e.entity_view_display.media.image.content_card.yml | 2 ++ .../core.entity_view_display.media.image.hero.yml | 2 ++ ....entity_view_display.media.image.list_of_links.yml | 2 ++ 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/modules/helfi_media/config/install/core.entity_view_display.media.image.image.yml b/modules/helfi_media/config/install/core.entity_view_display.media.image.image.yml index d03b881f6..31a1ef447 100644 --- a/modules/helfi_media/config/install/core.entity_view_display.media.image.image.yml +++ b/modules/helfi_media/config/install/core.entity_view_display.media.image.image.yml @@ -20,6 +20,8 @@ content: settings: responsive_image_style: image__3_2 image_link: '' + image_loading: + attribute: eager third_party_settings: { } weight: 0 region: content diff --git a/modules/helfi_media_remote_video/config/install/core.entity_view_display.media.remote_video.default.yml b/modules/helfi_media_remote_video/config/install/core.entity_view_display.media.remote_video.default.yml index 1c403102e..b7ae3f04b 100644 --- a/modules/helfi_media_remote_video/config/install/core.entity_view_display.media.remote_video.default.yml +++ b/modules/helfi_media_remote_video/config/install/core.entity_view_display.media.remote_video.default.yml @@ -17,6 +17,8 @@ content: settings: max_width: 1264 max_height: 714 + loading: + attribute: eager third_party_settings: { } weight: 0 region: content diff --git a/modules/helfi_node_news_item/config/install/core.entity_view_display.media.image.image_content_area.yml b/modules/helfi_node_news_item/config/install/core.entity_view_display.media.image.image_content_area.yml index 4d7a26aa3..d01509918 100644 --- a/modules/helfi_node_news_item/config/install/core.entity_view_display.media.image.image_content_area.yml +++ b/modules/helfi_node_news_item/config/install/core.entity_view_display.media.image.image_content_area.yml @@ -15,25 +15,28 @@ bundle: image mode: image_content_area content: field_media_image: + type: responsive_image label: hidden - weight: 0 settings: responsive_image_style: image__3_2_content_area image_link: '' + image_loading: + attribute: eager third_party_settings: { } - type: responsive_image + weight: 0 region: content field_photographer: type: string - weight: 1 - region: content label: inline settings: link_to_entity: false third_party_settings: { } + weight: 1 + region: content hidden: created: true langcode: true name: true + search_api_excerpt: true thumbnail: true uid: true diff --git a/modules/helfi_paragraphs_content_cards/config/install/core.entity_view_display.media.image.content_card.yml b/modules/helfi_paragraphs_content_cards/config/install/core.entity_view_display.media.image.content_card.yml index 9e3ab96b4..097ef0695 100644 --- a/modules/helfi_paragraphs_content_cards/config/install/core.entity_view_display.media.image.content_card.yml +++ b/modules/helfi_paragraphs_content_cards/config/install/core.entity_view_display.media.image.content_card.yml @@ -20,6 +20,8 @@ content: settings: responsive_image_style: content_cards image_link: '' + image_loading: + attribute: eager third_party_settings: { } weight: 0 region: content diff --git a/modules/helfi_paragraphs_hero/config/install/core.entity_view_display.media.image.hero.yml b/modules/helfi_paragraphs_hero/config/install/core.entity_view_display.media.image.hero.yml index c6958f3f6..3dc5aa418 100644 --- a/modules/helfi_paragraphs_hero/config/install/core.entity_view_display.media.image.hero.yml +++ b/modules/helfi_paragraphs_hero/config/install/core.entity_view_display.media.image.hero.yml @@ -20,6 +20,8 @@ content: settings: responsive_image_style: hero__left_right image_link: '' + image_loading: + attribute: eager third_party_settings: { } weight: 0 region: content diff --git a/modules/helfi_paragraphs_list_of_links/config/install/core.entity_view_display.media.image.list_of_links.yml b/modules/helfi_paragraphs_list_of_links/config/install/core.entity_view_display.media.image.list_of_links.yml index 837b439cc..40be2bef9 100644 --- a/modules/helfi_paragraphs_list_of_links/config/install/core.entity_view_display.media.image.list_of_links.yml +++ b/modules/helfi_paragraphs_list_of_links/config/install/core.entity_view_display.media.image.list_of_links.yml @@ -20,6 +20,8 @@ content: settings: responsive_image_style: list_of_links__thumbnail image_link: '' + image_loading: + attribute: eager third_party_settings: { } weight: 0 region: content From 70e18d78f45f79a8ac741f35fb89b7af2945880a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:25:07 +0300 Subject: [PATCH 012/236] UHF-9113: Added tooltip and time_diff settings to all published_at fields. --- ...entity_view_display.node.news_item.card_teaser.yml | 9 +++++++++ ...ore.entity_view_display.node.news_item.default.yml | 10 ++++++++++ ...tity_view_display.node.news_item.medium_teaser.yml | 9 +++++++++ ...core.entity_view_display.node.news_item.teaser.yml | 9 +++++++++ ...entity_view_display.node.news_item.tiny_teaser.yml | 11 +++++++++-- 5 files changed, 46 insertions(+), 2 deletions(-) diff --git a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.card_teaser.yml b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.card_teaser.yml index 118ddb1fe..9d3e041e4 100644 --- a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.card_teaser.yml +++ b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.card_teaser.yml @@ -58,6 +58,15 @@ content: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 third_party_settings: { } weight: 4 region: content diff --git a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.default.yml b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.default.yml index 5e9f2b3c4..f13ceaf64 100644 --- a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.default.yml +++ b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.default.yml @@ -13,6 +13,7 @@ dependencies: - node.type.news_item module: - entity_reference_revisions + - helfi_platform_config - link - user id: node.news_item.default @@ -92,6 +93,15 @@ content: date_format: publication_date_format custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 third_party_settings: { } weight: 3 region: content diff --git a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.medium_teaser.yml b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.medium_teaser.yml index d5636be6c..8b519c157 100644 --- a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.medium_teaser.yml +++ b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.medium_teaser.yml @@ -47,6 +47,15 @@ content: date_format: publication_date_format custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 third_party_settings: { } weight: 3 region: content diff --git a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.teaser.yml b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.teaser.yml index 548570a61..7b67ebfff 100644 --- a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.teaser.yml +++ b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.teaser.yml @@ -56,6 +56,15 @@ content: date_format: long custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 third_party_settings: { } weight: 4 region: content diff --git a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.tiny_teaser.yml b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.tiny_teaser.yml index 09537a56f..0d1ed4a5d 100644 --- a/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.tiny_teaser.yml +++ b/modules/helfi_node_news_item/config/install/core.entity_view_display.node.news_item.tiny_teaser.yml @@ -11,10 +11,8 @@ dependencies: - field.field.node.news_item.field_news_item_links_title - field.field.node.news_item.field_news_item_tags - field.field.node.news_item.field_short_title - - image.style.tiny_square_image - node.type.news_item module: - - media - user id: node.news_item.tiny_teaser targetEntityType: node @@ -44,6 +42,15 @@ content: date_format: publication_date_format custom_date_format: '' timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 third_party_settings: { } weight: 2 region: content From 1e1396fed1abf6d0575d3bc7b9e88244565522af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:26:05 +0300 Subject: [PATCH 013/236] UHF-9113: Fixed the single quote usage in a middle of a text in configurations. --- ...field.node.landing_page.field_has_hero.yml | 2 +- ...agraph.banner.field_banner_link_design.yml | 2 +- ....field.paragraph.hero.field_hero_title.yml | 2 +- ...tities.external_entity_type.helfi_news.yml | 23 +++++++++++-------- ...t_contact_card.field_unit_contact_unit.yml | 2 +- ...aphs.paragraphs_type.unit_contact_card.yml | 2 +- 6 files changed, 19 insertions(+), 14 deletions(-) diff --git a/modules/helfi_node_landing_page/config/install/field.field.node.landing_page.field_has_hero.yml b/modules/helfi_node_landing_page/config/install/field.field.node.landing_page.field_has_hero.yml index 972db8967..0642b32ac 100644 --- a/modules/helfi_node_landing_page/config/install/field.field.node.landing_page.field_has_hero.yml +++ b/modules/helfi_node_landing_page/config/install/field.field.node.landing_page.field_has_hero.yml @@ -9,7 +9,7 @@ field_name: field_has_hero entity_type: node bundle: landing_page label: Hero -description: 'Select whether you wish to display a hero highlight element on the page. If a hero is selected, it''s heading will be used as the main heading for the page.' +description: "Select whether you wish to display a hero highlight element on the page. If a hero is selected, it's heading will be used as the main heading for the page." required: false translatable: true default_value: diff --git a/modules/helfi_paragraphs_banner/config/install/field.field.paragraph.banner.field_banner_link_design.yml b/modules/helfi_paragraphs_banner/config/install/field.field.paragraph.banner.field_banner_link_design.yml index 08082c7db..a31b352ba 100644 --- a/modules/helfi_paragraphs_banner/config/install/field.field.paragraph.banner.field_banner_link_design.yml +++ b/modules/helfi_paragraphs_banner/config/install/field.field.paragraph.banner.field_banner_link_design.yml @@ -11,7 +11,7 @@ field_name: field_banner_link_design entity_type: paragraph bundle: banner label: 'Link design' -description: 'Choose what kind of design you want to use for the link button. If you don''t add a link to the banner you can ignore this field.' +description: "Choose what kind of design you want to use for the link button. If you don't add a link to the banner you can ignore this field." required: true translatable: false default_value: diff --git a/modules/helfi_paragraphs_hero/config/install/field.field.paragraph.hero.field_hero_title.yml b/modules/helfi_paragraphs_hero/config/install/field.field.paragraph.hero.field_hero_title.yml index fbb2b6374..f4ccf4308 100644 --- a/modules/helfi_paragraphs_hero/config/install/field.field.paragraph.hero.field_hero_title.yml +++ b/modules/helfi_paragraphs_hero/config/install/field.field.paragraph.hero.field_hero_title.yml @@ -9,7 +9,7 @@ field_name: field_hero_title entity_type: paragraph bundle: hero label: 'Hero heading' -description: 'If a hero is used on the page, this heading will be used as the page''s main heading.' +description: "If a hero is used on the page, this heading will be used as the page's main heading." required: true translatable: false default_value: { } diff --git a/modules/helfi_paragraphs_news_list/config/install/external_entities.external_entity_type.helfi_news.yml b/modules/helfi_paragraphs_news_list/config/install/external_entities.external_entity_type.helfi_news.yml index 459636512..c5ac8fdbb 100644 --- a/modules/helfi_paragraphs_news_list/config/install/external_entities.external_entity_type.helfi_news.yml +++ b/modules/helfi_paragraphs_news_list/config/install/external_entities.external_entity_type.helfi_news.yml @@ -6,6 +6,7 @@ label: 'Helfi: News' label_plural: 'Helfi: News' description: '' read_only: true +generate_aliases: null field_mapper_id: jsonpath field_mapper_config: field_mappings: @@ -14,22 +15,26 @@ field_mapper_config: uuid: value: $.id title: - value: '$.attributes[''title'']' + value: "$.attributes['title']" main_image: - uri: '$.relationships[''main_image''][''data''][''relationships''][''media_image''][''data''][''attributes''][''uri''][''url'']' - title: '$.relationships[''main_image''][''data''][''relationships''][''media_image''][''data''][''meta''][''alt'']' + uri: "$.relationships['main_image']['data']['relationships']['media_image']['data']['attributes']['uri']['url']" + title: "$.relationships['main_image']['data']['relationships']['media_image']['data']['meta']['alt']" tags: - value: '$.relationships[''tags''][''data''][*][''attributes''][''name'']' + value: "$.relationships['tags']['data'][*]['attributes']['name']" groups: - value: '$.relationships[''groups''][''data''][*][''attributes''][''name'']' + value: "$.relationships['groups']['data'][*]['attributes']['name']" neighbourhoods: - value: '$.relationships[''neighbourhoods''][''data''][*][''attributes''][''name'']' + value: "$.relationships['neighbourhoods']['data'][*]['attributes']['name']" node_url: - value: '$.attributes[''path''][''alias'']' + value: "$.attributes['path']['alias']" published_at: - value: '$.attributes[''published_at'']' + value: "$.attributes['published_at']" short_title: - value: '$.attributes[''short_title'']' + value: "$.attributes['short_title']" storage_client_id: helfi_news +storage_client_config: { } persistent_cache_max_age: 1800 +annotation_entity_type_id: null +annotation_bundle_id: null +annotation_field_name: null inherits_annotation_fields: false diff --git a/modules/helfi_tpr_config/config/install/field.field.paragraph.unit_contact_card.field_unit_contact_unit.yml b/modules/helfi_tpr_config/config/install/field.field.paragraph.unit_contact_card.field_unit_contact_unit.yml index 01c2ddec0..a31ebb4e7 100644 --- a/modules/helfi_tpr_config/config/install/field.field.paragraph.unit_contact_card.field_unit_contact_unit.yml +++ b/modules/helfi_tpr_config/config/install/field.field.paragraph.unit_contact_card.field_unit_contact_unit.yml @@ -9,7 +9,7 @@ field_name: field_unit_contact_unit entity_type: paragraph bundle: unit_contact_card label: Unit -description: 'Add here the unit that you want to appear as the contact card. The unit doesn''t have to be published.' +description: "Add here the unit that you want to appear as the contact card. The unit doesn't have to be published." required: true translatable: false default_value: { } diff --git a/modules/helfi_tpr_config/config/install/paragraphs.paragraphs_type.unit_contact_card.yml b/modules/helfi_tpr_config/config/install/paragraphs.paragraphs_type.unit_contact_card.yml index e5505a0f8..98ed7f24b 100644 --- a/modules/helfi_tpr_config/config/install/paragraphs.paragraphs_type.unit_contact_card.yml +++ b/modules/helfi_tpr_config/config/install/paragraphs.paragraphs_type.unit_contact_card.yml @@ -5,5 +5,5 @@ id: unit_contact_card label: 'Unit contact card' icon_uuid: null icon_default: null -description: 'With unit contact card you can reference to a single unit inside this site. The information about the unit is automatically fetched through the reference. Shown information can be customized and the unit doesn''t need to be published.' +description: "With unit contact card you can reference to a single unit inside this site. The information about the unit is automatically fetched through the reference. Shown information can be customized and the unit doesn't need to be published." behavior_plugins: { } From 9a29b663f6175cc33326375ed1588f67a8fe9076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 26 Oct 2023 12:37:34 +0300 Subject: [PATCH 014/236] UHF-9113: Remove CKEditor module as we're going to use the provided CKE5. --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index 3f51f7168..17bb642a5 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "drupal/config_rewrite": "^1.4", "drupal/content_lock": "^2.2", "drupal/crop": "^2.1", - "drupal/ckeditor": "^1.0", "drupal/default_content": "^2.0.0-alpha2", "drupal/diff": "^1.0", "drupal/easy_breadcrumb": "^2.0", From d72cc40f4020bff6179b2be74b545d461b83632f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 13 Jul 2023 08:26:18 +0300 Subject: [PATCH 015/236] UHF-8384: Added HelfiLink CKEditor5 plugin. --- .gitignore | 1 + modules/hdbt_admin_tools/.eslintignore | 4 + modules/hdbt_admin_tools/.eslintrc.json | 146 + modules/hdbt_admin_tools/.nvmrc | 1 + modules/hdbt_admin_tools/.prettierrc.json | 4 + .../css/ckeditor5/helfi_link_plugin.css | 179 + .../assets/js/build/helfiLink.js | 1 + .../js/ckeditor5_plugins/helfiLink/README.md | 10 + .../ckeditor5_plugins/helfiLink/src/.DS_Store | Bin 0 -> 6148 bytes .../helfiLink/src/formElements.js | 61 + .../helfiLink/src/helfiLink.js | 25 + .../helfiLink/src/helfiLinkEditing.js | 260 + .../helfiLink/src/helfiLinkUi.js | 449 + .../ckeditor5_plugins/helfiLink/src/index.js | 13 + .../helfiLink/src/ui/helfiCheckBoxView.js | 250 + .../helfiLink/src/ui/helfiDetailsView.js | 122 + .../helfiLink/src/ui/helfiLinkProtocolView.js | 29 + .../hdbt_admin_tools.ckeditor5.yml | 43 + .../hdbt_admin_tools.info.yml | 2 +- .../hdbt_admin_tools.libraries.yml | 10 + modules/hdbt_admin_tools/package-lock.json | 7418 +++++++++++++++++ modules/hdbt_admin_tools/package.json | 28 + modules/hdbt_admin_tools/webpack.config.js | 76 + 23 files changed, 9131 insertions(+), 1 deletion(-) create mode 100644 modules/hdbt_admin_tools/.eslintignore create mode 100644 modules/hdbt_admin_tools/.eslintrc.json create mode 100644 modules/hdbt_admin_tools/.nvmrc create mode 100644 modules/hdbt_admin_tools/.prettierrc.json create mode 100644 modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css create mode 100644 modules/hdbt_admin_tools/assets/js/build/helfiLink.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/README.md create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/.DS_Store create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js create mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js create mode 100644 modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml create mode 100644 modules/hdbt_admin_tools/package-lock.json create mode 100644 modules/hdbt_admin_tools/package.json create mode 100644 modules/hdbt_admin_tools/webpack.config.js diff --git a/.gitignore b/.gitignore index b0128f634..9749a0995 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .phpunit.* +node_modules diff --git a/modules/hdbt_admin_tools/.eslintignore b/modules/hdbt_admin_tools/.eslintignore new file mode 100644 index 000000000..cc158f2a3 --- /dev/null +++ b/modules/hdbt_admin_tools/.eslintignore @@ -0,0 +1,4 @@ +node_modules/**/* +webpack.config.js +webpack.config.dev.js +webpack.config.build.js diff --git a/modules/hdbt_admin_tools/.eslintrc.json b/modules/hdbt_admin_tools/.eslintrc.json new file mode 100644 index 000000000..2b672290e --- /dev/null +++ b/modules/hdbt_admin_tools/.eslintrc.json @@ -0,0 +1,146 @@ +{ + "root": true, + "env": { + "browser": true, + "node": true, + "es6": true + }, + "extends": [ + "airbnb", + "prettier" + ], + "parserOptions": { + "ecmaVersion": 2022 + }, + "globals": { + "Drupal": true, + "drupalSettings": true, + "drupalTranslations": true, + "jQuery": true, + "_": true, + "Cookies": true, + "Backbone": true, + "Modernizr": true, + "Popper": true, + "Shepherd": true, + "Sortable": true, + "once": true, + "CKEDITOR": true, + "tabbable": true + }, + "rules": { + // "prettier/prettier": "error", + "prefer-arrow-callback":["off"], + "quotes": ["warn", "single"], + "semi": ["error", "always"], + "consistent-return": ["off"], + "no-underscore-dangle": ["off"], + "import/no-extraneous-dependencies": ["error", {"devDependencies": true}], + "max-nested-callbacks": ["warn", 5], + "no-plusplus": [ + "warn", + { + "allowForLoopAfterthoughts": true + } + ], + "no-param-reassign": ["off"], + "no-prototype-builtins": ["off"], + "valid-jsdoc": [ + "warn", + { + "prefer": { + "returns": "return", + "property": "prop" + }, + "requireReturn": false + } + ], + "no-unused-vars": ["warn"], + "operator-linebreak": [ + "error", + "after", + { "overrides": { "?": "ignore", ":": "ignore" } } + ] + }, + "settings": { + "react": { + "version": "17.x" + } + }, + // Using ts overrides rules from eslint-config-react-app. + // Finetune these if needed. + "overrides": [ + { + "files": ["*.ts?(x)"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true + }, + // typescript-eslint specific options + "warnOnUnsupportedTypeScriptVersion": true + }, + "plugins": ["@typescript-eslint"], + // If adding a typescript-eslint version of an existing ESLint rule, + // make sure to disable the ESLint rule here. + "rules": { + // TypeScript"s `noFallthroughCasesInSwitch` option is more robust (#6906) + "default-case": "off", + // "tsc" already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/291) + "no-dupe-class-members": "off", + // "tsc" already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/477) + "no-undef": "off", + // Add TypeScript specific rules (and turn off ESLint equivalents) + "no-array-constructor": "off", + "no-redeclare": "off", + "no-use-before-define": "off", + "@typescript-eslint/consistent-type-assertions": "warn", + "@typescript-eslint/no-array-constructor": "warn", + "@typescript-eslint/no-redeclare": "warn", + "@typescript-eslint/no-use-before-define": [ + "warn", + { + "functions": false, + "classes": false, + "variables": false, + "typedefs": false + } + ], + "no-unused-expressions": "off", + "@typescript-eslint/no-unused-expressions": [ + "error", + { + "allowShortCircuit": true, + "allowTernary": true, + "allowTaggedTemplates": true + } + ], + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", + { + "args": "none", + "ignoreRestSiblings": true + } + ], + "no-useless-constructor": "off", + "no-console": ["warn", { "allow": ["warn", "error"] }], + "camelcase": "off", + "@typescript-eslint/no-useless-constructor": "warn", + "react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx", ".tsx"] }], + "react/require-default-props": "off", + "react/jsx-props-no-spreading": "off", + "react/no-array-index-key": "off", + "react/function-component-definition": [1, { "namedComponents": ["arrow-function", "function-declaration"] }], + "react/self-closing-comp": 0, + "import/extensions": 0, + "import/no-unresolved": 0, + // These rules are not needed with react 17 JSX transform. + "react/jsx-uses-react": "off", + "react/react-in-jsx-scope": "off" + } + } + ] +} diff --git a/modules/hdbt_admin_tools/.nvmrc b/modules/hdbt_admin_tools/.nvmrc new file mode 100644 index 000000000..55bffd620 --- /dev/null +++ b/modules/hdbt_admin_tools/.nvmrc @@ -0,0 +1 @@ +18.15.0 diff --git a/modules/hdbt_admin_tools/.prettierrc.json b/modules/hdbt_admin_tools/.prettierrc.json new file mode 100644 index 000000000..4cfea19b9 --- /dev/null +++ b/modules/hdbt_admin_tools/.prettierrc.json @@ -0,0 +1,4 @@ +{ + "printWidth": 120, + "singleQuote": true +} \ No newline at end of file diff --git a/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css b/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css new file mode 100644 index 000000000..f5c2636d1 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css @@ -0,0 +1,179 @@ +.ck.ck-balloon-panel.helfi-contextual-balloon { + position: fixed; + top: 50vh !important; + left: 50vw !important; + transform: translate(-50%, -50%); + width: 50vw; + border-radius: 10px !important; +} + +.ck.ck-balloon-panel.helfi-contextual-balloon .ck-labeled-field-view { + max-width: 600px; + margin: 1rem 0.7rem; +} + +/* Hide panel arrows. */ +.ck.ck-balloon-panel.helfi-contextual-balloon.ck-balloon-panel_with-arrow::before, +.ck.ck-balloon-panel.helfi-contextual-balloon.ck-balloon-panel_with-arrow::after { + display: none; +} + +/* Helfi link form */ +.ck.ck-responsive-form.helfi-link-form { + padding: 0; +} + +/* Dropdown */ +.ck.helfi-link--protocol { + max-width: 160px !important; +} + +.ck.helfi-link--protocol .ck-labeled-field-view__input-wrapper { + background-color: #fff; + border-radius: .5rem; + border: 1px solid #8e929c; + box-sizing: border-box; + color: #222330; + min-height: 3rem; /* iOS. */ + padding: 0; + transition: .15s cubic-bezier(.19, 1, .22, 1); +} + +.ck.helfi-link--protocol .ck-labeled-field-view__input-wrapper .ck.ck-label { + transform: unset !important; + max-width: unset !important; + position: absolute; + font-size: 15px; + left: 10px !important; + top: 14px !important; +} + +.ck.helfi-link--protocol .ck-labeled-field-view__input-wrapper > .ck.ck-dropdown { + height: 100%; + width: 100%; +} + +.ck.helfi-link--protocol .ck-labeled-field-view__input-wrapper > .ck.ck-dropdown .ck-dropdown__button { + min-height: 45px; + justify-content: flex-end; +} + +.ck.helfi-link--protocol .ck-labeled-field-view__input-wrapper .ck.ck-dropdown .ck-dropdown__arrow { + right: 10px; + width: 15px; + position: absolute; +} + +.ck.helfi-link--protocol .ck-labeled-field-view__input-wrapper > .ck.ck-dropdown .ck-dropdown__button.ck-on .ck-dropdown__arrow { + transform: rotate(180deg); +} + +/* Advanced settings - Details */ +/* Mimic the .claro-details styles. */ +.ck-helfi-link-details { + background-color: #fff; + border-radius: .5rem; + border: 1px solid #d4d4d8; + box-shadow: none; + color: #232429; + display: block; + margin: 1rem 0.7rem; + padding: 0.5rem 0.5rem 1rem; + position: relative; +} + +/* Mimic the .claro-details__summary styles. */ +.ck-helfi-link-details__summary { + -ms-hyphens: auto; + -webkit-hyphens: auto; + background-color: transparent; + box-sizing: border-box; + color: #222330; + cursor: pointer; + font-size: var(--gin-font-size); + font-weight: var(--gin-font-weight-bold); + hyphens: auto; + line-height: 1rem; + list-style: none; + padding: .8rem 1rem .8rem 2.75rem; + position: relative; + transition: background-color 0.12s ease-in-out; + word-wrap: break-word; +} + +/* Mimic the .claro-details__summary styles. */ +.ck-helfi-link-details__summary::before { + position: absolute; + top: 50%; + left: 0.75rem; /* LTR */ + display: inline-block; + width: 1rem; + height: 1rem; + margin-top: -0.5rem; + content: ""; + transition: transform 0.12s ease-in 0s; + transform: rotate(90deg); /* LTR */ + text-align: center; + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3e%3cpath d='M5.21 1.314L3.79 2.723l5.302 5.353-5.303 5.354 1.422 1.408 6.697-6.762z' fill='%23545560'/%3e%3c/svg%3e"); + background-size: contain; +} + +/* Mimic the .claro-details__summary styles. */ +.ck-helfi-link-details__summary[aria-expanded=true]::before { + transform: rotate(-90deg); /* LTR */ +} + +/* Mimic styles from Claro .form-element with Gin variables */ +.ck.helfi-link-form .ck-labeled-field-view input.ck-input { + appearance: none; + background-color: #fff; + border-radius: .5rem; + border: 1px solid #8e929c; + box-sizing: border-box; + color: #222330; + font-size: 1rem; + line-height: 1.5rem; + max-width: 100%; + min-height: 3rem; /* iOS. */ + padding: calc(0.75rem - 1px) calc(1rem - 1px); + transition: .15s cubic-bezier(.19, 1, .22, 1);; +} + +/* Input field description help text */ +.ck .helfi-link-form__field_description { + margin-top: 0.375rem !important; + color: #55565b !important; + white-space: normal !important; + font-size: 0.75rem !important; +} + +.ck .helfi-link-form__field_description a { + cursor: pointer; + color: #0a6eb4; +} + +/* Input checkboxes. */ +.ck .helfi-link-checkbox { + margin-left: 0.8rem !important; + margin-top: 1rem; +} + +.ck .helfi-link-checkbox label { + line-height: 1.5rem; + padding-left: 0.4rem !important; +} + +.ck .helfi-link-checkbox:last-child { + margin-bottom: 1rem; +} + +/* Save and cancel buttons */ +.ck.ck-responsive-form.helfi-link-form .ck.ck-button { + margin: 0; + cursor: pointer; +} + +/* Links inside the ckeditor. */ +.ck-content .link { + cursor: text; +} diff --git a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js new file mode 100644 index 000000000..d8e652bbf --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,i),l.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const l={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class o extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(l).forEach((e=>{l[e].machineName&&(this._convertAttribute(e,l[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(l))}_convertAttribute(e,t){const i=this.editor;if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{let n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const t=this.editor,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const l=s[s.length-1],o=t.model,r=o.document.selection;o.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;l[e]?i.setAttribute(e,l[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=o.schema.getValidRanges(r.getRanges(),e);for(const n of t)l[e]?i.setAttribute(e,l[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const t=this.editor,i=t.commands.get("unlink"),n=this.editor.model,l=n.document.selection;let o=!1;i.on("execute",(i=>{o||(i.stop(),n.change((()=>{o=!0,t.execute("unlink"),o=!1,n.change((t=>{let i;i=l.isCollapsed?[(0,s.findAttributeRange)(l.getFirstPosition(),e,l.getAttribute(e),n)]:n.schema.getValidRanges(l.getRanges(),e);for(const n of i)t.removeAttribute(e,n)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const t=this.editor.commands.get("link"),i=this.editor.model,n=i.document.selection;t.set(e,null),i.document.on("change",(()=>{t[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=l}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const e=this.editor,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const e=this.editor.plugins.get("LinkUI").formView,t=document.createElement("span");t.textContent=Drupal.t("Start typing to find content."),t.classList.add("helfi-link-form__field_description"),e.urlInputView.element.appendChild(t)}_createSelectList(e,t){const i=this.editor.plugins.get("LinkUI").formView,n=new d(this.editor.locale,r.createLabeledDropdown),s=i.urlInputView;i.urlInputView.on("change:isEmpty",((e,t,i)=>{n.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(n.fieldView,l),n.fieldView.on("execute",(e=>{s.isEmpty&&e.source.commandValue&&(s.fieldView.value=e.source.commandValue)})),n.set("isVisible",!0),n}_createAndHandleAdvancedSettings(){const e=this.editor,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const t=this.editor,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class="helfi-link--"+n.machineName,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const t=this.editor,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const t=this.editor,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,l)=>{l===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),n[e].checkboxInputView.element.checked=i[e]||""):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const e=this.editor.plugins.get("LinkUI").formView;if(!e.linkNewWindowConfirm.element.description){const t=document.createElement("div");t.innerHTML=this.formElements.linkNewWindowConfirm.description,t.classList.add("helfi-link-form__field_description"),e.linkNewWindowConfirm.element.appendChild(t)}e.linkNewWindow.on("change:isChecked",((t,i,n)=>{n||e.linkNewWindowConfirm.checkboxInputView.element.click(),e.linkNewWindowConfirm._updateVisibility(n)})),e.linkNewWindowConfirm.on("change:isChecked",((t,i,n)=>{n||e.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[o,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/README.md b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/README.md new file mode 100644 index 000000000..d142a61e9 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/README.md @@ -0,0 +1,10 @@ +This helfiLink plugin is largely based on CKEditor 5's +[block plugin widget tutorial](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/tutorials/implementing-a-block-widget.html), +but with added documentation to facilitate better understanding of CKEditor 5 +plugin development and other minor changes. + +Within `/src` are the multiple files that will be used by the build process to +become a CKEditor 5 plugin in `/build`. Technically, everything in these files +could be in a single `index.js` - the only file the MUST be present is +`/src/index.js`. However, splitting the plugin into concern-specific files has +maintainability benefits. diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/.DS_Store b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..fa875efe172614b777de44497222c0cdda3ddb1b GIT binary patch literal 6148 zcmeH~u?oUK42F~HP;lw!c#99<8yuxRfiK`7h#(b&I^U!FCzr+QEJgl6@?CNbZU3Ry zh=}&nc`wq5NDDX0&ce(Tc_WitpU1~|yN?&-Rx@iVJV&jQ*?w#jRDcRl0V+TRsKA00 zh;zK%Ea;i|C{%z7EJFeNJ|ws?2TP@YIuLvW0M{tHVePX7n5+QiV5vj}rZGKew5pFG zR`+%=#dSGYDr>uF3?CYIR-0mATH8ev5}0NO0~MeGGX+*P@9g|Pz`xD^vlgaQfC~JX z0=gcKLywn=v-RWktbU5BtqUCV%Mspw0+85IyoI}AKiLAz!BU9|j6VV{0|OQKsRA#h CsSrj0 literal 0 HcmV?d00001 diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js new file mode 100644 index 000000000..e885bdf4f --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js @@ -0,0 +1,61 @@ +const formElements = { + linkProtocol: { + label: Drupal.t('Protocol'), + machineName: 'protocol', + selectListOptions: { + https: 'https://', + tel: 'tel:', + mailto: 'mailto:', + }, + type: 'select', + group: 'helper', + }, + linkNewWindowConfirm: { + label: Drupal.t('The link meets the accessibility requirements'), + description: Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).', { + '@wcag-techniques': 'https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html', + }), + machineName: 'link-new-window-confirm', + viewAttribute: { + 'target': '_blank', + }, + type: 'checkbox', + group: 'advanced', + isVisible: false, + }, + linkNewWindow: { + label: Drupal.t('Open in new window/tab'), + machineName: 'link-new-window', + viewAttribute: 'data-link-new-window', + type: 'checkbox', + group: 'advanced', + isVisible: true, + }, + linkTitle: { + label: Drupal.t('Title'), + description: Drupal.t('Populates the title attribute of the link, usually shown as a small tooltip on hover.'), + machineName: 'link-title', + viewAttribute: 'title', + type: 'input', + group: 'advanced', + }, + linkId: { + label: Drupal.t('ID'), + description: Drupal.t('Allows linking to this content using a URL fragment (#). Must be unique.'), + machineName: 'link-id', + viewAttribute: 'id', + type: 'input', + group: 'advanced', + }, + linkClass: { + machineName: 'link-class', + viewAttribute: { + 'class': 'link', + }, + type: 'static', + } +} + +export { + formElements, +} diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js new file mode 100644 index 000000000..d1c56f0ea --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js @@ -0,0 +1,25 @@ +/** + * @file This is what CKEditor refers to as a master (glue) plugin. Its role is + * just to load the “editing” and “UI” components of this Plugin. Those + * components could be included in this file, but + * + * I.e, this file's purpose is to integrate all the separate parts of the plugin + * before it's made discoverable via index.js. + */ +// cSpell:ignore HelfiLinkEditing HelfiLinkUi + +// The contents of HelfiLinkUI and HelfiLink editing could be included in this +// file, but it is recommended to separate these concerns in different files. +import { Plugin } from 'ckeditor5/src/core'; +import HelfiLinkEditing from './helfiLinkEditing'; +import HelfiLinkUi from './helfiLinkUi'; + +export default class HelfiLink extends Plugin { + // Note that HelfiLinkEditing and HelfiLinkUI also extend `Plugin`, but these + // are not seen as individual plugins by CKEditor 5. CKEditor 5 will only + // discover the plugins explicitly exported in index.js. + static get requires() { + return [HelfiLinkEditing, HelfiLinkUi]; + } + +} diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js new file mode 100644 index 000000000..e9f2e4dc3 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js @@ -0,0 +1,260 @@ +/** + * @file A view to model and model to view converters for HelfiLink. + */ +import { Plugin } from 'ckeditor5/src/core'; +import { Widget } from 'ckeditor5/src/widget'; +import { findAttributeRange } from 'ckeditor5/src/typing'; +import { formElements } from './formElements'; + +/** + * CKEditor 5 plugins do not work directly with the DOM. They are defined as + * plugin-specific data models that are then converted to markup that + * is inserted in the DOM. + * + * This file has the logic for defining the HelfiLink model, and for how it is + * converted to standard DOM markup. + */ +export default class HelfiLinkEditing extends Plugin { + static get requires() { + return [Widget]; + } + + /** + * @inheritdoc + */ + static get pluginName() { + return 'HelfiLinkEditing'; + } + + init() { + Object.keys(formElements).forEach(modelName => { + if (!formElements[modelName].machineName) { return; } + + // Create conversions for model <-> view. + this._convertAttribute(modelName, formElements[modelName].viewAttribute); + + // Remove attributes when unlink button is clicked. + this._removeAttributeOnUnlinkCommandExecute(modelName); + + // Refresh attribute values. + this._refreshAttributeValue(modelName); + }); + + // Add attributes to linkCommand during its execution. + this._addAttributeOnLinkCommandExecute(Object.keys(formElements)); + } + + /** + * Convert models and attributes between model <-> view. + */ + _convertAttribute(modelName, viewAttribute) { + const editor = this.editor; + + // Add current model as an allowed attribute for '$text' nodes. + editor.model.schema.extend( '$text', { allowAttributes: modelName } ); + + // Convert attributes for downcast. + // Model --> View (DOM / Data). + editor.conversion.for( 'downcast' ).attributeToElement( { + model: modelName, + view: ( modelAttributeValue, { writer }) => { + let attributeValues = {}; + + // Create attribute values based on the type of view attributes types. + if (modelAttributeValue && typeof viewAttribute === 'object') { + attributeValues[Object.keys(viewAttribute)] = viewAttribute[Object.keys(viewAttribute)]; + } else { + attributeValues[viewAttribute] = modelAttributeValue; + } + + // Create the anchor element with the current attributes. + const linkViewElement = writer.createAttributeElement('a', attributeValues,{ priority: 5 }); + + // Without it the isLinkElement() will not recognize the link + // and the UI will not show up when the user clicks a link. + writer.setCustomProperty( 'link', true, linkViewElement ); + + return linkViewElement; + }, + } ); + + // Handle upcast separately for attributes with object as their definitions. + if (typeof viewAttribute === 'object') { + const viewAttributeKey = Object.keys(viewAttribute)[0]; + const viewAttributeValue = viewAttribute[Object.keys(viewAttribute)]; + + // Convert attributes for upcast. + // View (DOM / Data) --> Model. + this.editor.conversion.for('upcast').attributeToAttribute({ + view: { + name: 'a', + key: viewAttributeKey, + value: viewAttributeValue, + }, + model: { + key: modelName, + value: ( viewElement ) => { + return !!(viewElement.hasAttribute(viewAttributeKey) && + viewElement.getAttribute(viewAttributeKey) === viewAttributeValue); + } + }, + }); + } + else { + // View (DOM / Data) --> Model. + editor.conversion.for('upcast').elementToAttribute({ + view: { + name: 'a', + attributes: { + [ viewAttribute ]: true + } + }, + model: { + key: modelName, + value: viewElement => { + return viewElement.getAttribute(viewAttribute) + } + } + }); + } + } + + /** + * Add attributes to linkCommand during its execution. + */ + _addAttributeOnLinkCommandExecute(modelNames) { + const editor = this.editor; + const linkCommand = editor.commands.get('link'); + let linkCommandExecuting = false; + + linkCommand.on('execute', (evt, args) => { + // Custom handling is only required if an attribute was passed + // into editor.execute('link', ...). + if (args.length < 3) { + return; + } + if (linkCommandExecuting) { + linkCommandExecuting = false; + return; + } + + // If the additional attribute was passed, we stop the default execution + // of the LinkCommand. We're going to create Model#change() block for undo + // and execute the LinkCommand together with setting the attribute. + evt.stop(); + + // Prevent infinite recursion by keeping records of when link command + // is being executed by this function. + linkCommandExecuting = true; + const attributeValues = args[args.length - 1]; + const model = editor.model; + const selection = model.document.selection; + + // Wrapping the original command execution in a model.change() to make + // sure there's a single undo step when the attribute is added. + model.change(writer => { + editor.execute('link', ...args); + const firstPosition = selection.getFirstPosition(); + + // Determine the selection range and add/remove the attributes to the + // node or range. + modelNames.forEach(modelName => { + if (selection.isCollapsed) { + const node = firstPosition.textNode || firstPosition.nodeBefore; + + if (attributeValues[modelName]) { + writer.setAttribute(modelName, attributeValues[modelName], writer.createRangeOn(node)); + } else { + writer.removeAttribute(modelName, writer.createRangeOn(node)); + } + writer.removeSelectionAttribute(modelName); + } else { + const ranges = model.schema.getValidRanges(selection.getRanges(), modelName); + + for (const range of ranges) { + if (attributeValues[modelName]) { + writer.setAttribute(modelName, attributeValues[modelName], range); + } else { + writer.removeAttribute(modelName, range); + } + } + } + }); + } ); + }, { priority: 'high' } ); + } + + /** + * Remove attributes on unlink command execution. + */ + _removeAttributeOnUnlinkCommandExecute(modelName) { + const editor = this.editor; + const unlinkCommand = editor.commands.get( 'unlink' ); + const model = this.editor.model; + const selection = model.document.selection; + + let isUnlinkingInProgress = false; + + // Make sure all changes are in a single undo step. + // Cancel the original unlink first in the high priority. + unlinkCommand.on( 'execute', evt => { + if ( isUnlinkingInProgress ) { + return; + } + + evt.stop(); + + // This single block wraps all changes that should be in a single undo step. + model.change( () => { + // Now, in this single "undo block" let the unlink command flow naturally. + isUnlinkingInProgress = true; + + // Do the unlinking within a single undo step. + editor.execute( 'unlink' ); + + // Let's make sure the next unlinking will also be handled. + isUnlinkingInProgress = false; + + // The actual integration that removes the attribute. + model.change( writer => { + let ranges; + + // Get ranges from collapsed selection. + if ( selection.isCollapsed ) { + ranges = [ findAttributeRange( + selection.getFirstPosition(), + modelName, + selection.getAttribute( modelName ), + model + ) ]; + } + // Get ranges from selected elements. + else { + ranges = model.schema.getValidRanges( selection.getRanges(), modelName ); + } + + // Remove the attribute from specified ranges. + for ( const range of ranges ) { + writer.removeAttribute( modelName, range ); + } + } ); + } ); + }, { priority: 'high' } ); + } + + /** + * Keep the attributes updated whenever editor model changes. + */ + _refreshAttributeValue(modelName) { + const editor = this.editor; + const linkCommand = editor.commands.get( 'link' ); + const model = this.editor.model; + const selection = model.document.selection; + + linkCommand.set( modelName, null ); + + model.document.on( 'change', () => { + linkCommand[ modelName ] = selection.getAttribute( modelName ); + } ); + } +} diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js new file mode 100644 index 000000000..91c642128 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js @@ -0,0 +1,449 @@ +/** + * @file registers the HelfiLinkUi plugin and binds functionality to it. + */ + +import { Plugin } from 'ckeditor5/src/core'; +import { + addListToDropdown, + ContextualBalloon, + createLabeledDropdown, + createLabeledInputText, + LabeledFieldView, + Model, +} from 'ckeditor5/src/ui'; + +import HelfiCheckBoxView from "./ui/helfiCheckBoxView"; +import HelfiLinkProtocolView from "./ui/helfiLinkProtocolView"; +import { Collection } from 'ckeditor5/src/utils'; +import { formElements } from "./formElements"; +import HelfiDetailsView from "./ui/helfiDetailsView"; + +export default class HelfiLinkUi extends Plugin { + + constructor( editor ) { + super( editor ); + this.editor = editor; + this.advancedChildren = new Collection(); + this.formElements = formElements; + } + + init() { + // Add a wrapper classes for the link form view. + this._addContextualBalloonClass(); + + // Add custom fields from formElements. + const models = Object.keys(this.formElements).reverse(); + + // Iterate through formElements and create fields accordingly. + models.forEach(modelName => { + // Skip form elements without machine names. + if (!this.formElements[modelName].machineName) { return; } + + // Create form fields. + const formField = this._createFormField(modelName); + + // Load existing data into form field. + this._handleDataLoadingIntoFormField(modelName); + + // If form field is marked as part of advanced settings, + // add it to advancedChildren object. + if ( + this.formElements[modelName].group && + this.formElements[modelName].group === 'advanced' + ) { + this.advancedChildren.add(formField); + } + }); + + // Move chosen fields under advanced settings. + this._createAndHandleAdvancedSettings(); + + // Add a descriptive text to URL input field. + this._manipulateUrlInputField(); + + // Add logic to checkboxes. + this._handleCheckboxes(); + + // Handle form field submit. + this._handleFormFieldSubmit(models); + } + + /** + * Add a wrapper class to the contextual balloon panel when the LinkUI button + * has been clicked. + * + * Note! This hacky way of removing and re-adding the link form view was the + * only way to add class to its surrounding contextual balloon at the time + * this plugin customization was being developed. + */ + _addContextualBalloonClass() { + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const contextualBalloon = editor.plugins.get(ContextualBalloon); + + // Act on when contextualBalloon (popup) and linkFormView is added. + contextualBalloon._rotatorView.content.on( 'add', ( evt, view ) => { + if ( + view !== linkFormView || + !contextualBalloon.hasView(linkFormView) || + contextualBalloon.view.element.classList.contains('helfi-contextual-balloon') + ) { + return; + } + + contextualBalloon.remove(view); + contextualBalloon.add({ + view: linkFormView, + position: contextualBalloon._getBalloonPosition(), + balloonClassName: 'helfi-contextual-balloon', + withArrow: false, + }); + + // The CKEditor ck-reset_all class resets too much CSS attributes, so we + // want to remove it when linkFormView is being viewed. + const parentElement = contextualBalloon.view.element.closest('.ck-body-wrapper > .ck-body'); + if (parentElement.classList.contains('ck-reset_all')) { + parentElement.classList.remove('ck-reset_all'); + } + }); + + // Act on when contextualBalloon (popup) and linkFormView is removed. + contextualBalloon._rotatorView.content.on( 'remove', ( evt, view ) => { + if ( + view !== linkFormView || + !contextualBalloon.hasView(linkFormView) + ) { + return; + } + + // Return the CKEditor class what was removed when linkViewForm was added + // to contextualBalloon. + const parentElement = contextualBalloon.view.element.closest('.ck-body-wrapper > .ck-body'); + if (!parentElement.classList.contains('ck-reset_all')) { + parentElement.classList.add('ck-reset_all'); + } + }); + + // Add custom classes for the LinkUI from view. + linkFormView.extendTemplate({ + attributes: { + class: [ 'helfi-link-form' ] + } + }); + } + + /** + * Add a descriptive help text to URL input field. + */ + _manipulateUrlInputField() { + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const urlDescription = document.createElement('span'); + urlDescription.textContent = Drupal.t('Start typing to find content.'); + urlDescription.classList.add('helfi-link-form__field_description'); + linkFormView.urlInputView.element.appendChild(urlDescription); + } + + /** + * Create select list for protocol selection field. + */ + _createSelectList(modelName, options) { + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const linkProtocolView = new HelfiLinkProtocolView( this.editor.locale, createLabeledDropdown ); + const urlInputView = linkFormView.urlInputView; + + // Hide the Protocol field view by setting isVisible to false + linkFormView.urlInputView.on('change:isEmpty', ( evt, name, value ) => { + linkProtocolView.updateVisibility(value); + } ); + + // Define the dropdown items + const dropdownItems = new Collection(); + + // Assign the dropdown items. + Object.keys(options).forEach(option => { + dropdownItems.add({ + type: 'button', + attributes: { + class: [ 'helfi-link-form' ] + }, + model: new Model({ + commandValue: options[option], + label: options[option], + withText: true, + attributes: { + class: [ 'ck', 'ck-link-protocol', ], + tabindex: '-1' + }, + }), + withText: true + }); + }); + + // Add the items to the dropdown + addListToDropdown(linkProtocolView.fieldView, dropdownItems); + + // Set protocol as url input value. + linkProtocolView.fieldView.on('execute', evt => { + if (urlInputView.isEmpty && evt.source.commandValue) { + urlInputView.fieldView.value = evt.source.commandValue; + } + }); + linkProtocolView.set('isVisible', true); + + return linkProtocolView; + } + + /** + * Create advanced settings (details/summary) view and handle the initial + * state for it. + */ + _createAndHandleAdvancedSettings() { + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const advancedSettings = new HelfiDetailsView(editor.locale, this.advancedChildren); + + advancedSettings.set({ + label: Drupal.t('Advanced settings'), + id: 'advanced-settings', + isOpen: false, + }); + + // Add advanced settings (details summary) to linkFormView + // after the linkHref field; 2. + linkFormView.children.add( advancedSettings, 2 ); + + // Handle the advanced settings open/close per contextualBalloon. + editor.plugins.get( 'ContextualBalloon' )._rotatorView.content.on( 'add', ( evt, view ) => { + if ( view !== linkFormView ) { + return; + } + + // The advanced settings (details summary element) is not bound to + // any element. It is needed to close manually initially. + if (linkFormView.advancedSettings) { + linkFormView.advancedSettings.element.open = false; + linkFormView.advancedSettings.detailsSummary.element.ariaExpanded = false; + linkFormView.advancedSettings.detailsSummary.element.ariaPressed = false; + } + } ); + + return linkFormView['advancedSettings'] = advancedSettings; + } + + /** + * Create checkboxes. + */ + _createCheckbox(modelName) { + const checkboxView = new HelfiCheckBoxView(this.editor.locale) + const options = this.formElements[modelName]; + + // Define the dropdown items + checkboxView.set( { + isVisible: options.isVisible, + tooltip: true, + class: 'ck-find-checkboxes__box', + id: options.machineName, + label: options.label, + } ); + + return checkboxView; + } + + /** + * Create form fields based on form elements. + */ + _createFormField(modelName) { + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const options = this.formElements[modelName]; + let fieldView = {}; + + // Create fields based on their types. + switch (options.type) { + case 'select': + fieldView = this._createSelectList(modelName, options.selectListOptions); + break; + case 'checkbox': + fieldView = this._createCheckbox(modelName, options); + break; + case 'static': + // Do nothing for static group. + fieldView = false; + break; + default: + fieldView = new LabeledFieldView( editor.locale, createLabeledInputText ); + break; + } + + if (!fieldView) { + return; + } + + // Add basic information for the field. + fieldView.machineName = modelName; + fieldView.class = 'helfi-link--' + options.machineName; + fieldView.label = options.label; + + // Add help texts for the field. + if (options.description) { + fieldView.infoText = options.description; + } + + // Handle advanced settings separately. + if (!options.group || options.group !== 'advanced') { + linkFormView.children.add( fieldView, options.type === 'select' ? 0 : 1 ); + } + + // Track the focus of the field elements. + linkFormView.on( 'render', () => { + linkFormView._focusables.add( fieldView, 1 ); + linkFormView.focusTracker.add( fieldView.element ); + } ); + + return linkFormView[modelName] = fieldView; + } + + /** + * Handle form field submit. + */ + _handleFormFieldSubmit(models) { + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const linkCommand = editor.commands.get( 'link' ); + + // Listen to linkFormView submit and inject form field values to + // linkCommand arguments. + this.listenTo( linkFormView, 'submit', () => { + const values = models.reduce((state, model) => { + state[model] = this.formElements[model]['type'] === 'checkbox' + ? linkFormView?.[model]?.checkboxInputView?.element?.checked + : linkFormView?.[model]?.fieldView?.element?.value ?? ''; + return state; + }, {}); + + // Double-check if either of the checkbox values are checked and set both + // to false accordingly. + if (!values.linkNewWindowConfirm || !values.linkNewWindow) { + values.linkNewWindowConfirm = false; + values.linkNewWindow = false; + + // Trigger the change event by clicking the element. + if (linkFormView.linkNewWindowConfirm.checkboxInputView.element.checked) { + linkFormView.linkNewWindowConfirm.checkboxInputView.element.click(); + } + // Trigger the change event by clicking the element. + if (linkFormView.linkNewWindow.checkboxInputView.element.checked) { + linkFormView.linkNewWindow.checkboxInputView.element.click(); + } + } + + // Stop the execution of the link command caused by closing the form. + // Inject the attribute values. + linkCommand.once( 'execute', ( evt, args ) => { + if (args.length < 3) { + args.push( values ); + } else if (args.length === 3) { + Object.assign(args[2], values); + } else { + throw Error('The link command has more than 3 arguments.') + } + }, { priority: 'highest' } ); + }, { priority: 'high' } ); + } + + /** + * Handle data loading into form field. + */ + _handleDataLoadingIntoFormField(modelName) { + const editor = this.editor; + const linkCommand = editor.commands.get( 'link' ); + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + const options = this.formElements[modelName]; + + // We don't need to handle data loading for linkProtocol nor static types. + if (modelName === 'linkProtocol' || options.type === 'static') { + return; + } + + // Bind isChecked values of checkboxInputViews to the linkCommand. + if (options.type === 'checkbox') { + linkFormView[modelName].checkboxInputView.bind('isChecked').to(linkCommand, modelName); + } + // Bind field values of LabeledFieldViews to the linkCommand. + else { + linkFormView[modelName].fieldView.bind('value').to(linkCommand, modelName); + } + + // This is a hack. This could be potentially improved by detecting when the + // form is added by checking the collection of the ContextualBalloon plugin. + editor.plugins.get( 'ContextualBalloon' )._rotatorView.content.on( 'add', ( evt, view ) => { + if ( view !== linkFormView ) { + return; + } + + if (options.type === 'checkbox') { + // Show the linkNewWindowConfirm checkbox if the + // linkNewWindow checkbox is checked. + if (modelName === 'linkNewWindowConfirm') { + linkFormView[modelName]._updateVisibility( + !!(linkFormView.linkNewWindow.checkboxInputView.isChecked) + ); + } + + // Note: Copy & pasted from LinkUI. + // https://github.com/ckeditor/ckeditor5/blob/f0a093339631b774b2d3422e2a579e27be79bbeb/packages/ckeditor5-link/src/linkui.js#L333-L333 + linkFormView[modelName].checkboxInputView.element.checked = linkCommand[modelName] || ''; + } + else { + // Note: Copy & pasted from LinkUI. + // https://github.com/ckeditor/ckeditor5/blob/f0a093339631b774b2d3422e2a579e27be79bbeb/packages/ckeditor5-link/src/linkui.js#L333-L333 + linkFormView[modelName].fieldView.element.value = linkCommand[ modelName ] || ''; + } + } ); + } + + /** + * Handle link new window and link new window confirmation checkboxes + * when user is checking/unchecking them. + */ + _handleCheckboxes() { + if (!this.formElements.linkNewWindowConfirm || !this.formElements.linkNewWindow) { return; } + + const editor = this.editor; + const linkFormView = editor.plugins.get( 'LinkUI' ).formView; + + // Handle linkNewWindowConfirm checkbox description. + if (!linkFormView.linkNewWindowConfirm.element.description) { + const description = document.createElement('div'); + description.innerHTML = this.formElements.linkNewWindowConfirm.description; + description.classList.add('helfi-link-form__field_description'); + linkFormView.linkNewWindowConfirm.element.appendChild(description); + } + + // Handle link new window and link new window confirmation checkbox linkages. + linkFormView.linkNewWindow.on('change:isChecked', ( evt, name, value ) => { + // Uncheck the link new window confirmation checkbox if the user unchecks + // the link new window checkbox. + if (!value) { + // Trigger the change event by clicking the element. + linkFormView.linkNewWindowConfirm.checkboxInputView.element.click(); + } + + // Update the link new window confirmation checkbox visibility based on + // user actions on the link new window checkbox. + linkFormView.linkNewWindowConfirm._updateVisibility(value); + } ); + + linkFormView.linkNewWindowConfirm.on('change:isChecked', ( evt, name, value ) => { + // Uncheck the link new window checkbox if the use unchecks + // the link new window confirmation checkbox. + if (!value) { + // Trigger the change event by clicking the element. + linkFormView.linkNewWindow.checkboxInputView.element.click(); + } + } ); + } + +} diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js new file mode 100644 index 000000000..94139e1e7 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js @@ -0,0 +1,13 @@ +/** + * @file The build process always expects an index.js file. Anything exported + * here will be recognized by CKEditor 5 as an available plugin. Multiple + * plugins can be exported in this one file. + * + * I.e. this file's purpose is to make plugin(s) discoverable. + */ + +import HelfiLink from './helfiLink'; + +export default { + HelfiLink: HelfiLink, +}; diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js new file mode 100644 index 000000000..3f67968bb --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js @@ -0,0 +1,250 @@ +import { View } from 'ckeditor5/src/ui'; +import { getCode } from 'ckeditor5/src/utils'; + +/** + * The HelfiLink checkbox view class. + */ +export default class HelfiCheckBoxView extends View { + /** + * @inheritDoc + */ + constructor( locale ) { + super( locale ); + const bind = this.bindTemplate; + + /** + * (Optional) The additional CSS class set on the button. + * + * @observable + * @member {String} #class + */ + this.set( 'class' ); + + /** + * Controls whether the checkbox view is visible. Visible by default, the checkboxes are hidden + * using a CSS class. + * + * @observable + * @default true + * @member {Boolean} #isVisible + */ + this.set( 'isVisible', true ); + + /** + * Indicates whether a related checkbox is checked. + * + * @observable + * @default false + * @member {Boolean} #isChecked + */ + this.set( 'isChecked', false ); + + /** + * The text of the label associated with the checkbox view. + * + * @observable + * @member {String} #label + */ + this.set( 'label' ); + + /** + * The text of the label associated with the checkbox view. + * + * @observable + * @member {String} #label + */ + this.set( 'description' ); + + /** + * The HTML `id` attribute to be assigned to the checkbox. + * + * @observable + * @default null + * @member {String|null} #id + */ + this.set( 'id', null ); + + /** + * (Optional) Controls the `tabindex` HTML attribute of the checkbox. By default, the checkbox is focusable + * but is not included in the Tab order. + * + * @observable + * @default -1 + * @member {String} #tabindex + */ + this.set( 'tabindex', -1 ); + + /** + * The collection of the child views inside of the checkbox {@link #element}. + * + * @readonly + * @member {module:ui/viewcollection~ViewCollection} + */ + this.children = this.createCollection(); + + /** + * The label of the checkbox view. It is configurable using the {@link #label label attribute}. + * + * @readonly + * @member {module:ui/view~View} #labelView + */ + this.labelView = this._createLabelView( ); + + /** + * The input of the checkbox view. + * + * @readonly + * @member {module:ui/view~View} #checkboxInputView + */ + this.checkboxInputView = this._createCheckboxInputView(); + + this.checkboxSpanToggle = this._createCheckboxSpanToggleView(); + + // Bind isVisible to updateVisibility method. + this.bind('isVisible').to(this, '_updateVisibility'); + + this.setTemplate( { + tag: 'div', + + attributes: { + class: [ + 'form-type--checkbox', + 'helfi-link-checkbox', + bind.if( 'isVisible', 'is-hidden', value => !value ), + bind.to( 'class' ), + ], + }, + + on: { + keydown: bind.to( evt => { + // Need to check target. Otherwise, we would handle space press on + // input[type=text] and it would change checked property twice due + // to default browser handling kicking in too. + if ( evt.target === this.element && evt.keyCode === getCode( 'space' ) ) { + this.isChecked = !this.isChecked; + } + } ), + }, + + children: this.children + } ); + } + + /** + * @inheritDoc + */ + render() { + super.render(); + + this.children.add( this.checkboxInputView ); + this.children.add( this.checkboxSpanToggle ); + this.children.add( this.labelView ); + } + + /** + * Focuses the {@link #element} of the checkbox. + */ + focus() { + this.element.focus(); + } + + /** + * Creates a checkbox input view instance and binds it with checkbox attributes. + * + * @private + * @returns {module:ui/view~View} + */ + _createCheckboxInputView() { + const checkboxInputView = new View(); + const bind = this.bindTemplate; + + checkboxInputView.setTemplate( { + tag: 'input', + attributes: { + type: 'checkbox', + id: bind.to( 'id' ), + 'checked': bind.if('isChecked'), + }, + on: { + change: bind.to( evt => { + this.isChecked = evt.target.checked; + } ) + } + } ); + + return checkboxInputView; + } + + /** + * Creates a checkbox toggle span. + * + * @private + * @returns {module:ui/view~View} + */ + _createCheckboxSpanToggleView() { + const checkboxSpanToggleView = new View(); + + /** + * {{ children }} + * + * + * + * + */ + checkboxSpanToggleView.setTemplate( { + tag: 'span', + attributes: { + class: [ + 'checkbox-toggle', + ], + }, + children: [ + { + tag: 'span', + attributes: { + class: [ + 'checkbox-toggle__inner' + ], + }, + }, + ], + } ); + + return checkboxSpanToggleView; + } + + /** + * Creates a label view instance and binds it with checkbox attributes. + * + * @private + * @returns {module:ui/view~View} + */ + _createLabelView() { + const labelView = new View(); + + labelView.setTemplate( { + tag: 'label', + + attributes: { + for: this.bindTemplate.to( 'id' ) + }, + + children: [ + { + text: this.bindTemplate.to( 'label' ) + } + ] + } ); + + return labelView; + } + + // Method to update the visibility of the view based on the isVisible property + _updateVisibility(value) { + if (value) { + this.element.classList.remove('is-hidden'); + } else { + this.element.classList.add('is-hidden'); + } + } +} diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js new file mode 100644 index 000000000..c83251e48 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js @@ -0,0 +1,122 @@ +import { View } from 'ckeditor5/src/ui'; +import { getCode } from 'ckeditor5/src/utils'; + +/** + * The HelfiLink details view class. + */ +export default class HelfiDetailsView extends View { + /** + * @inheritDoc + */ + constructor( locale, children ) { + super( locale ); + this.advancedChildren = children; + const bind = this.bindTemplate; + + /** + * Controls whether the details view is enabled, i.e. it can be clicked and can execute an action. + * + * @observable + * @default true + * @member {Boolean} #isEnabled + */ + this.set( 'isOpen', false ); + + /** + * The text of the label associated with the details view. + * + * @observable + * @member {String} #label + */ + this.set( 'label' ); + + /** + * The HTML `id` attribute to be assigned to the details. + * + * @observable + * @default null + * @member {String|null} #id + */ + this.set( 'id', null ); + + /** + * The collection of the child views inside of the details {@link #element}. + * + * @readonly + * @member {module:ui/viewcollection~ViewCollection} + */ + this.children = this.createCollection(); + + /** + * The input of the details view. + * + * @readonly + * @member {module:ui/view~View} #detailsInputView + */ + this.detailsSummary = this._createDetailsSummary(); + + this.setTemplate( { + tag: 'details', + + attributes: { + id: bind.to( 'id' ), + class: [ + 'ck-helfi-link-details', + bind.if( 'isOpen', 'ck-is-open', isOpen => isOpen ) + ], + open: bind.if('isOpen'), + }, + + on: { + keydown: bind.to( evt => { + // Need to check target. Otherwise, we would handle space press on + // input[type=text] and it would change checked property + // twice due to default browser handling kicking in too. + if ( evt.target === this.element && evt.keyCode === getCode( 'space' ) ) { + this.isOpen = !this.isOpen; + } + } ), + }, + children: this.children, + } ); + } + + /** + * @inheritDoc + */ + render() { + super.render(); + + this.children.add( this.detailsSummary ); + this.children.addMany( this.advancedChildren ); + } + + /** + * Focuses the {@link #element} of the details. + */ + focus() { + this.element.focus(); + } + + _createDetailsSummary() { + const detailsSummaryView = new View(); + + detailsSummaryView.setTemplate( { + tag: 'summary', + attributes: { + role: 'button', + class: [ + 'ck-helfi-link-details__summary', + ], + 'tabindex': 0, + }, + children: [ + { + text: this.bindTemplate.to('label') + } + ], + } ); + return detailsSummaryView; + } + +} diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js new file mode 100644 index 000000000..b5ea871f6 --- /dev/null +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js @@ -0,0 +1,29 @@ +import { LabeledFieldView } from 'ckeditor5/src/ui'; + +/** + * The HelfiLink details view class. + */ +export default class HelfiLinkProtocolView extends LabeledFieldView { + /** + * @inheritDoc + */ + constructor(locale, fieldView) { + super(locale, fieldView); + + // Initialize the isVisible property + this.set('isVisible', true); + + // Add a CSS class to the view when isVisible is false + this.bind('isVisible').to(this, 'updateVisibility'); + } + + // Method to update the visibility of the view based on the isVisible property + updateVisibility(value) { + if (value) { + this.element.classList.remove('is-hidden'); + } else { + this.element.classList.add('is-hidden'); + } + } + +} diff --git a/modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml b/modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml new file mode 100644 index 000000000..a33f3e14d --- /dev/null +++ b/modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml @@ -0,0 +1,43 @@ +# If using yml to configure plugins, rename this to {module_name}.ckeditor5.yml. +# If using annotations, this file can be removed. +# @see https://www.drupal.org/docs/drupal-apis/plugin-api/annotations-based-plugins +# For information on using annotations to define plugins. +# @see the CKEditor 5 module's README.md for more details regarding plugin +# configuration options. +# cSpell:ignore simplebox demobox + +hdbt_admin_tools_helfi_link: + # Use the provider: property for this plugin to depend on another module. + + # Configuration that will be sent to CKEditor 5 JavaScript plugins. + ckeditor5: + plugins: + - helfiLink.HelfiLink + # *Additional configuration properties* + # config: data sent to the constructor of any CKEditor 5 plugin + # editorPluginName: + # editorPluginProperty: editorPluginValue + + # Configuration that will be used directly by Drupal. + drupal: + label: Helfi Link + # The library loaded while using the editor. + library: hdbt_admin_tools/helfi_link +# toolbar_items: + # This should match the name of the corresponding plugin exported in the + # plugin's index.js. +# simpleBox: +# label: Simple box demo + # If the plugin does not provide elements, set this as + # `elements: false` + elements: + # Note that it necessary for elements to separately provide both the tag + # (f.e. `

`) and the attribute being added to the tag + # (f.e. `

`). + - + # *Additional configuration properties* + conditions: + plugins: + - ckeditor5_link + # class: Optional PHP class that makes it possible for the plugin to provide + # dynamic values, or a configuration UI. diff --git a/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml b/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml index c72e5c683..e72d3ba94 100644 --- a/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml +++ b/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml @@ -6,7 +6,7 @@ dependencies: - admin_toolbar:admin_toolbar - admin_toolbar_tools:admin_toolbar_tools - config_ignore:config_ignore - - drupal:ckeditor + - drupal:ckeditor5 - drupal:config_translation - drupal:editor - drupal:options diff --git a/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml b/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml index a90143a27..6521e442a 100644 --- a/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml +++ b/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml @@ -95,3 +95,13 @@ site_settings: assets/js/siteSettingsDefaultColor.js: {} dependencies: - hdbt/hdbt-icons + +# This adds the CKEditor plugin JavaScript and the specific CSS to the page. +helfi_link: + js: + assets/js/build/helfiLink.js: { preprocess: false, minified: true } + css: + theme: + assets/css/ckeditor5/helfi_link_plugin.css: { } + dependencies: + - core/ckeditor5 diff --git a/modules/hdbt_admin_tools/package-lock.json b/modules/hdbt_admin_tools/package-lock.json new file mode 100644 index 000000000..a4d75f681 --- /dev/null +++ b/modules/hdbt_admin_tools/package-lock.json @@ -0,0 +1,7418 @@ +{ + "name": "hdbt-admin-tools", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "hdbt-admin-tools", + "version": "1.0.0", + "devDependencies": { + "@ckeditor/ckeditor5-dev-utils": "^30.0.0", + "babel-loader": "^9.1.2", + "ckeditor5": "~35.1.0", + "css-loader": "^6.8.1", + "eslint": "^8.31.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^8.5.0", + "eslint-import-resolver-webpack": "0.13.2", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-prettier": "^4.2.1", + "prettier": "^2.7.1", + "raw-loader": "^4.0.2", + "terser-webpack-plugin": "^5.3.3", + "webpack": "^5.51.1", + "webpack-cli": "^4.4.0" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", + "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", + "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", + "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "dev": true, + "peer": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helpers": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", + "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", + "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/compat-data": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "peer": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "peer": true + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", + "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", + "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", + "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", + "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", + "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", + "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", + "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", + "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", + "dev": true, + "peer": true, + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", + "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", + "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", + "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-35.4.0.tgz", + "integrity": "sha512-B6rIQxvOrHvO9TZRC8JA0wKk+IfN880UJkYIg1qlhf9HFNVjdVbtHaiCsPD+TzGmQN3XHXfNjgjabGRIn0iZmw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "@ckeditor/ckeditor5-widget": "^35.4.0", + "lodash-es": "^4.17.11" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-clipboard/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-dev-utils/-/ckeditor5-dev-utils-30.5.0.tgz", + "integrity": "sha512-R5oC9ka68X7NwafM5rFvIv6q0qT2kMsBkRikdEygx7cmGkV4dy7uM5HuOBUuIoLW7Md2o3QfkD3dnk6OdzuuJw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.18.9", + "@babel/traverse": "^7.18.9", + "@ckeditor/ckeditor5-dev-webpack-plugin": "^30.5.0", + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.6.1", + "cssnano": "^5.0.0", + "del": "^5.0.0", + "escodegen": "^1.9.0", + "fs-extra": "^8.1.0", + "is-interactive": "^1.0.0", + "javascript-stringify": "^1.6.0", + "pofile": "^1.0.9", + "postcss": "^8.4.12", + "postcss-import": "^14.1.0", + "postcss-loader": "^4.3.0", + "postcss-mixins": "^9.0.2", + "postcss-nesting": "^10.1.4", + "raw-loader": "^4.0.1", + "shelljs": "^0.8.1", + "style-loader": "^2.0.0", + "terser-webpack-plugin": "^4.2.3", + "through2": "^3.0.1", + "ts-loader": "^9.3.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + }, + "peerDependencies": { + "webpack": "^4.43.0 || ^5.24.0" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils/node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils/node_modules/serialize-javascript": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", + "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils/node_modules/terser-webpack-plugin": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-4.2.3.tgz", + "integrity": "sha512-jTgXh40RnvOrLQNgIkwEKnQ8rmHjHK4u+6UBEi+W+FPmvb+uo+chJXntKe7/3lW5mNysgSWD60KyesnhW8D6MQ==", + "dev": true, + "dependencies": { + "cacache": "^15.0.5", + "find-cache-dir": "^3.3.1", + "jest-worker": "^26.5.0", + "p-limit": "^3.0.2", + "schema-utils": "^3.0.0", + "serialize-javascript": "^5.0.1", + "source-map": "^0.6.1", + "terser": "^5.3.4", + "webpack-sources": "^1.4.3" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-utils/node_modules/webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/@ckeditor/ckeditor5-dev-webpack-plugin": { + "version": "30.5.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-dev-webpack-plugin/-/ckeditor5-dev-webpack-plugin-30.5.0.tgz", + "integrity": "sha512-mErNKfGd8XBjJxB7K7yCDnNq4pLQKbEjwJHf9g2EW4gOD1U55rgPc1XpmgfxhMj44QQ8YOZXAQ/Y/55AN7GATA==", + "deprecated": "This package is no longer maintained. Please, read the migration path: https://github.com/ckeditor/ckeditor5-dev/releases/tag/v32.0.0.", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-dev-utils": "^30.5.0", + "chalk": "^4.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.4", + "webpack-sources": "^2.0.1" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + }, + "peerDependencies": { + "webpack": "^4.43.0 || ^5.24.0" + } + }, + "node_modules/@ckeditor/ckeditor5-enter": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-35.4.0.tgz", + "integrity": "sha512-y95RnA/Gw72e220PJKVwNbwPzX4SRs82/rXu1jVyJXty7CcEZqqfyRtW6odICAXr5eKI5XKgzFgpFYULL3D9Nw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-enter/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-35.4.0.tgz", + "integrity": "sha512-8nhkEEFv1WClhH6q/HW8P596d+dlatSVc46kQ2+jGlYirL8P66tV/nK+OiE8z1d897oVr4QPGsqk2qGkRFUChw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-paragraph/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-35.4.0.tgz", + "integrity": "sha512-c+pIIY77SP6ux4/cyD7cCrllQAqtFVSnzNYdy7ygNPqljCGngCnpSV9xfCO/blFo6/zx2vsmzVGdRq3ArzGoMg==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-select-all/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-35.4.0.tgz", + "integrity": "sha512-Ad/PHWbVWcnAj9oevkkfLqf6CmvCFOti466uhvfOCKRNVf2+/xuGwleOGr8W6Lir/x/qav7ojFjKPKDxqbPXhA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-typing/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-35.4.0.tgz", + "integrity": "sha512-0RhsK0f/pX/7KB/JXYTLiDOswmUTQ9EKIIuewAwr7LTsBf4Q309FZSFdbeTmc0wIyX33212Xh5xsi3LyG1VJRg==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-undo/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-35.4.0.tgz", + "integrity": "sha512-+eJAluAc4mAFmx5FNuSGjkCYmbm0V9NpSleubAXEx2e+KNiLarPAnsolwRaAcYXcloNp4C9/l0D+lPEx7VRYtg==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-upload/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-35.4.0.tgz", + "integrity": "sha512-SNYOXXWu7XV1BZET+ar0Cea25836vzNtUqXlDPwBx/jrmK86b8GMbFR99P2bUG0NvtIsH5cSk7XCmnxb4ZQ6wA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-enter": "^35.4.0", + "@ckeditor/ckeditor5-typing": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@ckeditor/ckeditor5-widget/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", + "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", + "dev": true, + "engines": { + "node": "^14 || ^16 || >=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.10" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", + "dev": true + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "dev": true, + "dependencies": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "node_modules/@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "deprecated": "This functionality has been moved to @npmcli/fs", + "dev": true, + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/eslint": { + "version": "8.40.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", + "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", + "dev": true + }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.3.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz", + "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "peer": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-find": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", + "integrity": "sha512-kO/vVCacW9mnpn3WPWbTVlEnOabK2L7LWi2HViURtCM46y1zb6I8UMjx4LgbiqadTgHnLInUronwn3ampNTJtQ==", + "dev": true + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true, + "peer": true + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "dev": true, + "peer": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/babel-loader": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.2.tgz", + "integrity": "sha512-mN14niXW43tddohGl8HPu5yfQq70iUThvFL/4QzESA7GcZoC0eVOhvWdQ8+3UlSjaDE9MVtsW9mxDY07W7VpVA==", + "dev": true, + "dependencies": { + "find-cache-dir": "^3.3.2", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 14.15.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0", + "webpack": ">=5" + } + }, + "node_modules/babel-loader/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/babel-loader/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/babel-loader/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/babel-loader/node_modules/schema-utils": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", + "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "dev": true, + "dependencies": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/cacache/node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001503", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001503.tgz", + "integrity": "sha512-Sf9NiF+wZxPfzv8Z3iS0rXM1Do+iOy2Lxvib38glFX+08TCYYYGR5fRJXk4d77C4AYwhUjgYgMsMudbh2TqCKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ckeditor5": { + "version": "35.1.0", + "resolved": "https://registry.npmjs.org/ckeditor5/-/ckeditor5-35.1.0.tgz", + "integrity": "sha512-Mk8qPXT1OW1BxwVbDnphJmNww8kodKv48HUqSWBCI5i+hOZ/zXNdBoD48NCYqJ5Lr2rJCvlfZ93t3cc//20hwg==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-clipboard": "^35.1.0", + "@ckeditor/ckeditor5-core": "^35.1.0", + "@ckeditor/ckeditor5-engine": "^35.1.0", + "@ckeditor/ckeditor5-enter": "^35.1.0", + "@ckeditor/ckeditor5-paragraph": "^35.1.0", + "@ckeditor/ckeditor5-select-all": "^35.1.0", + "@ckeditor/ckeditor5-typing": "^35.1.0", + "@ckeditor/ckeditor5-ui": "^35.1.0", + "@ckeditor/ckeditor5-undo": "^35.1.0", + "@ckeditor/ckeditor5-upload": "^35.1.0", + "@ckeditor/ckeditor5-utils": "^35.1.0", + "@ckeditor/ckeditor5-widget": "^35.1.0" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/ckeditor5/node_modules/@ckeditor/ckeditor5-core": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-35.4.0.tgz", + "integrity": "sha512-Rf0H7C4inCj/YC8aii0cT7TC/IuBIQ+tXmu9qd8/1BJ/rz1MCHXtBPApjTbFp33OE3aOFB5+NUaKt05k/dL3OA==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-engine": "^35.4.0", + "@ckeditor/ckeditor5-ui": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/ckeditor5/node_modules/@ckeditor/ckeditor5-engine": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-35.4.0.tgz", + "integrity": "sha512-67QKtUGJeLM072h9qURvzczYGU3ecuxR9LLmM4dffnV+PBNQ9e8RDCY7PuuEP0pplmAUI6/XqoZJIbk6h7ZV3Q==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/ckeditor5/node_modules/@ckeditor/ckeditor5-ui": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-35.4.0.tgz", + "integrity": "sha512-0SmYE+k1cYQPqyw2rQsPDV/RpudneBh1bNfiaTOz+rqViJIMe+TxiuK6Fz+znNZ05s0exr+ZHWvMttGqlVoQNw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-core": "^35.4.0", + "@ckeditor/ckeditor5-utils": "^35.4.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/ckeditor5/node_modules/@ckeditor/ckeditor5-utils": { + "version": "35.4.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-35.4.0.tgz", + "integrity": "sha512-sFjbb+1VYdLbELDLWVYk86WzVN7Lo3sXHbVhdr8+kc0Ufxdr3mTFHDAkiymFt2fs1FOB5gZyWJlJU+EeJnhKUw==", + "dev": true, + "dependencies": { + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=5.7.1" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.0.tgz", + "integrity": "sha512-4/aL9X3Wh0yiMQlE+eeRhWP6vclO3QRtw1JHKIT0FFUs5FjpFmESqtMvYZ0+lbzBw900b95mS0hohy+qn2VK/g==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", + "dev": true + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true, + "peer": true + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-loader": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", + "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", + "dev": true, + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.3", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "dev": true, + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "dev": true, + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true, + "peer": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dev": true, + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/del": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/del/-/del-5.1.0.tgz", + "integrity": "sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==", + "dev": true, + "dependencies": { + "globby": "^10.0.1", + "graceful-fs": "^4.2.2", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.1", + "p-map": "^3.0.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.432", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.432.tgz", + "integrity": "sha512-yz3U/khQgAFT2HURJA3/F4fKIyO2r5eK09BQzBZFd6BvBSSaRuzKc2ZNBHtJcO75/EKiRYbVYJZ2RB0P4BuD2g==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "peer": true + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.3.tgz", + "integrity": "sha512-ZU4miiY1j3sGPFLJ34VJXEqhpmL+HGByCinGHv4HC+Fxl2fI2Z4yR6tl0mORnDr6PA8eihWo4LmSWDbvhALckg==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.1", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", + "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", + "dev": true + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/eslint": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.6.0", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-airbnb": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", + "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", + "dev": true, + "dependencies": { + "eslint-config-airbnb-base": "^15.0.0", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5" + }, + "engines": { + "node": "^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react-hooks": "^4.3.0" + } + }, + "node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" + } + }, + "node_modules/eslint-config-airbnb-base/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-webpack": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.2.tgz", + "integrity": "sha512-XodIPyg1OgE2h5BDErz3WJoK7lawxKTJNhgPNafRST6csC/MZC+L5P6kKqsZGRInpbgc02s/WZMrb4uGJzcuRg==", + "dev": true, + "dependencies": { + "array-find": "^1.0.0", + "debug": "^3.2.7", + "enhanced-resolve": "^0.9.1", + "find-root": "^1.1.0", + "has": "^1.0.3", + "interpret": "^1.4.0", + "is-core-module": "^2.7.0", + "is-regex": "^1.1.4", + "lodash": "^4.17.21", + "resolve": "^1.20.0", + "semver": "^5.7.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "eslint-plugin-import": ">=1.4.0", + "webpack": ">=1.11.0" + } + }, + "node_modules/eslint-import-resolver-webpack/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-webpack/node_modules/enhanced-resolve": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz", + "integrity": "sha512-kxpoMgrdtkXZ5h0SeraBS1iRntpTpQ3R8ussdb38+UAFnMGX5DDyJXePm+OCHOcoXvHDw7mc2erbJBpDnl7TPw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.2.0", + "tapable": "^0.1.8" + }, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/eslint-import-resolver-webpack/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/eslint-import-resolver-webpack/node_modules/tapable": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", + "integrity": "sha512-jX8Et4hHg57mug1/079yitEKWGB3LCwoxByLsNim89LABq8NqgiX+6iYVOsq0vX8uJHkU+DZ5fnq95f800bEsQ==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "dev": true, + "peer": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "peer": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dev": true, + "peer": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/espree": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", + "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "dev": true + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "dev": true + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/javascript-stringify": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-1.6.0.tgz", + "integrity": "sha512-fnjC0up+0SjEJtgmmG+teeel68kutkvzfctO/KxE3qJlbunkJYAshgH3boU++gSBHP8z5/r0ts0qRIrHf0RTQQ==", + "dev": true + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.4.tgz", + "integrity": "sha512-fX2TVdCViod6HwKEtSWGHs57oFhVfCMwieb9PuRDgjDPh5XeqJiHFFFJCHxU5cnTc3Bu/GRL+kPiFmw8XWOfKw==", + "dev": true, + "peer": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true, + "peer": true + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "peer": true, + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "peer": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/memory-fs": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz", + "integrity": "sha512-+y4mDxU4rvXXu5UDSGCGNiesFmwCHuefGMoPCO1WYucNYj7DsLqrFaa2fXVI0H+NNiPTwwzKwspn9yTZqUGqng==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "dev": true + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "dev": true, + "peer": true, + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-map": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", + "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", + "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pofile": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/pofile/-/pofile-1.1.4.tgz", + "integrity": "sha512-r6Q21sKsY1AjTVVjOuU02VYKVNQGJNQHjTIvs4dEbeuuYfxgYk/DGD2mqqq4RDaVkwdSq0VEtmQUOPe/wH8X3g==", + "dev": true + }, + "node_modules/postcss": { + "version": "8.4.24", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", + "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-import": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", + "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dev": true, + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-loader": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-4.3.0.tgz", + "integrity": "sha512-M/dSoIiNDOo8Rk0mUqoj4kpGq91gcxCfb9PoyZVdZ76/AuhxylHDYZblNE8o+EQ9AMSASeMFEKxZf5aU6wlx1Q==", + "dev": true, + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.4", + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dev": true, + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-mixins": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/postcss-mixins/-/postcss-mixins-9.0.4.tgz", + "integrity": "sha512-XVq5jwQJDRu5M1XGkdpgASqLk37OqkH4JCFDXl/Dn7janOJjCTEKL+36cnRVy7bMtoBzALfO7bV7nTIsFnUWLA==", + "dev": true, + "dependencies": { + "fast-glob": "^3.2.11", + "postcss-js": "^4.0.0", + "postcss-simple-vars": "^7.0.0", + "sugarss": "^4.0.1" + }, + "engines": { + "node": ">=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-nesting": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", + "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", + "dev": true, + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dev": true, + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-simple-vars": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-simple-vars/-/postcss-simple-vars-7.0.1.tgz", + "integrity": "sha512-5GLLXaS8qmzHMOjVxqkk1TZPf1jMqesiI7qLhnlyERalG0sMbHIbJqrcnrpmZdKCLglHnRHoEBB61RtGTsj++A==", + "dev": true, + "engines": { + "node": ">=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.1" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "dev": true + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "peer": true, + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/raw-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz", + "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true, + "peer": true + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dev": true, + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true, + "peer": true + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/semver": { + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", + "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "dev": true, + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", + "dev": true + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", + "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-2.0.0.tgz", + "integrity": "sha512-Z0gYUJmzZ6ZdRUqpg1r8GsaFKypE+3xAzuFeMuoHgjc9KZv3wMyCRjQIWEbhoFSq7+7yoHXySDJyyWQaPajeiQ==", + "dev": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/sugarss": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/sugarss/-/sugarss-4.0.1.tgz", + "integrity": "sha512-WCjS5NfuVJjkQzK10s8WOBY+hhDxxNt/N6ZaGwxFZ+wN3/lKKFSaaKUNecULcTTvE4urLcKaZFQD8vO0mOZujw==", + "dev": true, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.3.3" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar": { + "version": "6.1.15", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz", + "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==", + "dev": true, + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/terser": { + "version": "5.18.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.0.tgz", + "integrity": "sha512-pdL757Ig5a0I+owA42l6tIuEycRuM7FPY4n62h44mRLRfnOxJkkOHd6i89dOpwZlpF6JXBwaAHF6yWzFrt+QyA==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/through2": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", + "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "2 || 3" + } + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-loader": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.3.tgz", + "integrity": "sha512-n3hBnm6ozJYzwiwt5YRiJZkzktftRpMiBApHaJPoWLA+qetQBAXkHqCLM6nwSdRDimqVtA5ocIkcTRLMTt7yzA==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", + "dev": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "dependencies": { + "unique-slug": "^2.0.0" + } + }, + "node_modules/unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack": { + "version": "5.87.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.87.0.tgz", + "integrity": "sha512-GOu1tNbQ7p1bDEoFRs2YPcfyGs8xq52yyPBZ3m2VGnXGtV9MxjrkABHm4V9Ia280OefsSLzvbVoXcfLxjKY/Iw==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/webpack-cli/node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/webpack-merge": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", + "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", + "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", + "dev": true, + "dependencies": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", + "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", + "dev": true + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/modules/hdbt_admin_tools/package.json b/modules/hdbt_admin_tools/package.json new file mode 100644 index 000000000..6883cb130 --- /dev/null +++ b/modules/hdbt_admin_tools/package.json @@ -0,0 +1,28 @@ +{ + "name": "hdbt-admin-tools", + "version": "1.0.0", + "description": "Helfi specific enhancements to CKEditor5 plugins.", + "scripts": { + "watch": "webpack --mode development --watch", + "build": "webpack", + "lint:js": "eslint assets/js/ckeditor5_plugins/", + "format:js": "eslint --fix assets/js/ckeditor5_plugins/" + }, + "devDependencies": { + "@ckeditor/ckeditor5-dev-utils": "^30.0.0", + "babel-loader": "^9.1.2", + "ckeditor5": "~35.1.0", + "css-loader": "^6.8.1", + "raw-loader": "^4.0.2", + "terser-webpack-plugin": "^5.3.3", + "webpack": "^5.51.1", + "webpack-cli": "^4.4.0", + "prettier": "^2.7.1", + "eslint": "^8.31.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-prettier": "^8.5.0", + "eslint-import-resolver-webpack": "0.13.2", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-prettier": "^4.2.1" + } +} diff --git a/modules/hdbt_admin_tools/webpack.config.js b/modules/hdbt_admin_tools/webpack.config.js new file mode 100644 index 000000000..4a8a6bcbf --- /dev/null +++ b/modules/hdbt_admin_tools/webpack.config.js @@ -0,0 +1,76 @@ +const path = require('path'); +const fs = require('fs'); +const webpack = require('webpack'); +const { styles, builds } = require('@ckeditor/ckeditor5-dev-utils'); +const TerserPlugin = require('terser-webpack-plugin'); + +function getDirectories(srcpath) { + return fs + .readdirSync(srcpath) + .filter((item) => fs.statSync(path.join(srcpath, item)).isDirectory()); +} + +module.exports = []; +// Loop through every subdirectory in src, each a different plugin, and build +// each one in ./build. +getDirectories('./assets/js/ckeditor5_plugins').forEach((dir) => { + const bc = { + mode: 'production', + optimization: { + minimize: true, + minimizer: [ + new TerserPlugin({ + terserOptions: { + ecma: 2020, + mangle: { + reserved:[ + 'Drupal', + 'drupal', + 'drupalSettings', + ], + }, + format: { + comments: false, + }, + }, + test: /\.js(\?.*)?$/i, + extractComments: false, + }), + ], + moduleIds: 'named', + }, + entry: { + path: path.resolve( + __dirname, + 'assets/js/ckeditor5_plugins', + dir, + 'src/index.js', + ), + }, + output: { + path: path.resolve(__dirname, './assets/js/build'), + filename: `${dir}.js`, + library: ['CKEditor5', dir], + libraryTarget: 'umd', + libraryExport: 'default', + }, + plugins: [ + // It is possible to require the ckeditor5-dll.manifest.json used in + // core/node_modules rather than having to install CKEditor 5 here. + // However, that requires knowing the location of that file relative to + // where your module code is located. + new webpack.DllReferencePlugin({ + manifest: require('./node_modules/ckeditor5/build/ckeditor5-dll.manifest.json'), // eslint-disable-line global-require, import/no-unresolved + scope: 'ckeditor5/src', + name: 'CKEditor5.dll', + }), + ], + module: { + rules: [ + { test: /\.svg$/, use: 'raw-loader' } + ], + }, + }; + + module.exports.push(bc); +}); From d8935c42d58125ed7a0552911d11497af95e9262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 13 Jul 2023 11:05:54 +0300 Subject: [PATCH 016/236] UHF-8384: Added ESLint and fixed JS errors. --- modules/hdbt_admin_tools/.eslintrc.json | 94 ++----------- .../assets/js/build/helfiLink.js | 2 +- .../helfiLink/src/formElements.js | 4 +- .../helfiLink/src/helfiLinkEditing.js | 41 +++--- .../helfiLink/src/helfiLinkUi.js | 52 +++++--- .../ckeditor5_plugins/helfiLink/src/index.js | 2 +- .../helfiLink/src/ui/helfiCheckBoxView.js | 15 ++- modules/hdbt_admin_tools/package-lock.json | 126 ++++++++++++++++++ modules/hdbt_admin_tools/package.json | 13 +- 9 files changed, 210 insertions(+), 139 deletions(-) diff --git a/modules/hdbt_admin_tools/.eslintrc.json b/modules/hdbt_admin_tools/.eslintrc.json index 2b672290e..69bef475e 100644 --- a/modules/hdbt_admin_tools/.eslintrc.json +++ b/modules/hdbt_admin_tools/.eslintrc.json @@ -6,11 +6,15 @@ "es6": true }, "extends": [ - "airbnb", - "prettier" + "prettier", + "plugin:import/recommended" + ], + "plugins": [ + "jsdoc" ], "parserOptions": { - "ecmaVersion": 2022 + "ecmaVersion": 2022, + "sourceType": "module" }, "globals": { "Drupal": true, @@ -29,7 +33,6 @@ "tabbable": true }, "rules": { - // "prettier/prettier": "error", "prefer-arrow-callback":["off"], "quotes": ["warn", "single"], "semi": ["error", "always"], @@ -61,86 +64,5 @@ "after", { "overrides": { "?": "ignore", ":": "ignore" } } ] - }, - "settings": { - "react": { - "version": "17.x" - } - }, - // Using ts overrides rules from eslint-config-react-app. - // Finetune these if needed. - "overrides": [ - { - "files": ["*.ts?(x)"], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true - }, - // typescript-eslint specific options - "warnOnUnsupportedTypeScriptVersion": true - }, - "plugins": ["@typescript-eslint"], - // If adding a typescript-eslint version of an existing ESLint rule, - // make sure to disable the ESLint rule here. - "rules": { - // TypeScript"s `noFallthroughCasesInSwitch` option is more robust (#6906) - "default-case": "off", - // "tsc" already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/291) - "no-dupe-class-members": "off", - // "tsc" already handles this (https://github.com/typescript-eslint/typescript-eslint/issues/477) - "no-undef": "off", - // Add TypeScript specific rules (and turn off ESLint equivalents) - "no-array-constructor": "off", - "no-redeclare": "off", - "no-use-before-define": "off", - "@typescript-eslint/consistent-type-assertions": "warn", - "@typescript-eslint/no-array-constructor": "warn", - "@typescript-eslint/no-redeclare": "warn", - "@typescript-eslint/no-use-before-define": [ - "warn", - { - "functions": false, - "classes": false, - "variables": false, - "typedefs": false - } - ], - "no-unused-expressions": "off", - "@typescript-eslint/no-unused-expressions": [ - "error", - { - "allowShortCircuit": true, - "allowTernary": true, - "allowTaggedTemplates": true - } - ], - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - "warn", - { - "args": "none", - "ignoreRestSiblings": true - } - ], - "no-useless-constructor": "off", - "no-console": ["warn", { "allow": ["warn", "error"] }], - "camelcase": "off", - "@typescript-eslint/no-useless-constructor": "warn", - "react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx", ".tsx"] }], - "react/require-default-props": "off", - "react/jsx-props-no-spreading": "off", - "react/no-array-index-key": "off", - "react/function-component-definition": [1, { "namedComponents": ["arrow-function", "function-declaration"] }], - "react/self-closing-comp": 0, - "import/extensions": 0, - "import/no-unresolved": 0, - // These rules are not needed with react 17 JSX transform. - "react/jsx-uses-react": "off", - "react/react-in-jsx-scope": "off" - } - } - ] + } } diff --git a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js index d8e652bbf..74c044092 100644 --- a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js +++ b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,i),l.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const l={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class o extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(l).forEach((e=>{l[e].machineName&&(this._convertAttribute(e,l[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(l))}_convertAttribute(e,t){const i=this.editor;if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{let n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const t=this.editor,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const l=s[s.length-1],o=t.model,r=o.document.selection;o.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;l[e]?i.setAttribute(e,l[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=o.schema.getValidRanges(r.getRanges(),e);for(const n of t)l[e]?i.setAttribute(e,l[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const t=this.editor,i=t.commands.get("unlink"),n=this.editor.model,l=n.document.selection;let o=!1;i.on("execute",(i=>{o||(i.stop(),n.change((()=>{o=!0,t.execute("unlink"),o=!1,n.change((t=>{let i;i=l.isCollapsed?[(0,s.findAttributeRange)(l.getFirstPosition(),e,l.getAttribute(e),n)]:n.schema.getValidRanges(l.getRanges(),e);for(const n of i)t.removeAttribute(e,n)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const t=this.editor.commands.get("link"),i=this.editor.model,n=i.document.selection;t.set(e,null),i.document.on("change",(()=>{t[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=l}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const e=this.editor,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const e=this.editor.plugins.get("LinkUI").formView,t=document.createElement("span");t.textContent=Drupal.t("Start typing to find content."),t.classList.add("helfi-link-form__field_description"),e.urlInputView.element.appendChild(t)}_createSelectList(e,t){const i=this.editor.plugins.get("LinkUI").formView,n=new d(this.editor.locale,r.createLabeledDropdown),s=i.urlInputView;i.urlInputView.on("change:isEmpty",((e,t,i)=>{n.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(n.fieldView,l),n.fieldView.on("execute",(e=>{s.isEmpty&&e.source.commandValue&&(s.fieldView.value=e.source.commandValue)})),n.set("isVisible",!0),n}_createAndHandleAdvancedSettings(){const e=this.editor,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const t=this.editor,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class="helfi-link--"+n.machineName,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const t=this.editor,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const t=this.editor,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,l)=>{l===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),n[e].checkboxInputView.element.checked=i[e]||""):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const e=this.editor.plugins.get("LinkUI").formView;if(!e.linkNewWindowConfirm.element.description){const t=document.createElement("div");t.innerHTML=this.formElements.linkNewWindowConfirm.description,t.classList.add("helfi-link-form__field_description"),e.linkNewWindowConfirm.element.appendChild(t)}e.linkNewWindow.on("change:isChecked",((t,i,n)=>{n||e.linkNewWindowConfirm.checkboxInputView.element.click(),e.linkNewWindowConfirm._updateVisibility(n)})),e.linkNewWindowConfirm.on("change:isChecked",((t,i,n)=>{n||e.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[o,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const o={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class l extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(o).forEach((e=>{o[e].machineName&&(this._convertAttribute(e,o[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(o))}_convertAttribute(e,t){const{editor:i}=this;if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{const n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const{editor:t}=this,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const o=s[s.length-1],{model:l}=t,{selection:r}=l.document;l.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;o[e]?i.setAttribute(e,o[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=l.schema.getValidRanges(r.getRanges(),e);for(const n of t)o[e]?i.setAttribute(e,o[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,o=t.commands.get("unlink");let l=!1;o.on("execute",(o=>{l||(o.stop(),i.change((()=>{l=!0,t.execute("unlink"),l=!1,i.change((t=>{let o;o=n.isCollapsed?[(0,s.findAttributeRange)(n.getFirstPosition(),e,n.getAttribute(e),i)]:i.schema.getValidRanges(n.getRanges(),e);for(const i of o)t.removeAttribute(e,i)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,s=t.commands.get("link");s.set(e,null),i.document.on("change",(()=>{s[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=o}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=document.createElement("span");i.textContent=Drupal.t("Start typing to find content."),i.classList.add("helfi-link-form__field_description"),t.urlInputView.element.appendChild(i)}_createSelectList(e,t){const{editor:i}=this,n=i.plugins.get("LinkUI").formView,s=new d(this.editor.locale,r.createLabeledDropdown),{urlInputView:o}=n;n.urlInputView.on("change:isEmpty",((e,t,i)=>{s.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(s.fieldView,l),s.fieldView.on("execute",(e=>{o.isEmpty&&e.source.commandValue&&(o.fieldView.value=e.source.commandValue)})),s.set("isVisible",!0),s}_createAndHandleAdvancedSettings(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class=`helfi-link--${n.machineName}`,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const{editor:t}=this,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,o)=>{o===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),n[e].checkboxInputView.element.checked=i[e]||""):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const{editor:e}=this,t=e.plugins.get("LinkUI").formView;if(!t.linkNewWindowConfirm.element.description){const e=document.createElement("div");e.innerHTML=this.formElements.linkNewWindowConfirm.description,e.classList.add("helfi-link-form__field_description"),t.linkNewWindowConfirm.element.appendChild(e)}t.linkNewWindow.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindowConfirm.checkboxInputView.element.click(),t.linkNewWindowConfirm._updateVisibility(n)})),t.linkNewWindowConfirm.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[l,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js index e885bdf4f..3e45e589a 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js @@ -54,8 +54,8 @@ const formElements = { }, type: 'static', } -} +}; export { formElements, -} +}; diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js index e9f2e4dc3..253ac4d6b 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js @@ -46,9 +46,12 @@ export default class HelfiLinkEditing extends Plugin { /** * Convert models and attributes between model <-> view. + * + * @param {string} modelName The model name. + * @param {string} viewAttribute The view attribute name. */ _convertAttribute(modelName, viewAttribute) { - const editor = this.editor; + const { editor } = this; // Add current model as an allowed attribute for '$text' nodes. editor.model.schema.extend( '$text', { allowAttributes: modelName } ); @@ -58,7 +61,7 @@ export default class HelfiLinkEditing extends Plugin { editor.conversion.for( 'downcast' ).attributeToElement( { model: modelName, view: ( modelAttributeValue, { writer }) => { - let attributeValues = {}; + const attributeValues = {}; // Create attribute values based on the type of view attributes types. if (modelAttributeValue && typeof viewAttribute === 'object') { @@ -93,10 +96,8 @@ export default class HelfiLinkEditing extends Plugin { }, model: { key: modelName, - value: ( viewElement ) => { - return !!(viewElement.hasAttribute(viewAttributeKey) && - viewElement.getAttribute(viewAttributeKey) === viewAttributeValue); - } + value: ( viewElement ) => !!(viewElement.hasAttribute(viewAttributeKey) && + viewElement.getAttribute(viewAttributeKey) === viewAttributeValue) }, }); } @@ -111,9 +112,7 @@ export default class HelfiLinkEditing extends Plugin { }, model: { key: modelName, - value: viewElement => { - return viewElement.getAttribute(viewAttribute) - } + value: viewElement => viewElement.getAttribute(viewAttribute) } }); } @@ -121,9 +120,11 @@ export default class HelfiLinkEditing extends Plugin { /** * Add attributes to linkCommand during its execution. + * + * @param {object} modelNames All model names. */ _addAttributeOnLinkCommandExecute(modelNames) { - const editor = this.editor; + const { editor } = this; const linkCommand = editor.commands.get('link'); let linkCommandExecuting = false; @@ -147,8 +148,8 @@ export default class HelfiLinkEditing extends Plugin { // is being executed by this function. linkCommandExecuting = true; const attributeValues = args[args.length - 1]; - const model = editor.model; - const selection = model.document.selection; + const { model } = editor; + const { selection } = model.document; // Wrapping the original command execution in a model.change() to make // sure there's a single undo step when the attribute is added. @@ -186,12 +187,14 @@ export default class HelfiLinkEditing extends Plugin { /** * Remove attributes on unlink command execution. + * + * @param {string} modelName The model name. */ _removeAttributeOnUnlinkCommandExecute(modelName) { - const editor = this.editor; + const { editor } = this; + const { model } = this.editor; + const { selection } = model.document; const unlinkCommand = editor.commands.get( 'unlink' ); - const model = this.editor.model; - const selection = model.document.selection; let isUnlinkingInProgress = false; @@ -244,12 +247,14 @@ export default class HelfiLinkEditing extends Plugin { /** * Keep the attributes updated whenever editor model changes. + * + * @param {string} modelName The model name. */ _refreshAttributeValue(modelName) { - const editor = this.editor; + const { editor } = this; + const { model } = this.editor; + const { selection } = model.document; const linkCommand = editor.commands.get( 'link' ); - const model = this.editor.model; - const selection = model.document.selection; linkCommand.set( modelName, null ); diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js index 91c642128..139a6e7de 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js @@ -12,11 +12,11 @@ import { Model, } from 'ckeditor5/src/ui'; -import HelfiCheckBoxView from "./ui/helfiCheckBoxView"; -import HelfiLinkProtocolView from "./ui/helfiLinkProtocolView"; import { Collection } from 'ckeditor5/src/utils'; -import { formElements } from "./formElements"; -import HelfiDetailsView from "./ui/helfiDetailsView"; +import HelfiCheckBoxView from './ui/helfiCheckBoxView'; +import HelfiLinkProtocolView from './ui/helfiLinkProtocolView'; +import { formElements } from './formElements'; +import HelfiDetailsView from './ui/helfiDetailsView'; export default class HelfiLinkUi extends Plugin { @@ -77,7 +77,7 @@ export default class HelfiLinkUi extends Plugin { * this plugin customization was being developed. */ _addContextualBalloonClass() { - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const contextualBalloon = editor.plugins.get(ContextualBalloon); @@ -136,7 +136,7 @@ export default class HelfiLinkUi extends Plugin { * Add a descriptive help text to URL input field. */ _manipulateUrlInputField() { - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const urlDescription = document.createElement('span'); urlDescription.textContent = Drupal.t('Start typing to find content.'); @@ -146,12 +146,16 @@ export default class HelfiLinkUi extends Plugin { /** * Create select list for protocol selection field. + * + * @param {string} modelName The model name. + * @param {object} options The select list options. + * @return {HelfiLinkProtocolView} Return the protocol view. */ _createSelectList(modelName, options) { - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const linkProtocolView = new HelfiLinkProtocolView( this.editor.locale, createLabeledDropdown ); - const urlInputView = linkFormView.urlInputView; + const { urlInputView } = linkFormView; // Hide the Protocol field view by setting isVisible to false linkFormView.urlInputView.on('change:isEmpty', ( evt, name, value ) => { @@ -198,9 +202,11 @@ export default class HelfiLinkUi extends Plugin { /** * Create advanced settings (details/summary) view and handle the initial * state for it. + * + * @return {HelfiDetailsView} Returns the details view. */ _createAndHandleAdvancedSettings() { - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const advancedSettings = new HelfiDetailsView(editor.locale, this.advancedChildren); @@ -229,14 +235,17 @@ export default class HelfiLinkUi extends Plugin { } } ); - return linkFormView['advancedSettings'] = advancedSettings; + return linkFormView.advancedSettings = advancedSettings; } /** * Create checkboxes. + * + * @param {string} modelName The model name. + * @return {HelfiCheckBoxView} Returns the checkbox view. */ _createCheckbox(modelName) { - const checkboxView = new HelfiCheckBoxView(this.editor.locale) + const checkboxView = new HelfiCheckBoxView(this.editor.locale); const options = this.formElements[modelName]; // Define the dropdown items @@ -253,9 +262,12 @@ export default class HelfiLinkUi extends Plugin { /** * Create form fields based on form elements. + * + * @param {string} modelName The model name. + * @return {*} Returns current field view. */ _createFormField(modelName) { - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const options = this.formElements[modelName]; let fieldView = {}; @@ -283,7 +295,7 @@ export default class HelfiLinkUi extends Plugin { // Add basic information for the field. fieldView.machineName = modelName; - fieldView.class = 'helfi-link--' + options.machineName; + fieldView.class = `helfi-link--${ options.machineName}`; fieldView.label = options.label; // Add help texts for the field. @@ -307,9 +319,11 @@ export default class HelfiLinkUi extends Plugin { /** * Handle form field submit. + * + * @param {object} models The models. */ _handleFormFieldSubmit(models) { - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const linkCommand = editor.commands.get( 'link' ); @@ -317,7 +331,7 @@ export default class HelfiLinkUi extends Plugin { // linkCommand arguments. this.listenTo( linkFormView, 'submit', () => { const values = models.reduce((state, model) => { - state[model] = this.formElements[model]['type'] === 'checkbox' + state[model] = this.formElements[model].type === 'checkbox' ? linkFormView?.[model]?.checkboxInputView?.element?.checked : linkFormView?.[model]?.fieldView?.element?.value ?? ''; return state; @@ -347,7 +361,7 @@ export default class HelfiLinkUi extends Plugin { } else if (args.length === 3) { Object.assign(args[2], values); } else { - throw Error('The link command has more than 3 arguments.') + throw Error('The link command has more than 3 arguments.'); } }, { priority: 'highest' } ); }, { priority: 'high' } ); @@ -355,9 +369,11 @@ export default class HelfiLinkUi extends Plugin { /** * Handle data loading into form field. + * + * @param {string} modelName The model name. */ _handleDataLoadingIntoFormField(modelName) { - const editor = this.editor; + const { editor } = this; const linkCommand = editor.commands.get( 'link' ); const linkFormView = editor.plugins.get( 'LinkUI' ).formView; const options = this.formElements[modelName]; @@ -411,7 +427,7 @@ export default class HelfiLinkUi extends Plugin { _handleCheckboxes() { if (!this.formElements.linkNewWindowConfirm || !this.formElements.linkNewWindow) { return; } - const editor = this.editor; + const { editor } = this; const linkFormView = editor.plugins.get( 'LinkUI' ).formView; // Handle linkNewWindowConfirm checkbox description. diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js index 94139e1e7..88214d187 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js @@ -9,5 +9,5 @@ import HelfiLink from './helfiLink'; export default { - HelfiLink: HelfiLink, + HelfiLink, }; diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js index 3f67968bb..44510b0a1 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js @@ -151,8 +151,7 @@ export default class HelfiCheckBoxView extends View { /** * Creates a checkbox input view instance and binds it with checkbox attributes. * - * @private - * @returns {module:ui/view~View} + * @return {module:ui/view~View} Returns checkbox input view. */ _createCheckboxInputView() { const checkboxInputView = new View(); @@ -178,8 +177,7 @@ export default class HelfiCheckBoxView extends View { /** * Creates a checkbox toggle span. * - * @private - * @returns {module:ui/view~View} + * @return {module:ui/view~View} Returns checkbox span toggle view. */ _createCheckboxSpanToggleView() { const checkboxSpanToggleView = new View(); @@ -216,8 +214,7 @@ export default class HelfiCheckBoxView extends View { /** * Creates a label view instance and binds it with checkbox attributes. * - * @private - * @returns {module:ui/view~View} + * @return {module:ui/view~View} Returns checkbox label view. */ _createLabelView() { const labelView = new View(); @@ -239,7 +236,11 @@ export default class HelfiCheckBoxView extends View { return labelView; } - // Method to update the visibility of the view based on the isVisible property + /** + * Update the visibility of the view based on the isVisible property + * + * @param {boolean} value The boolean value to be set to isVisible property. + */ _updateVisibility(value) { if (value) { this.element.classList.remove('is-hidden'); diff --git a/modules/hdbt_admin_tools/package-lock.json b/modules/hdbt_admin_tools/package-lock.json index a4d75f681..2c2470016 100644 --- a/modules/hdbt_admin_tools/package-lock.json +++ b/modules/hdbt_admin_tools/package-lock.json @@ -17,6 +17,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-webpack": "0.13.2", "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jsdoc": "^46.4.3", "eslint-plugin-prettier": "^4.2.1", "prettier": "^2.7.1", "raw-loader": "^4.0.2", @@ -1221,6 +1222,20 @@ "node": ">=10.0.0" } }, + "node_modules/@es-joy/jsdoccomment": { + "version": "0.39.4", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.39.4.tgz", + "integrity": "sha512-Jvw915fjqQct445+yron7Dufix9A+m9j1fCJYlCo1FWlRvTxa3pjJelxdSTdaLWcTwRU6vbL+NYjO4YuNIS5Qg==", + "dev": true, + "dependencies": { + "comment-parser": "1.3.1", + "esquery": "^1.5.0", + "jsdoc-type-pratt-parser": "~4.0.0" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -1854,6 +1869,15 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/are-docs-informative": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/are-docs-informative/-/are-docs-informative-0.0.2.tgz", + "integrity": "sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==", + "dev": true, + "engines": { + "node": ">=14" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -2157,6 +2181,18 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/cacache": { "version": "15.3.0", "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", @@ -2466,6 +2502,15 @@ "node": ">= 10" } }, + "node_modules/comment-parser": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", + "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", + "dev": true, + "engines": { + "node": ">= 12.0.0" + } + }, "node_modules/commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -3343,6 +3388,41 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-jsdoc": { + "version": "46.4.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-46.4.3.tgz", + "integrity": "sha512-Prc7ol+vCIghPeECpwZq5+P+VZfoi87suywvbYCiCnkI1kTmVSdcOC2M8mioglWxBbd28wbb1OVjg/8OzGzatA==", + "dev": true, + "dependencies": { + "@es-joy/jsdoccomment": "~0.39.4", + "are-docs-informative": "^0.0.2", + "comment-parser": "1.3.1", + "debug": "^4.3.4", + "escape-string-regexp": "^4.0.0", + "esquery": "^1.5.0", + "is-builtin-module": "^3.2.1", + "semver": "^7.5.1", + "spdx-expression-parse": "^3.0.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/eslint-plugin-jsdoc/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint-plugin-jsx-a11y": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", @@ -4404,6 +4484,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.3.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -4696,6 +4791,15 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jsdoc-type-pratt-parser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.0.0.tgz", + "integrity": "sha512-YtOli5Cmzy3q4dP26GraSOeAhqecewG04hoO8DY56CH4KJ9Fvv5qKWUCCo3HZob7esJQHCv6/+bnTy72xZZaVQ==", + "dev": true, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -6598,6 +6702,28 @@ "source-map": "^0.6.0" } }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", + "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "dev": true + }, "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", diff --git a/modules/hdbt_admin_tools/package.json b/modules/hdbt_admin_tools/package.json index 6883cb130..b2c45b0cc 100644 --- a/modules/hdbt_admin_tools/package.json +++ b/modules/hdbt_admin_tools/package.json @@ -13,16 +13,17 @@ "babel-loader": "^9.1.2", "ckeditor5": "~35.1.0", "css-loader": "^6.8.1", - "raw-loader": "^4.0.2", - "terser-webpack-plugin": "^5.3.3", - "webpack": "^5.51.1", - "webpack-cli": "^4.4.0", - "prettier": "^2.7.1", "eslint": "^8.31.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-webpack": "0.13.2", "eslint-plugin-import": "^2.25.3", - "eslint-plugin-prettier": "^4.2.1" + "eslint-plugin-jsdoc": "^46.4.3", + "eslint-plugin-prettier": "^4.2.1", + "prettier": "^2.7.1", + "raw-loader": "^4.0.2", + "terser-webpack-plugin": "^5.3.3", + "webpack": "^5.51.1", + "webpack-cli": "^4.4.0" } } From 311b7d12b2b578aca181da51ef3101a55c468828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 13 Jul 2023 13:00:23 +0300 Subject: [PATCH 017/236] UHF-8384: Fixed styles and the checkbox initial value. --- .../css/ckeditor5/helfi_link_plugin.css | 23 +++++++++++-------- .../assets/js/build/helfiLink.js | 2 +- .../helfiLink/src/helfiLinkUi.js | 8 ++++--- modules/hdbt_admin_tools/package.json | 2 +- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css b/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css index f5c2636d1..66da73470 100644 --- a/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css +++ b/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css @@ -3,8 +3,11 @@ top: 50vh !important; left: 50vw !important; transform: translate(-50%, -50%); - width: 50vw; + min-width: 50vw; + height: auto; + width: auto; border-radius: 10px !important; + z-index: 10001; } .ck.ck-balloon-panel.helfi-contextual-balloon .ck-labeled-field-view { @@ -78,20 +81,24 @@ color: #232429; display: block; margin: 1rem 0.7rem; - padding: 0.5rem 0.5rem 1rem; + padding: 0.5rem; position: relative; } +.ck-helfi-link-details[open] { + padding-bottom: 1rem; +} + /* Mimic the .claro-details__summary styles. */ .ck-helfi-link-details__summary { -ms-hyphens: auto; -webkit-hyphens: auto; background-color: transparent; box-sizing: border-box; - color: #222330; + color: #434343; cursor: pointer; - font-size: var(--gin-font-size); - font-weight: var(--gin-font-weight-bold); + font-size: 1rem; + font-weight: 500; hyphens: auto; line-height: 1rem; list-style: none; @@ -136,7 +143,7 @@ max-width: 100%; min-height: 3rem; /* iOS. */ padding: calc(0.75rem - 1px) calc(1rem - 1px); - transition: .15s cubic-bezier(.19, 1, .22, 1);; + transition: .15s cubic-bezier(.19, 1, .22, 1); } /* Input field description help text */ @@ -163,10 +170,6 @@ padding-left: 0.4rem !important; } -.ck .helfi-link-checkbox:last-child { - margin-bottom: 1rem; -} - /* Save and cancel buttons */ .ck.ck-responsive-form.helfi-link-form .ck.ck-button { margin: 0; diff --git a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js index 74c044092..6724339d5 100644 --- a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js +++ b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const o={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class l extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(o).forEach((e=>{o[e].machineName&&(this._convertAttribute(e,o[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(o))}_convertAttribute(e,t){const{editor:i}=this;if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{const n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const{editor:t}=this,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const o=s[s.length-1],{model:l}=t,{selection:r}=l.document;l.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;o[e]?i.setAttribute(e,o[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=l.schema.getValidRanges(r.getRanges(),e);for(const n of t)o[e]?i.setAttribute(e,o[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,o=t.commands.get("unlink");let l=!1;o.on("execute",(o=>{l||(o.stop(),i.change((()=>{l=!0,t.execute("unlink"),l=!1,i.change((t=>{let o;o=n.isCollapsed?[(0,s.findAttributeRange)(n.getFirstPosition(),e,n.getAttribute(e),i)]:i.schema.getValidRanges(n.getRanges(),e);for(const i of o)t.removeAttribute(e,i)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,s=t.commands.get("link");s.set(e,null),i.document.on("change",(()=>{s[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=o}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=document.createElement("span");i.textContent=Drupal.t("Start typing to find content."),i.classList.add("helfi-link-form__field_description"),t.urlInputView.element.appendChild(i)}_createSelectList(e,t){const{editor:i}=this,n=i.plugins.get("LinkUI").formView,s=new d(this.editor.locale,r.createLabeledDropdown),{urlInputView:o}=n;n.urlInputView.on("change:isEmpty",((e,t,i)=>{s.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(s.fieldView,l),s.fieldView.on("execute",(e=>{o.isEmpty&&e.source.commandValue&&(o.fieldView.value=e.source.commandValue)})),s.set("isVisible",!0),s}_createAndHandleAdvancedSettings(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class=`helfi-link--${n.machineName}`,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const{editor:t}=this,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,o)=>{o===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),n[e].checkboxInputView.element.checked=i[e]||""):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const{editor:e}=this,t=e.plugins.get("LinkUI").formView;if(!t.linkNewWindowConfirm.element.description){const e=document.createElement("div");e.innerHTML=this.formElements.linkNewWindowConfirm.description,e.classList.add("helfi-link-form__field_description"),t.linkNewWindowConfirm.element.appendChild(e)}t.linkNewWindow.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindowConfirm.checkboxInputView.element.click(),t.linkNewWindowConfirm._updateVisibility(n)})),t.linkNewWindowConfirm.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[l,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const o={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class l extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(o).forEach((e=>{o[e].machineName&&(this._convertAttribute(e,o[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(o))}_convertAttribute(e,t){const{editor:i}=this;if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{const n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const{editor:t}=this,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const o=s[s.length-1],{model:l}=t,{selection:r}=l.document;l.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;o[e]?i.setAttribute(e,o[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=l.schema.getValidRanges(r.getRanges(),e);for(const n of t)o[e]?i.setAttribute(e,o[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,o=t.commands.get("unlink");let l=!1;o.on("execute",(o=>{l||(o.stop(),i.change((()=>{l=!0,t.execute("unlink"),l=!1,i.change((t=>{let o;o=n.isCollapsed?[(0,s.findAttributeRange)(n.getFirstPosition(),e,n.getAttribute(e),i)]:i.schema.getValidRanges(n.getRanges(),e);for(const i of o)t.removeAttribute(e,i)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,s=t.commands.get("link");s.set(e,null),i.document.on("change",(()=>{s[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=o}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=document.createElement("span");i.textContent=Drupal.t("Start typing to find content."),i.classList.add("helfi-link-form__field_description"),t.urlInputView.element.appendChild(i)}_createSelectList(e,t){const{editor:i}=this,n=i.plugins.get("LinkUI").formView,s=new d(this.editor.locale,r.createLabeledDropdown),{urlInputView:o}=n;n.urlInputView.on("change:isEmpty",((e,t,i)=>{s.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(s.fieldView,l),s.fieldView.on("execute",(e=>{o.isEmpty&&e.source.commandValue&&(o.fieldView.value=e.source.commandValue)})),s.set("isVisible",!0),s}_createAndHandleAdvancedSettings(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class=`helfi-link--${n.machineName}`,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const{editor:t}=this,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,o)=>{o===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),i[e]&&!n[e].checkboxInputView.element.checked&&n[e].checkboxInputView.element.click()):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const{editor:e}=this,t=e.plugins.get("LinkUI").formView;if(!t.linkNewWindowConfirm.element.description){const e=document.createElement("div");e.innerHTML=this.formElements.linkNewWindowConfirm.description,e.classList.add("helfi-link-form__field_description"),t.linkNewWindowConfirm.element.appendChild(e)}t.linkNewWindow.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindowConfirm.checkboxInputView.element.click(),t.linkNewWindowConfirm._updateVisibility(n)})),t.linkNewWindowConfirm.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[l,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js index 139a6e7de..a9556660b 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js @@ -408,9 +408,11 @@ export default class HelfiLinkUi extends Plugin { ); } - // Note: Copy & pasted from LinkUI. - // https://github.com/ckeditor/ckeditor5/blob/f0a093339631b774b2d3422e2a579e27be79bbeb/packages/ckeditor5-link/src/linkui.js#L333-L333 - linkFormView[modelName].checkboxInputView.element.checked = linkCommand[modelName] || ''; + // If the checkbox is initially set to true, trigger the click event + // for the linkFormView checkbox. + if (linkCommand[modelName] && !linkFormView[modelName].checkboxInputView.element.checked) { + linkFormView[modelName].checkboxInputView.element.click(); + } } else { // Note: Copy & pasted from LinkUI. diff --git a/modules/hdbt_admin_tools/package.json b/modules/hdbt_admin_tools/package.json index b2c45b0cc..a726b7a51 100644 --- a/modules/hdbt_admin_tools/package.json +++ b/modules/hdbt_admin_tools/package.json @@ -4,7 +4,7 @@ "description": "Helfi specific enhancements to CKEditor5 plugins.", "scripts": { "watch": "webpack --mode development --watch", - "build": "webpack", + "build": "webpack && $npm_execpath run lint:js", "lint:js": "eslint assets/js/ckeditor5_plugins/", "format:js": "eslint --fix assets/js/ckeditor5_plugins/" }, From 4e40a5f6521830be6f2433e732330d494c506c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 13 Jul 2023 16:29:08 +0300 Subject: [PATCH 018/236] UHF-8384: Fixed a bug with viewAttribute handling. --- modules/hdbt_admin_tools/assets/js/build/helfiLink.js | 2 +- .../js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js index 6724339d5..b8202c593 100644 --- a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js +++ b/modules/hdbt_admin_tools/assets/js/build/helfiLink.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const o={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class l extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(o).forEach((e=>{o[e].machineName&&(this._convertAttribute(e,o[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(o))}_convertAttribute(e,t){const{editor:i}=this;if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{const n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const{editor:t}=this,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const o=s[s.length-1],{model:l}=t,{selection:r}=l.document;l.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;o[e]?i.setAttribute(e,o[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=l.schema.getValidRanges(r.getRanges(),e);for(const n of t)o[e]?i.setAttribute(e,o[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,o=t.commands.get("unlink");let l=!1;o.on("execute",(o=>{l||(o.stop(),i.change((()=>{l=!0,t.execute("unlink"),l=!1,i.change((t=>{let o;o=n.isCollapsed?[(0,s.findAttributeRange)(n.getFirstPosition(),e,n.getAttribute(e),i)]:i.schema.getValidRanges(n.getRanges(),e);for(const i of o)t.removeAttribute(e,i)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,s=t.commands.get("link");s.set(e,null),i.document.on("change",(()=>{s[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=o}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=document.createElement("span");i.textContent=Drupal.t("Start typing to find content."),i.classList.add("helfi-link-form__field_description"),t.urlInputView.element.appendChild(i)}_createSelectList(e,t){const{editor:i}=this,n=i.plugins.get("LinkUI").formView,s=new d(this.editor.locale,r.createLabeledDropdown),{urlInputView:o}=n;n.urlInputView.on("change:isEmpty",((e,t,i)=>{s.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(s.fieldView,l),s.fieldView.on("execute",(e=>{o.isEmpty&&e.source.commandValue&&(o.fieldView.value=e.source.commandValue)})),s.set("isVisible",!0),s}_createAndHandleAdvancedSettings(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class=`helfi-link--${n.machineName}`,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const{editor:t}=this,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,o)=>{o===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),i[e]&&!n[e].checkboxInputView.element.checked&&n[e].checkboxInputView.element.click()):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const{editor:e}=this,t=e.plugins.get("LinkUI").formView;if(!t.linkNewWindowConfirm.element.description){const e=document.createElement("div");e.innerHTML=this.formElements.linkNewWindowConfirm.description,e.classList.add("helfi-link-form__field_description"),t.linkNewWindowConfirm.element.appendChild(e)}t.linkNewWindow.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindowConfirm.checkboxInputView.element.click(),t.linkNewWindowConfirm._updateVisibility(n)})),t.linkNewWindowConfirm.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[l,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditor5=t():(e.CKEditor5=e.CKEditor5||{},e.CKEditor5.helfiLink=t())}(self,(()=>(()=>{var e={"ckeditor5/src/core.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/core.js")},"ckeditor5/src/typing.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/typing.js")},"ckeditor5/src/ui.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/ui.js")},"ckeditor5/src/utils.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/utils.js")},"ckeditor5/src/widget.js":(e,t,i)=>{e.exports=i("dll-reference CKEditor5.dll")("./src/widget.js")},"dll-reference CKEditor5.dll":e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{"use strict";i.d(n,{default:()=>p});var e=i("ckeditor5/src/core.js"),t=i("ckeditor5/src/widget.js"),s=i("ckeditor5/src/typing.js");const o={linkProtocol:{label:Drupal.t("Protocol"),machineName:"protocol",selectListOptions:{https:"https://",tel:"tel:",mailto:"mailto:"},type:"select",group:"helper"},linkNewWindowConfirm:{label:Drupal.t("The link meets the accessibility requirements"),description:Drupal.t('I have made sure that the description of this link clearly states that it will open in a new tab. See WCAG 3.2.5 accessibility requirement (the link opens in a new tab).',{"@wcag-techniques":"https://www.w3.org/WAI/WCAG21/Techniques/general/G200.html"}),machineName:"link-new-window-confirm",viewAttribute:{target:"_blank"},type:"checkbox",group:"advanced",isVisible:!1},linkNewWindow:{label:Drupal.t("Open in new window/tab"),machineName:"link-new-window",viewAttribute:"data-link-new-window",type:"checkbox",group:"advanced",isVisible:!0},linkTitle:{label:Drupal.t("Title"),description:Drupal.t("Populates the title attribute of the link, usually shown as a small tooltip on hover."),machineName:"link-title",viewAttribute:"title",type:"input",group:"advanced"},linkId:{label:Drupal.t("ID"),description:Drupal.t("Allows linking to this content using a URL fragment (#). Must be unique."),machineName:"link-id",viewAttribute:"id",type:"input",group:"advanced"},linkClass:{machineName:"link-class",viewAttribute:{class:"link"},type:"static"}};class l extends e.Plugin{static get requires(){return[t.Widget]}static get pluginName(){return"HelfiLinkEditing"}init(){Object.keys(o).forEach((e=>{o[e].machineName&&(this._convertAttribute(e,o[e].viewAttribute),this._removeAttributeOnUnlinkCommandExecute(e),this._refreshAttributeValue(e))})),this._addAttributeOnLinkCommandExecute(Object.keys(o))}_convertAttribute(e,t){const{editor:i}=this;if(t)if(i.model.schema.extend("$text",{allowAttributes:e}),i.conversion.for("downcast").attributeToElement({model:e,view:(e,{writer:i})=>{const n={};e&&"object"==typeof t?n[Object.keys(t)]=t[Object.keys(t)]:n[t]=e;const s=i.createAttributeElement("a",n,{priority:5});return i.setCustomProperty("link",!0,s),s}}),"object"==typeof t){const i=Object.keys(t)[0],n=t[Object.keys(t)];this.editor.conversion.for("upcast").attributeToAttribute({view:{name:"a",key:i,value:n},model:{key:e,value:e=>!(!e.hasAttribute(i)||e.getAttribute(i)!==n)}})}else i.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{[t]:!0}},model:{key:e,value:e=>e.getAttribute(t)}})}_addAttributeOnLinkCommandExecute(e){const{editor:t}=this,i=t.commands.get("link");let n=!1;i.on("execute",((i,s)=>{if(s.length<3)return;if(n)return void(n=!1);i.stop(),n=!0;const o=s[s.length-1],{model:l}=t,{selection:r}=l.document;l.change((i=>{t.execute("link",...s);const n=r.getFirstPosition();e.forEach((e=>{if(r.isCollapsed){const t=n.textNode||n.nodeBefore;o[e]?i.setAttribute(e,o[e],i.createRangeOn(t)):i.removeAttribute(e,i.createRangeOn(t)),i.removeSelectionAttribute(e)}else{const t=l.schema.getValidRanges(r.getRanges(),e);for(const n of t)o[e]?i.setAttribute(e,o[e],n):i.removeAttribute(e,n)}}))}))}),{priority:"high"})}_removeAttributeOnUnlinkCommandExecute(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,o=t.commands.get("unlink");let l=!1;o.on("execute",(o=>{l||(o.stop(),i.change((()=>{l=!0,t.execute("unlink"),l=!1,i.change((t=>{let o;o=n.isCollapsed?[(0,s.findAttributeRange)(n.getFirstPosition(),e,n.getAttribute(e),i)]:i.schema.getValidRanges(n.getRanges(),e);for(const i of o)t.removeAttribute(e,i)}))})))}),{priority:"high"})}_refreshAttributeValue(e){const{editor:t}=this,{model:i}=this.editor,{selection:n}=i.document,s=t.commands.get("link");s.set(e,null),i.document.on("change",(()=>{s[e]=n.getAttribute(e)}))}}var r=i("ckeditor5/src/ui.js"),a=i("ckeditor5/src/utils.js");class c extends r.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("description"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.checkboxSpanToggle=this._createCheckboxSpanToggleView(),this.bind("isVisible").to(this,"_updateVisibility"),this.setTemplate({tag:"div",attributes:{class:["form-type--checkbox","helfi-link-checkbox",t.if("isVisible","is-hidden",(e=>!e)),t.to("class")]},on:{keydown:t.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isChecked=!this.isChecked)}))},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.checkboxSpanToggle),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new r.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked")},on:{change:t.to((e=>{this.isChecked=e.target.checked}))}}),e}_createCheckboxSpanToggleView(){const e=new r.View;return e.setTemplate({tag:"span",attributes:{class:["checkbox-toggle"]},children:[{tag:"span",attributes:{class:["checkbox-toggle__inner"]}}]}),e}_createLabelView(){const e=new r.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}_updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class d extends r.LabeledFieldView{constructor(e,t){super(e,t),this.set("isVisible",!0),this.bind("isVisible").to(this,"updateVisibility")}updateVisibility(e){e?this.element.classList.remove("is-hidden"):this.element.classList.add("is-hidden")}}class h extends r.View{constructor(e,t){super(e),this.advancedChildren=t;const i=this.bindTemplate;this.set("isOpen",!1),this.set("label"),this.set("id",null),this.children=this.createCollection(),this.detailsSummary=this._createDetailsSummary(),this.setTemplate({tag:"details",attributes:{id:i.to("id"),class:["ck-helfi-link-details",i.if("isOpen","ck-is-open",(e=>e))],open:i.if("isOpen")},on:{keydown:i.to((e=>{e.target===this.element&&e.keyCode===(0,a.getCode)("space")&&(this.isOpen=!this.isOpen)}))},children:this.children})}render(){super.render(),this.children.add(this.detailsSummary),this.children.addMany(this.advancedChildren)}focus(){this.element.focus()}_createDetailsSummary(){const e=new r.View;return e.setTemplate({tag:"summary",attributes:{role:"button",class:["ck-helfi-link-details__summary"],tabindex:0},children:[{text:this.bindTemplate.to("label")}]}),e}}class u extends e.Plugin{constructor(e){super(e),this.editor=e,this.advancedChildren=new a.Collection,this.formElements=o}init(){this._addContextualBalloonClass();const e=Object.keys(this.formElements).reverse();e.forEach((e=>{if(!this.formElements[e].machineName)return;const t=this._createFormField(e);this._handleDataLoadingIntoFormField(e),this.formElements[e].group&&"advanced"===this.formElements[e].group&&this.advancedChildren.add(t)})),this._createAndHandleAdvancedSettings(),this._manipulateUrlInputField(),this._handleCheckboxes(),this._handleFormFieldSubmit(e)}_addContextualBalloonClass(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=e.plugins.get(r.ContextualBalloon);i._rotatorView.content.on("add",((e,n)=>{if(n!==t||!i.hasView(t)||i.view.element.classList.contains("helfi-contextual-balloon"))return;i.remove(n),i.add({view:t,position:i._getBalloonPosition(),balloonClassName:"helfi-contextual-balloon",withArrow:!1});const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")&&s.classList.remove("ck-reset_all")})),i._rotatorView.content.on("remove",((e,n)=>{if(n!==t||!i.hasView(t))return;const s=i.view.element.closest(".ck-body-wrapper > .ck-body");s.classList.contains("ck-reset_all")||s.classList.add("ck-reset_all")})),t.extendTemplate({attributes:{class:["helfi-link-form"]}})}_manipulateUrlInputField(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=document.createElement("span");i.textContent=Drupal.t("Start typing to find content."),i.classList.add("helfi-link-form__field_description"),t.urlInputView.element.appendChild(i)}_createSelectList(e,t){const{editor:i}=this,n=i.plugins.get("LinkUI").formView,s=new d(this.editor.locale,r.createLabeledDropdown),{urlInputView:o}=n;n.urlInputView.on("change:isEmpty",((e,t,i)=>{s.updateVisibility(i)}));const l=new a.Collection;return Object.keys(t).forEach((e=>{l.add({type:"button",attributes:{class:["helfi-link-form"]},model:new r.Model({commandValue:t[e],label:t[e],withText:!0,attributes:{class:["ck","ck-link-protocol"],tabindex:"-1"}}),withText:!0})})),(0,r.addListToDropdown)(s.fieldView,l),s.fieldView.on("execute",(e=>{o.isEmpty&&e.source.commandValue&&(o.fieldView.value=e.source.commandValue)})),s.set("isVisible",!0),s}_createAndHandleAdvancedSettings(){const{editor:e}=this,t=e.plugins.get("LinkUI").formView,i=new h(e.locale,this.advancedChildren);return i.set({label:Drupal.t("Advanced settings"),id:"advanced-settings",isOpen:!1}),t.children.add(i,2),e.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((e,i)=>{i===t&&t.advancedSettings&&(t.advancedSettings.element.open=!1,t.advancedSettings.detailsSummary.element.ariaExpanded=!1,t.advancedSettings.detailsSummary.element.ariaPressed=!1)})),t.advancedSettings=i}_createCheckbox(e){const t=new c(this.editor.locale),i=this.formElements[e];return t.set({isVisible:i.isVisible,tooltip:!0,class:"ck-find-checkboxes__box",id:i.machineName,label:i.label}),t}_createFormField(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=this.formElements[e];let s={};switch(n.type){case"select":s=this._createSelectList(e,n.selectListOptions);break;case"checkbox":s=this._createCheckbox(e,n);break;case"static":s=!1;break;default:s=new r.LabeledFieldView(t.locale,r.createLabeledInputText)}if(s)return s.machineName=e,s.class=`helfi-link--${n.machineName}`,s.label=n.label,n.description&&(s.infoText=n.description),n.group&&"advanced"===n.group||i.children.add(s,"select"===n.type?0:1),i.on("render",(()=>{i._focusables.add(s,1),i.focusTracker.add(s.element)})),i[e]=s}_handleFormFieldSubmit(e){const{editor:t}=this,i=t.plugins.get("LinkUI").formView,n=t.commands.get("link");this.listenTo(i,"submit",(()=>{const t=e.reduce(((e,t)=>(e[t]="checkbox"===this.formElements[t].type?i?.[t]?.checkboxInputView?.element?.checked:i?.[t]?.fieldView?.element?.value??"",e)),{});t.linkNewWindowConfirm&&t.linkNewWindow||(t.linkNewWindowConfirm=!1,t.linkNewWindow=!1,i.linkNewWindowConfirm.checkboxInputView.element.checked&&i.linkNewWindowConfirm.checkboxInputView.element.click(),i.linkNewWindow.checkboxInputView.element.checked&&i.linkNewWindow.checkboxInputView.element.click()),n.once("execute",((e,i)=>{if(i.length<3)i.push(t);else{if(3!==i.length)throw Error("The link command has more than 3 arguments.");Object.assign(i[2],t)}}),{priority:"highest"})}),{priority:"high"})}_handleDataLoadingIntoFormField(e){const{editor:t}=this,i=t.commands.get("link"),n=t.plugins.get("LinkUI").formView,s=this.formElements[e];"linkProtocol"!==e&&"static"!==s.type&&("checkbox"===s.type?n[e].checkboxInputView.bind("isChecked").to(i,e):n[e].fieldView.bind("value").to(i,e),t.plugins.get("ContextualBalloon")._rotatorView.content.on("add",((t,o)=>{o===n&&("checkbox"===s.type?("linkNewWindowConfirm"===e&&n[e]._updateVisibility(!!n.linkNewWindow.checkboxInputView.isChecked),i[e]&&!n[e].checkboxInputView.element.checked&&n[e].checkboxInputView.element.click()):n[e].fieldView.element.value=i[e]||"")})))}_handleCheckboxes(){if(!this.formElements.linkNewWindowConfirm||!this.formElements.linkNewWindow)return;const{editor:e}=this,t=e.plugins.get("LinkUI").formView;if(!t.linkNewWindowConfirm.element.description){const e=document.createElement("div");e.innerHTML=this.formElements.linkNewWindowConfirm.description,e.classList.add("helfi-link-form__field_description"),t.linkNewWindowConfirm.element.appendChild(e)}t.linkNewWindow.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindowConfirm.checkboxInputView.element.click(),t.linkNewWindowConfirm._updateVisibility(n)})),t.linkNewWindowConfirm.on("change:isChecked",((e,i,n)=>{n||t.linkNewWindow.checkboxInputView.element.click()}))}}class m extends e.Plugin{static get requires(){return[l,u]}}const p={HelfiLink:m}})(),n=n.default})())); \ No newline at end of file diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js index 253ac4d6b..42fb54282 100644 --- a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js +++ b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js @@ -48,11 +48,14 @@ export default class HelfiLinkEditing extends Plugin { * Convert models and attributes between model <-> view. * * @param {string} modelName The model name. - * @param {string} viewAttribute The view attribute name. + * @param {string|object} viewAttribute The view attribute name. */ _convertAttribute(modelName, viewAttribute) { const { editor } = this; + // Nothing to be done if there are no viewAttribute. + if (!viewAttribute) { return; } + // Add current model as an allowed attribute for '$text' nodes. editor.model.schema.extend( '$text', { allowAttributes: modelName } ); From 836a0f7092c041a6c94fa64ab0755573b8a1358a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Fri, 14 Jul 2023 09:29:17 +0300 Subject: [PATCH 019/236] UHF-8384: Moved the ckeditor5 plugins to helfi_ckeditor module. --- .../js/ckeditor5_plugins/helfiLink/src/.DS_Store | Bin 6148 -> 0 bytes .../hdbt_admin_tools/hdbt_admin_tools.info.yml | 1 - .../hdbt_admin_tools.libraries.yml | 10 ---------- .../.eslintignore | 0 .../.eslintrc.json | 0 .../{hdbt_admin_tools => helfi_ckeditor}/.nvmrc | 0 .../.prettierrc.json | 0 .../assets/css}/helfi_link_plugin.css | 0 .../assets/js/build/helfiLink.js | 0 .../js/ckeditor5_plugins/helfiLink/README.md | 0 .../helfiLink/src/formElements.js | 0 .../ckeditor5_plugins/helfiLink/src/helfiLink.js | 0 .../helfiLink/src/helfiLinkEditing.js | 0 .../helfiLink/src/helfiLinkUi.js | 0 .../js/ckeditor5_plugins/helfiLink/src/index.js | 0 .../helfiLink/src/ui/helfiCheckBoxView.js | 0 .../helfiLink/src/ui/helfiDetailsView.js | 0 .../helfiLink/src/ui/helfiLinkProtocolView.js | 0 .../helfi_ckeditor.ckeditor5.yml} | 4 ++-- modules/helfi_ckeditor/helfi_ckeditor.info.yml | 2 +- modules/helfi_ckeditor/helfi_ckeditor.install | 14 +++++++++++--- .../helfi_ckeditor/helfi_ckeditor.libraries.yml | 10 ++++++++++ .../package-lock.json | 4 ++-- .../package.json | 2 +- .../webpack.config.js | 0 25 files changed, 27 insertions(+), 20 deletions(-) delete mode 100644 modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/.DS_Store rename modules/{hdbt_admin_tools => helfi_ckeditor}/.eslintignore (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/.eslintrc.json (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/.nvmrc (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/.prettierrc.json (100%) rename modules/{hdbt_admin_tools/assets/css/ckeditor5 => helfi_ckeditor/assets/css}/helfi_link_plugin.css (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/build/helfiLink.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/README.md (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/index.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js (100%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js (100%) rename modules/{hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml => helfi_ckeditor/helfi_ckeditor.ckeditor5.yml} (96%) create mode 100644 modules/helfi_ckeditor/helfi_ckeditor.libraries.yml rename modules/{hdbt_admin_tools => helfi_ckeditor}/package-lock.json (99%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/package.json (96%) rename modules/{hdbt_admin_tools => helfi_ckeditor}/webpack.config.js (100%) diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/.DS_Store b/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/.DS_Store deleted file mode 100644 index fa875efe172614b777de44497222c0cdda3ddb1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~u?oUK42F~HP;lw!c#99<8yuxRfiK`7h#(b&I^U!FCzr+QEJgl6@?CNbZU3Ry zh=}&nc`wq5NDDX0&ce(Tc_WitpU1~|yN?&-Rx@iVJV&jQ*?w#jRDcRl0V+TRsKA00 zh;zK%Ea;i|C{%z7EJFeNJ|ws?2TP@YIuLvW0M{tHVePX7n5+QiV5vj}rZGKew5pFG zR`+%=#dSGYDr>uF3?CYIR-0mATH8ev5}0NO0~MeGGX+*P@9g|Pz`xD^vlgaQfC~JX z0=gcKLywn=v-RWktbU5BtqUCV%Mspw0+85IyoI}AKiLAz!BU9|j6VV{0|OQKsRA#h CsSrj0 diff --git a/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml b/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml index e72d3ba94..5ddc84bde 100644 --- a/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml +++ b/modules/hdbt_admin_tools/hdbt_admin_tools.info.yml @@ -6,7 +6,6 @@ dependencies: - admin_toolbar:admin_toolbar - admin_toolbar_tools:admin_toolbar_tools - config_ignore:config_ignore - - drupal:ckeditor5 - drupal:config_translation - drupal:editor - drupal:options diff --git a/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml b/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml index 6521e442a..a90143a27 100644 --- a/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml +++ b/modules/hdbt_admin_tools/hdbt_admin_tools.libraries.yml @@ -95,13 +95,3 @@ site_settings: assets/js/siteSettingsDefaultColor.js: {} dependencies: - hdbt/hdbt-icons - -# This adds the CKEditor plugin JavaScript and the specific CSS to the page. -helfi_link: - js: - assets/js/build/helfiLink.js: { preprocess: false, minified: true } - css: - theme: - assets/css/ckeditor5/helfi_link_plugin.css: { } - dependencies: - - core/ckeditor5 diff --git a/modules/hdbt_admin_tools/.eslintignore b/modules/helfi_ckeditor/.eslintignore similarity index 100% rename from modules/hdbt_admin_tools/.eslintignore rename to modules/helfi_ckeditor/.eslintignore diff --git a/modules/hdbt_admin_tools/.eslintrc.json b/modules/helfi_ckeditor/.eslintrc.json similarity index 100% rename from modules/hdbt_admin_tools/.eslintrc.json rename to modules/helfi_ckeditor/.eslintrc.json diff --git a/modules/hdbt_admin_tools/.nvmrc b/modules/helfi_ckeditor/.nvmrc similarity index 100% rename from modules/hdbt_admin_tools/.nvmrc rename to modules/helfi_ckeditor/.nvmrc diff --git a/modules/hdbt_admin_tools/.prettierrc.json b/modules/helfi_ckeditor/.prettierrc.json similarity index 100% rename from modules/hdbt_admin_tools/.prettierrc.json rename to modules/helfi_ckeditor/.prettierrc.json diff --git a/modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css b/modules/helfi_ckeditor/assets/css/helfi_link_plugin.css similarity index 100% rename from modules/hdbt_admin_tools/assets/css/ckeditor5/helfi_link_plugin.css rename to modules/helfi_ckeditor/assets/css/helfi_link_plugin.css diff --git a/modules/hdbt_admin_tools/assets/js/build/helfiLink.js b/modules/helfi_ckeditor/assets/js/build/helfiLink.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/build/helfiLink.js rename to modules/helfi_ckeditor/assets/js/build/helfiLink.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/README.md b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/README.md similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/README.md rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/README.md diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/formElements.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/helfiLink.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkEditing.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/helfiLinkUi.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/index.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/index.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/index.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiCheckBoxView.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiDetailsView.js diff --git a/modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js b/modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js similarity index 100% rename from modules/hdbt_admin_tools/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js rename to modules/helfi_ckeditor/assets/js/ckeditor5_plugins/helfiLink/src/ui/helfiLinkProtocolView.js diff --git a/modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml b/modules/helfi_ckeditor/helfi_ckeditor.ckeditor5.yml similarity index 96% rename from modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml rename to modules/helfi_ckeditor/helfi_ckeditor.ckeditor5.yml index a33f3e14d..72f582138 100644 --- a/modules/hdbt_admin_tools/hdbt_admin_tools.ckeditor5.yml +++ b/modules/helfi_ckeditor/helfi_ckeditor.ckeditor5.yml @@ -6,7 +6,7 @@ # configuration options. # cSpell:ignore simplebox demobox -hdbt_admin_tools_helfi_link: +helfi_ckeditor_helfi_link: # Use the provider: property for this plugin to depend on another module. # Configuration that will be sent to CKEditor 5 JavaScript plugins. @@ -22,7 +22,7 @@ hdbt_admin_tools_helfi_link: drupal: label: Helfi Link # The library loaded while using the editor. - library: hdbt_admin_tools/helfi_link + library: helfi_ckeditor/helfi_link # toolbar_items: # This should match the name of the corresponding plugin exported in the # plugin's index.js. diff --git a/modules/helfi_ckeditor/helfi_ckeditor.info.yml b/modules/helfi_ckeditor/helfi_ckeditor.info.yml index 5d62d617b..25a706447 100644 --- a/modules/helfi_ckeditor/helfi_ckeditor.info.yml +++ b/modules/helfi_ckeditor/helfi_ckeditor.info.yml @@ -2,7 +2,7 @@ name: 'HELfi: ckeditor' type: module core_version_requirement: '^9 || ^10' dependencies: - - drupal:ckeditor + - drupal:ckeditor5 - drupal:filter - helfi_api_base:helfi_api_base - helfi_platform_config:helfi_platform_config diff --git a/modules/helfi_ckeditor/helfi_ckeditor.install b/modules/helfi_ckeditor/helfi_ckeditor.install index 96a915500..5fb1a886d 100644 --- a/modules/helfi_ckeditor/helfi_ckeditor.install +++ b/modules/helfi_ckeditor/helfi_ckeditor.install @@ -119,9 +119,17 @@ function helfi_ckeditor_update_9003(): void { } /** - * UHF-8564 Remove unwanted and unused allowed html from text-formats. + * Install ckeditor5. */ function helfi_ckeditor_update_9004(): void { - \Drupal::service('helfi_platform_config.config_update_helper') - ->update('helfi_ckeditor'); + $moduleHandler = Drupal::service('module_handler'); + + if (!$moduleHandler->moduleExists('ckeditor5')) { + /** @var \Drupal\Core\Extension\ModuleInstallerInterface $moduleInstaller */ + $moduleInstaller = Drupal::service('module_installer'); + $moduleInstaller->install(['ckeditor5']); + + \Drupal::service('helfi_platform_config.config_update_helper') + ->update('helfi_ckeditor'); + } } diff --git a/modules/helfi_ckeditor/helfi_ckeditor.libraries.yml b/modules/helfi_ckeditor/helfi_ckeditor.libraries.yml new file mode 100644 index 000000000..fdadfdc7c --- /dev/null +++ b/modules/helfi_ckeditor/helfi_ckeditor.libraries.yml @@ -0,0 +1,10 @@ + +# This adds the CKEditor plugin JavaScript and the specific CSS to the page. +helfi_link: + js: + assets/js/build/helfiLink.js: { preprocess: false, minified: true } + css: + theme: + assets/css/ckeditor5/helfi_link_plugin.css: { } + dependencies: + - core/ckeditor5 diff --git a/modules/hdbt_admin_tools/package-lock.json b/modules/helfi_ckeditor/package-lock.json similarity index 99% rename from modules/hdbt_admin_tools/package-lock.json rename to modules/helfi_ckeditor/package-lock.json index 2c2470016..db00b5b23 100644 --- a/modules/hdbt_admin_tools/package-lock.json +++ b/modules/helfi_ckeditor/package-lock.json @@ -1,11 +1,11 @@ { - "name": "hdbt-admin-tools", + "name": "helfi-ckeditor", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "hdbt-admin-tools", + "name": "helfi-ckeditor", "version": "1.0.0", "devDependencies": { "@ckeditor/ckeditor5-dev-utils": "^30.0.0", diff --git a/modules/hdbt_admin_tools/package.json b/modules/helfi_ckeditor/package.json similarity index 96% rename from modules/hdbt_admin_tools/package.json rename to modules/helfi_ckeditor/package.json index a726b7a51..399b27d8e 100644 --- a/modules/hdbt_admin_tools/package.json +++ b/modules/helfi_ckeditor/package.json @@ -1,5 +1,5 @@ { - "name": "hdbt-admin-tools", + "name": "helfi-ckeditor", "version": "1.0.0", "description": "Helfi specific enhancements to CKEditor5 plugins.", "scripts": { diff --git a/modules/hdbt_admin_tools/webpack.config.js b/modules/helfi_ckeditor/webpack.config.js similarity index 100% rename from modules/hdbt_admin_tools/webpack.config.js rename to modules/helfi_ckeditor/webpack.config.js From 949b293eee575ad00654a898d615a6793ba698b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Fri, 14 Jul 2023 11:57:47 +0300 Subject: [PATCH 020/236] UHF-8384: Added update hook to install ckeditor5. --- .../install/editor.editor.full_html.yml | 104 ++++++++++-------- .../config/install/editor.editor.minimal.yml | 49 ++++----- .../install/filter.format.full_html.yml | 2 +- .../config/install/filter.format.minimal.yml | 4 +- .../rewrite/filter.format.plain_text.yml | 2 +- modules/helfi_ckeditor/helfi_ckeditor.install | 6 +- .../helfi_ckeditor.libraries.yml | 2 +- 7 files changed, 94 insertions(+), 75 deletions(-) diff --git a/modules/helfi_ckeditor/config/install/editor.editor.full_html.yml b/modules/helfi_ckeditor/config/install/editor.editor.full_html.yml index 80edea396..d661efaaa 100644 --- a/modules/helfi_ckeditor/config/install/editor.editor.full_html.yml +++ b/modules/helfi_ckeditor/config/install/editor.editor.full_html.yml @@ -4,53 +4,69 @@ dependencies: config: - filter.format.full_html module: - - ckeditor + - ckeditor5 format: full_html -editor: ckeditor +editor: ckeditor5 settings: toolbar: - rows: - - - - - name: Formatting - items: - - Bold - - Italic - - Strike - - Superscript - - Subscript - - '-' - - RemoveFormat - - '-' - - Format - - - name: Lists - items: - - BulletedList - - NumberedList - - - name: Media - items: - - quote - - - name: Links - items: - - DrupalLink - - DrupalUnlink - - - name: Tools - items: - - Undo - - Redo - - Cut - - Copy - - Paste - - PasteFromWord - - SpecialChar - - Table - - language_selector - - Source + items: + - bold + - italic + - strikethrough + - superscript + - subscript + - removeFormat + - heading + - '|' + - bulletedList + - numberedList + - '|' + - link + - '|' + - undo + - redo + - specialCharacters + - insertTable + - sourceEditing plugins: - drupallink: + ckeditor5_heading: + enabled_headings: + - heading2 + - heading3 + - heading4 + - heading5 + - heading6 + ckeditor5_sourceEditing: + allowed_tags: + - '' + - '
' + - '
' + - '
' + - '
' + - '