2025-06-12

- sauvegarde les changements en vrac avant de tester les modifications
  demandées par Manon
This commit is contained in:
gcch 2025-06-12 17:09:38 +02:00
commit e0e7bf18f2
15 changed files with 767 additions and 424 deletions

View file

@ -13,19 +13,8 @@
height: 100%; height: 100%;
margin: 0; margin: 0;
font-family: font-family:
-apple-system, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell,
BlinkMacSystemFont, Ubuntu, roboto, noto, arial, sans-serif;
avenir next,
avenir,
segoe ui,
helvetica neue,
helvetica,
Cantarell,
Ubuntu,
roboto,
noto,
arial,
sans-serif;
} }
body { body {

6
.zed/settings.json Normal file
View file

@ -0,0 +1,6 @@
// Folder-specific settings
//
// For a full list of overridable settings, and general information on folder-specific settings,
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
{
}

641
bun.lock

File diff suppressed because it is too large Load diff

423
composer.lock generated

File diff suppressed because it is too large Load diff

1
cspell.json Normal file
View file

@ -0,0 +1 @@
{ "dict": ["fr,fr"] }

View file

@ -76,13 +76,13 @@
}, },
"newLineKind": "lf", "newLineKind": "lf",
"plugins": [ "plugins": [
"https://plugins.dprint.dev/typescript-0.94.0.wasm", "https://plugins.dprint.dev/typescript-0.95.6.wasm",
"https://plugins.dprint.dev/json-0.20.0.wasm", "https://plugins.dprint.dev/json-0.20.0.wasm",
"https://plugins.dprint.dev/markdown-0.18.0.wasm", "https://plugins.dprint.dev/markdown-0.18.0.wasm",
"https://plugins.dprint.dev/toml-0.7.0.wasm", "https://plugins.dprint.dev/toml-0.7.0.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.11.2.wasm", "https://plugins.dprint.dev/g-plane/malva-v0.12.1.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.19.1.wasm", "https://plugins.dprint.dev/g-plane/markup_fmt-v0.20.0.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm", "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
"https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf" "https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf"
], ],
"toml": { "toml": {

View file

@ -10,56 +10,59 @@
"keywords": [], "keywords": [],
"scripts": { "knip": "knip", "test": "echo \"Error: no test specified\" && exit 1" }, "scripts": { "knip": "knip", "test": "echo \"Error: no test specified\" && exit 1" },
"dependencies": { "dependencies": {
"@effect/platform": "^0.80.13", "@effect/platform": "^0.84.9",
"@sentry/browser": "9.14.0", "@mobily/ts-belt": "v4.0.0-rc.5",
"@sentry/browser": "9.28.1",
"a11y-dialog": "^8.1.3", "a11y-dialog": "^8.1.3",
"chalk": "^5.4.1", "chalk": "^5.4.1",
"effect": "^3.14.13", "effect": "^3.16.5",
"lit-html": "^3.3.0", "lit-html": "^3.3.0",
"loglevel": "^1.9.2", "loglevel": "^1.9.2",
"loglevel-plugin-prefix": "^0.8.4", "loglevel-plugin-prefix": "^0.8.4",
"ts-pattern": "^5.7.0", "ts-pattern": "^5.7.1",
"valibot": "1.0.0" "valibot": "1.1.0"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.9.4", "@biomejs/biome": "^1.9.4",
"@eslint/js": "^9.25.1", "@cspell/dict-fr-fr": "^2.3.0",
"@eslint/js": "^9.28.0",
"@prettier/plugin-php": "^0.22.4", "@prettier/plugin-php": "^0.22.4",
"@prettier/plugin-xml": "^3.4.1", "@prettier/plugin-xml": "^3.4.1",
"@sentry/core": "^9.14.0", "@sentry/core": "^9.28.1",
"@swc/cli": "0.7.3", "@swc/cli": "0.7.7",
"@types/node": "^22.14.1", "@types/node": "^24.0.0",
"@vitejs/plugin-legacy": "^6.1.0", "@vitejs/plugin-legacy": "^6.1.1",
"@vitest/ui": "3.1.2", "@vitest/ui": "3.2.3",
"better-typescript-lib": "^2.11.0", "better-typescript-lib": "^2.11.0",
"browserslist": "^4.24.4", "browserslist": "^4.25.0",
"eslint": "^9.25.1", "cspell": "^9.0.2",
"eslint-plugin-oxlint": "^0.16.7", "eslint": "^9.28.0",
"eslint-plugin-perfectionist": "^4.12.1", "eslint-plugin-oxlint": "^1.0.0",
"fdir": "^6.4.4", "eslint-plugin-perfectionist": "^4.14.0",
"globals": "^16.0.0", "fdir": "^6.4.6",
"happy-dom": "^17.4.4", "globals": "^16.2.0",
"knip": "^5.50.5", "happy-dom": "^18.0.1",
"oxlint": "^0.16.7", "knip": "^5.60.2",
"oxlint": "^1.0.0",
"picomatch": "^4.0.2", "picomatch": "^4.0.2",
"prettier": "^3.5.3", "prettier": "^3.5.3",
"prettier-plugin-pkg": "^0.19.0", "prettier-plugin-pkg": "^0.21.1",
"prettier-plugin-sh": "^0.17.2", "prettier-plugin-sh": "^0.17.4",
"sass-embedded": "^1.87.0", "sass-embedded": "^1.89.2",
"stylelint": "^16.19.0", "stylelint": "^16.20.0",
"stylelint-config-clean-order": "^7.0.0", "stylelint-config-clean-order": "^7.0.0",
"stylelint-config-sass-guidelines": "^12.1.0", "stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-standard-scss": "^14.0.0", "stylelint-config-standard-scss": "^15.0.1",
"stylelint-declaration-block-no-ignored-properties": "^2.8.0", "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
"stylelint-plugin-logical-css": "^1.2.3", "stylelint-plugin-logical-css": "^1.2.3",
"typescript": "5.8.3", "typescript": "5.8.3",
"typescript-eslint": "^8.31.0", "typescript-eslint": "^8.34.0",
"vite": "^6.3.2", "vite": "^6.3.5",
"vite-plugin-manifest-sri": "^0.2.0", "vite-plugin-manifest-sri": "^0.2.0",
"vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-node-polyfills": "^0.23.0",
"vite-plugin-valibot-env": "^0.10.0", "vite-plugin-valibot-env": "^0.10.2",
"vite-tsconfig-paths": "^5.1.4", "vite-tsconfig-paths": "^5.1.4",
"vitest": "3.1.2", "vitest": "3.2.3",
"wp-types": "^4.68.0" "wp-types": "^4.68.0"
}, },
"browserslist": [ "browserslist": [

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -0,0 +1,9 @@
<svg
width="307.49"
height="77.116"
viewBox="0 0 307.49 77.116"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
><path
d="M32.444 37.183c-20.81 0-21.059 17.971-21.059 36.43 0 1.02-.949 2.25-2.183 2.25h-7.02C.949 75.863 0 74.884 0 73.613V2.52C0 1.249.948.271 2.182.271h7.59c1.526 0 2.181.767 2.181 1.858 0 8.244 2.358 26.106 20.49 26.106 18.816 0 20.491-16.657 20.491-26.106 0-1.092 1.043-1.858 2.182-1.858h7.59c1.232 0 2.181.978 2.181 2.249v71.093c0 1.271-.948 2.25-2.181 2.25h-7.021c-1.233 0-2.182-1.261-2.182-2.25.002-16.652.434-36.43-21.059-36.43M71.91 74.247c-.854-34.243 16.317-55.889 32.159-66.01 7.114-4.524 15.652-7.646 31.115-7.861 1.518 0 2.276 1.184 2.276 3.015v55.565c0 9.692-8.063 15.387-15.842 13.771-12.522-2.585-18.594-17.647-26.183-25.832-2.656-2.799-6.355-2.691-8.917.754-3.51 4.738-3.226 9.8-3.226 25.844 0 2.047-.189 2.263-1.992 2.37h-7.874c-.947 0-1.516-.431-1.516-1.616m55.116-22.506-.285-29.721c0-4.2-2.276-6.999-5.977-6.892-4.269.107-10.909 3.337-14.419 6.568-5.027 4.522-5.881 7.107-4.079 12.599 1.423 4.2 9.961 18.199 16.222 22.291 4.269 2.908 8.538.647 8.538-4.845m23.441 21.312V2.703c0-2.162.569-2.703 2.088-2.703h9.651c1.803 0 1.96.541 1.96 2.703l.095 70.35c0 2.053-.949 2.81-2.467 2.81h-8.955c-1.518 0-2.372-.649-2.372-2.81m26.796.878V2.459c0-1.395 1.183-1.717 2.131-1.717h8.539c1.138 0 2.226.322 2.226 1.717v24.716c0 1.54 1.606 1.54 1.606 1.54 3.875 0 11.305.032 11.305.032 18.014 0 19.026-16.768 19.026-25.858 0-1.621.569-2.146 1.993-2.146L233.09.64c1.233 0 2.092.841 2.092 2.249 0 15.577-1.188 29.832-16.069 29.832 17.291 0 16.543 20.726 16.543 41.102 0 1.186-.38 2.04-1.708 2.04h-9.29c-1.707 0-1.896-.858-1.896-2.254 0-21.024-1.217-35.922-20.182-35.922h-10.903c-1.138 0-1.518.429-1.518 1.824v34.42c0 1.181-1.088 1.932-2.226 1.932h-8.539c-.948 0-2.131-.751-2.131-1.932m114.835-31.974V3.248c0-1.847.398-2.607 2.093-2.607h11.205c1.895 0 2.094.761 2.094 2.607v41.275c0 16.075-13.059 33.021-30.801 32.585-17.741-.434-30.799-16.51-30.799-32.585V3.248c0-1.847.199-2.607 2.093-2.607h11.205c1.694 0 2.093.761 2.093 2.607v38.709c0 11.403 2.433 23.85 15.408 23.85 13.431-.001 15.409-12.447 15.409-23.85"
/></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -105,12 +105,12 @@ export const WCV3ProductAttributeSchema = v.object({
export const WCV3ProductDefaultAttributeSchema = v.object({ export const WCV3ProductDefaultAttributeSchema = v.object({
id: v.pipe(v.number(), v.integer()), id: v.pipe(v.number(), v.integer()),
name: v.string(), name: v.string(),
option: v.string(), option: v.optional(v.unknown()),
}); });
export const WCV3ProductMetaDataSchema = v.object({ export const WCV3ProductMetaDataSchema = v.object({
id: v.pipe(v.number(), v.integer()), id: v.pipe(v.number(), v.integer()),
key: v.string(), key: v.string(),
option: v.unknown(), option: v.optional(v.unknown()),
}); });
export const WCV3ProductSchema = v.object({ export const WCV3ProductSchema = v.object({

View file

@ -10,7 +10,7 @@
decoding="async" decoding="async"
height="25" height="25"
loading="eager" loading="eager"
src="{{ site.theme.link }}/assets/img/logos/logo-lines.svg" src="{{ site.theme.link }}/assets/img/logos/logo-v2-text.png"
width="80" width="80"
> >
</button> </button>

View file

@ -4,7 +4,7 @@ namespace Carbon_Fields;
# Define version constant # Define version constant
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) { if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
define( __NAMESPACE__ . '\VERSION', '3.6.6' ); define( __NAMESPACE__ . '\VERSION', '3.6.9' );
} }
# Define root directory # Define root directory

View file

@ -449,9 +449,7 @@ class Block_Container extends Container {
unset($attributes['data']); unset($attributes['data']);
ob_start(); ob_start();
call_user_func( $this->render_callback , $fields, $attributes, $content, $post_id, $block ); call_user_func( $this->render_callback , $fields, $attributes, $content, $post_id, $block );
$toReturn = ob_get_contents(); return ob_get_clean();
ob_clean();
return $toReturn;
} }
/** /**

View file

@ -100,11 +100,14 @@ class Meta_Query_Service extends Service {
} }
public function filter_get_meta_sql( $sql ) { public function filter_get_meta_sql( $sql ) {
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) { if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] ); $sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
} }
return $sql; if ( strpos( $sql['join'], static::META_KEY_PREFIX ) !== false ) {
} $sql['join'] = str_replace( static::META_KEY_PREFIX, '', $sql['join'] );
}
return $sql;
}
/************************************************** /**************************************************
* WP_QUERY * * WP_QUERY *

View file

@ -1,6 +1,6 @@
{ {
"name": "carbon-fields", "name": "carbon-fields",
"version": "3.6.6", "version": "3.6.9",
"description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.", "description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.",
"directories": { "directories": {
"test": "tests" "test": "tests"