Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 6 additions & 1 deletion docs/assets/js/admin/widgets/ReactLiquid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ engine.registerFilter('markdownify', (val) => {
if (!val) return '';
return marked.parse(val);
});

engine.registerFilter('xml_escape', (val) => {
if (typeof val !== 'string') return val;
return encode(val);
});

/**
* Creates a <ReactLiquid> component.
* @param root0
* @param root0.template
* @param root0.data
*/
export default function ReactLiquid({ template, data }) {
const [html, setHtml] = useState('');

Expand Down
2 changes: 0 additions & 2 deletions docs/assets/js/admin/widgets/genericPreviewTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import React, { Component } from 'react';
import ReactLiquid from './ReactLiquid';
import template from '../../../../_includes/generic-content.html';

import { marked } from '../../../../../node_modules/marked/lib/marked.esm.js';

export default class Preview extends Component {
render() {
const data = {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"lit": "3.3.1",
"lunr": "2.3.9",
"marked": "16.4.1",
"react": "19.1.0",
"react": "19.2.0",
"slugify": "1.6.6"
},
"devDependencies": {
Expand All @@ -58,7 +58,7 @@
"autoprefixer": "10.4.21",
"concurrently": "9.2.1",
"cssnano": "7.1.1",
"cypress": "15.4.0",
"cypress": "15.5.0",
"esbuild": "0.25.11",
"esbuild-plugin-liquid": "0.2.0",
"esbuild-plugin-minify-html-literals": "3.0.0",
Expand All @@ -67,7 +67,7 @@
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-cypress": "5.2.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsdoc": "61.1.4",
"eslint-plugin-jsdoc": "61.1.5",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-lit": "2.1.1",
"eslint-plugin-react": "7.37.5",
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/e2e/docs/decap-cms.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const getIframeBody = () => {

/**
* Load up the CMS at a particular path.
* @param path {string} - A URL path.
* @param path - {string} - A URL path.
*/
function setupCmsVisit(path) {
cy.reload(true);
Expand Down
70 changes: 34 additions & 36 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2830,10 +2830,10 @@ __metadata:
languageName: node
linkType: hard

"@sindresorhus/base62@npm:^0.1.0":
version: 0.1.0
resolution: "@sindresorhus/base62@npm:0.1.0"
checksum: 10c0/395d48bbe6b1adc3b0f7b630237f10e61be5807904b89d0faf93c3314a820ffbe674fc092eda48a81b44f966d1f7d0ca24d6e512fa6479eeb03f155fef25d042
"@sindresorhus/base62@npm:^1.0.0":
version: 1.0.0
resolution: "@sindresorhus/base62@npm:1.0.0"
checksum: 10c0/9a14df0f058fdf4731c30f0f05728a4822144ee42236030039d7fa5a1a1072c2879feba8091fd4a17c8922d1056bc07bada77c31fddc3e15836fc05a266fd918
languageName: node
linkType: hard

Expand Down Expand Up @@ -4628,7 +4628,7 @@ __metadata:
autoprefixer: "npm:10.4.21"
concurrently: "npm:9.2.1"
cssnano: "npm:7.1.1"
cypress: "npm:15.4.0"
cypress: "npm:15.5.0"
decap-cms-app: "npm:3.8.4"
esbuild: "npm:0.25.11"
esbuild-plugin-liquid: "npm:0.2.0"
Expand All @@ -4638,7 +4638,7 @@ __metadata:
eslint-import-resolver-typescript: "npm:4.4.4"
eslint-plugin-cypress: "npm:5.2.0"
eslint-plugin-import: "npm:2.32.0"
eslint-plugin-jsdoc: "npm:61.1.4"
eslint-plugin-jsdoc: "npm:61.1.5"
eslint-plugin-jsx-a11y: "npm:6.10.2"
eslint-plugin-lit: "npm:2.1.1"
eslint-plugin-react: "npm:7.37.5"
Expand All @@ -4659,7 +4659,7 @@ __metadata:
postcss-replace: "npm:2.0.1"
prettier: "npm:3.6.2"
prop-types: "npm:15.8.1"
react: "npm:19.1.0"
react: "npm:19.2.0"
release-it: "npm:19.0.5"
sass: "npm:1.93.2"
slugify: "npm:1.6.6"
Expand Down Expand Up @@ -5496,9 +5496,9 @@ __metadata:
languageName: node
linkType: hard

"cypress@npm:15.4.0":
version: 15.4.0
resolution: "cypress@npm:15.4.0"
"cypress@npm:15.5.0":
version: 15.5.0
resolution: "cypress@npm:15.5.0"
dependencies:
"@cypress/request": "npm:^3.0.9"
"@cypress/xvfb": "npm:^1.2.4"
Expand Down Expand Up @@ -5545,7 +5545,7 @@ __metadata:
yauzl: "npm:^2.10.0"
bin:
cypress: bin/cypress
checksum: 10c0/b96cfe8ee4ee06b36e3c8b2c84b0e79d281e68c467b5ad4230648c7c8106ce6d36bfc545876cd63fe1e2deea66c881c933ff4627dec31431ddda5cc05c8c2f3a
checksum: 10c0/0a7aabc9920a808f5257f111b9b4bb6602e9b7146dd945a49e16a0811c201d5f5837f9ae439756556b686e020155483542505bf8499b72307236047b85a1130b
languageName: node
linkType: hard

Expand Down Expand Up @@ -7415,9 +7415,9 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-jsdoc@npm:61.1.4":
version: 61.1.4
resolution: "eslint-plugin-jsdoc@npm:61.1.4"
"eslint-plugin-jsdoc@npm:61.1.5":
version: 61.1.5
resolution: "eslint-plugin-jsdoc@npm:61.1.5"
dependencies:
"@es-joy/jsdoccomment": "npm:~0.76.0"
are-docs-informative: "npm:^0.0.2"
Expand All @@ -7427,14 +7427,14 @@ __metadata:
espree: "npm:^10.4.0"
esquery: "npm:^1.6.0"
html-entities: "npm:^2.6.0"
object-deep-merge: "npm:^1.0.5"
object-deep-merge: "npm:^2.0.0"
parse-imports-exports: "npm:^0.2.4"
semver: "npm:^7.7.3"
spdx-expression-parse: "npm:^4.0.0"
to-valid-identifier: "npm:^0.1.1"
to-valid-identifier: "npm:^1.0.0"
peerDependencies:
eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
checksum: 10c0/9a08ad6518a77947e0b41c592c658a7f95af9765fd2034ed14d844c3b366a4467da962aeff276ed1415313f78cee885955aa40cbcf43cbe92db113bbbf3d55b2
checksum: 10c0/f8e00dde6c72b749c592ec101415b2af2e70bccef9487782f9ea331682acbe196d3c3db9c27ac509e732f5889fa46c70d3dea096904447768f82405151e63ae9
languageName: node
linkType: hard

Expand Down Expand Up @@ -12589,12 +12589,10 @@ __metadata:
languageName: node
linkType: hard

"object-deep-merge@npm:^1.0.5":
version: 1.0.5
resolution: "object-deep-merge@npm:1.0.5"
dependencies:
type-fest: "npm:4.2.0"
checksum: 10c0/6664ecb43a2519c9b101f1c3b130dfc73e108d86ec06fbe7261505e1522cf8b69b10dd53b8cbb4cde35cca9d44d349667e2404f06fff85cf9f50b825bb6d1839
"object-deep-merge@npm:^2.0.0":
version: 2.0.0
resolution: "object-deep-merge@npm:2.0.0"
checksum: 10c0/69e8741131ad49fa8720fb96007a3c82dca1119b5d874151d2ecbcc3b44ccd46e8553c7a30b0abcba752c099ba361bbba97f33a68c9ae54c57eed7be116ffc97
languageName: node
linkType: hard

Expand Down Expand Up @@ -14486,7 +14484,14 @@ __metadata:
languageName: node
linkType: hard

"react@npm:19.1.0, react@npm:^19.1.0":
"react@npm:19.2.0":
version: 19.2.0
resolution: "react@npm:19.2.0"
checksum: 10c0/1b6d64eacb9324725bfe1e7860cb7a6b8a34bc89a482920765ebff5c10578eb487e6b46b2f0df263bd27a25edbdae2c45e5ea5d81ae61404301c1a7192c38330
languageName: node
linkType: hard

"react@npm:^19.1.0":
version: 19.1.0
resolution: "react@npm:19.1.0"
checksum: 10c0/530fb9a62237d54137a13d2cfb67a7db6a2156faed43eecc423f4713d9b20c6f2728b026b45e28fcd72e8eadb9e9ed4b089e99f5e295d2f0ad3134251bdd3698
Expand Down Expand Up @@ -16625,13 +16630,13 @@ __metadata:
languageName: node
linkType: hard

"to-valid-identifier@npm:^0.1.1":
version: 0.1.1
resolution: "to-valid-identifier@npm:0.1.1"
"to-valid-identifier@npm:^1.0.0":
version: 1.0.0
resolution: "to-valid-identifier@npm:1.0.0"
dependencies:
"@sindresorhus/base62": "npm:^0.1.0"
"@sindresorhus/base62": "npm:^1.0.0"
reserved-identifiers: "npm:^1.0.0"
checksum: 10c0/39d337822478812d4cf6142cd33368710b62c33e5c0dbf8a2e75464a38f843b72e7f67a79caaefafc91311453eeab1b9583e41bc509384345a7ff90aac2538e2
checksum: 10c0/569b49f43b5aaaa20677e67f0f1cdcff344855149934cfb80c793c7ac7c30e191b224bc81cab40fb57641af9ca73795c78053c164a2addc617671e2d22c13a4a
languageName: node
linkType: hard

Expand Down Expand Up @@ -16803,13 +16808,6 @@ __metadata:
languageName: node
linkType: hard

"type-fest@npm:4.2.0":
version: 4.2.0
resolution: "type-fest@npm:4.2.0"
checksum: 10c0/75e0c112ae91d3b68c75da9b7563cf393f91ebdfca5d53d0b3f0405690217eadca318f9ddb89d58ee6ed67b8e32d23a4eae2aabc4e351e5ae184d610247bf772
languageName: node
linkType: hard

"type-fest@npm:^0.21.3":
version: 0.21.3
resolution: "type-fest@npm:0.21.3"
Expand Down
Loading