@platecms/delta-smart-text 0.13.0 → 1.2.0
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/__generated__/gql.ts +0 -12
- package/__generated__/graphql.ts +418 -84
- package/package.json +4 -4
- package/src/components/DeltaSlateEditor.vue +31 -20
- package/src/react/components/DeltaSlateEditor.tsx +13 -8
- package/src/react/components/DeltaSlateEditorConnector.tsx +4 -2
- package/src/react/components/Element.tsx +27 -13
- package/src/react/components/elements/ContentValueElement.tsx +2 -2
- package/src/react/components/elements/ContentValueSuggestionElement.tsx +31 -0
- package/src/react/components/elements/SuggestionElement.tsx +23 -0
- package/src/react/components/toolbar/Toolbar.tsx +1 -1
- package/src/react/plugins/index.ts +13 -0
- package/src/react/types.ts +23 -10
- package/src/graphql/plateMaintainers/plateMaintainer.fragements.gql +0 -10
- package/src/graphql/subject/subject.fragments.gql +0 -8
package/__generated__/gql.ts
CHANGED
|
@@ -41,10 +41,8 @@ type Documents = {
|
|
|
41
41
|
"fragment invitationFragment on Invitation {\n _id: prn\n prn\n userEmail\n createdAt\n updatedAt\n}": typeof types.InvitationFragmentFragmentDoc,
|
|
42
42
|
"fragment organizationFragment on Organization {\n _id: prn\n prn\n name\n slug\n logo {\n ...assetFragment\n }\n logoUrl\n seedStatus\n createdAt\n updatedAt\n}": typeof types.OrganizationFragmentFragmentDoc,
|
|
43
43
|
"fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}": typeof types.PathPartFragmentFragmentDoc,
|
|
44
|
-
"fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}": typeof types.PlateMaintainerFragmentFragmentDoc,
|
|
45
44
|
"fragment roleAssignmentFragment on RoleAssignment {\n _id: prn\n prn\n subject {\n id\n }\n createdAt\n updatedAt\n}": typeof types.RoleAssignmentFragmentFragmentDoc,
|
|
46
45
|
"fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": typeof types.RoleFragmentFragmentDoc,
|
|
47
|
-
"fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}": typeof types.SubjectFieldsFragmentDoc,
|
|
48
46
|
"fragment tagFragment on Tag {\n _id: prn\n prn\n name\n path\n color\n visibility\n forceVisibilityOnDescendants\n stage\n amountOfChildren\n amountOfContentExperiences\n amountOfContentItems\n hasForcedVisibility\n nestingLevel\n createdAt\n updatedAt\n}": typeof types.TagFragmentFragmentDoc,
|
|
49
47
|
"fragment themeFragment on Theme {\n _id: prn\n prn\n name\n repositoryUrl\n createdAt\n updatedAt\n}": typeof types.ThemeFragmentFragmentDoc,
|
|
50
48
|
};
|
|
@@ -76,10 +74,8 @@ const documents: Documents = {
|
|
|
76
74
|
"fragment invitationFragment on Invitation {\n _id: prn\n prn\n userEmail\n createdAt\n updatedAt\n}": types.InvitationFragmentFragmentDoc,
|
|
77
75
|
"fragment organizationFragment on Organization {\n _id: prn\n prn\n name\n slug\n logo {\n ...assetFragment\n }\n logoUrl\n seedStatus\n createdAt\n updatedAt\n}": types.OrganizationFragmentFragmentDoc,
|
|
78
76
|
"fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}": types.PathPartFragmentFragmentDoc,
|
|
79
|
-
"fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}": types.PlateMaintainerFragmentFragmentDoc,
|
|
80
77
|
"fragment roleAssignmentFragment on RoleAssignment {\n _id: prn\n prn\n subject {\n id\n }\n createdAt\n updatedAt\n}": types.RoleAssignmentFragmentFragmentDoc,
|
|
81
78
|
"fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}": types.RoleFragmentFragmentDoc,
|
|
82
|
-
"fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}": types.SubjectFieldsFragmentDoc,
|
|
83
79
|
"fragment tagFragment on Tag {\n _id: prn\n prn\n name\n path\n color\n visibility\n forceVisibilityOnDescendants\n stage\n amountOfChildren\n amountOfContentExperiences\n amountOfContentItems\n hasForcedVisibility\n nestingLevel\n createdAt\n updatedAt\n}": types.TagFragmentFragmentDoc,
|
|
84
80
|
"fragment themeFragment on Theme {\n _id: prn\n prn\n name\n repositoryUrl\n createdAt\n updatedAt\n}": types.ThemeFragmentFragmentDoc,
|
|
85
81
|
};
|
|
@@ -206,10 +202,6 @@ export function graphql(source: "fragment organizationFragment on Organization {
|
|
|
206
202
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
207
203
|
*/
|
|
208
204
|
export function graphql(source: "fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}"): (typeof documents)["fragment pathPartFragment on PathPart {\n _id: prn\n prn\n slug\n path\n createdAt\n updatedAt\n channel {\n prn\n }\n hasContentExperience\n amountOfChildren\n amountOfChildrenWithContentExperiences\n amountOfDescendants\n amountOfDescendantsWithContentExperiences\n contentExperience {\n prn\n }\n}"];
|
|
209
|
-
/**
|
|
210
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
211
|
-
*/
|
|
212
|
-
export function graphql(source: "fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}"): (typeof documents)["fragment plateMaintainerFragment on Subject {\n _id: id\n id\n name {\n first\n last\n }\n language\n email\n}"];
|
|
213
205
|
/**
|
|
214
206
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
215
207
|
*/
|
|
@@ -218,10 +210,6 @@ export function graphql(source: "fragment roleAssignmentFragment on RoleAssignme
|
|
|
218
210
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
219
211
|
*/
|
|
220
212
|
export function graphql(source: "fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}"): (typeof documents)["fragment roleFragment on Role {\n _id: prn\n prn\n name\n createdAt\n updatedAt\n}"];
|
|
221
|
-
/**
|
|
222
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
223
|
-
*/
|
|
224
|
-
export function graphql(source: "fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}"): (typeof documents)["fragment subjectFields on Subject {\n _id: id\n email\n name {\n first\n last\n }\n}"];
|
|
225
213
|
/**
|
|
226
214
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
227
215
|
*/
|