@depict-ai/ui 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +515 -513
- package/dist/main.js +79 -56
- package/dist/module.js +79 -56
- package/locales/index.d.ts +88 -88
- package/locales/index.js +2 -2
- package/locales/require.js +2 -2
- package/package.json +4 -4
- package/styles.scss +1 -1
- package/tsconfig.json +8 -8
- package/dist/typescript_schema/BaseSearchRequest.d.ts +0 -197
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +0 -14
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +0 -10
- package/dist/typescript_schema/ProductListingRequest.d.ts +0 -221
- package/dist/typescript_schema/ProductListingResponse.d.ts +0 -232
- package/dist/typescript_schema/RecommendResponse.d.ts +0 -15
- package/dist/typescript_schema/SearchRequest.d.ts +0 -213
- package/dist/typescript_schema/SearchResponse.d.ts +0 -192
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +0 -18
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +0 -182
- package/dist/typescript_schema/TrackV2Request.d.ts +0 -115
package/dist/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$
|
|
|
2
2
|
import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$effect, setAttribute as $g9l4l$setAttribute, createComponent as $g9l4l$createComponent, use as $g9l4l$use, addEventListener as $g9l4l$addEventListener, delegateEvents as $g9l4l$delegateEvents, spread as $g9l4l$spread, classList as $g9l4l$classList, memo as $g9l4l$memo, style as $g9l4l$style, mergeProps as $g9l4l$mergeProps, className as $g9l4l$className} from "solid-js/web";
|
|
3
3
|
import {createSignal as $g9l4l$createSignal, onCleanup as $g9l4l$onCleanup, createComputed as $g9l4l$createComputed, createEffect as $g9l4l$createEffect, untrack as $g9l4l$untrack, batch as $g9l4l$batch, createResource as $g9l4l$createResource, createMemo as $g9l4l$createMemo, Show as $g9l4l$Show, createRenderEffect as $g9l4l$createRenderEffect, runWithOwner as $g9l4l$runWithOwner, createRoot as $g9l4l$createRoot, getOwner as $g9l4l$getOwner, createReaction as $g9l4l$createReaction, on as $g9l4l$on, ErrorBoundary as $g9l4l$ErrorBoundary, Index as $g9l4l$Index, For as $g9l4l$For} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.72";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -777,8 +777,8 @@ function $a20b0ecfca7ab32d$export$ef6006467f04ee41({ i18n_: i18n_ , expanded_hie
|
|
|
777
777
|
]);
|
|
778
778
|
|
|
779
779
|
|
|
780
|
-
/*
|
|
781
|
-
* Usually product templates are somewhat height-elastic depending on the content, i.e. if the title is longer we might up to two extra rows for this. That means that the placeholders almost never will reflect the size of the actual content when we do scroll restoration. This magic number specifies how many extra placeholders we should render everytime to compensate for this, since if the placeholders are in total shorter than the old scroll location the scroll restoration won't work.
|
|
780
|
+
/*
|
|
781
|
+
* Usually product templates are somewhat height-elastic depending on the content, i.e. if the title is longer we might up to two extra rows for this. That means that the placeholders almost never will reflect the size of the actual content when we do scroll restoration. This magic number specifies how many extra placeholders we should render everytime to compensate for this, since if the placeholders are in total shorter than the old scroll location the scroll restoration won't work.
|
|
782
782
|
*/ const $9679915780ee67c0$export$6c9030e511152266 = 30;
|
|
783
783
|
|
|
784
784
|
|
|
@@ -838,7 +838,7 @@ function $a406ebe9523f192f$export$b69d0d92862de18b(props) {
|
|
|
838
838
|
|
|
839
839
|
const $57363319986950eb$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="PLP-results"></div>`, 2), $57363319986950eb$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="cards"></div>`, 2);
|
|
840
840
|
let $57363319986950eb$var$cached_placeholder_element;
|
|
841
|
-
function $57363319986950eb$export$3925f87b1545cfc6({ plp_results_: plp_results_ , depict_api_: depict_api_ , all_products_loaded_: all_products_loaded_ , min_products_to_fetch_: min_products_to_fetch_ , query_base_: query_base_ , first_result_in_viewport_: first_result_in_viewport_ , last_result_in_viewport_: last_result_in_viewport_ , scroll_restoration_data_: scroll_restoration_data_ , no_results_options_: no_results_options_ , desktop_filter_elements_: desktop_filter_elements_ , sort_or_filter_open_: sort_or_filter_open_ , rr_options_: rr_options_ , layout_options_: layout_options_ , tenant_object_: tenant_object_ , type_for_tracking_: type_for_tracking_ , id_currently_querying_for_: id_currently_querying_for_ }) {
|
|
841
|
+
function $57363319986950eb$export$3925f87b1545cfc6({ plp_results_: plp_results_ , depict_api_: depict_api_ , all_products_loaded_: all_products_loaded_ , min_products_to_fetch_: min_products_to_fetch_ , query_base_: query_base_ , first_result_in_viewport_: first_result_in_viewport_ , last_result_in_viewport_: last_result_in_viewport_ , scroll_restoration_data_: scroll_restoration_data_ , no_results_options_: no_results_options_ , desktop_filter_elements_: desktop_filter_elements_ , sort_or_filter_open_: sort_or_filter_open_ , rr_options_: rr_options_ , layout_options_: layout_options_ , tenant_object_: tenant_object_ , type_for_tracking_: type_for_tracking_ , id_currently_querying_for_: id_currently_querying_for_ , disable_default_tracking_: disable_default_tracking_ }) {
|
|
842
842
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
843
843
|
const is_loading = (0, $g9l4l$createMemo)(()=>plp_results_.loading || query_base_.loading);
|
|
844
844
|
const cleanup_old_cards = [];
|
|
@@ -877,7 +877,9 @@ function $57363319986950eb$export$3925f87b1545cfc6({ plp_results_: plp_results_
|
|
|
877
877
|
post_processors: [
|
|
878
878
|
...rr_options_.post_processors || [],
|
|
879
879
|
load_more_post_processor
|
|
880
|
-
]
|
|
880
|
+
],
|
|
881
|
+
view_tracking: disable_default_tracking_ ? [] : undefined,
|
|
882
|
+
click_tracking: disable_default_tracking_ ? [] : undefined
|
|
881
883
|
});
|
|
882
884
|
// check if we still should insert or something new happened while we were rendering
|
|
883
885
|
if ((0, $g9l4l$untrack)(has_no_results_or_failed) || (0, $g9l4l$untrack)(is_loading)) {
|
|
@@ -1037,6 +1039,8 @@ async function $57363319986950eb$var$insert_placeholders({ scroll_restoration_da
|
|
|
1037
1039
|
type: "placeholder",
|
|
1038
1040
|
pre_processors: [],
|
|
1039
1041
|
post_processors: [],
|
|
1042
|
+
view_tracking: [],
|
|
1043
|
+
click_tracking: [],
|
|
1040
1044
|
...typeof rr_options_.template === "function" ? {
|
|
1041
1045
|
template: $57363319986950eb$var$wrap_template_to_throw_into_error_boundary(rr_options_.template, root_in_root, ()=>(0, $g9l4l$queueMacroTask)((0, $g9l4l$catchify)(dispose_card)) // we just want it cloned and dead
|
|
1042
1046
|
)
|
|
@@ -2941,9 +2945,9 @@ function $dd3727f29e682893$export$b288c38ae3fddb56({ available_filters_: availab
|
|
|
2941
2945
|
});
|
|
2942
2946
|
return read_local_cache;
|
|
2943
2947
|
}
|
|
2944
|
-
/**
|
|
2945
|
-
* When a filter is only available locally due to being selected in a previous navigation, we want to make that clear and prevent further "invalid" choices.
|
|
2946
|
-
* This sets the counts to 0 (if applicable) and removes non-selected options (if applicable)
|
|
2948
|
+
/**
|
|
2949
|
+
* When a filter is only available locally due to being selected in a previous navigation, we want to make that clear and prevent further "invalid" choices.
|
|
2950
|
+
* This sets the counts to 0 (if applicable) and removes non-selected options (if applicable)
|
|
2947
2951
|
*/ function $dd3727f29e682893$var$modify_only_local_filter(local_filter_object, selected_filter) {
|
|
2948
2952
|
const old_meta = local_filter_object.meta;
|
|
2949
2953
|
const selected_filter_data = selected_filter.data;
|
|
@@ -4504,7 +4508,7 @@ let $01115659405f3c64$export$44dad306455dddf;
|
|
|
4504
4508
|
|
|
4505
4509
|
|
|
4506
4510
|
const $1ae892b13d7746ab$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="product-count"> </div>`, 2), $1ae892b13d7746ab$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div></div>`, 2), $1ae892b13d7746ab$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filter-results-for-one-row"></div>`, 2), $1ae892b13d7746ab$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4507
|
-
function $1ae892b13d7746ab$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , slider_arrow_button_: slider_arrow_button_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , on_category_link_click_: on_category_link_click_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , rr_options_: rr_options_ , get_product_id_: get_product_id_ }) {
|
|
4511
|
+
function $1ae892b13d7746ab$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , slider_arrow_button_: slider_arrow_button_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , on_category_link_click_: on_category_link_click_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , rr_options_: rr_options_ , get_product_id_: get_product_id_ , disable_default_tracking_: disable_default_tracking_ = false }) {
|
|
4508
4512
|
let results_for;
|
|
4509
4513
|
let only_show_filters_opener_;
|
|
4510
4514
|
let middle_elements_;
|
|
@@ -4518,7 +4522,8 @@ function $1ae892b13d7746ab$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4518
4522
|
TENANT: (0, $g9l4l$untrack)(tenant_),
|
|
4519
4523
|
MARKET: (0, $g9l4l$untrack)(market_),
|
|
4520
4524
|
GA_ID: "",
|
|
4521
|
-
get_product_id: get_product_id_
|
|
4525
|
+
get_product_id: get_product_id_,
|
|
4526
|
+
pageview_tracking: !disable_default_tracking_
|
|
4522
4527
|
});
|
|
4523
4528
|
const [get_sorting] = current_sorting_;
|
|
4524
4529
|
const number_of_rendered_selected_filters_items_ = (0, $g9l4l$createSignal)(0);
|
|
@@ -4765,7 +4770,8 @@ function $1ae892b13d7746ab$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4765
4770
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
4766
4771
|
i18n_: i18n_,
|
|
4767
4772
|
local_filter_cache_: local_filter_cache_
|
|
4768
|
-
}
|
|
4773
|
+
},
|
|
4774
|
+
disable_default_tracking_: disable_default_tracking_
|
|
4769
4775
|
});
|
|
4770
4776
|
}
|
|
4771
4777
|
}), null);
|
|
@@ -5019,7 +5025,7 @@ class $ec52ef1e6c117813$export$f34314aa9505732e {
|
|
|
5019
5025
|
});
|
|
5020
5026
|
}
|
|
5021
5027
|
}
|
|
5022
|
-
function $ec52ef1e6c117813$export$e2bf8ce7779e827e({ depict_category: depict_category , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id , show_breadcrumbs: show_breadcrumbs = true , show_quicklinks: show_quicklinks = true , category_title: category_title }) {
|
|
5028
|
+
function $ec52ef1e6c117813$export$e2bf8ce7779e827e({ depict_category: depict_category , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id , show_breadcrumbs: show_breadcrumbs = true , show_quicklinks: show_quicklinks = true , category_title: category_title , disable_default_tracking: disable_default_tracking = false }) {
|
|
5023
5029
|
const shared_properties = $ec52ef1e6c117813$var$get_shared_properties(depict_category);
|
|
5024
5030
|
const grid_spacing_override = typeof grid_spacing === "string" ? {
|
|
5025
5031
|
grid_spacing: grid_spacing
|
|
@@ -5062,7 +5068,8 @@ function $ec52ef1e6c117813$export$e2bf8ce7779e827e({ depict_category: depict_cat
|
|
|
5062
5068
|
const is_placeholder = info.rendering_options.type === "placeholder";
|
|
5063
5069
|
return product_card_template(is_placeholder ? null : display, info);
|
|
5064
5070
|
}
|
|
5065
|
-
}
|
|
5071
|
+
},
|
|
5072
|
+
disable_default_tracking_: disable_default_tracking
|
|
5066
5073
|
});
|
|
5067
5074
|
}, "Entire CategoryPage failed");
|
|
5068
5075
|
}
|
|
@@ -5470,7 +5477,7 @@ function $6ded59a142c93078$export$b94867ecbd698f21({ search_field_value_: search
|
|
|
5470
5477
|
|
|
5471
5478
|
const $aee0c68312d971f4$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="cards"></div>`, 2), $aee0c68312d971f4$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="search-recs"><h3 class="search-recs-title"></h3></div>`, 4), $aee0c68312d971f4$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<button class="show-more major" type="button"></button>`, 2);
|
|
5472
5479
|
const $aee0c68312d971f4$export$1c8c715550dc689d = 2;
|
|
5473
|
-
function $aee0c68312d971f4$export$7de92c4c2205ebf3({ depict_api_: depict_api_ , i18n_: i18n_ , tenant_object_: tenant_object_ , search_query_base_: search_query_base_ , rr_options_: rr_options_ , showing_recommendation_rows_: showing_recommendation_rows_ , view_more_button_: view_more_button_ = true , layout_options_: layout_options_ }) {
|
|
5480
|
+
function $aee0c68312d971f4$export$7de92c4c2205ebf3({ depict_api_: depict_api_ , i18n_: i18n_ , tenant_object_: tenant_object_ , search_query_base_: search_query_base_ , rr_options_: rr_options_ , showing_recommendation_rows_: showing_recommendation_rows_ , view_more_button_: view_more_button_ = true , layout_options_: layout_options_ , disable_default_tracking_: disable_default_tracking_ }) {
|
|
5474
5481
|
const [is_showing_something, set_is_showing_something] = (0, $g9l4l$createSignal)(false);
|
|
5475
5482
|
const cards = $aee0c68312d971f4$var$_tmpl$.cloneNode(true);
|
|
5476
5483
|
const on_next_render = [];
|
|
@@ -5538,7 +5545,9 @@ function $aee0c68312d971f4$export$7de92c4c2205ebf3({ depict_api_: depict_api_ ,
|
|
|
5538
5545
|
template: (...args)=>(0, $g9l4l$runWithOwner)(owner_for_cards, ()=>// give template the possibility to know when it gets removed from the DOM by using solid-js onCleanup
|
|
5539
5546
|
// @ts-ignore
|
|
5540
5547
|
rr_options_.template(...args))
|
|
5541
|
-
} : {}
|
|
5548
|
+
} : {},
|
|
5549
|
+
view_tracking: disable_default_tracking_ ? [] : undefined,
|
|
5550
|
+
click_tracking: disable_default_tracking_ ? [] : undefined
|
|
5542
5551
|
});
|
|
5543
5552
|
const { elements: elements , should_stay_inserted: should_stay_inserted } = rendering_result;
|
|
5544
5553
|
let dead = false;
|
|
@@ -5711,8 +5720,8 @@ function $4d62f5daa51642fe$export$84bba84a7b837187(search_query) {
|
|
|
5711
5720
|
|
|
5712
5721
|
|
|
5713
5722
|
|
|
5714
|
-
/**
|
|
5715
|
-
* Calls history.pushState wiht the current url BUT the query parameter with name url_param_name has been set to value (or deleted if no value is provided) and url_transformer has been executed on the URL object that we're pushing
|
|
5723
|
+
/**
|
|
5724
|
+
* Calls history.pushState wiht the current url BUT the query parameter with name url_param_name has been set to value (or deleted if no value is provided) and url_transformer has been executed on the URL object that we're pushing
|
|
5716
5725
|
*/ function $972ebf2641490830$export$26df08e242fe83a3(url_param_name, value, url_transformer) {
|
|
5717
5726
|
$972ebf2641490830$var$set_param(false, url_param_name, value, url_transformer);
|
|
5718
5727
|
}
|
|
@@ -5788,8 +5797,8 @@ function $4ad18a8b237ff7f6$export$2542ffb77b620b02(params_to_default_value) {
|
|
|
5788
5797
|
|
|
5789
5798
|
|
|
5790
5799
|
|
|
5791
|
-
/**
|
|
5792
|
-
* Expand an object where every value in the top-level is an accessor into a normal object. Used for converting solid_i18n objects into external i18n typed objects.
|
|
5800
|
+
/**
|
|
5801
|
+
* Expand an object where every value in the top-level is an accessor into a normal object. Used for converting solid_i18n objects into external i18n typed objects.
|
|
5793
5802
|
*/ const $589fd8dc82a78e48$export$27b710c08412a7ad = (obj)=>{
|
|
5794
5803
|
return Object.fromEntries(Object.keys(obj).map((key)=>[
|
|
5795
5804
|
key,
|
|
@@ -5988,7 +5997,6 @@ function $d811ce622b5b7626$var$track_elements(display, index, elements, tenant,
|
|
|
5988
5997
|
click_location: type + "_" + (index + 1),
|
|
5989
5998
|
recommendation_type: type
|
|
5990
5999
|
});
|
|
5991
|
-
localStorage.setItem(`depict_attribution_${d.product_id}`, d.search_result_id);
|
|
5992
6000
|
};
|
|
5993
6001
|
while(disconnectors.length)// disconnect stuff from old display
|
|
5994
6002
|
disconnectors.pop()();
|
|
@@ -7110,12 +7118,13 @@ function $57ec75eac12fe1fc$export$9dd50d35b9d94fdf({ search_query_: search_query
|
|
|
7110
7118
|
|
|
7111
7119
|
const $b76e8f62b1f313ef$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="filter-results-for-one-row"></div>`, 2), $b76e8f62b1f313ef$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"><div class="listing-page"></div></div>`, 4);
|
|
7112
7120
|
function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
7113
|
-
const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , search_query_: search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , slider_arrow_button_: slider_arrow_button_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , rr_options_: rr_options_ , recommendations_rr_options_: recommendations_rr_options_ = rr_options_ , search_recs_view_more_: search_recs_view_more_ , get_product_id_: get_product_id_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ } = opts;
|
|
7121
|
+
const { depict_api_: depict_api_ , search_field_value_: search_field_value_ , search_query_: search_query_ , open_modal_: open_modal_ , submit_query_: submit_query_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , search_filters_open_: search_filters_open_ , search_sorting_open_: search_sorting_open_ , expanded_filters_: expanded_filters_ , input_modal_open_: input_modal_open_ , selected_filters_: selected_filters_ , i18n_: i18n_ , slider_arrow_button_: slider_arrow_button_ , make_category_suggestion_card_: make_category_suggestion_card_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , clear_filters_on_next_submit_: clear_filters_on_next_submit_ , local_filter_cache_: local_filter_cache_ , include_input_field_: include_input_field_ , tenant_: tenant_ , market_: market_ , showing_recommendation_rows_: showing_recommendation_rows_ , rr_options_: rr_options_ , recommendations_rr_options_: recommendations_rr_options_ = rr_options_ , search_recs_view_more_: search_recs_view_more_ , get_product_id_: get_product_id_ , disable_search_recommendations_: disable_search_recommendations_ , layout_options_: layout_options_ , recommendations_layout_options_: recommendations_layout_options_ = layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , disable_default_tracking_: disable_default_tracking_ = false } = opts;
|
|
7114
7122
|
const tenant_object_ = new (0, $g9l4l$Tenant)({
|
|
7115
7123
|
TENANT: (0, $g9l4l$untrack)(tenant_),
|
|
7116
7124
|
MARKET: (0, $g9l4l$untrack)(market_),
|
|
7117
7125
|
GA_ID: "",
|
|
7118
|
-
get_product_id: get_product_id_
|
|
7126
|
+
get_product_id: get_product_id_,
|
|
7127
|
+
pageview_tracking: !disable_default_tracking_
|
|
7119
7128
|
});
|
|
7120
7129
|
const [get_sorting] = current_sorting_;
|
|
7121
7130
|
const [get_search_query] = search_query_;
|
|
@@ -7340,7 +7349,8 @@ function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
|
7340
7349
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
7341
7350
|
local_filter_cache_: local_filter_cache_,
|
|
7342
7351
|
i18n_: i18n_
|
|
7343
|
-
}
|
|
7352
|
+
},
|
|
7353
|
+
disable_default_tracking_: disable_default_tracking_
|
|
7344
7354
|
});
|
|
7345
7355
|
}
|
|
7346
7356
|
}), null);
|
|
@@ -7362,7 +7372,8 @@ function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
|
7362
7372
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
7363
7373
|
rr_options_: recommendations_rr_options_,
|
|
7364
7374
|
view_more_button_: search_recs_view_more_,
|
|
7365
|
-
tenant_object_: tenant_object_
|
|
7375
|
+
tenant_object_: tenant_object_,
|
|
7376
|
+
disable_default_tracking_: disable_default_tracking_
|
|
7366
7377
|
});
|
|
7367
7378
|
}
|
|
7368
7379
|
});
|
|
@@ -7433,8 +7444,8 @@ function $a79ffb1cbfbd2a09$export$828dcdd425fd3231(aligner) {
|
|
|
7433
7444
|
|
|
7434
7445
|
|
|
7435
7446
|
const $540e930c58500cbe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"></div>`, 2);
|
|
7436
|
-
/**
|
|
7437
|
-
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
7447
|
+
/**
|
|
7448
|
+
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
7438
7449
|
*/ const $540e930c58500cbe$var$privately_shared_properties = /*@__PURE__*/ new WeakMap();
|
|
7439
7450
|
const $540e930c58500cbe$var$min_products_to_fetch_ = 20;
|
|
7440
7451
|
const $540e930c58500cbe$export$bde3eb976dfded9 = (depict_search)=>$540e930c58500cbe$var$privately_shared_properties.get(depict_search)?.search_query_updating_blocked_;
|
|
@@ -7645,13 +7656,24 @@ class $540e930c58500cbe$export$ac6237957a15b3f0 {
|
|
|
7645
7656
|
set market(market) {
|
|
7646
7657
|
this.#market_signal[1](market);
|
|
7647
7658
|
}
|
|
7659
|
+
async fetchSearchResults(query, filters) {
|
|
7660
|
+
const { depict_api_: depict_api_ } = $540e930c58500cbe$var$privately_shared_properties.get(this);
|
|
7661
|
+
const result = await depict_api_.query({
|
|
7662
|
+
tenant: this.merchant,
|
|
7663
|
+
market: this.market,
|
|
7664
|
+
query: query,
|
|
7665
|
+
filters: filters
|
|
7666
|
+
});
|
|
7667
|
+
if (result.failed) throw new Error("Failed to fetch search results");
|
|
7668
|
+
return result.displays;
|
|
7669
|
+
}
|
|
7648
7670
|
}
|
|
7649
7671
|
function $540e930c58500cbe$var$get_shared_properties(depict_search) {
|
|
7650
7672
|
const shared_properties = $540e930c58500cbe$var$privately_shared_properties.get(depict_search);
|
|
7651
7673
|
if (!shared_properties) throw new Error("Can't connect to provided DepictSearch instance");
|
|
7652
7674
|
return shared_properties;
|
|
7653
7675
|
}
|
|
7654
|
-
function $540e930c58500cbe$export$f2dc7e4e4aa11abb({ depict_search: depict_search , include_input_field: include_input_field , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id = (0, $g9l4l$normal_get_product_id) , extra_depict_options: extra_depict_options }) {
|
|
7676
|
+
function $540e930c58500cbe$export$f2dc7e4e4aa11abb({ depict_search: depict_search , include_input_field: include_input_field , grid_spacing: grid_spacing , cols_at_size: cols_at_size , product_card_template: product_card_template , get_product_id: get_product_id = (0, $g9l4l$normal_get_product_id) , extra_depict_options: extra_depict_options , disable_default_tracking: disable_default_tracking }) {
|
|
7655
7677
|
const shared_properties = $540e930c58500cbe$var$get_shared_properties(depict_search);
|
|
7656
7678
|
const grid_spacing_override = typeof grid_spacing === "string" ? {
|
|
7657
7679
|
grid_spacing: grid_spacing
|
|
@@ -7726,7 +7748,8 @@ function $540e930c58500cbe$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7726
7748
|
pre_processors: extra_depict_options?.pre_processors,
|
|
7727
7749
|
post_processors: extra_depict_options?.post_processors
|
|
7728
7750
|
},
|
|
7729
|
-
get_product_id_: get_product_id
|
|
7751
|
+
get_product_id_: get_product_id,
|
|
7752
|
+
disable_default_tracking_: disable_default_tracking
|
|
7730
7753
|
});
|
|
7731
7754
|
}, "Entire SearchPage failed");
|
|
7732
7755
|
}
|
|
@@ -7840,8 +7863,8 @@ const $7cbfd6122dbaf087$export$d86a33413558014e = (openModalParams)=>{
|
|
|
7840
7863
|
}
|
|
7841
7864
|
const { cleanup: cleanup } = (0, $a79ffb1cbfbd2a09$export$828dcdd425fd3231)(openModalParams.element);
|
|
7842
7865
|
let dispose_aligner;
|
|
7843
|
-
/**
|
|
7844
|
-
* Setting position to fixed is important to make the modal work with align_field.
|
|
7866
|
+
/**
|
|
7867
|
+
* Setting position to fixed is important to make the modal work with align_field.
|
|
7845
7868
|
*/ const style_props_ = (0, $g9l4l$createSignal)({
|
|
7846
7869
|
position: "fixed"
|
|
7847
7870
|
});
|
|
@@ -7938,8 +7961,8 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
7938
7961
|
})();
|
|
7939
7962
|
return new Set();
|
|
7940
7963
|
})();
|
|
7941
|
-
/**
|
|
7942
|
-
* Returns if the "replacement page" is currently open
|
|
7964
|
+
/**
|
|
7965
|
+
* Returns if the "replacement page" is currently open
|
|
7943
7966
|
*/ get open_() {
|
|
7944
7967
|
// make this "readonly" from the outside, the only way to open is by making the url change so that is_page_ returns true
|
|
7945
7968
|
return this.#is_open;
|
|
@@ -8023,26 +8046,26 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
8023
8046
|
const on_popstate = ()=>{
|
|
8024
8047
|
const cleaned_current_url = $ba6c9609228edf6b$var$clean_url(location.href);
|
|
8025
8048
|
if (!$ba6c9609228edf6b$export$3ccaa27d81dd8556.#visited_urls.has(cleaned_current_url)) {
|
|
8026
|
-
/*
|
|
8027
|
-
What does this check do? Well, there's a bug without it where people end up on a page that they shouldn't see (i.e. a somewhat blank page).
|
|
8028
|
-
The culprit of that bug is: the browser remembers where to make "hard"-navigations (i.e. a full document rebuild with a new `document` and `window` object) when going back and forwards in the history and where to just change the url. What it doesn't always correctly remember (observed in at least chrome and firefox), is *what document to hard-navigate to*. Therefore, we have to jump in and take care of that.
|
|
8029
|
-
The reproduction is this:
|
|
8030
|
-
Spendrups has set up a search page for us under /start/search. We don't want to hard-reload the page though to get there.
|
|
8031
|
-
1. Go to a product page like https://ehandel.spendrups.se/Product/1104201
|
|
8032
|
-
2. Make a search
|
|
8033
|
-
We use PageReplacer to just replace the current page (and the url in the address bar) with the search page. The thing is though, that when going back now the URL just updates but the browser doesn't actually navigate - that's fine, PageReplacer will just restore the old page contents
|
|
8034
|
-
3. Try going back just for fun
|
|
8035
|
-
Everything works as expected
|
|
8036
|
-
4. Go forwards again (just for fun, skip this if you skipped 3)
|
|
8037
|
-
Now the trouble comes when we introduce "hard" navigation.
|
|
8038
|
-
5. Click on a search result. The browser will now "hard" navigate to a new page.
|
|
8039
|
-
6. Click "back"
|
|
8040
|
-
What happens now, is that the browser hard-navigates to /start/search.
|
|
8041
|
-
7. Click "back" again
|
|
8042
|
-
What happens now, is that the browser "soft-navigates" (just changes the URL) to https://ehandel.spendrups.se/Product/1104201
|
|
8043
|
-
PageReplacer unload itself and reveals the original document - it is expected to be the one under https://ehandel.spendrups.se/Product/1104201, but actually it is the one under /start/search - a white page.
|
|
8044
|
-
|
|
8045
|
-
|
|
8049
|
+
/*
|
|
8050
|
+
What does this check do? Well, there's a bug without it where people end up on a page that they shouldn't see (i.e. a somewhat blank page).
|
|
8051
|
+
The culprit of that bug is: the browser remembers where to make "hard"-navigations (i.e. a full document rebuild with a new `document` and `window` object) when going back and forwards in the history and where to just change the url. What it doesn't always correctly remember (observed in at least chrome and firefox), is *what document to hard-navigate to*. Therefore, we have to jump in and take care of that.
|
|
8052
|
+
The reproduction is this:
|
|
8053
|
+
Spendrups has set up a search page for us under /start/search. We don't want to hard-reload the page though to get there.
|
|
8054
|
+
1. Go to a product page like https://ehandel.spendrups.se/Product/1104201
|
|
8055
|
+
2. Make a search
|
|
8056
|
+
We use PageReplacer to just replace the current page (and the url in the address bar) with the search page. The thing is though, that when going back now the URL just updates but the browser doesn't actually navigate - that's fine, PageReplacer will just restore the old page contents
|
|
8057
|
+
3. Try going back just for fun
|
|
8058
|
+
Everything works as expected
|
|
8059
|
+
4. Go forwards again (just for fun, skip this if you skipped 3)
|
|
8060
|
+
Now the trouble comes when we introduce "hard" navigation.
|
|
8061
|
+
5. Click on a search result. The browser will now "hard" navigate to a new page.
|
|
8062
|
+
6. Click "back"
|
|
8063
|
+
What happens now, is that the browser hard-navigates to /start/search.
|
|
8064
|
+
7. Click "back" again
|
|
8065
|
+
What happens now, is that the browser "soft-navigates" (just changes the URL) to https://ehandel.spendrups.se/Product/1104201
|
|
8066
|
+
PageReplacer unload itself and reveals the original document - it is expected to be the one under https://ehandel.spendrups.se/Product/1104201, but actually it is the one under /start/search - a white page.
|
|
8067
|
+
The fix: is to remember all pages that we have visited since the creation of `window` (we do that by having a static property on PageReplacer since we assume the PageReplacer source code will only exist once on the page and will be loaded at page load, the latter assumption might be wrong, but I hope not). If we get a "popstate" event (meaning back or forwards button, not new page being pushed) to an unknown page we reload.
|
|
8068
|
+
*/ (0, $g9l4l$dlog)("PageReplacer: ", cleaned_current_url, " hasn't been visited since document was created, reloading since we won't be able to show this page otherwise");
|
|
8046
8069
|
location.reload();
|
|
8047
8070
|
$ba6c9609228edf6b$export$3ccaa27d81dd8556.#reverting_permitted = false; // Disallow any reverting since we can't - it would flash a white page until the reload has finished.
|
|
8048
8071
|
this.#unload(); // Call unload to "kill" the solid-js stuff quicker so that it stops updating - the user is expecting the next thing that happens to be a navigation to the actual page the URL says they're on.
|
|
@@ -8051,8 +8074,8 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
8051
8074
|
(0, $g9l4l$instant_exec_on_popstate_before_ipns_update).add(on_popstate);
|
|
8052
8075
|
this.#revert_fns.push(()=>(0, $g9l4l$instant_exec_on_popstate_before_ipns_update).delete(on_popstate)); // Don't run the bugfixer if there isn't a PageReplacer page open since I assume the bug only happens when going back from a PageReplace'd page
|
|
8053
8076
|
}
|
|
8054
|
-
/**
|
|
8055
|
-
* Stops listening to URL changes and closes the page (if it is currently open)
|
|
8077
|
+
/**
|
|
8078
|
+
* Stops listening to URL changes and closes the page (if it is currently open)
|
|
8056
8079
|
*/ destroy_() {
|
|
8057
8080
|
this.#unload();
|
|
8058
8081
|
this.#stop_listening?.();
|
|
@@ -8067,8 +8090,8 @@ class $ba6c9609228edf6b$export$3ccaa27d81dd8556 extends EventTarget {
|
|
|
8067
8090
|
if (!is_spa_) (0, $36316d7b4c897a03$export$689e204eadb33baf)(this); // Make so that clicking on links to the previous page work instantly
|
|
8068
8091
|
}
|
|
8069
8092
|
}
|
|
8070
|
-
/**
|
|
8071
|
-
* Remove hash from URL
|
|
8093
|
+
/**
|
|
8094
|
+
* Remove hash from URL
|
|
8072
8095
|
*/ function $ba6c9609228edf6b$var$clean_url(url) {
|
|
8073
8096
|
// Would want to have this a static private function on PageReplacer, but that's not supported in MobileSafari yet
|
|
8074
8097
|
// remove hash, all other params *could* trigger a re-request
|
package/locales/index.d.ts
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { Elem } from "@depict-ai/utilishared";
|
|
2
|
-
/**
|
|
3
|
-
* PLP internationalisation shared between search and category listing
|
|
4
|
-
*/
|
|
5
|
-
type plp_shared_i18n = {
|
|
6
|
-
scroll_to_top_: string;
|
|
7
|
-
back_: string;
|
|
8
|
-
open_sorting_: string;
|
|
9
|
-
close_sorting_: string;
|
|
10
|
-
open_filters_: string;
|
|
11
|
-
close_filters_: string;
|
|
12
|
-
close_: string;
|
|
13
|
-
ok_: string;
|
|
14
|
-
filters_cleared_: string;
|
|
15
|
-
we_cleared_your_filters_: string;
|
|
16
|
-
restore_: string;
|
|
17
|
-
sorting_text_: string;
|
|
18
|
-
filter_text_: string;
|
|
19
|
-
selected_filters_title_: string;
|
|
20
|
-
filters_: string;
|
|
21
|
-
view_less_: string;
|
|
22
|
-
view_more_: string;
|
|
23
|
-
clear_all_from_filter_crumbs_: string;
|
|
24
|
-
clear_individual_filter_: string;
|
|
25
|
-
of_: string;
|
|
26
|
-
clear_all_filters_from_big_button_: string;
|
|
27
|
-
try_without_filters_: string;
|
|
28
|
-
range_filter_low_point_aria_label_: string;
|
|
29
|
-
range_filter_high_point_aria_label_: string;
|
|
30
|
-
morphing_sign_expanded_aria_label_: string;
|
|
31
|
-
morphing_sign_collapsed_aria_label_: string;
|
|
32
|
-
price_formatting_: {
|
|
33
|
-
pre_: string;
|
|
34
|
-
post_: string;
|
|
35
|
-
decimal_places_delimiter_: string;
|
|
36
|
-
thousands_delimiter_: string;
|
|
37
|
-
places_after_comma_: number | "auto";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Search internationalisation
|
|
42
|
-
*/
|
|
43
|
-
interface search_i18n extends plp_shared_i18n {
|
|
44
|
-
placeholder_text_: string;
|
|
45
|
-
show_n_results_: (number_of_results: HTMLElement) => Elem[];
|
|
46
|
-
no_results_text_: string;
|
|
47
|
-
search_recs_title_: string;
|
|
48
|
-
clear_filters_query_sorting_after_submit_: string;
|
|
49
|
-
modal_view_all_results_: (number_of_results: HTMLElement) => Elem[];
|
|
50
|
-
modal_discover_more_: string;
|
|
51
|
-
get_showing_results_for_: (query: HTMLElement, number_of_results: HTMLElement) => Elem[];
|
|
52
|
-
previous_searches_text_: string;
|
|
53
|
-
category_: string;
|
|
54
|
-
suggestions_: string;
|
|
55
|
-
search_submit_button_aria_label_: string;
|
|
56
|
-
search_field_field_aria_label_: string;
|
|
57
|
-
previous_searches_delete_entry_from_history_: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Category internationalisation
|
|
61
|
-
*/
|
|
62
|
-
interface category_i18n extends plp_shared_i18n {
|
|
63
|
-
show_n_products_: (number_of_results: HTMLElement) => Elem[];
|
|
64
|
-
no_products_text_: string;
|
|
65
|
-
product_: string;
|
|
66
|
-
products_: string;
|
|
67
|
-
breadcrumbs_aria_label_: string;
|
|
68
|
-
quicklinks_aria_label_: string;
|
|
69
|
-
breadcrumbs_separator_: string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Depict UI internationalisation
|
|
73
|
-
*/
|
|
74
|
-
interface Locale extends category_i18n, search_i18n {
|
|
75
|
-
}
|
|
76
|
-
export const cz: Locale;
|
|
77
|
-
export const da: Locale;
|
|
78
|
-
export const nl: Locale;
|
|
79
|
-
export const en: Locale;
|
|
80
|
-
export const fi: Locale;
|
|
81
|
-
export const fr: Locale;
|
|
82
|
-
export const de: Locale;
|
|
83
|
-
export const it: Locale;
|
|
84
|
-
export const no: Locale;
|
|
85
|
-
export const pl: Locale;
|
|
86
|
-
export const pt: Locale;
|
|
87
|
-
export const es: Locale;
|
|
88
|
-
export const sv: Locale;
|
|
1
|
+
import { Elem } from "@depict-ai/utilishared";
|
|
2
|
+
/**
|
|
3
|
+
* PLP internationalisation shared between search and category listing
|
|
4
|
+
*/
|
|
5
|
+
type plp_shared_i18n = {
|
|
6
|
+
scroll_to_top_: string;
|
|
7
|
+
back_: string;
|
|
8
|
+
open_sorting_: string;
|
|
9
|
+
close_sorting_: string;
|
|
10
|
+
open_filters_: string;
|
|
11
|
+
close_filters_: string;
|
|
12
|
+
close_: string;
|
|
13
|
+
ok_: string;
|
|
14
|
+
filters_cleared_: string;
|
|
15
|
+
we_cleared_your_filters_: string;
|
|
16
|
+
restore_: string;
|
|
17
|
+
sorting_text_: string;
|
|
18
|
+
filter_text_: string;
|
|
19
|
+
selected_filters_title_: string;
|
|
20
|
+
filters_: string;
|
|
21
|
+
view_less_: string;
|
|
22
|
+
view_more_: string;
|
|
23
|
+
clear_all_from_filter_crumbs_: string;
|
|
24
|
+
clear_individual_filter_: string;
|
|
25
|
+
of_: string;
|
|
26
|
+
clear_all_filters_from_big_button_: string;
|
|
27
|
+
try_without_filters_: string;
|
|
28
|
+
range_filter_low_point_aria_label_: string;
|
|
29
|
+
range_filter_high_point_aria_label_: string;
|
|
30
|
+
morphing_sign_expanded_aria_label_: string;
|
|
31
|
+
morphing_sign_collapsed_aria_label_: string;
|
|
32
|
+
price_formatting_: {
|
|
33
|
+
pre_: string;
|
|
34
|
+
post_: string;
|
|
35
|
+
decimal_places_delimiter_: string;
|
|
36
|
+
thousands_delimiter_: string;
|
|
37
|
+
places_after_comma_: number | "auto";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Search internationalisation
|
|
42
|
+
*/
|
|
43
|
+
interface search_i18n extends plp_shared_i18n {
|
|
44
|
+
placeholder_text_: string;
|
|
45
|
+
show_n_results_: (number_of_results: HTMLElement) => Elem[];
|
|
46
|
+
no_results_text_: string;
|
|
47
|
+
search_recs_title_: string;
|
|
48
|
+
clear_filters_query_sorting_after_submit_: string;
|
|
49
|
+
modal_view_all_results_: (number_of_results: HTMLElement) => Elem[];
|
|
50
|
+
modal_discover_more_: string;
|
|
51
|
+
get_showing_results_for_: (query: HTMLElement, number_of_results: HTMLElement) => Elem[];
|
|
52
|
+
previous_searches_text_: string;
|
|
53
|
+
category_: string;
|
|
54
|
+
suggestions_: string;
|
|
55
|
+
search_submit_button_aria_label_: string;
|
|
56
|
+
search_field_field_aria_label_: string;
|
|
57
|
+
previous_searches_delete_entry_from_history_: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Category internationalisation
|
|
61
|
+
*/
|
|
62
|
+
interface category_i18n extends plp_shared_i18n {
|
|
63
|
+
show_n_products_: (number_of_results: HTMLElement) => Elem[];
|
|
64
|
+
no_products_text_: string;
|
|
65
|
+
product_: string;
|
|
66
|
+
products_: string;
|
|
67
|
+
breadcrumbs_aria_label_: string;
|
|
68
|
+
quicklinks_aria_label_: string;
|
|
69
|
+
breadcrumbs_separator_: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Depict UI internationalisation
|
|
73
|
+
*/
|
|
74
|
+
interface Locale extends category_i18n, search_i18n {
|
|
75
|
+
}
|
|
76
|
+
export const cz: Locale;
|
|
77
|
+
export const da: Locale;
|
|
78
|
+
export const nl: Locale;
|
|
79
|
+
export const en: Locale;
|
|
80
|
+
export const fi: Locale;
|
|
81
|
+
export const fr: Locale;
|
|
82
|
+
export const de: Locale;
|
|
83
|
+
export const it: Locale;
|
|
84
|
+
export const no: Locale;
|
|
85
|
+
export const pl: Locale;
|
|
86
|
+
export const pt: Locale;
|
|
87
|
+
export const es: Locale;
|
|
88
|
+
export const sv: Locale;
|
package/locales/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Exported naming follows IETF BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
|
|
1
|
+
/**
|
|
2
|
+
* Exported naming follows IETF BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
|
|
3
3
|
*/ const $fec3b2c9bf29834a$var$english_base_translation = {
|
|
4
4
|
"of_": "of",
|
|
5
5
|
"sorting_text_": "Sort",
|
package/locales/require.js
CHANGED
|
@@ -15,8 +15,8 @@ $parcel$export(module.exports, "pl", () => $67afe8a16c63d928$export$6ea5311eda92
|
|
|
15
15
|
$parcel$export(module.exports, "pt", () => $67afe8a16c63d928$export$84175d5f1cb4e39d);
|
|
16
16
|
$parcel$export(module.exports, "es", () => $67afe8a16c63d928$export$ca5e4045a55e76d2);
|
|
17
17
|
$parcel$export(module.exports, "sv", () => $67afe8a16c63d928$export$65540e5f7f6e7dce);
|
|
18
|
-
/**
|
|
19
|
-
* Exported naming follows IETF BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
|
|
18
|
+
/**
|
|
19
|
+
* Exported naming follows IETF BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
|
|
20
20
|
*/ const $07db801ee546c1bd$var$english_base_translation = {
|
|
21
21
|
"of_": "of",
|
|
22
22
|
"sorting_text_": "Sort",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"source": [
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"ts-jest": "^29.0.3"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
88
|
-
"@depict-ai/types": "^0.0.
|
|
89
|
-
"@depict-ai/utilishared": "^0.0.
|
|
87
|
+
"@depict-ai/plp-styling": "^0.0.33",
|
|
88
|
+
"@depict-ai/types": "^0.0.24",
|
|
89
|
+
"@depict-ai/utilishared": "^0.0.76",
|
|
90
90
|
"solid-js": "^1.6.2"
|
|
91
91
|
},
|
|
92
92
|
"types": "dist/index.d.ts"
|
package/styles.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward "@depict-ai/plp-styling";
|
|
1
|
+
@forward "@depict-ai/plp-styling";
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig_base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"composite": true,
|
|
5
|
-
"types": ["node", "jest", "solid-js", "solid-js/web"]
|
|
6
|
-
},
|
|
7
|
-
"exclude": ["./dist/*"]
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig_base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"composite": true,
|
|
5
|
+
"types": ["node", "jest", "solid-js", "solid-js/web"]
|
|
6
|
+
},
|
|
7
|
+
"exclude": ["./dist/*"]
|
|
8
|
+
}
|