@depict-ai/ui 1.0.14 → 1.0.15

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.
@@ -1,89 +1,89 @@
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;
89
- export const defaultLocale: 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;
89
+ export const defaultLocale: 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 $0f11d1c8c78bac40$var$english_base_translation = {
4
4
  "of_": "of",
5
5
  "sorting_text_": "Sort",
@@ -16,8 +16,8 @@ $parcel$export(module.exports, "pt", () => $2d187e768d780a64$export$84175d5f1cb4
16
16
  $parcel$export(module.exports, "es", () => $2d187e768d780a64$export$ca5e4045a55e76d2);
17
17
  $parcel$export(module.exports, "sv", () => $2d187e768d780a64$export$65540e5f7f6e7dce);
18
18
  $parcel$export(module.exports, "defaultLocale", () => $2d187e768d780a64$export$d7f512c98c859244);
19
- /**
20
- * Exported naming follows IETF BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
19
+ /**
20
+ * Exported naming follows IETF BCP 47: https://en.wikipedia.org/wiki/IETF_language_tag
21
21
  */ const $f1b6d8431ecd6285$var$english_base_translation = {
22
22
  "of_": "of",
23
23
  "sorting_text_": "Sort",
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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
+ "source": [
7
+ "src/index.ts",
8
+ "src/locales/index.ts"
9
+ ],
6
10
  "main": "dist/main.js",
7
11
  "module": "dist/module.js",
8
12
  "sass": "styles.scss",
@@ -57,42 +61,10 @@
57
61
  "outputFormat": "commonjs",
58
62
  "context": "node"
59
63
  },
60
- "ssr_client_esmodule": {
61
- "isLibrary": true,
62
- "source": "src/index.ts",
63
- "optimize": false,
64
- "outputFormat": "esmodule",
65
- "context": "node",
66
- "distDir": "ssr/client/esmodule"
67
- },
68
- "ssr_client_commonjs": {
69
- "isLibrary": true,
70
- "source": "src/index.ts",
71
- "optimize": false,
72
- "context": "node",
73
- "outputFormat": "commonjs",
74
- "distDir": "ssr/client/commonjs"
75
- },
76
- "ssr_server_esmodule": {
77
- "isLibrary": true,
78
- "source": "src/index.ts",
79
- "optimize": false,
80
- "outputFormat": "esmodule",
81
- "context": "node",
82
- "distDir": "ssr/server/esmodule"
83
- },
84
- "ssr_server_commonjs": {
85
- "isLibrary": true,
86
- "source": "src/index.ts",
87
- "optimize": false,
88
- "context": "node",
89
- "outputFormat": "commonjs",
90
- "distDir": "ssr/server/commonjs"
91
- }
64
+ "types": {}
92
65
  },
93
66
  "files": [
94
67
  "/dist",
95
- "/ssr",
96
68
  "/locales",
97
69
  "README.md",
98
70
  "styles.scss"
@@ -100,9 +72,9 @@
100
72
  "exports": {
101
73
  "./styles.scss": "./styles.scss",
102
74
  ".": {
103
- "types": "./dist/index.d.ts",
104
75
  "import": "./dist/module.js",
105
76
  "require": "./dist/main.js",
77
+ "types": "./dist/index.d.ts",
106
78
  "default": "./dist/module.js"
107
79
  },
108
80
  "./locales": {
@@ -110,17 +82,6 @@
110
82
  "import": "./locales/index.js",
111
83
  "require": "./locales/require.js",
112
84
  "default": "./locales/index.js"
113
- },
114
- "./ssr": {
115
- "types": "./ssr/index.d.ts",
116
- "browser": {
117
- "import": "./ssr/client/module.js",
118
- "require": "./ssr/client/main.js"
119
- },
120
- "node": {
121
- "import": "./ssr/server/module.js",
122
- "require": "./ssr/server/main.js"
123
- }
124
85
  }
125
86
  },
126
87
  "devDependencies": {
@@ -141,11 +102,10 @@
141
102
  "ts-jest": "^29.0.3"
142
103
  },
143
104
  "dependencies": {
144
- "@depict-ai/plp-styling": "^1.0.12",
145
- "@depict-ai/types": "^1.0.11",
146
- "@depict-ai/utilishared": "^1.0.11",
105
+ "@depict-ai/plp-styling": "^1.0.13",
106
+ "@depict-ai/types": "^1.0.16",
107
+ "@depict-ai/utilishared": "^1.0.12",
147
108
  "solid-js": "^1.7.3"
148
109
  },
149
- "types": "dist/index.d.ts",
150
- "type": "module"
110
+ "types": "dist/index.d.ts"
151
111
  }
package/styles.scss CHANGED
@@ -1 +1 @@
1
- @forward "@depict-ai/plp-styling";
1
+ @forward "@depict-ai/plp-styling";