@settlemint/sdk-next 2.6.2-prdbaefab2 → 2.6.2-prf4fd4e0b

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/dist/all.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"all.cjs","names":[],"sources":["../src/all.ts"],"sourcesContent":["console.error(\"To keep a good separation between the different runtimes in NextJS, use one of the deeper imports\");\n"],"mappings":";;;AAAA,QAAQ,MAAM"}
1
+ {"version":3,"file":"all.cjs","names":[],"sources":["../src/all.ts"],"sourcesContent":["console.error(\"To keep a good separation between the different runtimes in NextJS, use one of the deeper imports\");\n"],"mappings":";;;AAAA,QAAQ,MAAM,oGAAoG"}
package/dist/all.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"all.js","names":[],"sources":["../src/all.ts"],"sourcesContent":["console.error(\"To keep a good separation between the different runtimes in NextJS, use one of the deeper imports\");\n"],"mappings":";;AAAA,QAAQ,MAAM"}
1
+ {"version":3,"file":"all.js","names":[],"sources":["../src/all.ts"],"sourcesContent":["console.error(\"To keep a good separation between the different runtimes in NextJS, use one of the deeper imports\");\n"],"mappings":";;AAAA,QAAQ,MAAM,oGAAoG"}
@@ -22,7 +22,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  }) : target, mod));
23
23
 
24
24
  //#endregion
25
- const react_jsx_runtime = __toESM(require("react/jsx-runtime"));
25
+ let react_jsx_runtime = require("react/jsx-runtime");
26
+ react_jsx_runtime = __toESM(react_jsx_runtime);
26
27
 
27
28
  //#region src/components/test.tsx
