@sveltia/cms 0.146.0 → 0.146.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/cms",
3
- "version": "0.146.0",
3
+ "version": "0.146.1",
4
4
  "description": "Sveltia CMS is a modern, lightweight, Git-based headless content management system.",
5
5
  "keywords": [
6
6
  "cms",
package/types/public.d.ts CHANGED
@@ -2443,27 +2443,21 @@ export type EditorComponentDefinition = {
2443
2443
  */
2444
2444
  pattern: RegExp;
2445
2445
  /**
2446
- * Function to convert
2447
- * the matching result to field properties. This can be omitted if the `pattern` regex contains
2448
- * named capturing group(s) that will be passed directly to the internal `createNode` method.
2446
+ * Function to convert the
2447
+ * matching result to field properties. This can be omitted if the `pattern` regex contains named
2448
+ * capturing group(s) that will be passed directly to the internal `createNode` method.
2449
2449
  */
2450
- fromBlock?: (match: RegExpMatchArray) => {
2451
- [key: string]: any;
2452
- };
2450
+ fromBlock?: (match: RegExpMatchArray) => Record<string, any>;
2453
2451
  /**
2454
- * Function to convert field
2455
- * properties to Markdown content.
2452
+ * Function to convert field properties
2453
+ * to Markdown content.
2456
2454
  */
2457
- toBlock: (props: {
2458
- [key: string]: any;
2459
- }) => string;
2455
+ toBlock: (props: Record<string, any>) => string;
2460
2456
  /**
2461
- * Function to
2462
- * convert field properties to field preview.
2457
+ * Function to convert
2458
+ * field properties to field preview.
2463
2459
  */
2464
- toPreview?: (props: {
2465
- [key: string]: any;
2466
- }) => string | ReactElement;
2460
+ toPreview?: (props: Record<string, any>) => string | ReactElement;
2467
2461
  };
2468
2462
  /**
2469
2463
  * Supported event type.