@aglyn/plugins-marketplace 1.0.0-beta.149 → 1.0.0-beta.151

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.
Files changed (92) hide show
  1. package/package.json +15 -11
  2. package/src/lib/components/edit-listing-dialog.component.d.ts +20 -0
  3. package/src/lib/components/edit-listing-dialog.component.js +51 -0
  4. package/src/lib/components/edit-listing-dialog.component.js.map +1 -0
  5. package/src/lib/components/listing-detail-editor.component.d.ts +24 -0
  6. package/src/lib/components/listing-detail-editor.component.js +457 -0
  7. package/src/lib/components/listing-detail-editor.component.js.map +1 -0
  8. package/src/lib/components/listing-detail-page.component.d.ts +28 -0
  9. package/src/lib/components/listing-detail-page.component.js +151 -0
  10. package/src/lib/components/listing-detail-page.component.js.map +1 -0
  11. package/src/lib/components/listing-review-status.component.d.ts +67 -0
  12. package/src/lib/components/listing-review-status.component.js +301 -0
  13. package/src/lib/components/listing-review-status.component.js.map +1 -0
  14. package/src/lib/components/listing-verification-request.component.d.ts +40 -0
  15. package/src/lib/components/listing-verification-request.component.js +170 -0
  16. package/src/lib/components/listing-verification-request.component.js.map +1 -0
  17. package/src/lib/components/marketplace-hub.component.d.ts +43 -0
  18. package/src/lib/components/marketplace-hub.component.js +244 -0
  19. package/src/lib/components/marketplace-hub.component.js.map +1 -0
  20. package/src/lib/components/marketplace-reports-page.component.d.ts +23 -0
  21. package/src/lib/components/marketplace-reports-page.component.js +324 -0
  22. package/src/lib/components/marketplace-reports-page.component.js.map +1 -0
  23. package/src/lib/components/org-licences-panel.component.d.ts +73 -0
  24. package/src/lib/components/org-licences-panel.component.js +318 -0
  25. package/src/lib/components/org-licences-panel.component.js.map +1 -0
  26. package/src/lib/components/org-publish-panel.component.d.ts +45 -0
  27. package/src/lib/components/org-publish-panel.component.js +402 -0
  28. package/src/lib/components/org-publish-panel.component.js.map +1 -0
  29. package/src/lib/components/org-seller-panel.component.d.ts +28 -0
  30. package/src/lib/components/org-seller-panel.component.js +956 -0
  31. package/src/lib/components/org-seller-panel.component.js.map +1 -0
  32. package/src/lib/components/plugin-review-detail.component.d.ts +16 -0
  33. package/src/lib/components/plugin-review-detail.component.js +1438 -0
  34. package/src/lib/components/plugin-review-detail.component.js.map +1 -0
  35. package/src/lib/components/plugin-reviews-queue.component.d.ts +13 -0
  36. package/src/lib/components/plugin-reviews-queue.component.js +385 -0
  37. package/src/lib/components/plugin-reviews-queue.component.js.map +1 -0
  38. package/src/lib/components/plugin-reviews-surface.component.d.ts +19 -0
  39. package/src/lib/components/plugin-reviews-surface.component.js +46 -0
  40. package/src/lib/components/plugin-reviews-surface.component.js.map +1 -0
  41. package/src/lib/components/publish-plugin-form.component.d.ts +61 -0
  42. package/src/lib/components/publish-plugin-form.component.js +857 -0
  43. package/src/lib/components/publish-plugin-form.component.js.map +1 -0
  44. package/src/lib/components/publish-plugin-page.component.d.ts +29 -0
  45. package/src/lib/components/publish-plugin-page.component.js +92 -0
  46. package/src/lib/components/publish-plugin-page.component.js.map +1 -0
  47. package/src/lib/components/publisher-profile-page.component.d.ts +13 -0
  48. package/src/lib/components/publisher-profile-page.component.js +261 -0
  49. package/src/lib/components/publisher-profile-page.component.js.map +1 -0
  50. package/src/lib/constants/listing-media.d.ts +28 -0
  51. package/src/lib/constants/listing-media.js +28 -0
  52. package/src/lib/constants/listing-media.js.map +1 -0
  53. package/src/lib/model/listing-social-card.d.ts +94 -0
  54. package/src/lib/model/listing-social-card.js +177 -0
  55. package/src/lib/model/listing-social-card.js.map +1 -0
  56. package/src/lib/model/marketplace-paths.d.ts +54 -0
  57. package/src/lib/model/marketplace-paths.js +59 -0
  58. package/src/lib/model/marketplace-paths.js.map +1 -0
  59. package/src/lib/model/payout-readiness.d.ts +81 -0
  60. package/src/lib/model/payout-readiness.js +52 -0
  61. package/src/lib/model/payout-readiness.js.map +1 -0
  62. package/src/lib/model/plugin-rejection-categories.d.ts +66 -0
  63. package/src/lib/model/plugin-rejection-categories.js +124 -0
  64. package/src/lib/model/plugin-rejection-categories.js.map +1 -0
  65. package/src/lib/model/plugin-review-checklist.d.ts +62 -0
  66. package/src/lib/model/plugin-review-checklist.js +131 -0
  67. package/src/lib/model/plugin-review-checklist.js.map +1 -0
  68. package/src/lib/model/plugin-review-status.d.ts +104 -0
  69. package/src/lib/model/plugin-review-status.js +126 -0
  70. package/src/lib/model/plugin-review-status.js.map +1 -0
  71. package/src/lib/model/seller-ledger-totals.d.ts +100 -0
  72. package/src/lib/model/seller-ledger-totals.js +96 -0
  73. package/src/lib/model/seller-ledger-totals.js.map +1 -0
  74. package/src/lib/plugin.js +170 -40
  75. package/src/lib/plugin.js.map +1 -1
  76. package/src/lib/server/admin-reports.d.ts +18 -0
  77. package/src/lib/server/admin-reports.js +280 -0
  78. package/src/lib/server/admin-reports.js.map +1 -0
  79. package/src/lib/server/admin-reviews.d.ts +18 -0
  80. package/src/lib/server/admin-reviews.js +1341 -0
  81. package/src/lib/server/admin-reviews.js.map +1 -0
  82. package/src/lib/server/listing-social-card.server.d.ts +24 -0
  83. package/src/lib/server/listing-social-card.server.js +65 -0
  84. package/src/lib/server/listing-social-card.server.js.map +1 -0
  85. package/src/lib/server/publisher-review-email.d.ts +54 -0
  86. package/src/lib/server/publisher-review-email.js +85 -0
  87. package/src/lib/server/publisher-review-email.js.map +1 -0
  88. package/src/lib/server/revoke-cache-drop.d.ts +59 -0
  89. package/src/lib/server/revoke-cache-drop.js +74 -0
  90. package/src/lib/server/revoke-cache-drop.js.map +1 -0
  91. package/src/lib/server.js +47 -0
  92. package/src/lib/server.js.map +1 -1
