@medialane/ui 0.260.0 → 0.261.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 (45) hide show
  1. package/dist/components/action-button.cjs +7 -2
  2. package/dist/components/action-button.cjs.map +1 -1
  3. package/dist/components/action-button.d.cts +2 -1
  4. package/dist/components/action-button.d.ts +2 -1
  5. package/dist/components/action-button.js +7 -2
  6. package/dist/components/action-button.js.map +1 -1
  7. package/dist/components/asset-access-cards.cjs +21 -33
  8. package/dist/components/asset-access-cards.cjs.map +1 -1
  9. package/dist/components/asset-access-cards.d.cts +3 -3
  10. package/dist/components/asset-access-cards.d.ts +3 -3
  11. package/dist/components/asset-access-cards.js +20 -32
  12. package/dist/components/asset-access-cards.js.map +1 -1
  13. package/dist/components/asset-marketplace-panel.cjs +44 -41
  14. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  15. package/dist/components/asset-marketplace-panel.js +45 -42
  16. package/dist/components/asset-marketplace-panel.js.map +1 -1
  17. package/dist/components/asset-overview-content.cjs +12 -1
  18. package/dist/components/asset-overview-content.cjs.map +1 -1
  19. package/dist/components/asset-overview-content.d.cts +3 -1
  20. package/dist/components/asset-overview-content.d.ts +3 -1
  21. package/dist/components/asset-overview-content.js +13 -2
  22. package/dist/components/asset-overview-content.js.map +1 -1
  23. package/dist/components/asset-page.cjs +8 -6
  24. package/dist/components/asset-page.cjs.map +1 -1
  25. package/dist/components/asset-page.js +8 -6
  26. package/dist/components/asset-page.js.map +1 -1
  27. package/dist/components/asset-top-sections.cjs +1 -9
  28. package/dist/components/asset-top-sections.cjs.map +1 -1
  29. package/dist/components/asset-top-sections.d.cts +1 -2
  30. package/dist/components/asset-top-sections.d.ts +1 -2
  31. package/dist/components/asset-top-sections.js +1 -9
  32. package/dist/components/asset-top-sections.js.map +1 -1
  33. package/dist/components/button.d.cts +1 -1
  34. package/dist/components/button.d.ts +1 -1
  35. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  36. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  37. package/dist/components/markdown-text.cjs +53 -0
  38. package/dist/components/markdown-text.cjs.map +1 -0
  39. package/dist/components/markdown-text.d.cts +7 -0
  40. package/dist/components/markdown-text.d.ts +7 -0
  41. package/dist/components/markdown-text.js +19 -0
  42. package/dist/components/markdown-text.js.map +1 -0
  43. package/dist/components/sheet.d.cts +1 -1
  44. package/dist/components/sheet.d.ts +1 -1
  45. package/package.json +3 -1
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
6
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
7
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { FastMintProps } from './types.cjs';
4
4
  import 'starknet';
5
5
  import '@medialane/sdk';
6
6
  import '@medialane/sdk/starknet';
7
7
 
8
- declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
8
+ declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
9
9
 
10
10
  export { FastMint };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { FastMintProps } from './types.js';
4
4
  import 'starknet';
5
5
  import '@medialane/sdk';
6
6
  import '@medialane/sdk/starknet';
7
7
 
8
- declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
8
+ declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
9
9
 
10
10
  export { FastMint };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var markdown_text_exports = {};
