tinacms 0.60.2 → 0.60.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # tinacms
2
2
 
3
+ ## 0.60.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 4adaf15af: Fix types which weren't included in previous patch
8
+
3
9
  ## 0.60.2
4
10
 
5
11
  ### Patch Changes
@@ -1 +1,20 @@
1
- export * from "../src/edit-state"
1
+ /**
2
+ Copyright 2021 Forestry.io Holdings, Inc.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
12
+ */
13
+ import { isEditing, setEditing, useEditState } from '@tinacms/sharedctx';
14
+ import React from 'react';
15
+ export { isEditing, setEditing, useEditState };
16
+ export declare const TinaEditProvider: ({ showEditButton, ...props }: {
17
+ showEditButton?: boolean;
18
+ children: React.ReactNode;
19
+ editMode: React.ReactNode;
20
+ }) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1 +1,23 @@
1
- export * from "../src/index"
1
+ /**
2
+ Copyright 2021 Forestry.io Holdings, Inc.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
12
+ */
13
+ export * from './client';
14
+ export * from './auth';
15
+ export * from './utils';
16
+ export * from './tina-cms';
17
+ export { useGraphqlForms } from './hooks/use-graphql-forms';
18
+ export { useDocumentCreatorPlugin } from './hooks/use-content-creator';
19
+ export * from '@tinacms/toolkit';
20
+ export { TinaAdmin } from './admin';
21
+ export { RouteMappingPlugin } from './admin/plugins/route-mapping';
22
+ import { TinaCMSProvider2 } from './tina-cms';
23
+ export default TinaCMSProvider2;
@@ -1 +1,118 @@
1
- export * from "../src/rich-text"
1
+ /**
2
+ Copyright 2021 Forestry.io Holdings, Inc.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
12
+ */
13
+ declare type BaseComponents = {
14
+ h1?: {
15
+ children: JSX.Element;
16
+ };
17
+ h2?: {
18
+ children: JSX.Element;
19
+ };
20
+ h3?: {
21
+ children: JSX.Element;
22
+ };
23
+ h4?: {
24
+ children: JSX.Element;
25
+ };
26
+ h5?: {
27
+ children: JSX.Element;
28
+ };
29
+ h6?: {
30
+ children: JSX.Element;
31
+ };
32
+ p?: {
33
+ children: JSX.Element;
34
+ };
35
+ a?: {
36
+ url: string;
37
+ children: JSX.Element;
38
+ };
39
+ italic?: {
40
+ children: JSX.Element;
41
+ };
42
+ bold?: {
43
+ children: JSX.Element;
44
+ };
45
+ strikethrough?: {
46
+ children: JSX.Element;
47
+ };
48
+ underline?: {
49
+ children: JSX.Element;
50
+ };
51
+ code?: {
52
+ children: JSX.Element;
53
+ };
54
+ ul?: {
55
+ children: JSX.Element;
56
+ };
57
+ ol?: {
58
+ children: JSX.Element;
59
+ };
60
+ block_quote?: {
61
+ children: JSX.Element;
62
+ };
63
+ code_block?: {
64
+ language?: string;
65
+ children: JSX.Element;
66
+ };
67
+ img?: {
68
+ url: string;
69
+ caption?: string;
70
+ alt?: string;
71
+ };
72
+ hr?: {};
73
+ component_missing?: {
74
+ name: string;
75
+ };
76
+ };
77
+ declare type BaseComponentSignature = {
78
+ [BK in keyof BaseComponents]: (props: BaseComponents[BK]) => JSX.Element;
79
+ };
80
+ /**
81
+ * Define the allowed components and their props
82
+ * ```ts
83
+ * const components:
84
+ * Components<{
85
+ * BlockQuote: {
86
+ * children: TinaMarkdownContent;
87
+ * authorName: string;
88
+ * };
89
+ * }> = {
90
+ * BlockQuote: (props: {
91
+ * children: TinaMarkdownContent;
92
+ * authorName: string;
93
+ * }) => {
94
+ * return (
95
+ * <div>
96
+ * <blockquote>
97
+ * <TinaMarkdown content={props.children} />
98
+ * {props.authorName}
99
+ * </blockquote>
100
+ * </div>
101
+ * );
102
+ * }
103
+ * }
104
+ * }
105
+ * ```
106
+ */
107
+ export declare type Components<ComponentAndProps extends object> = {
108
+ [K in keyof ComponentAndProps]: (props: ComponentAndProps[K]) => JSX.Element;
109
+ } & BaseComponentSignature;
110
+ export declare type TinaMarkdownContent = {
111
+ type: string;
112
+ children: TinaMarkdownContent[];
113
+ };
114
+ export declare const TinaMarkdown: ({ content, components, }: {
115
+ content: TinaMarkdownContent | TinaMarkdownContent[];
116
+ components?: Components<{}>;
117
+ }) => JSX.Element;
118
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.60.2",
3
+ "version": "0.60.3",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"