@aglyn/plugins-marketplace 1.15.1 → 1.16.0

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 (30) hide show
  1. package/package.json +15 -15
  2. package/src/lib/components/listing-content.component.js +14 -12
  3. package/src/lib/components/listing-content.component.js.map +1 -1
  4. package/src/lib/components/site-plugin-connections-card.component.js +4 -3
  5. package/src/lib/components/site-plugin-connections-card.component.js.map +1 -1
  6. package/src/lib/model/editor-connections.d.ts +1 -1
  7. package/src/lib/model/editor-connections.js +13 -2
  8. package/src/lib/model/editor-connections.js.map +1 -1
  9. package/src/lib/model/marketplace.d.ts +11 -0
  10. package/src/lib/model/marketplace.js +12 -2
  11. package/src/lib/model/marketplace.js.map +1 -1
  12. package/src/lib/model/plugin-connection-card.d.ts +6 -0
  13. package/src/lib/model/plugin-connection-card.js +8 -0
  14. package/src/lib/model/plugin-connection-card.js.map +1 -1
  15. package/src/lib/model/plugin-connections.d.ts +14 -0
  16. package/src/lib/model/plugin-connections.js +18 -1
  17. package/src/lib/model/plugin-connections.js.map +1 -1
  18. package/src/lib/server/admin-reviews.js +9 -0
  19. package/src/lib/server/admin-reviews.js.map +1 -1
  20. package/src/lib/server/admin-trust.js +11 -0
  21. package/src/lib/server/admin-trust.js.map +1 -1
  22. package/src/lib/server/connections/site-records-platform.js +8 -5
  23. package/src/lib/server/connections/site-records-platform.js.map +1 -1
  24. package/src/lib/server/install-plugin.js +34 -19
  25. package/src/lib/server/install-plugin.js.map +1 -1
  26. package/src/lib/server/listing-versions.js +7 -2
  27. package/src/lib/server/listing-versions.js.map +1 -1
  28. package/src/lib/server/revoke-cache-drop.d.ts +29 -34
  29. package/src/lib/server/revoke-cache-drop.js +43 -49
  30. package/src/lib/server/revoke-cache-drop.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/plugins-marketplace",
3
- "version": "1.15.1",
3
+ "version": "1.16.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,20 +25,20 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/aglyn": "1.15.1",
29
- "@aglyn/aglyn-markdown-editor": "1.15.1",
30
- "@aglyn/shared-data-enums": "1.15.1",
31
- "@aglyn/shared-data-mdi": "1.15.1",
32
- "@aglyn/shared-ui-jsx": "1.15.1",
33
- "@aglyn/shared-ui-next": "1.15.1",
34
- "@aglyn/shared-ui-snackstack": "1.15.1",
35
- "@aglyn/shared-util-email": "1.15.1",
36
- "@aglyn/shared-util-http": "1.15.1",
37
- "@aglyn/shared-util-timestamp": "1.15.1",
38
- "@aglyn/shared-util-tools": "1.15.1",
39
- "@aglyn/tenant-data-admin": "1.15.1",
40
- "@aglyn/tenant-feature-instance": "1.15.1",
41
- "@aglyn/tenant-runtime": "1.15.1",
28
+ "@aglyn/aglyn": "1.16.0",
29
+ "@aglyn/aglyn-markdown-editor": "1.16.0",
30
+ "@aglyn/shared-data-enums": "1.16.0",
31
+ "@aglyn/shared-data-mdi": "1.16.0",
32
+ "@aglyn/shared-ui-jsx": "1.16.0",
33
+ "@aglyn/shared-ui-next": "1.16.0",
34
+ "@aglyn/shared-ui-snackstack": "1.16.0",
35
+ "@aglyn/shared-util-email": "1.16.0",
36
+ "@aglyn/shared-util-http": "1.16.0",
37
+ "@aglyn/shared-util-timestamp": "1.16.0",
38
+ "@aglyn/shared-util-tools": "1.16.0",
39
+ "@aglyn/tenant-data-admin": "1.16.0",
40
+ "@aglyn/tenant-feature-instance": "1.16.0",
41
+ "@aglyn/tenant-runtime": "1.16.0",
42
42
  "@swc/helpers": "0.5.23"
