@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/dist/sveltia-cms.js +110 -110
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +109 -109
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/types/public.d.ts +10 -16
package/package.json
CHANGED
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
|
-
*
|
|
2448
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|