@prezly/theme-kit-nextjs 10.12.0 → 10.14.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.
@@ -28,9 +28,9 @@ export declare namespace IntlAdapter {
28
28
  for: IntlMessageDescriptor;
29
29
  values?: IntlMessageValues<string | ReactElement>;
30
30
  locale: Locale.Code;
31
- }) => Promise<import("react/jsx-runtime").JSX.Element>;
32
- FormattedDate: (props: Omit<BaseFormattedDate.Props, "timezone">) => Promise<import("react/jsx-runtime").JSX.Element>;
33
- FormattedTime: (props: Omit<BaseFormattedTime.Props, "timezone">) => Promise<import("react/jsx-runtime").JSX.Element>;
31
+ }) => Promise<import("react").JSX.Element>;
32
+ FormattedDate: (props: Omit<BaseFormattedDate.Props, "timezone">) => Promise<import("react").JSX.Element>;
33
+ FormattedTime: (props: Omit<BaseFormattedTime.Props, "timezone">) => Promise<import("react").JSX.Element>;
34
34
  };
35
35
  }
36
36
  export {};
@@ -34,6 +34,6 @@ export declare function connect<Routes extends RoutesMap>(): {
34
34
  };
35
35
  RoutingContextProvider: (props: Context<Routes> & {
36
36
  children: ReactNode;
37
- }) => import("react/jsx-runtime").JSX.Element;
37
+ }) => import("react").JSX.Element;
38
38
  };
39
39
  export {};
@@ -7,7 +7,7 @@ export declare namespace ThemeSettingsAdapter {
7
7
  ThemeSettingsProvider: (props: {
8
8
  settings: Partial<T> | undefined;
9
9
  children: ReactNode;
10
- }) => import("react/jsx-runtime").JSX.Element;
10
+ }) => import("react").JSX.Element;
11
11
  useThemeSettings: () => T;
12
12
  };
13
13
  }
@@ -39,7 +39,7 @@ function createNextConfig() {
39
39
  value: 'nosniff'
40
40
  }, {
41
41
  key: 'Content-Security-Policy',
42
- value: "upgrade-insecure-requests; report-uri https://csp.prezly.net/report; frame-ancestors 'self' https://rock.prezly.com https://admin.prezly.com https://*.prezly.net http://rock.prezly.test"
42
+ value: "upgrade-insecure-requests; report-uri https://csp.prezly.net/report; frame-ancestors 'self' https://rock.prezly.com https://admin.prezly.com"
43
43
  }]
44
44
  }];
45
45
  });
@@ -33,7 +33,7 @@ export function createNextConfig() {
33
33
  value: 'nosniff'
34
34
  }, {
35
35
  key: 'Content-Security-Policy',
36
- value: "upgrade-insecure-requests; report-uri https://csp.prezly.net/report; frame-ancestors 'self' https://rock.prezly.com https://admin.prezly.com https://*.prezly.net http://rock.prezly.test"
36
+ value: "upgrade-insecure-requests; report-uri https://csp.prezly.net/report; frame-ancestors 'self' https://rock.prezly.com https://admin.prezly.com"
37
37
  }]
38
38
  }];
39
39
  });
