()
| 151 | }; |
| 152 | |
| 153 | const onPublishAuto = () => { |
| 154 | if (!parsed) return; |
| 155 | setPublishError(null); |
| 156 | |
| 157 | const components = publishableComponents(editedComponents); |
| 158 | if (components.length === 0) { |
| 159 | setPublishError("At least one component with a name is required."); |
| 160 | return; |
| 161 | } |
| 162 | |
| 163 | executeCreate({ |
| 164 | name: editedName || parsed.name, |
| 165 | description: editedDescription || parsed.description, |
| 166 | logo: autoLogo ?? parsed.logo ?? null, |
| 167 | repository: parsed.repository, |
| 168 | homepage: parsed.homepage ?? null, |
| 169 | keywords: parsed.keywords, |
| 170 | components, |
| 171 | }); |
| 172 | }; |
| 173 | |
| 174 | const onPublishManual = () => { |
| 175 | setPublishError(null); |
nothing calls this directly
no test coverage detected