3 Commits

Author SHA1 Message Date
58dbcdd25a chore(release): v0.1.13
All checks were successful
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Successful in 57s
2026-02-01 21:17:39 -05:00
8ae6dafb62 feat: TinyMCE list style
Some checks failed
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Has been cancelled
2026-02-01 21:17:21 -05:00
faf39ca182 fix: wrangler.json needed for wrangler types before build
All checks were successful
Deployment / wordpress (push) Successful in 7s
Deployment / nuxt (push) Successful in 1m2s
2026-02-01 21:09:51 -05:00
9 changed files with 283 additions and 249 deletions

View File

@@ -1,5 +1,17 @@
# Changelog
## v0.1.13
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.12...v0.1.13)
### 🚀 Enhancements
- TinyMCE list style (8ae6daf)
### 🩹 Fixes
- Wrangler.json needed for wrangler types before build (faf39ca)
## v0.1.12
[compare changes](https://gitea.websimple.com/wp-sites/wp-headless/compare/v0.1.11...v0.1.12)

View File

@@ -4,6 +4,7 @@
@import "./a11y.css";
@import "./containers.css";
@import "./links.css";
@import "./lists.css";
@import "./prose.css";
@import "./typography.css";

View File

@@ -0,0 +1,3 @@
@utility list-horizontal {
@apply list-none flex flex-wrap items-center gap-3;
}

File diff suppressed because one or more lines are too long

View File

@@ -50,6 +50,16 @@ function moonshine_tiny_mce_before_init( $settings ) {
),
),
),
array(
'title' => __( "List styles", 'moonshine' ),
'items' => array(// List styles
array(
'title' => "Liste horizontale",
'selector' => 'ul,ol',
'classes' => 'list-horizontal',
),
),
),
array(
'title' => __( "Heading styles", 'moonshine' ),
'items' => array(// Heading styles

View File

@@ -11,7 +11,7 @@ if (!wpUrl) {
}
const wpDomain = new URL(wpUrl).hostname;
const enableCloudflareImage = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGE);
const enableCloudflareImages = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGES);
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
@@ -57,15 +57,8 @@ export default defineNuxtConfig({
preset: "cloudflare_module",
cloudflare: {
deployConfig: true,
nodeCompat: true,
wrangler: {
// Project name
name: "wp-headless",
// Cloudflare Workers settings
compatibility_date: "2026-01-27",
observability: { enabled: true },
preview_urls: false,
// Environment variables
vars: {
NODE_ENV: "staging",
NUXT_SITE_URL: siteUrl,
@@ -102,7 +95,7 @@ export default defineNuxtConfig({
},
image: {
provider: enableCloudflareImage ? "cloudflare" : "none",
provider: enableCloudflareImages ? "cloudflare" : "none",
cloudflare: { baseURL: `${siteUrl}/` },
domains: [wpDomain],
format: ["avif", "webp"],

View File

@@ -1,7 +1,7 @@
{
"name": "@lewebsimple/moonshine",
"description": "Headless WordPress theme based on Nuxt.",
"version": "0.1.12",
"version": "0.1.13",
"type": "module",
"private": true,
"scripts": {
@@ -11,7 +11,7 @@
"editor-style": "pnpx @tailwindcss/cli -i ./app/assets/css/_main.css -o ./editor-style.css --minify",
"lint": "eslint . --fix",
"postinstall": "pnpm --sequential /postinstall:.*/",
"postinstall:wrangler-types": "pnpm wrangler types ./server/types/cloudflare.d.ts",
"postinstall:wrangler-types": "wrangler types ./server/types/cloudflare.d.ts",
"postinstall:nuxt": "nuxt prepare",
"preview": "pnpm --sequential /preview:.*/",
"preview:build": "pnpm run build",
@@ -19,8 +19,7 @@
"release": "pnpm --sequential /release:.*/",
"release:lint": "eslint .",
"release:typecheck": "nuxt typecheck",
"release:changelogen": "changelogen --noAuthors --release --push",
"wrangler": "wrangler --config .output/server/wrangler.json"
"release:changelogen": "changelogen --noAuthors --release --push"
},
"dependencies": {
"@iconify-json/cib": "^1.2.3",

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
{
"$schema": "./node_modules/wrangler/config-schema.json",
"main": "./output/server/index.mjs",
"compatibility_date": "2026-01-27",
"compatibility_flags": [
"nodejs_compat"
],
"observability": {
"enabled": true
},
"preview_urls": false,
"assets": {
"binding": "ASSETS",
"directory": "../public"
}
}