package/package.json CHANGED
@@ -1,115 +1,114 @@
1
1
  {
2
- "name": "@prezly/theme-kit-nextjs",
3
- "version": "10.12.0",
4
- "description": "Data layer and utility library for developing Prezly themes with NextJS",
5
- "type": "module",
6
- "main": "build/index.mjs",
7
- "types": "build/index.d.ts",
8
- "files": [
9
- "build",
10
- "README.md"
11
- ],
12
- "exports": {
13
- ".": {
14
- "types": "./build/index.d.ts",
15
- "require": "./build/index.cjs",
16
- "default": "./build/index.mjs"
17
- },
18
- "./server": {
19
- "types": "./build/server.d.ts",
20
- "require": "./build/server.cjs",
21
- "default": "./build/server.mjs"
22
- },
23
- "./middleware": {
24
- "types": "./build/middleware/index.d.ts",
25
- "require": "./build/middleware/index.cjs",
26
- "default": "./build/middleware/index.mjs"
27
- },
28
- "./next-config": {
29
- "types": "./build/next-config/index.d.ts",
30
- "require": "./build/next-config/index.cjs",
31
- "default": "./build/next-config/index.mjs"
32
- },
33
- "./sentry": {
34
- "types": "./build/sentry/index.d.ts",
35
- "require": "./build/sentry/index.cjs",
36
- "default": "./build/sentry/index.mjs"
37
- },
38
- "./playwright": {
39
- "types": "./build/playwright/index.d.ts",
40
- "require": "./build/playwright/index.cjs",
41
- "default": "./build/playwright/index.mjs"
42
- }
2
+ "name": "@prezly/theme-kit-nextjs",
3
+ "version": "10.14.0",
4
+ "description": "Data layer and utility library for developing Prezly themes with NextJS",
5
+ "type": "module",
6
+ "main": "build/index.mjs",
7
+ "types": "build/index.d.ts",
8
+ "files": [
9
+ "build",
10
+ "README.md"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./build/index.d.ts",
15
+ "require": "./build/index.cjs",
16
+ "default": "./build/index.mjs"
43
17
  },
44
- "engines": {
45
- "node": ">= 18.18.0",
46
- "npm": ">= 8.x"
18
+ "./server": {
19
+ "types": "./build/server.d.ts",
20
+ "require": "./build/server.cjs",
21
+ "default": "./build/server.mjs"
47
22
  },
48
- "repository": {
49
- "type": "git",
50
- "url": "git+https://github.com/prezly/theme-kit-js.git",
51
- "directory": "packages/nextjs"
23
+ "./middleware": {
24
+ "types": "./build/middleware/index.d.ts",
25
+ "require": "./build/middleware/index.cjs",
26
+ "default": "./build/middleware/index.mjs"
52
27
  },
53
- "keywords": [
54
- "prezly",
55
- "nextjs"
56
- ],
57
- "author": "Prezly Team",
58
- "license": "MIT",
59
- "bugs": {
60
- "url": "https://github.com/prezly/theme-kit-js/issues"
28
+ "./next-config": {
29
+ "types": "./build/next-config/index.d.ts",
30
+ "require": "./build/next-config/index.cjs",
31
+ "default": "./build/next-config/index.mjs"
61
32
  },
62
- "homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/nextjs#readme",
63
- "scripts": {
64
- "prepack": "pnpm test:build",
65
- "prebuild": "rimraf --glob build/* *.tsbuildinfo",
66
- "build": "pnpm build:types && pnpm build:esm && pnpm build:cjs",
67
- "build:types": "tsc --project .",
68
- "build:esm": "babel --config-file=../../babel.esm.json src/ --extensions=.ts,.tsx --out-dir=build/ --out-file-extension=.mjs",
69
- "build:cjs": "babel --config-file=../../babel.cjs.json src/ --extensions=.ts,.tsx --out-dir=build/ --out-file-extension=.cjs",
70
- "dev": "tsc --watch --preserveWatchOutput --project .",
71
- "typecheck": "tsc --noEmit --emitDeclarationOnly false --incremental --project .",
72
- "lint": "biome lint src",
73
- "lint:fix": "biome lint --write src",
74
- "format": "biome format src",
75
- "format:fix": "biome format --write src",
76
- "test": "pnpm test:unit && pnpm test:build",
77
- "test:unit": "jest",
78
- "test:redis": "node tests/test-redis-resilience.cjs",
79
- "test:build": "pnpm test:build:cjs && pnpm test:build:esm && pnpm test:build:types",
80
- "test:build:types": "tsc --esModuleInterop --noEmit --target es2020 --moduleResolution node tests/test-build-types.ts",
81
- "test:build:esm": "node tests/test-build.mjs",
82
- "test:build:cjs": "node tests/test-build.cjs"
33
+ "./sentry": {
34
+ "types": "./build/sentry/index.d.ts",
35
+ "require": "./build/sentry/index.cjs",
36
+ "default": "./build/sentry/index.mjs"
83
37
  },
84
- "peerDependencies": {
85
- "@playwright/test": "1.x",
86
- "@prezly/sdk": "21.12.0 || ^23.x",
87
- "next": "^14.x || ^15.x",
88
- "react": "^18.x || ^19.x",
89
- "react-dom": "^18.x || ^19.x"
90
- },
91
- "peerDependenciesMeta": {
92
- "@playwright/test": {
93
- "optional": true
94
- }
95
- },
96
- "dependencies": {
97
- "@noble/hashes": "1.8.0",
98
- "@prezly/theme-kit-core": "^10.12.0",
99
- "@prezly/theme-kit-intl": "^10.12.0",
100
- "@prezly/theme-kit-react": "^10.12.0",
101
- "@technically/is-not-undefined": "^1.0.0",
102
- "@technically/omit-undefined": "^1.0.4",
103
- "json-stable-stringify": "^1.2.1",
104
- "redis": "^4.7.0",
105
- "url-pattern": "^1.0.3"
106
- },
107
- "devDependencies": {
108
- "@sentry/nextjs": "7.120.4"
109
- },
110
- "publishConfig": {
111
- "access": "public"
112
- },
113
- "sideEffects": false,
114
- "gitHead": "aa8fe2c8311ddf0c5aa2329da15e086b12a81d96"
115
- }
38
+ "./playwright": {
39
+ "types": "./build/playwright/index.d.ts",
40
+ "require": "./build/playwright/index.cjs",
41
+ "default": "./build/playwright/index.mjs"
42
+ }
43
+ },
44
+ "engines": {
45
+ "node": ">= 18.18.0",
46
+ "npm": ">= 8.x"
47
+ },
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/prezly/theme-kit-js.git",
51
+ "directory": "packages/nextjs"
52
+ },
53
+ "keywords": [
54
+ "prezly",
55
+ "nextjs"
56
+ ],
57
+ "author": "Prezly Team",
58
+ "license": "MIT",
59
+ "bugs": {
60
+ "url": "https://github.com/prezly/theme-kit-js/issues"
61
+ },
62
+ "homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/nextjs#readme",
63
+ "peerDependencies": {
64
+ "@playwright/test": "1.x",
65
+ "@prezly/sdk": "21.12.0 || ^23.0.1 || ^26.16.0",
66
+ "next": "^14.x || ^15.x",
67
+ "react": "^18.x || ^19.x",
68
+ "react-dom": "^18.x || ^19.x"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "@playwright/test": {
72
+ "optional": true
73
+ }
74
+ },
75
+ "dependencies": {
76
+ "@noble/hashes": "1.8.0",
77
+ "@technically/is-not-undefined": "^1.0.0",
78
+ "@technically/omit-undefined": "^1.0.4",
79
+ "json-stable-stringify": "^1.2.1",
80
+ "redis": "^4.7.0",
81
+ "url-pattern": "^1.0.3",
82
+ "@prezly/theme-kit-core": "^10.14.0",
83
+ "@prezly/theme-kit-intl": "^10.14.0",
84
+ "@prezly/theme-kit-react": "^10.14.0"
85
+ },
86
+ "devDependencies": {
87
+ "@sentry/nextjs": "7.120.4"
88
+ },
89
+ "publishConfig": {
90
+ "access": "public"
91
+ },
92
+ "sideEffects": false,
93
+ "gitHead": "51b1ce99cf8ce2c886001077bcaf95cb143f86ce",
94
+ "scripts": {
95
+ "prebuild": "rimraf --glob build/* *.tsbuildinfo",
96
+ "build": "pnpm build:types && pnpm build:esm && pnpm build:cjs",
97
+ "build:types": "tsc --project .",
98
+ "build:esm": "babel --config-file=../../babel.esm.json src/ --extensions=.ts,.tsx --out-dir=build/ --out-file-extension=.mjs",
99
+ "build:cjs": "babel --config-file=../../babel.cjs.json src/ --extensions=.ts,.tsx --out-dir=build/ --out-file-extension=.cjs",
100
+ "dev": "tsc --watch --preserveWatchOutput --project .",
101
+ "typecheck": "tsc --noEmit --emitDeclarationOnly false --incremental --project .",
102
+ "lint": "biome lint src",
103
+ "lint:fix": "biome lint --write src",
104
+ "format": "biome format src",
105
+ "format:fix": "biome format --write src",
106
+ "test": "pnpm test:unit && pnpm test:build",
107
+ "test:unit": "jest",
108
+ "test:redis": "node tests/test-redis-resilience.cjs",
109
+ "test:build": "pnpm test:build:cjs && pnpm test:build:esm && pnpm test:build:types",
110
+ "test:build:types": "tsc --esModuleInterop --noEmit --target es2020 --moduleResolution node tests/test-build-types.ts",
111
+ "test:build:esm": "node tests/test-build.mjs",
112
+ "test:build:cjs": "node tests/test-build.cjs"
113
+ }
114
+ }