datocms-plugin-sdk 0.3.34-alpha.1 → 0.3.34-alpha.2
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/esm/types.d.ts +2 -2
- package/dist/types/types.d.ts +2 -2
- package/package.json +3 -3
- package/src/types.ts +2 -15
- package/types.json +407 -432
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
|
|
3
3
|
import { Account, Field, Fieldset, Item, ModelBlock, Plugin, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
|
|
4
4
|
export declare type Icon = string | {
|
|
5
5
|
type: 'svg';
|
|
@@ -295,7 +295,7 @@ export declare type StructuredTextCustomBlockStyle = {
|
|
|
295
295
|
/** ID of custom block style */
|
|
296
296
|
id: string;
|
|
297
297
|
/** The block node that can apply this style */
|
|
298
|
-
node:
|
|
298
|
+
node: BlockNodeTypeWithCustomStyle;
|
|
299
299
|
/** ID of custom block style */
|
|
300
300
|
label: string;
|
|
301
301
|
/** How the block will be styled inside the editor to represent the style */
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
|
|
3
3
|
import { Account, Field, Fieldset, Item, ModelBlock, Plugin, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
|
|
4
4
|
export declare type Icon = string | {
|
|
5
5
|
type: 'svg';
|
|
@@ -295,7 +295,7 @@ export declare type StructuredTextCustomBlockStyle = {
|
|
|
295
295
|
/** ID of custom block style */
|
|
296
296
|
id: string;
|
|
297
297
|
/** The block node that can apply this style */
|
|
298
|
-
node:
|
|
298
|
+
node: BlockNodeTypeWithCustomStyle;
|
|
299
299
|
/** ID of custom block style */
|
|
300
300
|
label: string;
|
|
301
301
|
/** How the block will be styled inside the editor to represent the style */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-sdk",
|
|
3
|
-
"version": "0.3.34-alpha.
|
|
3
|
+
"version": "0.3.34-alpha.2",
|
|
4
4
|
"description": "DatoCMS Plugin SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"url": "https://github.com/datocms/plugins-sdk/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"datocms-structured-text-utils": "1.2.3-alpha.
|
|
39
|
+
"datocms-structured-text-utils": "1.2.3-alpha.1",
|
|
40
40
|
"penpal": "^4.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/react": "^17.0.3",
|
|
44
44
|
"typedoc": "^0.22.8"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "725d3879054486ed54fbc3fb6bbf3ff9dbdf7677"
|
|
47
47
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BlockquoteType,
|
|
3
|
-
CodeType,
|
|
4
|
-
HeadingType,
|
|
5
|
-
ListType,
|
|
6
|
-
ParagraphType,
|
|
7
|
-
ThematicBreakType,
|
|
8
|
-
} from 'datocms-structured-text-utils';
|
|
1
|
+
import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
|
|
9
2
|
|
|
10
3
|
import {
|
|
11
4
|
Account,
|
|
@@ -348,13 +341,7 @@ export type StructuredTextCustomBlockStyle = {
|
|
|
348
341
|
/** ID of custom block style */
|
|
349
342
|
id: string;
|
|
350
343
|
/** The block node that can apply this style */
|
|
351
|
-
node:
|
|
352
|
-
| ParagraphType
|
|
353
|
-
| HeadingType
|
|
354
|
-
| ListType
|
|
355
|
-
| BlockquoteType
|
|
356
|
-
| CodeType
|
|
357
|
-
| ThematicBreakType;
|
|
344
|
+
node: BlockNodeTypeWithCustomStyle;
|
|
358
345
|
/** ID of custom block style */
|
|
359
346
|
label: string;
|
|
360
347
|
/** How the block will be styled inside the editor to represent the style */
|