@open-mercato/search 0.9.1-develop.7498.1.08d233a6cc → 0.9.1-develop.7513.1.ae2715553f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/search",
3
- "version": "0.9.1-develop.7498.1.08d233a6cc",
3
+ "version": "0.9.1-develop.7513.1.ae2715553f",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -127,9 +127,9 @@
127
127
  "zod": "^4.4.3"
128
128
  },
129
129
  "peerDependencies": {
130
- "@open-mercato/core": "0.9.1-develop.7498.1.08d233a6cc",
131
- "@open-mercato/queue": "0.9.1-develop.7498.1.08d233a6cc",
132
- "@open-mercato/shared": "0.9.1-develop.7498.1.08d233a6cc"
130
+ "@open-mercato/core": "0.9.1-develop.7513.1.ae2715553f",
131
+ "@open-mercato/queue": "0.9.1-develop.7513.1.ae2715553f",
132
+ "@open-mercato/shared": "0.9.1-develop.7513.1.ae2715553f"
133
133
  },
134
134
  "devDependencies": {
135
135
  "@types/jest": "^30.0.0",
@@ -31,8 +31,9 @@ describe('resolveEntityTypeLabel', () => {
31
31
  })
32
32
  })
33
33
 
34
- // Regression coverage for https://github.com/open-mercato/open-mercato/issues/6006:
35
- // wms, eudr and documents shipped no `search.entityType.<module>.<entity>` keys,
34
+ // Regression coverage for https://github.com/open-mercato/open-mercato/issues/6006
35
+ // and https://github.com/open-mercato/open-mercato/issues/7408:
36
+ // wms, eudr, documents and ecommerce shipped no `search.entityType.<module>.<entity>` keys,
36
37
  // so their chips silently fell back to a humanized id instead of the real label.
37
38
  // This loads each module's real `en.json` (not a mock) so a missing/renamed key
38
39
  // fails here instead of only being visible in the rendered UI.
@@ -41,6 +42,7 @@ describe('resolveEntityTypeLabel against the real module dictionaries', () => {
41
42
  ...loadModuleDictionary('../../../../../../../core/src/modules/wms/i18n'),
42
43
  ...loadModuleDictionary('../../../../../../../core/src/modules/eudr/i18n'),
43
44
  ...loadModuleDictionary('../../../../../../../documents/src/modules/documents/i18n'),
45
+ ...loadModuleDictionary('../../../../../../../core/src/modules/ecommerce/i18n'),
44
46
  }
45
47
  const t: TranslateFn = (key, fallbackOrParams) =>
46
48
  key in merged ? merged[key] : (typeof fallbackOrParams === 'string' ? fallbackOrParams : key)
@@ -54,6 +56,7 @@ describe('resolveEntityTypeLabel against the real module dictionaries', () => {
54
56
  ['eudr:eudr_plot', 'Plot'],
55
57
  ['eudr:eudr_evidence_submission', 'Evidence submission'],
56
58
  ['documents:document', 'Document'],
59
+ ['ecommerce:ecommerce_store', 'Store'],
57
60
  ])('resolves %s to its localized label, not a humanized fallback', (entityId, expectedLabel) => {
58
61
  const resolved = resolveEntityTypeLabel(t, entityId)
59
62
  expect(resolved).toBe(expectedLabel)