@settlemint/sdk-next 2.6.2 → 2.6.3-mainc87184c9

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 CHANGED
@@ -49,7 +49,7 @@ The SettleMint Next.js SDK provides a seamless integration layer between Next.js
49
49
 
50
50
  > **HelloWorld**(`props`): `ReactElement`
51
51
 
52
- Defined in: [components/test.tsx:16](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/next/src/components/test.tsx#L16)
52
+ Defined in: [components/test.tsx:16](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/next/src/components/test.tsx#L16)
53
53
 
54
54
  A simple Hello World component that greets the user.
55
55
 
@@ -71,7 +71,7 @@ A React element that displays a greeting to the user.
71
71
 
72
72
  > **withSettleMint**\<`C`\>(`nextConfig`, `options`): `Promise`\<`C`\>
73
73
 
74
- Defined in: [config/with-settlemint.ts:21](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/next/src/config/with-settlemint.ts#L21)
74
+ Defined in: [config/with-settlemint.ts:21](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/next/src/config/with-settlemint.ts#L21)
75
75
 
76
76
  Modifies the passed in Next.js configuration with SettleMint-specific settings.
77
77
 
@@ -102,7 +102,7 @@ If the SettleMint configuration cannot be read or processed
102
102
 
103
103
  #### HelloWorldProps
104
104
 
105
- Defined in: [components/test.tsx:6](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/next/src/components/test.tsx#L6)
105
+ Defined in: [components/test.tsx:6](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/next/src/components/test.tsx#L6)
106
106
 
107
107
  The props for the HelloWorld component.
108
108
 
@@ -110,7 +110,7 @@ The props for the HelloWorld component.
110
110
 
111
111
  #### WithSettleMintOptions
112
112
 
113
- Defined in: [config/with-settlemint.ts:6](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/next/src/config/with-settlemint.ts#L6)
113
+ Defined in: [config/with-settlemint.ts:6](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/next/src/config/with-settlemint.ts#L6)
114
114
 
115
115
  Options for configuring the SettleMint configuration.
116
116
 
@@ -118,7 +118,7 @@ Options for configuring the SettleMint configuration.
118
118
 
119
119
  | Property | Type | Description | Defined in |
120
120
  | ------ | ------ | ------ | ------ |
121
- | <a id="disabled"></a> `disabled?` | `boolean` | Whether to disable the SettleMint configuration. | [config/with-settlemint.ts:10](https://github.com/settlemint/sdk/blob/v2.6.2/sdk/next/src/config/with-settlemint.ts#L10) |
121
+ | <a id="disabled"></a> `disabled?` | `boolean` | Whether to disable the SettleMint configuration. | [config/with-settlemint.ts:10](https://github.com/settlemint/sdk/blob/v2.6.3/sdk/next/src/config/with-settlemint.ts#L10) |
122
122
 
123
123
  ## Contributing
124
124
 
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.d.cts CHANGED
@@ -1,2 +1 @@
1
- /* SettleMint Next.js SDK - Full Stack */
2
- export {};
1
+ export { };
package/dist/all.d.ts CHANGED
@@ -1,2 +1 @@
1
- /* SettleMint Next.js SDK - Full Stack */
2
- export {};
1
+ export { };
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",
4
+ "version": "2.6.3-mainc87184c9",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsdown",
64
- "dev": "tsdown --watch",
64
+ "dev": "tsdown --watch ./src",
65
65
  "publint": "publint run --strict",
66
66
  "attw": "attw --pack .",
67
67
  "test": "bun test",
@@ -75,7 +75,7 @@
75
75
  "@types/react": ">=18"
76
76
  },
77
77
  "dependencies": {
78
- "@settlemint/sdk-utils": "2.6.2",
78
+ "@settlemint/sdk-utils": "2.6.3-mainc87184c9",
79
79
  "path-to-regexp": "^8"
80
80
  },
81
81
  "peerDependencies": {