@xapps-platform/marketplace-ui 0.1.1
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.
- package/README.md +53 -0
- package/dist/MarketplaceApp.d.ts +2 -0
- package/dist/MarketplaceApp.d.ts.map +1 -0
- package/dist/MarketplaceContext.d.ts +15 -0
- package/dist/MarketplaceContext.d.ts.map +1 -0
- package/dist/components/ConfirmActionModal.d.ts +10 -0
- package/dist/components/ConfirmActionModal.d.ts.map +1 -0
- package/dist/components/MarketplaceActivityTabs.d.ts +11 -0
- package/dist/components/MarketplaceActivityTabs.d.ts.map +1 -0
- package/dist/components/MarketplacePrimaryNav.d.ts +8 -0
- package/dist/components/MarketplacePrimaryNav.d.ts.map +1 -0
- package/dist/components/SchemaOutputView.d.ts +7 -0
- package/dist/components/SchemaOutputView.d.ts.map +1 -0
- package/dist/index.css +3365 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5002 -0
- package/dist/index.js.map +7 -0
- package/dist/marketplace.css +3972 -0
- package/dist/pages/CatalogPage.d.ts +3 -0
- package/dist/pages/CatalogPage.d.ts.map +1 -0
- package/dist/pages/InvoicesPage.d.ts +3 -0
- package/dist/pages/InvoicesPage.d.ts.map +1 -0
- package/dist/pages/NotificationsPage.d.ts +3 -0
- package/dist/pages/NotificationsPage.d.ts.map +1 -0
- package/dist/pages/PaymentsPage.d.ts +3 -0
- package/dist/pages/PaymentsPage.d.ts.map +1 -0
- package/dist/pages/PublisherDetailPage.d.ts +3 -0
- package/dist/pages/PublisherDetailPage.d.ts.map +1 -0
- package/dist/pages/PublishersPage.d.ts +3 -0
- package/dist/pages/PublishersPage.d.ts.map +1 -0
- package/dist/pages/RequestDetailPage.breadcrumbs.test.d.ts +2 -0
- package/dist/pages/RequestDetailPage.breadcrumbs.test.d.ts.map +1 -0
- package/dist/pages/RequestDetailPage.d.ts +3 -0
- package/dist/pages/RequestDetailPage.d.ts.map +1 -0
- package/dist/pages/RequestsPage.d.ts +3 -0
- package/dist/pages/RequestsPage.d.ts.map +1 -0
- package/dist/pages/WidgetView.d.ts +3 -0
- package/dist/pages/WidgetView.d.ts.map +1 -0
- package/dist/pages/XappDetailPage.d.ts +3 -0
- package/dist/pages/XappDetailPage.d.ts.map +1 -0
- package/dist/pages/XappDetailPage.requestsLink.test.d.ts +2 -0
- package/dist/pages/XappDetailPage.requestsLink.test.d.ts.map +1 -0
- package/dist/types.d.ts +294 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/embedSearch.d.ts +3 -0
- package/dist/utils/embedSearch.d.ts.map +1 -0
- package/dist/utils/operationalSurfaces.d.ts +36 -0
- package/dist/utils/operationalSurfaces.d.ts.map +1 -0
- package/dist/utils/operationalSurfaces.requestsHref.test.d.ts +2 -0
- package/dist/utils/operationalSurfaces.requestsHref.test.d.ts.map +1 -0
- package/dist/utils/operationalSurfaces.test.d.ts +2 -0
- package/dist/utils/operationalSurfaces.test.d.ts.map +1 -0
- package/dist/utils/paymentLock.d.ts +17 -0
- package/dist/utils/paymentLock.d.ts.map +1 -0
- package/dist/utils/readers.d.ts +8 -0
- package/dist/utils/readers.d.ts.map +1 -0
- package/dist/utils/readers.test.d.ts +2 -0
- package/dist/utils/readers.test.d.ts.map +1 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# `@xapps-platform/marketplace-ui`
|
|
2
|
+
|
|
3
|
+
React UI package for marketplace/catalog and xapp operational screens.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
This package is now prepared for public distribution for React integrators who want the ready-made marketplace/catalog/activity UI layer above `@xapps-platform/embed-sdk`.
|
|
8
|
+
|
|
9
|
+
## Exports
|
|
10
|
+
|
|
11
|
+
- `MarketplaceProvider`, `useMarketplace`
|
|
12
|
+
- `MarketplaceApp`
|
|
13
|
+
- Pages/components:
|
|
14
|
+
- `CatalogPage`
|
|
15
|
+
- `XappDetailPage`
|
|
16
|
+
- `PublishersPage`
|
|
17
|
+
- `PublisherDetailPage`
|
|
18
|
+
- `RequestsPage`
|
|
19
|
+
- `RequestDetailPage`
|
|
20
|
+
- `PaymentsPage`
|
|
21
|
+
- `InvoicesPage`
|
|
22
|
+
- `NotificationsPage`
|
|
23
|
+
- `WidgetView`
|
|
24
|
+
- CSS entry: `@xapps-platform/marketplace-ui/marketplace.css`
|
|
25
|
+
|
|
26
|
+
## Minimal usage
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { MarketplaceApp, MarketplaceProvider } from "@xapps-platform/marketplace-ui";
|
|
30
|
+
import "@xapps-platform/marketplace-ui/marketplace.css";
|
|
31
|
+
|
|
32
|
+
export function App() {
|
|
33
|
+
return (
|
|
34
|
+
<MarketplaceProvider client={client} host={hostAdapter} env={env}>
|
|
35
|
+
<MarketplaceApp />
|
|
36
|
+
</MarketplaceProvider>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Notes
|
|
42
|
+
|
|
43
|
+
- Runtime: React host/integrator portal.
|
|
44
|
+
- Composes with `@xapps-platform/embed-sdk` when host pages need iframe catalog/widget orchestration.
|
|
45
|
+
- Provides shared marketplace navigation for `Xapps`, `Publishers`, and `Activity`, plus activity
|
|
46
|
+
tabs for `Requests`, `Payments`, `Invoices`, and `Notifications`.
|
|
47
|
+
- Supports xapp-scoped operational surfaces for `requests`, `payments`, `invoices`, and
|
|
48
|
+
`notifications`.
|
|
49
|
+
- Host placement policy is declared through `MarketplaceEnv.host.operationalSurfaces`; the contract
|
|
50
|
+
supports `in_router`, `side_panel`, and `full_page`, while current default behavior remains
|
|
51
|
+
`in_router`.
|
|
52
|
+
- Does not replace `@xapps-platform/widget-sdk` (widget iframe runtime) or `@xapps-platform/server-sdk` (backend contracts).
|
|
53
|
+
- See package/runtime ownership: `docs/guides/12-package-usage-and-ownership.md`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketplaceApp.d.ts","sourceRoot":"","sources":["../src/MarketplaceApp.tsx"],"names":[],"mappings":"AAYA,wBAAgB,cAAc,4CAoB7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { MarketplaceClient, MarketplaceEnv, MarketplaceHostAdapter } from "./types";
|
|
3
|
+
export type MarketplaceContextValue = {
|
|
4
|
+
client: MarketplaceClient;
|
|
5
|
+
host: MarketplaceHostAdapter;
|
|
6
|
+
env?: MarketplaceEnv;
|
|
7
|
+
};
|
|
8
|
+
export declare function MarketplaceProvider(props: {
|
|
9
|
+
client: MarketplaceClient;
|
|
10
|
+
host: MarketplaceHostAdapter;
|
|
11
|
+
env?: MarketplaceEnv;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function useMarketplace(): MarketplaceContextValue;
|
|
15
|
+
//# sourceMappingURL=MarketplaceContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketplaceContext.d.ts","sourceRoot":"","sources":["../src/MarketplaceContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEzF,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,sBAAsB,CAAC;IAC7B,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB,CAAC;AAIF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,sBAAsB,CAAC;IAC7B,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAMA;AAED,wBAAgB,cAAc,IAAI,uBAAuB,CAIxD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function ConfirmActionModal(props: {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
confirmLabel?: string;
|
|
6
|
+
cancelLabel?: string;
|
|
7
|
+
onConfirm: () => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=ConfirmActionModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmActionModal.d.ts","sourceRoot":"","sources":["../../src/components/ConfirmActionModal.tsx"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,kDA4DA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type ActivityTabKey = "requests" | "payments" | "invoices" | "notifications";
|
|
2
|
+
type MarketplaceActivityTabsProps = {
|
|
3
|
+
active: ActivityTabKey;
|
|
4
|
+
isEmbedded: boolean;
|
|
5
|
+
token?: string;
|
|
6
|
+
xappId?: string;
|
|
7
|
+
installationId?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function MarketplaceActivityTabs(props: MarketplaceActivityTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MarketplaceActivityTabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketplaceActivityTabs.d.ts","sourceRoot":"","sources":["../../src/components/MarketplaceActivityTabs.tsx"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,CAAC;AAE7E,KAAK,4BAA4B,GAAG;IAClC,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAsBF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CA8B1E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type MarketplacePrimaryNavProps = {
|
|
2
|
+
active: "xapps" | "publishers" | "activity";
|
|
3
|
+
isEmbedded: boolean;
|
|
4
|
+
tokenSearch: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function MarketplacePrimaryNav(props: MarketplacePrimaryNavProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=MarketplacePrimaryNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketplacePrimaryNav.d.ts","sourceRoot":"","sources":["../../src/components/MarketplacePrimaryNav.tsx"],"names":[],"mappings":"AAEA,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;IAC5C,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CAkCtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaOutputView.d.ts","sourceRoot":"","sources":["../../src/components/SchemaOutputView.tsx"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;AA+EjD,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,2CAkBzF"}
|