@depict-ai/ui 1.0.15 → 1.0.16

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,14 +1,10 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
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
- ],
10
- "main": "dist/main.js",
11
- "module": "dist/module.js",
6
+ "main": "dist/client/main.js",
7
+ "module": "dist/client/module.js",
12
8
  "sass": "styles.scss",
13
9
  "context": "node",
14
10
  "engines": {
@@ -33,18 +29,6 @@
33
29
  "Carl Riis <carl@depict.ai>"
34
30
  ],
35
31
  "targets": {
36
- "module": {
37
- "isLibrary": true,
38
- "source": "src/index.ts",
39
- "optimize": false,
40
- "context": "node"
41
- },
42
- "main": {
43
- "isLibrary": true,
44
- "source": "src/index.ts",
45
- "optimize": false,
46
- "context": "node"
47
- },
48
32
  "localesModule": {
49
33
  "isLibrary": true,
50
34
  "optimize": false,
@@ -61,7 +45,38 @@
61
45
  "outputFormat": "commonjs",
62
46
  "context": "node"
63
47
  },
64
- "types": {}
48
+ "client_esmodule": {
49
+ "isLibrary": true,
50
+ "source": "src/index.ts",
51
+ "optimize": false,
52
+ "outputFormat": "esmodule",
53
+ "context": "node",
54
+ "distDir": "dist/client/esmodule"
55
+ },
56
+ "client_commonjs": {
57
+ "isLibrary": true,
58
+ "source": "src/index.ts",
59
+ "optimize": false,
60
+ "context": "node",
61
+ "outputFormat": "commonjs",
62
+ "distDir": "dist/client/commonjs"
63
+ },
64
+ "server_esmodule": {
65
+ "isLibrary": true,
66
+ "source": "src/index.ts",
67
+ "optimize": false,
68
+ "outputFormat": "esmodule",
69
+ "context": "node",
70
+ "distDir": "dist/server/esmodule"
71
+ },
72
+ "server_commonjs": {
73
+ "isLibrary": true,
74
+ "source": "src/index.ts",
75
+ "optimize": false,
76
+ "context": "node",
77
+ "outputFormat": "commonjs",
78
+ "distDir": "dist/server/commonjs"
79
+ }
65
80
  },
66
81
  "files": [
67
82
  "/dist",
@@ -72,10 +87,17 @@
72
87
  "exports": {
73
88
  "./styles.scss": "./styles.scss",
74
89
  ".": {
75
- "import": "./dist/module.js",
76
- "require": "./dist/main.js",
77
90
  "types": "./dist/index.d.ts",
78
- "default": "./dist/module.js"
91
+ "browser": {
92
+ "import": "./dist/client/module.js",
93
+ "require": "./dist/client/main.js",
94
+ "default": "./dist/client/module.js"
95
+ },
96
+ "node": {
97
+ "import": "./dist/server/module.js",
98
+ "require": "./dist/server/main.js",
99
+ "default": "./dist/server/module.js"
100
+ }
79
101
  },
80
102
  "./locales": {
81
103
  "types": "./locales/index.d.ts",
@@ -102,10 +124,11 @@
102
124
  "ts-jest": "^29.0.3"
103
125
  },
104
126
  "dependencies": {
105
- "@depict-ai/plp-styling": "^1.0.13",
106
- "@depict-ai/types": "^1.0.16",
107
- "@depict-ai/utilishared": "^1.0.12",
127
+ "@depict-ai/plp-styling": "^1.0.14",
128
+ "@depict-ai/types": "^1.0.17",
129
+ "@depict-ai/utilishared": "^1.0.13",
108
130
  "solid-js": "^1.7.3"
109
131
  },
110
- "types": "dist/index.d.ts"
132
+ "types": "dist/index.d.ts",
133
+ "type": "module"
111
134
  }
package/styles.scss CHANGED
@@ -1 +1 @@
1
- @forward "@depict-ai/plp-styling";
1
+ @forward "@depict-ai/plp-styling";