@depict-ai/ui 4.10.19 → 4.10.21
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/ES10/index.cjs +283 -51
- package/ES10/index.d.ts +16 -3
- package/ES10/index.js +283 -51
- package/latest/index.cjs +269 -49
- package/latest/index.d.ts +16 -3
- package/latest/index.js +269 -49
- package/package.json +4 -4
- package/server/ES10/index.cjs +282 -50
- package/server/ES10/index.d.ts +16 -3
- package/server/ES10/index.js +282 -50
- package/server/latest/index.cjs +268 -48
- package/server/latest/index.d.ts +16 -3
- package/server/latest/index.js +268 -48
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.10.
|
|
14
|
+
export const version = "4.10.21";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -485,6 +485,10 @@ export class PseudoRouter {
|
|
|
485
485
|
* We store listing_id in history.state and do operate on this both here and in js-ui, this is the key to be used which js-ui provides
|
|
486
486
|
*/
|
|
487
487
|
listing_query_state_key: string | undefined;
|
|
488
|
+
/**
|
|
489
|
+
* Called when a go_to_ didn't change location.href, for example when following a link to the page one is already on. href_change_ipns stays silent then, so whoever waits for a href change to react to a navigation has to listen here too
|
|
490
|
+
*/
|
|
491
|
+
navigation_to_same_href_listeners_: Set<VoidFunction>;
|
|
488
492
|
navigate_: {
|
|
489
493
|
/**
|
|
490
494
|
* Call this if you *just* want to replace the state object in history.state
|
|
@@ -713,6 +717,8 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
|
|
|
713
717
|
search_query_url_param_name_,
|
|
714
718
|
previous_searches_,
|
|
715
719
|
close_modal_,
|
|
720
|
+
set_focus_target_after_close_,
|
|
721
|
+
get_search_page_input_element_,
|
|
716
722
|
alignmentSignals_,
|
|
717
723
|
depict_api_,
|
|
718
724
|
merchant_,
|
|
@@ -743,12 +749,14 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
|
|
|
743
749
|
search_query_url_param_name_: string;
|
|
744
750
|
previous_searches_: Signal<string[]>;
|
|
745
751
|
close_modal_: VoidFunction;
|
|
752
|
+
set_focus_target_after_close_: (get_target: (() => HTMLElement | undefined) | undefined) => void;
|
|
753
|
+
get_search_page_input_element_: () => HTMLInputElement | undefined;
|
|
746
754
|
alignmentSignals_?: ModalAlignmentSignals;
|
|
747
755
|
depict_api_: DepictAPI<InputDisplay, OutputDisplay>;
|
|
748
756
|
clear_filters_: (user_triggered: boolean) => void;
|
|
749
757
|
merchant_: Accessor<string>;
|
|
750
758
|
market_: Accessor<string>;
|
|
751
|
-
submit_query_: (new_query?: string) =>
|
|
759
|
+
submit_query_: (new_query?: string, before_navigate_?: VoidFunction) => Promise<boolean>;
|
|
752
760
|
class_list_?: Accessor<Record<string, boolean>>;
|
|
753
761
|
url_transformer_?: (url_object: URL) => unknown;
|
|
754
762
|
disable_scrolling_?: boolean;
|
|
@@ -785,6 +793,8 @@ declare function RawClassicSearchModal({
|
|
|
785
793
|
search_query_url_param_name_,
|
|
786
794
|
previous_searches_,
|
|
787
795
|
close_modal_,
|
|
796
|
+
set_focus_target_after_close_,
|
|
797
|
+
get_search_page_input_element_,
|
|
788
798
|
depict_api_,
|
|
789
799
|
merchant_,
|
|
790
800
|
market_,
|
|
@@ -810,11 +820,13 @@ declare function RawClassicSearchModal({
|
|
|
810
820
|
search_query_url_param_name_: string;
|
|
811
821
|
previous_searches_: Signal<string[]>;
|
|
812
822
|
close_modal_: VoidFunction;
|
|
823
|
+
set_focus_target_after_close_: (get_target: (() => HTMLElement | undefined) | undefined) => void;
|
|
824
|
+
get_search_page_input_element_: () => HTMLInputElement | undefined;
|
|
813
825
|
depict_api_: DepictAPI<any>;
|
|
814
826
|
clear_filters_: (user_triggered: boolean) => void;
|
|
815
827
|
merchant_: Accessor<string>;
|
|
816
828
|
market_: Accessor<string>;
|
|
817
|
-
submit_query_: (new_query?: string) =>
|
|
829
|
+
submit_query_: (new_query?: string, before_navigate_?: VoidFunction) => Promise<boolean>;
|
|
818
830
|
class_list_?: Accessor<Record<string, boolean>>;
|
|
819
831
|
url_transformer_?: (url_object: URL) => unknown;
|
|
820
832
|
disable_scrolling_?: boolean;
|
|
@@ -1038,6 +1050,7 @@ export function general_modal_abstraction<StaticOptions extends {
|
|
|
1038
1050
|
close_modal_: VoidFunction;
|
|
1039
1051
|
open_modal_: (extra_options_for_modal?: ExtraOptionsProvidedOnOpen, on_dispose?: VoidFunction) => void;
|
|
1040
1052
|
register_closing_animation_: (animation: () => Promise<any>) => void;
|
|
1053
|
+
set_focus_target_after_close_: (get_target: (() => HTMLElement | undefined) | undefined) => void;
|
|
1041
1054
|
}) => Node_Array, modal_fn_opts: StaticOptions, parent?: HTMLElement | ShadowRoot): Promise<{
|
|
1042
1055
|
open_modal_: (extra_options_for_modal?: any, on_dispose?: VoidFunction | undefined) => Promise<void | undefined>;
|
|
1043
1056
|
close_modal_: () => void | undefined;
|