@rokkit/core 1.0.0-next.140 → 1.0.0-next.142

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,11 +1,3 @@
1
- /**
2
- * Remap legacy field-override keys to their BASE_FIELDS semantic equivalents.
3
- * e.g. { text: 'name' } → { label: 'name' }
4
- *
5
- * @param {Record<string, string> | null | undefined} fields
6
- * @returns {Record<string, string>}
7
- */
8
- export function normalizeFields(fields: Record<string, string> | null | undefined): Record<string, string>;
9
1
  /**
10
2
  * Generate a state icon mapping from a list of icon names
11
3
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.0.0-next.140",
3
+ "version": "1.0.0-next.142",
4
4
  "description": "Contains core utility functions and classes that can be used in various components.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/constants.js CHANGED
@@ -67,28 +67,6 @@ export const BASE_FIELDS = {
67
67
  selected: 'selected'
68
68
  }
69
69
 
70
- const LEGACY_KEY_MAP = {
71
- description: 'subtext',
72
- title: 'tooltip',
73
- image: 'avatar',
74
- target: 'hrefTarget'
75
- }
76
-
77
- /**
78
- * Remap legacy field-override keys to their BASE_FIELDS semantic equivalents.
79
- * e.g. { text: 'name' } → { label: 'name' }
80
- *
81
- * @param {Record<string, string> | null | undefined} fields
82
- * @returns {Record<string, string>}
83
- */
84
- export function normalizeFields(fields) {
85
- if (!fields || typeof fields !== 'object') return {}
86
- const result = {}
87
- for (const [key, value] of Object.entries(fields)) {
88
- result[LEGACY_KEY_MAP[key] ?? key] = value
89
- }
90
- return result
91
- }
92
70
 
93
71
  export const DEFAULT_ICONS = [
94
72
  'accordion-opened',