@depict-ai/ui 4.0.3 → 4.0.4
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 +677 -600
- package/ES10/index.d.ts +8 -2
- package/ES10/index.js +677 -600
- package/latest/index.cjs +674 -599
- package/latest/index.d.ts +8 -2
- package/latest/index.js +674 -599
- package/package.json +6 -6
- package/server/ES10/index.cjs +206 -137
- package/server/ES10/index.d.ts +8 -2
- package/server/ES10/index.js +206 -137
- package/server/latest/index.cjs +206 -139
- package/server/latest/index.d.ts +8 -2
- package/server/latest/index.js +206 -139
package/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.0.
|
|
13
|
+
export const version = "4.0.4";
|
|
14
14
|
export type ModalAlignmentSignals = {
|
|
15
15
|
body_: Signal<JSX.CSSProperties>;
|
|
16
16
|
field_: Signal<JSX.CSSProperties>;
|
|
@@ -543,7 +543,8 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
|
|
|
543
543
|
content_search_enabled_,
|
|
544
544
|
sorting_query_param_,
|
|
545
545
|
filter_query_param_prefix_,
|
|
546
|
-
setSearchFieldOuterWidth_
|
|
546
|
+
setSearchFieldOuterWidth_,
|
|
547
|
+
forceUseDiv_
|
|
547
548
|
}: {
|
|
548
549
|
search_field_value_: Signal<string>;
|
|
549
550
|
get_search_query_: Accessor<string>;
|
|
@@ -567,6 +568,10 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
|
|
|
567
568
|
sorting_query_param_: string;
|
|
568
569
|
filter_query_param_prefix_: string;
|
|
569
570
|
setSearchFieldOuterWidth_?: Setter<number>;
|
|
571
|
+
/**
|
|
572
|
+
* Whether to use a div instead of a <dialog>. Absolutely not recommended for anyone except the style editor in shopify where the modal shouldn't be overlaid over the whole page.
|
|
573
|
+
*/
|
|
574
|
+
forceUseDiv_?: boolean;
|
|
570
575
|
instant_results_options_: {
|
|
571
576
|
min_products_to_fetch_: number;
|
|
572
577
|
has_sort_or_filters_: Accessor<boolean>;
|
|
@@ -1238,6 +1243,7 @@ export type OpenModalArguments = [options_for_modal?: {
|
|
|
1238
1243
|
class_list_?: Accessor<Record<string, boolean>>;
|
|
1239
1244
|
selected_text_range_?: readonly [number | null, number | null] | [number | null, number | null];
|
|
1240
1245
|
dont_sync_search_field_value_except_on_submit_?: boolean;
|
|
1246
|
+
forceUseDiv_?: boolean;
|
|
1241
1247
|
}, on_dispose?: VoidFunction];
|
|
1242
1248
|
export const get_search_query_updating_blocked_signal: (depict_search: DepictSearch<any>) => Signal<boolean> | undefined;
|
|
1243
1249
|
export class DepictSearch<InputDisplay extends Display, OutputDisplay extends ModernDisplay | never = InputDisplay extends ModernDisplay ? ModernDisplayWithPageUrl<InputDisplay> : never> {
|