@fecommunity/reactpress-toolkit 4.0.0-beta.13 → 4.0.0-beta.15
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 +19 -3
- package/dist/theme/build/next-config.js +4 -1
- package/package.json +24 -6
package/README.md
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
# @fecommunity/reactpress-toolkit
|
|
2
2
|
|
|
3
|
-
TypeScript SDK for the ReactPress publishing platform
|
|
3
|
+
> **Official TypeScript SDK for the ReactPress publishing platform.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@fecommunity/reactpress-toolkit/v/beta)
|
|
6
|
+
[](https://www.npmjs.com/package/@fecommunity/reactpress-toolkit)
|
|
7
|
+
[](https://www.npmjs.com/package/@fecommunity/reactpress-toolkit)
|
|
8
|
+
[](https://github.com/fecommunity/reactpress/blob/master/LICENSE)
|
|
9
|
+
|
|
10
|
+
The shared foundation for **ReactPress themes, plugins, Admin extensions, and custom frontends**. Auto-generated OpenAPI clients, Next.js theme SSR helpers, plugin admin hooks, and headless React UI — so you extend the platform instead of duplicating API or rendering logic.
|
|
11
|
+
|
|
12
|
+
| Use case | Start here |
|
|
13
|
+
| :------- | :--------- |
|
|
14
|
+
| **Next.js themes** | `./theme`, `./theme/next-config`, `./app` |
|
|
15
|
+
| **Plugins** | `./plugin`, `./plugin/admin`, `./plugin/client` |
|
|
16
|
+
| **API integration** | `./api`, `./api/instance`, `./types` |
|
|
17
|
+
| **Headless UI** | `./ui` — unstyled components and hooks |
|
|
18
|
+
|
|
19
|
+
[Documentation](https://reactpress-docs.vercel.app/) · [ReactPress CLI](../cli/) · [GitHub](https://github.com/fecommunity/reactpress)
|
|
6
20
|
|
|
7
21
|
## Package exports (`package.json` → `exports`)
|
|
8
22
|
|
|
@@ -271,4 +285,6 @@ Output in `dist/`; `createApp.js` is emitted via `tsc` (`allowJs`) to `dist/them
|
|
|
271
285
|
|
|
272
286
|
## License
|
|
273
287
|
|
|
274
|
-
|
|
288
|
+
MIT © [FECommunity](https://github.com/fecommunity)
|
|
289
|
+
|
|
290
|
+
<p align="center"><sub>Part of <a href="https://github.com/fecommunity/reactpress">ReactPress</a> — the official SDK for themes, plugins, and custom frontends.</sub></p>
|
|
@@ -41,9 +41,12 @@ function applyThemeWebpackResolve(config, appDir) {
|
|
|
41
41
|
* Pass overrides to extend (your `webpack` runs after the supports-color alias).
|
|
42
42
|
*/
|
|
43
43
|
function createReactPressNextConfig(overrides = {}) {
|
|
44
|
-
const { webpack: userWebpack, eslint, transpilePackages, ...rest } = overrides;
|
|
44
|
+
const { webpack: userWebpack, eslint, transpilePackages, compress, ...rest } = overrides;
|
|
45
45
|
return {
|
|
46
46
|
reactStrictMode: true,
|
|
47
|
+
// Themes rewrite `/api` to Nest. Next's compress middleware decompresses upstream
|
|
48
|
+
// bodies but can still emit `Content-Encoding: br`, breaking admin fetch (ERR_CONTENT_DECODING_FAILED).
|
|
49
|
+
compress: compress ?? false,
|
|
47
50
|
transpilePackages: ['@fecommunity/reactpress-toolkit', ...(transpilePackages ?? [])],
|
|
48
51
|
eslint: {
|
|
49
52
|
ignoreDuringBuilds: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fecommunity/reactpress-toolkit",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -134,17 +134,35 @@
|
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
"files": [
|
|
137
|
-
"dist"
|
|
137
|
+
"dist",
|
|
138
|
+
"README.md",
|
|
139
|
+
"LICENSE"
|
|
138
140
|
],
|
|
139
141
|
"keywords": [
|
|
140
142
|
"reactpress",
|
|
143
|
+
"typescript",
|
|
144
|
+
"sdk",
|
|
145
|
+
"headless-cms",
|
|
141
146
|
"cms",
|
|
142
|
-
"
|
|
147
|
+
"blog",
|
|
148
|
+
"nextjs",
|
|
149
|
+
"openapi",
|
|
150
|
+
"api-client",
|
|
151
|
+
"ssr",
|
|
143
152
|
"theme",
|
|
144
|
-
"
|
|
153
|
+
"plugin",
|
|
154
|
+
"react",
|
|
155
|
+
"publishing-platform"
|
|
145
156
|
],
|
|
146
157
|
"author": "fecommunity",
|
|
147
|
-
"license": "
|
|
158
|
+
"license": "MIT",
|
|
159
|
+
"engines": {
|
|
160
|
+
"node": ">=18"
|
|
161
|
+
},
|
|
162
|
+
"homepage": "https://reactpress-docs.vercel.app/",
|
|
163
|
+
"bugs": {
|
|
164
|
+
"url": "https://github.com/fecommunity/reactpress/issues"
|
|
165
|
+
},
|
|
148
166
|
"repository": {
|
|
149
167
|
"type": "git",
|
|
150
168
|
"url": "git+https://github.com/fecommunity/reactpress.git",
|
|
@@ -154,7 +172,7 @@
|
|
|
154
172
|
"access": "public",
|
|
155
173
|
"registry": "https://registry.npmjs.org/"
|
|
156
174
|
},
|
|
157
|
-
"description": "ReactPress TypeScript SDK —
|
|
175
|
+
"description": "Official ReactPress TypeScript SDK — OpenAPI REST clients, Next.js theme SSR, plugin hooks, and headless UI for the publishing platform",
|
|
158
176
|
"dependencies": {
|
|
159
177
|
"ajv": "^8.17.1",
|
|
160
178
|
"axios": "^1.12.2",
|