31
+ __export(markdown_text_exports, {
32
+ MarkdownText: () => MarkdownText
33
+ });
34
+ module.exports = __toCommonJS(markdown_text_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_react_markdown = __toESM(require("react-markdown"), 1);
37
+ function MarkdownText({ text }) {
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "max-w-3xl space-y-4 break-words text-base leading-relaxed text-foreground [&_a]:text-primary [&_a]:underline [&_h1]:text-2xl [&_h1]:font-bold [&_h2]:text-xl [&_h2]:font-bold [&_h3]:text-lg [&_h3]:font-semibold [&_ol]:list-decimal [&_ol]:pl-6 [&_ul]:list-disc [&_ul]:pl-6 [&_blockquote]:border-l-2 [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
39
+ import_react_markdown.default,
40
+ {
41
+ components: {
42
+ img: () => null,
43
+ a: ({ href, children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href, target: "_blank", rel: "noopener noreferrer", children })
44
+ },
45
+ children: text
46
+ }
47
+ ) });
48
+ }
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ MarkdownText
52
+ });
53
+ //# sourceMappingURL=markdown-text.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/markdown-text.tsx"],"sourcesContent":["\"use client\";\n\nimport ReactMarkdown from \"react-markdown\";\n\nexport function MarkdownText({ text }: { text: string }) {\n return (\n <div className=\"max-w-3xl space-y-4 break-words text-base leading-relaxed text-foreground [&_a]:text-primary [&_a]:underline [&_h1]:text-2xl [&_h1]:font-bold [&_h2]:text-xl [&_h2]:font-bold [&_h3]:text-lg [&_h3]:font-semibold [&_ol]:list-decimal [&_ol]:pl-6 [&_ul]:list-disc [&_ul]:pl-6 [&_blockquote]:border-l-2 [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground\">\n <ReactMarkdown\n components={{\n img: () => null,\n a: ({ href, children }) => (\n <a href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n {children}\n </a>\n ),\n }}\n >\n {text}\n </ReactMarkdown>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWY;AATZ,4BAA0B;AAEnB,SAAS,aAAa,EAAE,KAAK,GAAqB;AACvD,SACE,4CAAC,SAAI,WAAU,qWACb;AAAA,IAAC,sBAAAA;AAAA,IAAA;AAAA,MACC,YAAY;AAAA,QACV,KAAK,MAAM;AAAA,QACX,GAAG,CAAC,EAAE,MAAM,SAAS,MACnB,4CAAC,OAAE,MAAY,QAAO,UAAS,KAAI,uBAChC,UACH;AAAA,MAEJ;AAAA,MAEC;AAAA;AAAA,EACH,GACF;AAEJ;","names":["ReactMarkdown"]}
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function MarkdownText({ text }: {
4
+ text: string;
5
+ }): react_jsx_runtime.JSX.Element;
6
+
7
+ export { MarkdownText };
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function MarkdownText({ text }: {
4
+ text: string;
5
+ }): react_jsx_runtime.JSX.Element;
6
+
7
+ export { MarkdownText };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import ReactMarkdown from "react-markdown";
4
+ function MarkdownText({ text }) {
5
+ return /* @__PURE__ */ jsx("div", { className: "max-w-3xl space-y-4 break-words text-base leading-relaxed text-foreground [&_a]:text-primary [&_a]:underline [&_h1]:text-2xl [&_h1]:font-bold [&_h2]:text-xl [&_h2]:font-bold [&_h3]:text-lg [&_h3]:font-semibold [&_ol]:list-decimal [&_ol]:pl-6 [&_ul]:list-disc [&_ul]:pl-6 [&_blockquote]:border-l-2 [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground", children: /* @__PURE__ */ jsx(
6
+ ReactMarkdown,
7
+ {
8
+ components: {
9
+ img: () => null,
10
+ a: ({ href, children }) => /* @__PURE__ */ jsx("a", { href, target: "_blank", rel: "noopener noreferrer", children })
11
+ },
12
+ children: text
13
+ }
14
+ ) });
15
+ }
16
+ export {
17
+ MarkdownText
18
+ };
19
+ //# sourceMappingURL=markdown-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/markdown-text.tsx"],"sourcesContent":["\"use client\";\n\nimport ReactMarkdown from \"react-markdown\";\n\nexport function MarkdownText({ text }: { text: string }) {\n return (\n <div className=\"max-w-3xl space-y-4 break-words text-base leading-relaxed text-foreground [&_a]:text-primary [&_a]:underline [&_h1]:text-2xl [&_h1]:font-bold [&_h2]:text-xl [&_h2]:font-bold [&_h3]:text-lg [&_h3]:font-semibold [&_ol]:list-decimal [&_ol]:pl-6 [&_ul]:list-disc [&_ul]:pl-6 [&_blockquote]:border-l-2 [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground\">\n <ReactMarkdown\n components={{\n img: () => null,\n a: ({ href, children }) => (\n <a href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n {children}\n </a>\n ),\n }}\n >\n {text}\n </ReactMarkdown>\n </div>\n );\n}\n"],"mappings":";AAWY;AATZ,OAAO,mBAAmB;AAEnB,SAAS,aAAa,EAAE,KAAK,GAAqB;AACvD,SACE,oBAAC,SAAI,WAAU,qWACb;AAAA,IAAC;AAAA;AAAA,MACC,YAAY;AAAA,QACV,KAAK,MAAM;AAAA,QACX,GAAG,CAAC,EAAE,MAAM,SAAS,MACnB,oBAAC,OAAE,MAAY,QAAO,UAAS,KAAI,uBAChC,UACH;AAAA,MAEJ;AAAA,MAEC;AAAA;AAAA,EACH,GACF;AAEJ;","names":[]}
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "bottom" | "left" | "right" | "top" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/ui",
3
- "version": "0.260.0",
3
+ "version": "0.261.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -75,6 +75,7 @@
75
75
  "react": ">=18.0.0",
76
76
  "react-dom": ">=18.0.0",
77
77
  "react-hook-form": ">=7.50.0",
78
+ "react-markdown": ">=9.0.1",
78
79
  "@hookform/resolvers": ">=3.10.0",
79
80
  "recharts": ">=2.0.0",
80
81
  "starknet": ">=8.0.0",
@@ -117,6 +118,7 @@
117
118
  "react": "^19.0.0",
118
119
  "react-dom": "^19.0.0",
119
120
  "react-hook-form": "^7.82.0",
121
+ "react-markdown": "9.0.1",
120
122
  "recharts": "^3.8.1",
121
123
  "starknet": "^10.0.2",
122
124
  "swr": "^2.4.1",