@orsetra/shared-ui 1.5.23 → 1.5.25
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.
|
@@ -19,7 +19,7 @@ const BASE_PATH = "/etc"
|
|
|
19
19
|
function parseItem(item: string): { name: string; path: string } {
|
|
20
20
|
const raw = item.startsWith(SECRET_PREFIX) ? item.slice(SECRET_PREFIX.length) : item
|
|
21
21
|
const at = raw.indexOf("@")
|
|
22
|
-
if (at === -1) return { name: raw, path: `${BASE_PATH}/camel` }
|
|
22
|
+
if (at === -1) return { name: raw, path: `${BASE_PATH}/camel/_resources` }
|
|
23
23
|
return { name: raw.slice(0, at), path: raw.slice(at + 1) }
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -82,7 +82,7 @@ export function ResourcesInput({ id, value, onChange, disabled = false, ...rest
|
|
|
82
82
|
|
|
83
83
|
const confirmPathEdit = (index: number) => {
|
|
84
84
|
const { name } = parseItem(items[index])
|
|
85
|
-
const fullPath = editingPathSuffix ? `${BASE_PATH}/${editingPathSuffix}` : `${BASE_PATH}/camel`
|
|
85
|
+
const fullPath = editingPathSuffix ? `${BASE_PATH}/${editingPathSuffix}` : `${BASE_PATH}/camel/_resources`
|
|
86
86
|
const next = items.map((item, i) => i === index ? buildItem(name, fullPath) : item)
|
|
87
87
|
setItems(next)
|
|
88
88
|
onChange?.(next)
|
|
@@ -123,7 +123,7 @@ export function ResourcesInput({ id, value, onChange, disabled = false, ...rest
|
|
|
123
123
|
if (e.key === "Escape") setEditingPathIndex(null)
|
|
124
124
|
}}
|
|
125
125
|
className="flex-1 text-sm font-mono text-ibm-gray-100 bg-transparent focus:outline-none min-w-0"
|
|
126
|
-
placeholder="camel"
|
|
126
|
+
placeholder="camel/_resources"
|
|
127
127
|
/>
|
|
128
128
|
</div>
|
|
129
129
|
) : (
|