rimecms 0.23.3 → 0.23.5
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/dist/panel/style/index.css +1 -1
- package/dist/util/string.d.ts +1 -1
- package/dist/util/string.js +7 -3
- package/package.json +19 -20
package/dist/util/string.d.ts
CHANGED
|
@@ -84,6 +84,6 @@ export declare const isCamelCase: (str: string) => boolean;
|
|
|
84
84
|
*/
|
|
85
85
|
export declare const isValidSlug: (str: string) => boolean;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Sanitizes plain text input by escaping HTML characters
|
|
88
88
|
*/
|
|
89
89
|
export declare const sanitize: (value?: string) => string | undefined;
|
package/dist/util/string.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import camelCase from 'camelcase';
|
|
2
|
-
import DOMPurify from 'isomorphic-dompurify';
|
|
3
2
|
/**
|
|
4
3
|
* Capitalizes the first letter of a string.
|
|
5
4
|
*
|
|
@@ -145,10 +144,15 @@ export const isCamelCase = (str) => /^[a-z][a-zA-Z0-9]*$/.test(str);
|
|
|
145
144
|
*/
|
|
146
145
|
export const isValidSlug = (str) => /^[a-zA-Z][a-zA-Z0-9_-]*$/.test(str);
|
|
147
146
|
/**
|
|
148
|
-
*
|
|
147
|
+
* Sanitizes plain text input by escaping HTML characters
|
|
149
148
|
*/
|
|
150
149
|
export const sanitize = (value) => {
|
|
151
150
|
if (!value)
|
|
152
151
|
return value;
|
|
153
|
-
return
|
|
152
|
+
return value
|
|
153
|
+
.replace(/&/g, '&')
|
|
154
|
+
.replace(/</g, '<')
|
|
155
|
+
.replace(/>/g, '>')
|
|
156
|
+
.replace(/"/g, '"')
|
|
157
|
+
.replace(/'/g, ''');
|
|
154
158
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rimecms",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.5",
|
|
4
4
|
"homepage": "https://github.com/bienbiendev/rime",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -166,29 +166,29 @@
|
|
|
166
166
|
"dependencies": {
|
|
167
167
|
"@babel/generator": "^7.28.3",
|
|
168
168
|
"@babel/types": "^7.28.4",
|
|
169
|
-
"@
|
|
169
|
+
"@bienbien/css-reset": "^0.1.2",
|
|
170
170
|
"@floating-ui/dom": "^1.7.4",
|
|
171
171
|
"@internationalized/date": "^3.8.2",
|
|
172
172
|
"@libsql/client": "^0.15.15",
|
|
173
173
|
"@lucide/svelte": "^0.540.0",
|
|
174
174
|
"@playwright/test": "^1.52.0",
|
|
175
|
-
"@tiptap/core": "3.
|
|
176
|
-
"@tiptap/extension-blockquote": "3.
|
|
177
|
-
"@tiptap/extension-bold": "^3.
|
|
178
|
-
"@tiptap/extension-bubble-menu": "^3.
|
|
179
|
-
"@tiptap/extension-document": "^3.
|
|
180
|
-
"@tiptap/extension-hard-break": "^3.
|
|
181
|
-
"@tiptap/extension-heading": "^3.
|
|
182
|
-
"@tiptap/extension-horizontal-rule": "^3.
|
|
183
|
-
"@tiptap/extension-italic": "^3.
|
|
184
|
-
"@tiptap/extension-link": "^3.
|
|
185
|
-
"@tiptap/extension-list": "^3.
|
|
186
|
-
"@tiptap/extension-node-range": "^3.
|
|
187
|
-
"@tiptap/extension-paragraph": "3.
|
|
188
|
-
"@tiptap/extension-text": "3.
|
|
189
|
-
"@tiptap/extension-typography": "3.
|
|
190
|
-
"@tiptap/extensions": "^3.
|
|
191
|
-
"@tiptap/pm": "^3.
|
|
175
|
+
"@tiptap/core": "3.11.0",
|
|
176
|
+
"@tiptap/extension-blockquote": "3.11.0",
|
|
177
|
+
"@tiptap/extension-bold": "^3.11.0",
|
|
178
|
+
"@tiptap/extension-bubble-menu": "^3.11.0",
|
|
179
|
+
"@tiptap/extension-document": "^3.11.0",
|
|
180
|
+
"@tiptap/extension-hard-break": "^3.11.0",
|
|
181
|
+
"@tiptap/extension-heading": "^3.11.0",
|
|
182
|
+
"@tiptap/extension-horizontal-rule": "^3.11.0",
|
|
183
|
+
"@tiptap/extension-italic": "^3.11.0",
|
|
184
|
+
"@tiptap/extension-link": "^3.11.0",
|
|
185
|
+
"@tiptap/extension-list": "^3.11.0",
|
|
186
|
+
"@tiptap/extension-node-range": "^3.11.0",
|
|
187
|
+
"@tiptap/extension-paragraph": "3.11.0",
|
|
188
|
+
"@tiptap/extension-text": "3.11.0",
|
|
189
|
+
"@tiptap/extension-typography": "3.11.0",
|
|
190
|
+
"@tiptap/extensions": "^3.11.0",
|
|
191
|
+
"@tiptap/pm": "^3.11.0",
|
|
192
192
|
"@tiptap/y-tiptap": "^3.0.1",
|
|
193
193
|
"ast-kit": "^2.1.2",
|
|
194
194
|
"autoprefixer": "^10.4.21",
|
|
@@ -205,7 +205,6 @@
|
|
|
205
205
|
"dotenv": "^16.4.7",
|
|
206
206
|
"drizzle-orm": "^0.44.2",
|
|
207
207
|
"flat": "^6.0.1",
|
|
208
|
-
"isomorphic-dompurify": "^2.31.0",
|
|
209
208
|
"js-cookie": "^3.0.5",
|
|
210
209
|
"magic-string-ast": "^1.0.2",
|
|
211
210
|
"nodemailer": "^6.10.0",
|