@@ -0,0 +1,385 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ 'use client';
17
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
18
+ import { PageHeaderHelp } from "@aglyn/aglyn";
19
+ import { AppLink, CardDisplay } from "@aglyn/shared-ui-jsx";
20
+ import { Alert, Chip, MenuItem, Skeleton, Stack, TextField, Typography } from "@mui/material";
21
+ import { useCallback, useEffect, useMemo, useState } from "react";
22
+ import { useUser } from "@aglyn/tenant-feature-instance";
23
+ import { authorizedFetch } from "@aglyn/shared-util-http/authorized-token";
24
+ import { pluginDocsHelp } from "@aglyn/aglyn";
25
+ import { reviewStatusMeaning } from "../model/plugin-review-status.js";
26
+ const STATUS_FILTERS = [
27
+ {
28
+ value: 'all',
29
+ label: 'All statuses'
30
+ },
31
+ {
32
+ value: 'submitted',
33
+ label: 'Submitted'
34
+ },
35
+ {
36
+ value: 'in_review',
37
+ label: 'In review'
38
+ },
39
+ {
40
+ value: 'listed',
41
+ label: 'Listed'
42
+ },
43
+ {
44
+ value: 'verified',
45
+ label: 'Verified'
46
+ },
47
+ {
48
+ value: 'hidden',
49
+ label: 'Taken down'
50
+ }
51
+ ];
52
+ /**
53
+ * Staff marketplace review index (AGL-961).
54
+ *
55
+ * Scanning surface only: rows carry just enough to pick the right listing,
56
+ * and every consequential action — verdicts, realm trust, takedown — lives
57
+ * on the detail page. The previous version stacked all of it inline, which
58
+ * meant the most destructive controls in the platform sat as same-weight
59
+ * text buttons in a wall of caption text.
60
+ */ export function PluginReviewsQueue({ basePath }) {
61
+ const { data: user } = useUser();
62
+ const [queue, setQueue] = useState([]);
63
+ const [listed, setListed] = useState([]);
64
+ const [verificationRequests, setVerificationRequests] = useState([]);
65
+ const [publishers, setPublishers] = useState({});
66
+ const [loaded, setLoaded] = useState(false);
67
+ const [loadError, setLoadError] = useState(null);
68
+ const [search, setSearch] = useState('');
69
+ const [status, setStatus] = useState('all');
70
+ const refresh = useCallback(async ()=>{
71
+ const response = await authorizedFetch(user, '/api/marketplace/admin/reviews');
72
+ const payload = await response.json().catch(()=>({}));
73
+ if (response.ok) {
74
+ var _ref, _ref1, _ref2, _ref3;
75
+ setLoadError(null);
76
+ setQueue((_ref = payload == null ? void 0 : payload.queue) != null ? _ref : []);
77
+ setListed((_ref1 = payload == null ? void 0 : payload.listed) != null ? _ref1 : []);
78
+ setVerificationRequests((_ref2 = payload == null ? void 0 : payload.verificationRequests) != null ? _ref2 : []);
79
+ setPublishers((_ref3 = payload == null ? void 0 : payload.publishers) != null ? _ref3 : {});
80
+ } else {
81
+ var _ref4;
82
+ // Named, not swallowed. An empty queue and a queue that could not be
83
+ // read look identical, and only one of them means there is no work.
84
+ setLoadError((_ref4 = payload == null ? void 0 : payload.error) != null ? _ref4 : `Loading the queue failed (${response.status})`);
85
+ }
86
+ setLoaded(true);
87
+ }, [
88
+ user
89
+ ]);
90
+ useEffect(()=>{
91
+ if (user) void refresh();
92
+ }, [
93
+ user,
94
+ refresh
95
+ ]);
96
+ const publisherName = useCallback((profileId)=>{
97
+ var _publishers_profileId;
98
+ return (_publishers_profileId = publishers[profileId]) != null ? _publishers_profileId : profileId;
99
+ }, [
100
+ publishers
101
+ ]);
102
+ // One predicate for both sections, so a search never means two things.
103
+ const matches = useCallback((row)=>{
104
+ const term = search.trim().toLowerCase();
105
+ if (term && ![
106
+ row.displayName,
107
+ row.listingId,
108
+ publisherName(row.profileId)
109
+ ].some((field)=>String(field).toLowerCase().includes(term))) {
110
+ return false;
111
+ }
112
+ if (status === 'all') return true;
113
+ if (status === 'hidden') return row.hidden;
114
+ return row.reviewStatus === status;
115
+ }, [
116
+ search,
117
+ status,
118
+ publisherName
119
+ ]);
120
+ const visibleQueue = useMemo(()=>queue.filter(matches), [
121
+ queue,
122
+ matches
123
+ ]);
124
+ const visibleListed = useMemo(()=>listed.filter(matches), [
125
+ listed,
126
+ matches
127
+ ]);
128
+ const visibleVerification = useMemo(()=>verificationRequests.filter(matches), [
129
+ verificationRequests,
130
+ matches
131
+ ]);
132
+ const filtering = search.trim().length > 0 || status !== 'all';
133
+ const row = (key, listingId, name, profileId, chips, caption)=>/*#__PURE__*/ _jsxs(Stack, {
134
+ spacing: 0.25,
135
+ sx: {
136
+ py: 1,
137
+ borderBottom: 1,
138
+ borderColor: 'divider',
139
+ '&:last-of-type': {
140
+ borderBottom: 0
141
+ }
142
+ },
143
+ children: [
144
+ /*#__PURE__*/ _jsxs(Stack, {
145
+ direction: "row",
146
+ spacing: 1,
147
+ sx: {
148
+ alignItems: 'center',
149
+ flexWrap: 'wrap'
150
+ },
151
+ children: [
152
+ /*#__PURE__*/ _jsx(AppLink, {
153
+ href: `${basePath}/${encodeURIComponent(listingId)}`,
154
+ children: /*#__PURE__*/ _jsx(Typography, {
155
+ variant: "subtitle2",
156
+ component: "span",
157
+ children: name
158
+ })
159
+ }),
160
+ chips
161
+ ]
162
+ }),
163
+ /*#__PURE__*/ _jsx(Typography, {
164
+ variant: "caption",
165
+ color: "text.secondary",
166
+ children: `${publisherName(profileId)} · ${caption}`
167
+ })
168
+ ]
169
+ }, key);
170
+ return /*#__PURE__*/ _jsxs(_Fragment, {
171
+ children: [
172
+ /*#__PURE__*/ _jsx(PageHeaderHelp, {
173
+ topic: "staffConsole",
174
+ anchor: "#plugin-reviews"
175
+ }),
176
+ /*#__PURE__*/ _jsxs(Stack, {
177
+ spacing: 3,
178
+ children: [
179
+ /*#__PURE__*/ _jsxs(Stack, {
180
+ direction: "row",
181
+ spacing: 1,
182
+ sx: {
183
+ alignItems: 'center',
184
+ flexWrap: 'wrap'
185
+ },
186
+ children: [
187
+ /*#__PURE__*/ _jsx(TextField, {
188
+ size: "small",
189
+ placeholder: "Search name, publisher or listing id",
190
+ value: search,
191
+ onChange: (event)=>setSearch(event.target.value),
192
+ sx: {
193
+ minWidth: 320
194
+ }
195
+ }),
196
+ /*#__PURE__*/ _jsx(TextField, {
197
+ size: "small",
198
+ select: true,
199
+ value: status,
200
+ onChange: (event)=>setStatus(event.target.value),
201
+ sx: {
202
+ minWidth: 180
203
+ },
204
+ children: STATUS_FILTERS.map((option)=>/*#__PURE__*/ _jsx(MenuItem, {
205
+ value: option.value,
206
+ children: option.label
207
+ }, option.value))
208
+ })
209
+ ]
210
+ }),
211
+ loadError ? /*#__PURE__*/ _jsx(Alert, {
212
+ severity: "error",
213
+ children: loadError
214
+ }) : null,
215
+ !loaded ? /*#__PURE__*/ _jsxs(Stack, {
216
+ spacing: 2,
217
+ children: [
218
+ /*#__PURE__*/ _jsx(Skeleton, {
219
+ variant: "rounded",
220
+ height: 140
221
+ }),
222
+ /*#__PURE__*/ _jsx(Skeleton, {
223
+ variant: "rounded",
224
+ height: 200
225
+ })
226
+ ]
227
+ }) : /*#__PURE__*/ _jsxs(_Fragment, {
228
+ children: [
229
+ visibleVerification.length ? /*#__PURE__*/ _jsxs(CardDisplay, {
230
+ header: `Verification requested (${visibleVerification.length})`,
231
+ help: pluginDocsHelp('publisherHandbook', {
232
+ anchor: '#asking-to-be-verified',
233
+ excerpt: 'Publishers who asked to be VERIFIED — a claim about who they are, ' + 'separate from reviewing any one version.'
234
+ }),
235
+ contentGutterX: true,
236
+ contentGutterY: true,
237
+ children: [
238
+ /*#__PURE__*/ _jsx(Typography, {
239
+ variant: "caption",
240
+ color: "text.secondary",
241
+ sx: {
242
+ display: 'block',
243
+ mb: 1
244
+ },
245
+ children: 'These plugins are already live. The publisher has ' + 'asked us to vouch for who they are — granting adds ' + 'the badge and changes nothing about installability.'
246
+ }),
247
+ /*#__PURE__*/ _jsx(Stack, {
248
+ children: visibleVerification.map((entry)=>row(`verify-${entry.listingId}`, entry.listingId, entry.displayName, entry.profileId, /*#__PURE__*/ _jsxs(_Fragment, {
249
+ children: [
250
+ /*#__PURE__*/ _jsx(Chip, {
251
+ size: "small",
252
+ color: "info",
253
+ label: "Verification requested"
254
+ }),
255
+ /*#__PURE__*/ _jsx(Chip, {
256
+ size: "small",
257
+ color: reviewStatusMeaning(entry.reviewStatus).color,
258
+ label: reviewStatusMeaning(entry.reviewStatus).label
259
+ }),
260
+ /*#__PURE__*/ _jsx(Chip, {
261
+ size: "small",
262
+ variant: "outlined",
263
+ label: `v${entry.version || '—'}`
264
+ })
265
+ ]
266
+ }), 'Awaiting a verification decision'))
267
+ })
268
+ ]
269
+ }) : null,
270
+ /*#__PURE__*/ _jsxs(CardDisplay, {
271
+ header: `Awaiting review (${visibleQueue.length})`,
272
+ help: pluginDocsHelp('manifestAndEnvs', {
273
+ anchor: '#review--trust-lifecycle',
274
+ excerpt: 'Submissions waiting on a staff verdict. Open one to read its manifest, verifier findings and act.'
275
+ }),
276
+ contentGutterX: true,
277
+ contentGutterY: true,
278
+ children: [
279
+ /*#__PURE__*/ _jsx(Typography, {
280
+ variant: "caption",
281
+ color: "text.secondary",
282
+ sx: {
283
+ display: 'block',
284
+ mb: 1
285
+ },
286
+ children: 'Submitted and In review are not installable by anyone.'
287
+ }),
288
+ visibleQueue.length ? /*#__PURE__*/ _jsx(Stack, {
289
+ children: visibleQueue.map((entry)=>row(entry.listingId, entry.listingId, entry.displayName, entry.profileId, /*#__PURE__*/ _jsxs(_Fragment, {
290
+ children: [
291
+ /*#__PURE__*/ _jsx(Chip, {
292
+ size: "small",
293
+ color: reviewStatusMeaning(entry.reviewStatus).color,
294
+ label: reviewStatusMeaning(entry.reviewStatus).label
295
+ }),
296
+ /*#__PURE__*/ _jsx(Chip, {
297
+ size: "small",
298
+ variant: "outlined",
299
+ label: `v${entry.version || '—'}`
300
+ }),
301
+ entry.private ? /*#__PURE__*/ _jsx(Chip, {
302
+ size: "small",
303
+ variant: "outlined",
304
+ label: "Private"
305
+ }) : null,
306
+ entry.license || entry.private ? null : /*#__PURE__*/ _jsx(Chip, {
307
+ size: "small",
308
+ color: "warning",
309
+ label: "No license"
310
+ })
311
+ ]
312
+ }), entry.priceUsd > 0 ? `$${entry.priceUsd}` : 'Free'))
313
+ }) : /*#__PURE__*/ _jsx(Alert, {
314
+ severity: filtering ? 'info' : 'success',
315
+ children: filtering ? 'No submissions match this filter.' : 'No plugin submissions waiting for review.'
316
+ })
317
+ ]
318
+ }),
319
+ /*#__PURE__*/ _jsxs(CardDisplay, {
320
+ header: `Listed plugins (${visibleListed.length})`,
321
+ help: pluginDocsHelp('publisherHandbook', {
322
+ anchor: '#review-what-happens-after-you-publish',
323
+ excerpt: 'Listings already installable. Listing is the step that makes a ' + 'version reachable from Browse.'
324
+ }),
325
+ contentGutterX: true,
326
+ contentGutterY: true,
327
+ children: [
328
+ /*#__PURE__*/ _jsx(Typography, {
329
+ variant: "caption",
330
+ color: "text.secondary",
331
+ sx: {
332
+ display: 'block',
333
+ mb: 1
334
+ },
335
+ children: 'Both states are live — installable by every workspace. ' + 'Verified additionally carries the reviewed badge on ' + 'its listing page; it does not change installability. ' + // The sentence above is false for a private row
336
+ // (AGL-968/995), and it sits directly over the rows
337
+ // it would misdescribe.
338
+ 'Rows marked Private are the exception: approved and ' + 'live, but only for the org that published them.'
339
+ }),
340
+ visibleListed.length ? /*#__PURE__*/ _jsx(Stack, {
341
+ children: visibleListed.map((entry)=>row(entry.listingId, entry.listingId, entry.displayName, entry.profileId, /*#__PURE__*/ _jsxs(_Fragment, {
342
+ children: [
343
+ /*#__PURE__*/ _jsx(Chip, {
344
+ size: "small",
345
+ color: reviewStatusMeaning(entry.reviewStatus).color,
346
+ label: reviewStatusMeaning(entry.reviewStatus).label
347
+ }),
348
+ /*#__PURE__*/ _jsx(Chip, {
349
+ size: "small",
350
+ variant: "outlined",
351
+ label: `v${entry.latestVersion || '—'}`
352
+ }),
353
+ entry.private ? /*#__PURE__*/ _jsx(Chip, {
354
+ size: "small",
355
+ variant: "outlined",
356
+ label: "Private"
357
+ }) : null,
358
+ entry.realmVersions ? /*#__PURE__*/ _jsx(Chip, {
359
+ size: "small",
360
+ color: "success",
361
+ label: `${entry.realmVersions} realm-trusted`
362
+ }) : null,
363
+ entry.hidden ? /*#__PURE__*/ _jsx(Chip, {
364
+ size: "small",
365
+ color: "error",
366
+ label: "Taken down"
367
+ }) : null
368
+ ]
369
+ }), `${entry.versionCount} version${entry.versionCount === 1 ? '' : 's'}${entry.hidden && entry.hiddenReason ? ` · ${entry.hiddenReason}` : ''}`))
370
+ }) : /*#__PURE__*/ _jsx(Alert, {
371
+ severity: "info",
372
+ children: filtering ? 'No listed plugins match this filter.' : 'No listed plugins yet.'
373
+ })
374
+ ]
375
+ })
376
+ ]
377
+ })
378
+ ]
379
+ })
380
+ ]
381
+ });
382
+ }
383
+ export default PluginReviewsQueue;
384
+
385
+ //# sourceMappingURL=plugin-reviews-queue.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/plugins/marketplace/src/lib/components/plugin-reviews-queue.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n'use client'\n\nimport { ICON_VARIANT_SYMBOL_FLAG } from '@aglyn/shared-data-enums'\nimport { PageHeaderHelp } from '@aglyn/aglyn'\nimport { AppLink, CardDisplay } from '@aglyn/shared-ui-jsx'\nimport {\n Alert,\n Chip,\n MenuItem,\n Skeleton,\n Stack,\n TextField,\n Typography,\n} from '@mui/material'\nimport { useCallback, useEffect, useMemo, useState } from 'react'\nimport { useUser } from '@aglyn/tenant-feature-instance'\nimport { authorizedFetch } from '@aglyn/shared-util-http/authorized-token'\nimport { pluginDocsHelp } from '@aglyn/aglyn'\nimport { reviewStatusMeaning } from '../model/plugin-review-status'\n\ninterface QueueRow {\n listingId: string\n displayName: string\n description: string\n license: string\n categories: string[]\n profileId: string\n reviewStatus: string\n priceUsd: number\n version: string\n hidden: boolean\n /** Private plugin (AGL-968): reviewed identically, never listed. */\n private: boolean\n /** The publisher's standing ask for the Verified badge (AGL-1217). */\n verificationRequest?: { state?: string; requestedAt?: unknown } | null\n}\n\ninterface ListedRow {\n listingId: string\n displayName: string\n reviewStatus: string\n profileId: string\n latestVersion: string\n hidden: boolean\n hiddenReason: string\n realmVersions: number\n versionCount: number\n private: boolean\n}\n\nconst STATUS_FILTERS = [\n { value: 'all', label: 'All statuses' },\n { value: 'submitted', label: 'Submitted' },\n { value: 'in_review', label: 'In review' },\n { value: 'listed', label: 'Listed' },\n { value: 'verified', label: 'Verified' },\n { value: 'hidden', label: 'Taken down' },\n]\n\n/**\n * Staff marketplace review index (AGL-961).\n *\n * Scanning surface only: rows carry just enough to pick the right listing,\n * and every consequential action — verdicts, realm trust, takedown — lives\n * on the detail page. The previous version stacked all of it inline, which\n * meant the most destructive controls in the platform sat as same-weight\n * text buttons in a wall of caption text.\n */\nexport function PluginReviewsQueue({ basePath }: { basePath: string }) {\n const { data: user } = useUser()\n const [queue, setQueue] = useState<QueueRow[]>([])\n const [listed, setListed] = useState<ListedRow[]>([])\n const [verificationRequests, setVerificationRequests] = useState<QueueRow[]>(\n [],\n )\n const [publishers, setPublishers] = useState<Record<string, string>>({})\n const [loaded, setLoaded] = useState(false)\n const [loadError, setLoadError] = useState<string | null>(null)\n const [search, setSearch] = useState('')\n const [status, setStatus] = useState('all')\n\n const refresh = useCallback(async () => {\n const response = await authorizedFetch(user, '/api/marketplace/admin/reviews')\n const payload = await response.json().catch(() => ({}))\n if (response.ok) {\n setLoadError(null)\n setQueue(payload?.queue ?? [])\n setListed(payload?.listed ?? [])\n setVerificationRequests(payload?.verificationRequests ?? [])\n setPublishers(payload?.publishers ?? {})\n } else {\n // Named, not swallowed. An empty queue and a queue that could not be\n // read look identical, and only one of them means there is no work.\n setLoadError(\n payload?.error ?? `Loading the queue failed (${response.status})`,\n )\n }\n setLoaded(true)\n }, [user])\n\n useEffect(() => {\n if (user) void refresh()\n }, [user, refresh])\n\n const publisherName = useCallback(\n (profileId: string) => publishers[profileId] ?? profileId,\n [publishers],\n )\n\n // One predicate for both sections, so a search never means two things.\n const matches = useCallback(\n (row: { displayName: string; listingId: string; profileId: string; reviewStatus: string; hidden: boolean }) => {\n const term = search.trim().toLowerCase()\n if (\n term &&\n ![row.displayName, row.listingId, publisherName(row.profileId)].some(\n (field) => String(field).toLowerCase().includes(term),\n )\n ) {\n return false\n }\n if (status === 'all') return true\n if (status === 'hidden') return row.hidden\n return row.reviewStatus === status\n },\n [search, status, publisherName],\n )\n\n const visibleQueue = useMemo(() => queue.filter(matches), [queue, matches])\n const visibleListed = useMemo(() => listed.filter(matches), [listed, matches])\n const visibleVerification = useMemo(\n () => verificationRequests.filter(matches),\n [verificationRequests, matches],\n )\n const filtering = search.trim().length > 0 || status !== 'all'\n\n const row = (\n key: string,\n listingId: string,\n name: string,\n profileId: string,\n chips: React.ReactNode,\n caption: string,\n ) => (\n <Stack\n key={key}\n spacing={0.25}\n sx={{\n py: 1,\n borderBottom: 1,\n borderColor: 'divider',\n '&:last-of-type': { borderBottom: 0 },\n }}\n >\n <Stack\n direction=\"row\"\n spacing={1}\n sx={{ alignItems: 'center', flexWrap: 'wrap' }}\n >\n <AppLink href={`${basePath}/${encodeURIComponent(listingId)}`}>\n <Typography variant=\"subtitle2\" component=\"span\">\n {name}\n </Typography>\n </AppLink>\n {chips}\n </Stack>\n <Typography variant=\"caption\" color=\"text.secondary\">\n {`${publisherName(profileId)} · ${caption}`}\n </Typography>\n </Stack>\n )\n\n return (\n <>\n {/*\n The staff console's own topic, anchored. A `staffPages` entry carries\n one `docsTopic` and no anchor, and the staff console page is long\n enough that landing at the top of it is the AGL-2200 shape.\n */}\n <PageHeaderHelp topic=\"staffConsole\" anchor=\"#plugin-reviews\" />\n {/*\n The staff gate is the shell's: the generic staff route renders every\n plugin page inside `StaffOnly`, which renders nothing while the claim\n resolves and 404s a non-holder. Without it a non-staff visitor was\n told \"No plugin submissions waiting for review\" — the queue fetch\n 403s and the empty result reads as good news rather than a refusal\n (AGL-760).\n */}\n <Stack spacing={3}>\n <Stack\n direction=\"row\"\n spacing={1}\n sx={{ alignItems: 'center', flexWrap: 'wrap' }}\n >\n <TextField\n size=\"small\"\n placeholder=\"Search name, publisher or listing id\"\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n sx={{ minWidth: 320 }}\n />\n <TextField\n size=\"small\"\n select\n value={status}\n onChange={(event) => setStatus(event.target.value)}\n sx={{ minWidth: 180 }}\n >\n {STATUS_FILTERS.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </Stack>\n\n {loadError ? (\n <Alert severity=\"error\">{loadError}</Alert>\n ) : null}\n\n {!loaded ? (\n <Stack spacing={2}>\n <Skeleton variant=\"rounded\" height={140} />\n <Skeleton variant=\"rounded\" height={200} />\n </Stack>\n ) : (\n <>\n {/* Its own card, above the review queue (AGL-1217). A\n verification request is a different question from\n \"have these bytes been read\" — it is about the\n publisher, and it is answered by a different action.\n Folded into Awaiting review it would be invisible: a\n listing whose bytes are already approved does not\n appear there at all. Hidden when empty, so it costs\n nothing on the common day. */}\n {visibleVerification.length ? (\n <CardDisplay\n header={`Verification requested (${visibleVerification.length})`}\n help={pluginDocsHelp('publisherHandbook', {\n anchor: '#asking-to-be-verified',\n excerpt:\n 'Publishers who asked to be VERIFIED — a claim about who they are, ' +\n 'separate from reviewing any one version.',\n })}\n contentGutterX\n contentGutterY\n >\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n sx={{ display: 'block', mb: 1 }}\n >\n {'These plugins are already live. The publisher has ' +\n 'asked us to vouch for who they are — granting adds ' +\n 'the badge and changes nothing about installability.'}\n </Typography>\n <Stack>\n {visibleVerification.map((entry) =>\n row(\n `verify-${entry.listingId}`,\n entry.listingId,\n entry.displayName,\n entry.profileId,\n <>\n <Chip\n size=\"small\"\n color=\"info\"\n label=\"Verification requested\"\n />\n <Chip\n size=\"small\"\n color={reviewStatusMeaning(entry.reviewStatus).color}\n label={reviewStatusMeaning(entry.reviewStatus).label}\n />\n <Chip\n size=\"small\"\n variant=\"outlined\"\n label={`v${entry.version || '—'}`}\n />\n </>,\n 'Awaiting a verification decision',\n ),\n )}\n </Stack>\n </CardDisplay>\n ) : null}\n <CardDisplay\n header={`Awaiting review (${visibleQueue.length})`}\n help={pluginDocsHelp('manifestAndEnvs', {\n anchor: '#review--trust-lifecycle',\n excerpt:\n 'Submissions waiting on a staff verdict. Open one to read its manifest, verifier findings and act.',\n })}\n contentGutterX\n contentGutterY\n >\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n sx={{ display: 'block', mb: 1 }}\n >\n {'Submitted and In review are not installable by anyone.'}\n </Typography>\n {visibleQueue.length ? (\n <Stack>\n {visibleQueue.map((entry) =>\n row(\n entry.listingId,\n entry.listingId,\n entry.displayName,\n entry.profileId,\n <>\n <Chip\n size=\"small\"\n color={reviewStatusMeaning(entry.reviewStatus).color}\n label={reviewStatusMeaning(entry.reviewStatus).label}\n />\n <Chip\n size=\"small\"\n variant=\"outlined\"\n label={`v${entry.version || '—'}`}\n />\n {/* Same bar, smaller audience (AGL-968/995).\n Worth flagging so a reviewer knows the\n blast radius is one workspace — never so\n they review it more loosely. */}\n {entry.private ? (\n <Chip\n size=\"small\"\n variant=\"outlined\"\n label=\"Private\"\n />\n ) : null}\n {/* A private plugin has no marketplace listing\n page, so \"no license\" is not a finding. */}\n {entry.license || entry.private ? null : (\n <Chip\n size=\"small\"\n color=\"warning\"\n label=\"No license\"\n />\n )}\n </>,\n entry.priceUsd > 0 ? `$${entry.priceUsd}` : 'Free',\n ),\n )}\n </Stack>\n ) : (\n <Alert severity={filtering ? 'info' : 'success'}>\n {filtering\n ? 'No submissions match this filter.'\n : 'No plugin submissions waiting for review.'}\n </Alert>\n )}\n </CardDisplay>\n\n <CardDisplay\n header={`Listed plugins (${visibleListed.length})`}\n help={pluginDocsHelp('publisherHandbook', {\n anchor: '#review-what-happens-after-you-publish',\n excerpt:\n 'Listings already installable. Listing is the step that makes a ' +\n 'version reachable from Browse.',\n })}\n contentGutterX\n contentGutterY\n >\n {/* Listed vs Verified is the distinction reviewers get\n wrong (AGL-966): both are LIVE. Verified only adds a\n badge — it does not change who can install. */}\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n sx={{ display: 'block', mb: 1 }}\n >\n {'Both states are live — installable by every workspace. ' +\n 'Verified additionally carries the reviewed badge on ' +\n 'its listing page; it does not change installability. ' +\n // The sentence above is false for a private row\n // (AGL-968/995), and it sits directly over the rows\n // it would misdescribe.\n 'Rows marked Private are the exception: approved and ' +\n 'live, but only for the org that published them.'}\n </Typography>\n {visibleListed.length ? (\n <Stack>\n {visibleListed.map((entry) =>\n row(\n entry.listingId,\n entry.listingId,\n entry.displayName,\n entry.profileId,\n <>\n <Chip\n size=\"small\"\n color={reviewStatusMeaning(entry.reviewStatus).color}\n label={reviewStatusMeaning(entry.reviewStatus).label}\n />\n <Chip\n size=\"small\"\n variant=\"outlined\"\n label={`v${entry.latestVersion || '—'}`}\n />\n {entry.private ? (\n <Chip\n size=\"small\"\n variant=\"outlined\"\n label=\"Private\"\n />\n ) : null}\n {entry.realmVersions ? (\n <Chip\n size=\"small\"\n color=\"success\"\n label={`${entry.realmVersions} realm-trusted`}\n />\n ) : null}\n {entry.hidden ? (\n <Chip\n size=\"small\"\n color=\"error\"\n label=\"Taken down\"\n />\n ) : null}\n </>,\n `${entry.versionCount} version${\n entry.versionCount === 1 ? '' : 's'\n }${entry.hidden && entry.hiddenReason ? ` · ${entry.hiddenReason}` : ''}`,\n ),\n )}\n </Stack>\n ) : (\n <Alert severity=\"info\">\n {filtering\n ? 'No listed plugins match this filter.'\n : 'No listed plugins yet.'}\n </Alert>\n )}\n </CardDisplay>\n </>\n )}\n </Stack>\n </>\n )\n}\n\nexport default PluginReviewsQueue\n"],"names":["PageHeaderHelp","AppLink","CardDisplay","Alert","Chip","MenuItem","Skeleton","Stack","TextField","Typography","useCallback","useEffect","useMemo","useState","useUser","authorizedFetch","pluginDocsHelp","reviewStatusMeaning","STATUS_FILTERS","value","label","PluginReviewsQueue","basePath","data","user","queue","setQueue","listed","setListed","verificationRequests","setVerificationRequests","publishers","setPublishers","loaded","setLoaded","loadError","setLoadError","search","setSearch","status","setStatus","refresh","response","payload","json","catch","ok","error","publisherName","profileId","matches","row","term","trim","toLowerCase","displayName","listingId","some","field","String","includes","hidden","reviewStatus","visibleQueue","filter","visibleListed","visibleVerification","filtering","length","key","name","chips","caption","spacing","sx","py","borderBottom","borderColor","direction","alignItems","flexWrap","href","encodeURIComponent","variant","component","color","topic","anchor","size","placeholder","onChange","event","target","minWidth","select","map","option","severity","height","header","help","excerpt","contentGutterX","contentGutterY","display","mb","entry","version","private","license","priceUsd","latestVersion","realmVersions","versionCount","hiddenReason"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GACD;;AAGA,SAASA,cAAc,QAAQ,eAAc;AAC7C,SAASC,OAAO,EAAEC,WAAW,QAAQ,uBAAsB;AAC3D,SACEC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,QAAQ,EACRC,KAAK,EACLC,SAAS,EACTC,UAAU,QACL,gBAAe;AACtB,SAASC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAO;AACjE,SAASC,OAAO,QAAQ,iCAAgC;AACxD,SAASC,eAAe,QAAQ,2CAA0C;AAC1E,SAASC,cAAc,QAAQ,eAAc;AAC7C,SAASC,mBAAmB,QAAQ,mCAA+B;AAgCnE,MAAMC,iBAAiB;IACrB;QAAEC,OAAO;QAAOC,OAAO;IAAe;IACtC;QAAED,OAAO;QAAaC,OAAO;IAAY;IACzC;QAAED,OAAO;QAAaC,OAAO;IAAY;IACzC;QAAED,OAAO;QAAUC,OAAO;IAAS;IACnC;QAAED,OAA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,CAAC,EAAEsF,MAAMK,aAAa,IAAI,KAAK;;oDAExCL,MAAME,OAAO,iBACZ,KAACxG;wDACCoF,MAAK;wDACLL,SAAQ;wDACR/D,OAAM;yDAEN;oDACHsF,MAAMM,aAAa,iBAClB,KAAC5G;wDACCoF,MAAK;wDACLH,OAAM;wDACNjE,OAAO,GAAGsF,MAAMM,aAAa,CAAC,cAAc,CAAC;yDAE7C;oDACHN,MAAM7C,MAAM,iBACX,KAACzD;wDACCoF,MAAK;wDACLH,OAAM;wDACNjE,OAAM;yDAEN;;gDAEN,GAAGsF,MAAMO,YAAY,CAAC,QAAQ,EAC5BP,MAAMO,YAAY,KAAK,IAAI,KAAK,MAC/BP,MAAM7C,MAAM,IAAI6C,MAAMQ,YAAY,GAAG,CAAC,GAAG,EAAER,MAAMQ,YAAY,EAAE,GAAG,IAAI;uDAK/E,KAAC/G;wCAAM8F,UAAS;kDACb9B,YACG,yCACA;;;;;;;;;;AAS1B;AAEA,eAAe9C,mBAAkB"}
@@ -0,0 +1,19 @@
1
+ import type { ConsoleStaffPageProps } from '@aglyn/aglyn';
2
+ /**
3
+ * The review queue, or one submission of it (AGL-3080).
4
+ *
5
+ * The shell hands a staff page its `segments`; which page this is depends on
6
+ * whether there are any. Held here rather than in either component so both
7
+ * stay about their own job — a list that knew about detail routing, or a
8
+ * detail page that rendered a list, is the coupling `ownsSubtree` exists to
9
+ * avoid making necessary.
10
+ *
11
+ * Only reachable with segments because the `staffPages` entry declared
12
+ * `ownsSubtree`; without that the shell 404s a deeper path before this
13
+ * renders, so there is no branch here for a page that never claimed one.
14
+ */
15
+ export declare function PluginReviewsSurface(props: ConsoleStaffPageProps): import("react").JSX.Element;
16
+ export declare namespace PluginReviewsSurface {
17
+ var displayName: string;
18
+ }
19
+ export default PluginReviewsSurface;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ 'use client';
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ import PluginReviewDetail from "./plugin-review-detail.component.js";
19
+ import PluginReviewsQueue from "./plugin-reviews-queue.component.js";
20
+ /**
21
+ * The review queue, or one submission of it (AGL-3080).
22
+ *
23
+ * The shell hands a staff page its `segments`; which page this is depends on
24
+ * whether there are any. Held here rather than in either component so both
25
+ * stay about their own job — a list that knew about detail routing, or a
26
+ * detail page that rendered a list, is the coupling `ownsSubtree` exists to
27
+ * avoid making necessary.
28
+ *
29
+ * Only reachable with segments because the `staffPages` entry declared
30
+ * `ownsSubtree`; without that the shell 404s a deeper path before this
31
+ * renders, so there is no branch here for a page that never claimed one.
32
+ */ export function PluginReviewsSurface(props) {
33
+ var _props_segments;
34
+ return ((_props_segments = props.segments) == null ? void 0 : _props_segments.length) ? /*#__PURE__*/ _jsx(PluginReviewDetail, {
35
+ basePath: props.basePath,
36
+ segments: props.segments,
37
+ staffRole: props.staffRole,
38
+ staffPaths: props.staffPaths
39
+ }) : /*#__PURE__*/ _jsx(PluginReviewsQueue, {
40
+ basePath: props.basePath
41
+ });
42
+ }
43
+ PluginReviewsSurface.displayName = 'PluginReviewsSurface';
44
+ export default PluginReviewsSurface;
45
+
46
+ //# sourceMappingURL=plugin-reviews-surface.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/plugins/marketplace/src/lib/components/plugin-reviews-surface.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n'use client'\n\nimport type { ConsoleStaffPageProps } from '@aglyn/aglyn'\nimport PluginReviewDetail from './plugin-review-detail.component'\nimport PluginReviewsQueue from './plugin-reviews-queue.component'\n\n/**\n * The review queue, or one submission of it (AGL-3080).\n *\n * The shell hands a staff page its `segments`; which page this is depends on\n * whether there are any. Held here rather than in either component so both\n * stay about their own job — a list that knew about detail routing, or a\n * detail page that rendered a list, is the coupling `ownsSubtree` exists to\n * avoid making necessary.\n *\n * Only reachable with segments because the `staffPages` entry declared\n * `ownsSubtree`; without that the shell 404s a deeper path before this\n * renders, so there is no branch here for a page that never claimed one.\n */\nexport function PluginReviewsSurface(props: ConsoleStaffPageProps) {\n return props.segments?.length ? (\n <PluginReviewDetail\n basePath={props.basePath}\n segments={props.segments}\n staffRole={props.staffRole}\n staffPaths={props.staffPaths}\n />\n ) : (\n <PluginReviewsQueue basePath={props.basePath} />\n )\n}\n\nPluginReviewsSurface.displayName = 'PluginReviewsSurface'\n\nexport default PluginReviewsSurface\n"],"names":["PluginReviewDetail","PluginReviewsQueue","PluginReviewsSurface","props","segments","length","basePath","staffRole","staffPaths","displayName"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GACD;;AAGA,OAAOA,wBAAwB,sCAAkC;AACjE,OAAOC,wBAAwB,sCAAkC;AAEjE;;;;;;;;;;;;CAYC,GACD,OAAO,SAASC,qBAAqBC,KAA4B;QACxDA;IAAP,OAAOA,EAAAA,kBAAAA,MAAMC,QAAQ,qBAAdD,gBAAgBE,MAAM,kBAC3B,KAACL;QACCM,UAAUH,MAAMG,QAAQ;QACxBF,UAAUD,MAAMC,QAAQ;QACxBG,WAAWJ,MAAMI,SAAS;QAC1BC,YAAYL,MAAMK,UAAU;uBAG9B,KAACP;QAAmBK,UAAUH,MAAMG,QAAQ;;AAEhD;AAEAJ,qBAAqBO,WAAW,GAAG;AAEnC,eAAeP,qBAAoB"}
@@ -0,0 +1,61 @@
1
+ import { type PluginRevocation } from '@aglyn/aglyn';
2
+ /** The listing an update is bound to (AGL-1008), as the console reads it. */
3
+ export interface UpdateTargetListing {
4
+ $id: string;
5
+ displayName?: string;
6
+ pluginId?: string;
7
+ latestVersion?: string | number;
8
+ latestApprovedVersion?: string | number;
9
+ description?: string;
10
+ category?: string;
11
+ categories?: string[];
12
+ readme?: string;
13
+ license?: string;
14
+ repositoryUrl?: string;
15
+ priceUsd?: number;
16
+ visibility?: string;
17
+ }
18
+ export interface PublishPluginFormProps {
19
+ orgId: string;
20
+ /**
21
+ * Where the marketplace hub is mounted under this organization, from the
22
+ * shell (AGL-3080). The listing the publish lands on hangs beneath it; it
23
+ * replaced an org slug and the console's route table, which a plugin may
24
+ * not import.
25
+ */
26
+ basePath: string;
27
+ /**
28
+ * Set when publishing a NEW VERSION of an existing listing (AGL-1008).
29
+ * The server still decides whether a submission is an update, from
30
+ * `profileId` + the manifest id — this only pre-binds the form so the
31
+ * publisher is not retyping a listing they already own, and so the page
32
+ * can say what is about to happen.
33
+ */
34
+ listing?: UpdateTargetListing | null;
35
+ /**
36
+ * The listing's kill switch (AGL-2368), so `liveVersion` below can answer
37
+ * "what installs today" rather than "what review last approved". Those are
38
+ * different questions and `latestApprovedVersion` only answers the second.
39
+ */
40
+ revocation?: PluginRevocation | null;
41
+ }
42
+ /**
43
+ * The plugin publish form (AGL-1078), as a page.
44
+ *
45
+ * It was a modal. A publish is the most consequential thing a publisher
46
+ * does — it puts executable code in front of every workspace that installs
47
+ * it — and it had no URL to link or resume, no draft, and no room, which is
48
+ * why the AGL-969 checklist ended up below the publish button where it had
49
+ * to be scrolled past to be read.
50
+ *
51
+ * Same server contract: this posts the identical body to
52
+ * `/api/marketplace/publish-plugin`. What changed is the container, and what
53
+ * the container makes possible — sections, a draft that survives a reload,
54
+ * server problems shown against the field that caused them, and somewhere
55
+ * to go afterwards.
56
+ */
57
+ export declare function PublishPluginForm(props: PublishPluginFormProps): import("react").JSX.Element;
58
+ export declare namespace PublishPluginForm {
59
+ var displayName: string;
60
+ }
61
+ export default PublishPluginForm;