28
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"test.cjs","names":[],"sources":["../../src/components/test.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\n/**\n * The props for the HelloWorld component.\n */\nexport interface HelloWorldProps {\n name?: string;\n}\n\n/**\n * A simple Hello World component that greets the user.\n *\n * @param props - The props for the HelloWorld component.\n * @returns A React element that displays a greeting to the user.\n */\nexport function HelloWorld({ name = \"World\" }: HelloWorldProps): ReactElement {\n return (\n <div className=\"p-4 bg-gray-100 rounded-md shadow-sm\">\n <h1 className=\"text-2xl font-bold text-gray-800\">Hello, {name}!</h1>\n <p className=\"mt-2 text-gray-600\">Welcome to our React component.</p>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAgB,WAAW,EAAE,OAAO,WAA0C;AAC5E,QACE,4CAAC;EAAI,WAAU;aACb,4CAAC;GAAG,WAAU;;IAAmC;IAAQ;IAAK;;MAC9D,2CAAC;GAAE,WAAU;aAAqB"}
1
+ {"version":3,"file":"test.cjs","names":[],"sources":["../../src/components/test.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\n/**\n * The props for the HelloWorld component.\n */\nexport interface HelloWorldProps {\n name?: string;\n}\n\n/**\n * A simple Hello World component that greets the user.\n *\n * @param props - The props for the HelloWorld component.\n * @returns A React element that displays a greeting to the user.\n */\nexport function HelloWorld({ name = \"World\" }: HelloWorldProps): ReactElement {\n return (\n <div className=\"p-4 bg-gray-100 rounded-md shadow-sm\">\n <h1 className=\"text-2xl font-bold text-gray-800\">Hello, {name}!</h1>\n <p className=\"mt-2 text-gray-600\">Welcome to our React component.</p>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAgB,WAAW,EAAE,OAAO,WAA0C;AAC5E,QACE,4CAAC;EAAI,WAAU;aACb,4CAAC;GAAG,WAAU;;IAAmC;IAAQ;IAAK;;IAAM,EACpE,2CAAC;GAAE,WAAU;aAAqB;IAAmC;GACjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"test.js","names":[],"sources":["../../src/components/test.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\n/**\n * The props for the HelloWorld component.\n */\nexport interface HelloWorldProps {\n name?: string;\n}\n\n/**\n * A simple Hello World component that greets the user.\n *\n * @param props - The props for the HelloWorld component.\n * @returns A React element that displays a greeting to the user.\n */\nexport function HelloWorld({ name = \"World\" }: HelloWorldProps): ReactElement {\n return (\n <div className=\"p-4 bg-gray-100 rounded-md shadow-sm\">\n <h1 className=\"text-2xl font-bold text-gray-800\">Hello, {name}!</h1>\n <p className=\"mt-2 text-gray-600\">Welcome to our React component.</p>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAeA,SAAgB,WAAW,EAAE,OAAO,WAA0C;AAC5E,QACE,qBAAC;EAAI,WAAU;aACb,qBAAC;GAAG,WAAU;;IAAmC;IAAQ;IAAK;;MAC9D,oBAAC;GAAE,WAAU;aAAqB"}
1
+ {"version":3,"file":"test.js","names":[],"sources":["../../src/components/test.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\n/**\n * The props for the HelloWorld component.\n */\nexport interface HelloWorldProps {\n name?: string;\n}\n\n/**\n * A simple Hello World component that greets the user.\n *\n * @param props - The props for the HelloWorld component.\n * @returns A React element that displays a greeting to the user.\n */\nexport function HelloWorld({ name = \"World\" }: HelloWorldProps): ReactElement {\n return (\n <div className=\"p-4 bg-gray-100 rounded-md shadow-sm\">\n <h1 className=\"text-2xl font-bold text-gray-800\">Hello, {name}!</h1>\n <p className=\"mt-2 text-gray-600\">Welcome to our React component.</p>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAeA,SAAgB,WAAW,EAAE,OAAO,WAA0C;AAC5E,QACE,qBAAC;EAAI,WAAU;aACb,qBAAC;GAAG,WAAU;;IAAmC;IAAQ;IAAK;;IAAM,EACpE,oBAAC;GAAE,WAAU;aAAqB;IAAmC;GACjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"with-settlemint.cjs","names":[],"sources":["../../src/config/with-settlemint.ts"],"sourcesContent":["import type { NextConfig } from \"next\";\n\n/**\n * Options for configuring the SettleMint configuration.\n */\nexport interface WithSettleMintOptions {\n /**\n * Whether to disable the SettleMint configuration.\n */\n disabled?: boolean;\n}\n\n/**\n * Modifies the passed in Next.js configuration with SettleMint-specific settings.\n *\n * @param nextConfig - The original Next.js configuration\n * @param options - Options for customizing the SettleMint configuration\n * @returns The modified Next.js configuration\n * @throws If the SettleMint configuration cannot be read or processed\n */\nexport async function withSettleMint<C extends NextConfig>(\n nextConfig: C,\n { disabled = false }: WithSettleMintOptions = {},\n): Promise<C> {\n if (disabled) return nextConfig;\n\n const baseConfig = {\n ...nextConfig,\n };\n\n return {\n ...baseConfig,\n headers: async () => [\n {\n source: \"/(.*)\",\n headers: [{ key: \"X-Frame-Options\", value: \"DENY\" }],\n },\n ],\n poweredByHeader: false,\n reactStrictMode: true,\n } as C;\n}\n"],"mappings":";;;;;;;;;;;AAoBA,eAAsB,eACpB,YACA,EAAE,WAAW,UAAiC,IAClC;AACZ,KAAI,SAAU,QAAO;CAErB,MAAM,aAAa,EACjB,GAAG;AAGL,QAAO;EACL,GAAG;EACH,SAAS,YAAY,CACnB;GACE,QAAQ;GACR,SAAS,CAAC;IAAE,KAAK;IAAmB,OAAO;;;EAG/C,iBAAiB;EACjB,iBAAiB"}
1
+ {"version":3,"file":"with-settlemint.cjs","names":[],"sources":["../../src/config/with-settlemint.ts"],"sourcesContent":["import type { NextConfig } from \"next\";\n\n/**\n * Options for configuring the SettleMint configuration.\n */\nexport interface WithSettleMintOptions {\n /**\n * Whether to disable the SettleMint configuration.\n */\n disabled?: boolean;\n}\n\n/**\n * Modifies the passed in Next.js configuration with SettleMint-specific settings.\n *\n * @param nextConfig - The original Next.js configuration\n * @param options - Options for customizing the SettleMint configuration\n * @returns The modified Next.js configuration\n * @throws If the SettleMint configuration cannot be read or processed\n */\nexport async function withSettleMint<C extends NextConfig>(\n nextConfig: C,\n { disabled = false }: WithSettleMintOptions = {},\n): Promise<C> {\n if (disabled) return nextConfig;\n\n const baseConfig = {\n ...nextConfig,\n };\n\n return {\n ...baseConfig,\n headers: async () => [\n {\n source: \"/(.*)\",\n headers: [{ key: \"X-Frame-Options\", value: \"DENY\" }],\n },\n ],\n poweredByHeader: false,\n reactStrictMode: true,\n } as C;\n}\n"],"mappings":";;;;;;;;;;;AAoBA,eAAsB,eACpB,YACA,EAAE,WAAW,UAAiC,EAAE,EACpC;AACZ,KAAI,SAAU,QAAO;CAErB,MAAM,aAAa,EACjB,GAAG,YACJ;AAED,QAAO;EACL,GAAG;EACH,SAAS,YAAY,CACnB;GACE,QAAQ;GACR,SAAS,CAAC;IAAE,KAAK;IAAmB,OAAO;IAAQ,CAAC;GACrD,CACF;EACD,iBAAiB;EACjB,iBAAiB;EAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"with-settlemint.js","names":[],"sources":["../../src/config/with-settlemint.ts"],"sourcesContent":["import type { NextConfig } from \"next\";\n\n/**\n * Options for configuring the SettleMint configuration.\n */\nexport interface WithSettleMintOptions {\n /**\n * Whether to disable the SettleMint configuration.\n */\n disabled?: boolean;\n}\n\n/**\n * Modifies the passed in Next.js configuration with SettleMint-specific settings.\n *\n * @param nextConfig - The original Next.js configuration\n * @param options - Options for customizing the SettleMint configuration\n * @returns The modified Next.js configuration\n * @throws If the SettleMint configuration cannot be read or processed\n */\nexport async function withSettleMint<C extends NextConfig>(\n nextConfig: C,\n { disabled = false }: WithSettleMintOptions = {},\n): Promise<C> {\n if (disabled) return nextConfig;\n\n const baseConfig = {\n ...nextConfig,\n };\n\n return {\n ...baseConfig,\n headers: async () => [\n {\n source: \"/(.*)\",\n headers: [{ key: \"X-Frame-Options\", value: \"DENY\" }],\n },\n ],\n poweredByHeader: false,\n reactStrictMode: true,\n } as C;\n}\n"],"mappings":";;;;;;;;;;AAoBA,eAAsB,eACpB,YACA,EAAE,WAAW,UAAiC,IAClC;AACZ,KAAI,SAAU,QAAO;CAErB,MAAM,aAAa,EACjB,GAAG;AAGL,QAAO;EACL,GAAG;EACH,SAAS,YAAY,CACnB;GACE,QAAQ;GACR,SAAS,CAAC;IAAE,KAAK;IAAmB,OAAO;;;EAG/C,iBAAiB;EACjB,iBAAiB"}
1
+ {"version":3,"file":"with-settlemint.js","names":[],"sources":["../../src/config/with-settlemint.ts"],"sourcesContent":["import type { NextConfig } from \"next\";\n\n/**\n * Options for configuring the SettleMint configuration.\n */\nexport interface WithSettleMintOptions {\n /**\n * Whether to disable the SettleMint configuration.\n */\n disabled?: boolean;\n}\n\n/**\n * Modifies the passed in Next.js configuration with SettleMint-specific settings.\n *\n * @param nextConfig - The original Next.js configuration\n * @param options - Options for customizing the SettleMint configuration\n * @returns The modified Next.js configuration\n * @throws If the SettleMint configuration cannot be read or processed\n */\nexport async function withSettleMint<C extends NextConfig>(\n nextConfig: C,\n { disabled = false }: WithSettleMintOptions = {},\n): Promise<C> {\n if (disabled) return nextConfig;\n\n const baseConfig = {\n ...nextConfig,\n };\n\n return {\n ...baseConfig,\n headers: async () => [\n {\n source: \"/(.*)\",\n headers: [{ key: \"X-Frame-Options\", value: \"DENY\" }],\n },\n ],\n poweredByHeader: false,\n reactStrictMode: true,\n } as C;\n}\n"],"mappings":";;;;;;;;;;AAoBA,eAAsB,eACpB,YACA,EAAE,WAAW,UAAiC,EAAE,EACpC;AACZ,KAAI,SAAU,QAAO;CAErB,MAAM,aAAa,EACjB,GAAG,YACJ;AAED,QAAO;EACL,GAAG;EACH,SAAS,YAAY,CACnB;GACE,QAAQ;GACR,SAAS,CAAC;IAAE,KAAK;IAAmB,OAAO;IAAQ,CAAC;GACrD,CACF;EACD,iBAAiB;EACjB,iBAAiB;EAClB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@settlemint/sdk-next",
3
3
  "description": "Next.js integration module for SettleMint SDK, providing React components and middleware for web applications",
4
- "version": "2.6.2-prdbaefab2",
4
+ "version": "2.6.2-prf4fd4e0b",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -75,7 +75,7 @@
75
75
  "@types/react": ">=18"
76
76
  },
77
77
  "dependencies": {
78
- "@settlemint/sdk-utils": "2.6.2-prdbaefab2",
78
+ "@settlemint/sdk-utils": "2.6.2-prf4fd4e0b",
79
79
  "path-to-regexp": "^8"
80
80
  },
81
81
  "peerDependencies": {