@empathyco/x-components 8.12.1 → 8.12.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.12.2](https://github.com/empathyco/x/compare/@empathyco/x-components@8.12.1...@empathyco/x-components@8.12.2) (2026-08-25)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **browse:** fix load page from url issue (#2156)
11
+
12
+
6
13
  ## [8.12.1](https://github.com/empathyco/x/compare/@empathyco/x-components@8.12.0...@empathyco/x-components@8.12.1) (2026-08-21)
7
14
 
8
15
  ### Bug Fixes
@@ -6,13 +6,9 @@
6
6
  * @param urlParams - List of params from the url.
7
7
  * @public
8
8
  */
9
- const setUrlParams = ({ commit, state }, { browseValue, browseField, page, sort }) => {
10
- const currentCategory = state.selectedCategory;
9
+ const setUrlParams = ({ commit }, { browseValue, browseField, page, sort }) => {
11
10
  commit('setSelectedCategory', { browseValue, browseField });
12
- commit('setPage', !currentCategory ||
13
- (currentCategory.browseValue === browseValue && currentCategory.browseField === browseField)
14
- ? page
15
- : 1);
11
+ commit('setPage', browseValue && browseField ? page : 1);
16
12
  commit('setSort', browseValue && browseField ? sort : '');
17
13
  };
18
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"set-url-params.action.js","sources":["../../../../../../src/x-modules/browse/store/actions/set-url-params.action.ts"],"sourcesContent":["import type { BrowseXStoreModule } from '../types'\n\n/**\n * Default implementation for the {@link BrowseActions.setUrlParams}.\n *\n * @param context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,\n * provided by Vuex.\n * @param urlParams - List of params from the url.\n * @public\n */\nexport const setUrlParams: BrowseXStoreModule['actions']['setUrlParams'] = (\n { commit, state },\n { browseValue, browseField, page, sort },\n) => {\n const currentCategory = state.selectedCategory\n\n commit('setSelectedCategory', { browseValue, browseField })\n commit(\n 'setPage',\n !currentCategory ||\n (currentCategory.browseValue === browseValue && currentCategory.browseField === browseField)\n ? page\n : 1,\n )\n commit('setSort', browseValue && browseField ? sort : '')\n}\n"],"names":[],"mappings":"AAEA;;;;;;;AAOG;MACU,YAAY,GAAkD,CACzE,EAAE,MAAM,EAAE,KAAK,EAAE,EACjB,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,KACtC;AACF,IAAA,MAAM,eAAe,GAAG,KAAK,CAAC,gBAAgB;IAE9C,MAAM,CAAC,qBAAqB,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAC3D,IAAA,MAAM,CACJ,SAAS,EACT,CAAC,eAAe;SACb,eAAe,CAAC,WAAW,KAAK,WAAW,IAAI,eAAe,CAAC,WAAW,KAAK,WAAW;AAC3F,UAAE;UACA,CAAC,CACN;AACD,IAAA,MAAM,CAAC,SAAS,EAAE,WAAW,IAAI,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC;AAC3D;;;;"}
1
+ {"version":3,"file":"set-url-params.action.js","sources":["../../../../../../src/x-modules/browse/store/actions/set-url-params.action.ts"],"sourcesContent":["import type { BrowseXStoreModule } from '../types'\n\n/**\n * Default implementation for the {@link BrowseActions.setUrlParams}.\n *\n * @param context - The {@link https://vuex.vuejs.org/guide/actions.html | context} of the actions,\n * provided by Vuex.\n * @param urlParams - List of params from the url.\n * @public\n */\nexport const setUrlParams: BrowseXStoreModule['actions']['setUrlParams'] = (\n { commit },\n { browseValue, browseField, page, sort },\n) => {\n commit('setSelectedCategory', { browseValue, browseField })\n commit('setPage', browseValue && browseField ? page : 1)\n commit('setSort', browseValue && browseField ? sort : '')\n}\n"],"names":[],"mappings":"AAEA;;;;;;;AAOG;AACI,MAAM,YAAY,GAAkD,CACzE,EAAE,MAAM,EAAE,EACV,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,KACtC;IACF,MAAM,CAAC,qBAAqB,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAC3D,IAAA,MAAM,CAAC,SAAS,EAAE,WAAW,IAAI,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC;AACxD,IAAA,MAAM,CAAC,SAAS,EAAE,WAAW,IAAI,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC;AAC3D;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "8.12.1",
3
+ "version": "8.12.2",
4
4
  "description": "Empathy X Components",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -117,5 +117,5 @@
117
117
  "access": "public",
118
118
  "directory": "dist"
119
119
  },
120
- "gitHead": "f977f48d5d56e7b71fd494622c3566291bd41693"
120
+ "gitHead": "4364944c8845c6ccd36aaeb64a76d098bab7b473"
121
121
  }
@@ -1 +1 @@
1
- {"version":3,"file":"set-url-params.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/browse/store/actions/set-url-params.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,cAAc,CAetE,CAAA"}
1
+ {"version":3,"file":"set-url-params.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/browse/store/actions/set-url-params.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,cAAc,CAOtE,CAAA"}