43
43
  },
44
44
  "peerDependencies": {
@@ -379,7 +379,7 @@ export function ListingReadme({ readme }) {
379
379
  * 'marketplaceListing' widget slot. Full description, preview image,
380
380
  * version history, publisher block, and the install/buy CTA.
381
381
  */ export function MarketplaceListingContent({ hostId, listingId, permissions, orgScoped, orgSlug: orgSlugProp, hosts }) {
382
- var _ref, _ref1, _pluginState_scope, _ref2, _ref3, _ref4, _listing_ratingAverage, _listing_ratingAverage1, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19;
382
+ var _ref, _ref1, _pluginState_scope, _ref2, _ref3, _ref4, _listing_ratingAverage, _listing_ratingAverage1, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20;
383
383
  var _componentInstall_marketplace, _profile_displayName;
384
384
  // The publisher link was `/{hostDocId}/marketplace/publisher/{id}` — the
385
385
  // pre-AGL-621 shape, dead since. The sibling browse grid was fixed for
@@ -1331,7 +1331,9 @@ export function ListingReadme({ readme }) {
1331
1331
  children: "What's included"
1332
1332
  }),
1333
1333
  listingInclusions(listing != null ? listing : {}, {
1334
- reviewedVersion: (listing == null ? void 0 : listing.latestVersionReviewState) === 'approved'
1334
+ reviewedVersion: (listing == null ? void 0 : listing.latestVersionReviewState) === 'approved',
1335
+ realmTrusted: (latestEntry == null ? void 0 : latestEntry.trust) === 'realm',
1336
+ connections: (_ref9 = latestEntry == null ? void 0 : latestEntry.connections) != null ? _ref9 : []
1335
1337
  }).map((row)=>/*#__PURE__*/ _jsxs(Stack, {
1336
1338
  direction: "row",
1337
1339
  spacing: 1,
@@ -1586,14 +1588,14 @@ export function ListingReadme({ readme }) {
1586
1588
  children: [
1587
1589
  /*#__PURE__*/ _jsx(Avatar, {
1588
1590
  src: safePublisherImageSrc(profile == null ? void 0 : profile.avatarUrl),
1589
- alt: (_ref9 = profile == null ? void 0 : profile.displayName) != null ? _ref9 : 'Publisher',
1591
+ alt: (_ref10 = profile == null ? void 0 : profile.displayName) != null ? _ref10 : 'Publisher',
1590
1592
  variant: "rounded",
1591
1593
  sx: {
1592
1594
  width: 40,
1593
1595
  height: 40,
1594
1596
  mb: 0.5
1595
1597
  },
1596
- children: String((_ref10 = (_ref11 = profile == null ? void 0 : profile.displayName) != null ? _ref11 : profile == null ? void 0 : profile.handle) != null ? _ref10 : '?').slice(0, 1).toUpperCase()
1598
+ children: String((_ref11 = (_ref12 = profile == null ? void 0 : profile.displayName) != null ? _ref12 : profile == null ? void 0 : profile.handle) != null ? _ref11 : '?').slice(0, 1).toUpperCase()
1597
1599
  }),
1598
1600
  /*#__PURE__*/ _jsx(MuiLink, {
1599
1601
  href: !(listing == null ? void 0 : listing.profileId) ? undefined : orgScoped ? orgSlug ? buildRoute(Route.ORG_MARKETPLACE_PUBLISHER, {
@@ -1601,15 +1603,15 @@ export function ListingReadme({ readme }) {
1601
1603
  // Handle, not id (AGL-1001); the id
1602
1604
  // still resolves for the beat
1603
1605
  // before the profile loads.
1604
- handle: (_ref12 = profile == null ? void 0 : profile.handle) != null ? _ref12 : listing.profileId
1606
+ handle: (_ref13 = profile == null ? void 0 : profile.handle) != null ? _ref13 : listing.profileId
1605
1607
  }) : undefined : orgSlug && subdomain ? buildRoute(Route.ORG_MARKETPLACE_PUBLISHER, {
1606
1608
  orgSlug,
1607
- handle: (_ref13 = profile == null ? void 0 : profile.handle) != null ? _ref13 : listing.profileId
1609
+ handle: (_ref14 = profile == null ? void 0 : profile.handle) != null ? _ref14 : listing.profileId
1608
1610
  }) : undefined,
1609
1611
  color: "primary",
1610
1612
  underline: "hover",
1611
1613
  variant: "body2",
1612
- children: (_ref14 = profile == null ? void 0 : profile.displayName) != null ? _ref14 : (profile == null ? void 0 : profile.handle) ? `@${profile.handle}` : '…'
1614
+ children: (_ref15 = profile == null ? void 0 : profile.displayName) != null ? _ref15 : (profile == null ? void 0 : profile.handle) ? `@${profile.handle}` : '…'
1613
1615
  }),
1614
1616
  (profile == null ? void 0 : profile.handle) ? /*#__PURE__*/ _jsx(Typography, {
1615
1617
  variant: "caption",
@@ -1787,7 +1789,7 @@ export function ListingReadme({ readme }) {
1787
1789
  }) : versionHistory.length === 0 ? /*#__PURE__*/ _jsx(Typography, {
1788
1790
  variant: "body2",
1789
1791
  color: "text.secondary",
1790
- children: `Latest version: v${(_ref15 = listing == null ? void 0 : listing.latestVersion) != null ? _ref15 : '…'}`
1792
+ children: `Latest version: v${(_ref16 = listing == null ? void 0 : listing.latestVersion) != null ? _ref16 : '…'}`
1791
1793
  }) : /*#__PURE__*/ _jsx(Stack, {
1792
1794
  spacing: 0.5,
1793
1795
  children: versionHistory.map((entry, index)=>{
@@ -1823,7 +1825,7 @@ export function ListingReadme({ readme }) {
1823
1825
  }),
1824
1826
  /*#__PURE__*/ _jsx(ReportTarget, {
1825
1827
  listingId: listingId,
1826
- label: String((_ref16 = listing == null ? void 0 : listing.displayName) != null ? _ref16 : 'this listing')
1828
+ label: String((_ref17 = listing == null ? void 0 : listing.displayName) != null ? _ref17 : 'this listing')
1827
1829
  })
1828
1830
  ]
1829
1831
  })
@@ -1892,7 +1894,7 @@ export function ListingReadme({ readme }) {
1892
1894
  /*#__PURE__*/ _jsx(ArtifactUpdateDialog, {
1893
1895
  open: updateOpen,
1894
1896
  onClose: ()=>setUpdateOpen(false),
1895
- artifactName: (_ref17 = listing == null ? void 0 : listing.displayName) != null ? _ref17 : 'this listing',
1897
+ artifactName: (_ref18 = listing == null ? void 0 : listing.displayName) != null ? _ref18 : 'this listing',
1896
1898
  preview: updatePreview,
1897
1899
  loading: updateLoading,
1898
1900
  onApplyMerge: (takePaths, confirmDestructive)=>void runUpdate('merge', takePaths, confirmDestructive),
@@ -1901,8 +1903,8 @@ export function ListingReadme({ readme }) {
1901
1903
  /*#__PURE__*/ _jsx(UninstallImpactDialog, {
1902
1904
  open: pendingUninstall !== null,
1903
1905
  listing: listing,
1904
- scope: (_ref18 = pendingUninstall == null ? void 0 : pendingUninstall.scope) != null ? _ref18 : 'host',
1905
- targets: (_ref19 = pendingUninstall == null ? void 0 : pendingUninstall.targets) != null ? _ref19 : [],
1906
+ scope: (_ref19 = pendingUninstall == null ? void 0 : pendingUninstall.scope) != null ? _ref19 : 'host',
1907
+ targets: (_ref20 = pendingUninstall == null ? void 0 : pendingUninstall.targets) != null ? _ref20 : [],
1906
1908
  onCancel: ()=>setPendingUninstall(null),
1907
1909
  onConfirm: async ()=>{
1908
1910
  const target = pendingUninstall;