tinacms 0.56.3 → 0.57.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.
@@ -0,0 +1,118 @@
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 {};
@@ -0,0 +1,192 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import React from "react";
33
+ const TinaMarkdown = ({
34
+ content,
35
+ components = {}
36
+ }) => {
37
+ if (!content) {
38
+ return null;
39
+ }
40
+ const nodes = Array.isArray(content) ? content : content.children;
41
+ if (!nodes) {
42
+ console.log(`Expected to find structured content for TinaMarkdown`);
43
+ return null;
44
+ }
45
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, nodes.map((child) => {
46
+ const _a = child, { children } = _a, props = __objRest(_a, ["children"]);
47
+ switch (child.type) {
48
+ case "h1":
49
+ case "h2":
50
+ case "h3":
51
+ case "h4":
52
+ case "h5":
53
+ case "h6":
54
+ case "p":
55
+ case "blockquote":
56
+ case "ol":
57
+ case "ul":
58
+ case "li":
59
+ if (components[child.type]) {
60
+ const Component2 = components[child.type];
61
+ return /* @__PURE__ */ React.createElement(Component2, __spreadProps(__spreadValues({}, props), {
62
+ childrenRaw: children
63
+ }), /* @__PURE__ */ React.createElement(TinaMarkdown, {
64
+ components,
65
+ content: children
66
+ }));
67
+ }
68
+ return React.createElement(child.type, {
69
+ children: /* @__PURE__ */ React.createElement(TinaMarkdown, {
70
+ components,
71
+ content: children
72
+ })
73
+ });
74
+ case "lic":
75
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(TinaMarkdown, {
76
+ components,
77
+ content: child.children
78
+ }));
79
+ case "img":
80
+ if (components[child.type]) {
81
+ const Component2 = components[child.type];
82
+ return /* @__PURE__ */ React.createElement(Component2, __spreadValues({}, props));
83
+ }
84
+ return /* @__PURE__ */ React.createElement("img", {
85
+ src: child.url,
86
+ alt: child.caption
87
+ });
88
+ case "a":
89
+ if (components[child.type]) {
90
+ const Component2 = components[child.type];
91
+ return /* @__PURE__ */ React.createElement(Component2, __spreadValues({}, props), /* @__PURE__ */ React.createElement(TinaMarkdown, {
92
+ components,
93
+ content: children
94
+ }));
95
+ }
96
+ return /* @__PURE__ */ React.createElement("a", {
97
+ href: child.url
98
+ }, /* @__PURE__ */ React.createElement(TinaMarkdown, {
99
+ components,
100
+ content: children
101
+ }));
102
+ case "code_block":
103
+ const value = child.children.map((item) => {
104
+ return item.children[0].text;
105
+ }).join("\n");
106
+ if (components[child.type]) {
107
+ const Component2 = components[child.type];
108
+ return /* @__PURE__ */ React.createElement(Component2, __spreadProps(__spreadValues({}, props), {
109
+ childrenRaw: children
110
+ }), value);
111
+ }
112
+ return /* @__PURE__ */ React.createElement("pre", null, /* @__PURE__ */ React.createElement("code", null, value));
113
+ case "hr":
114
+ if (components[child.type]) {
115
+ const Component2 = components[child.type];
116
+ return /* @__PURE__ */ React.createElement(Component2, __spreadValues({}, props));
117
+ }
118
+ return /* @__PURE__ */ React.createElement("hr", null);
119
+ case "text":
120
+ return /* @__PURE__ */ React.createElement(Leaf, __spreadValues({
121
+ components
122
+ }, child));
123
+ case "mdxJsxTextElement":
124
+ case "mdxJsxFlowElement":
125
+ const Component = components[child.name];
126
+ if (Component) {
127
+ const props2 = child.props ? child.props : {};
128
+ return /* @__PURE__ */ React.createElement(Component, __spreadValues({}, props2));
129
+ } else {
130
+ const ComponentMissing = components["component_missing"];
131
+ if (ComponentMissing) {
132
+ return /* @__PURE__ */ React.createElement(ComponentMissing, {
133
+ name: child.name
134
+ });
135
+ } else {
136
+ throw new Error(`No component provided for ${child.name}`);
137
+ }
138
+ }
139
+ default:
140
+ if (typeof child.text === "string") {
141
+ return /* @__PURE__ */ React.createElement(Leaf, __spreadValues({
142
+ components
143
+ }, child));
144
+ }
145
+ console.log(`No tina renderer for ${child.type}`, child);
146
+ }
147
+ }));
148
+ };
149
+ const Leaf = (props) => {
150
+ if (props.bold) {
151
+ const _a = props, { bold } = _a, rest = __objRest(_a, ["bold"]);
152
+ if (props.components.bold) {
153
+ const Component = props.components.bold;
154
+ return /* @__PURE__ */ React.createElement(Component, null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
155
+ }
156
+ return /* @__PURE__ */ React.createElement("strong", null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
157
+ }
158
+ if (props.italic) {
159
+ const _b = props, { italic } = _b, rest = __objRest(_b, ["italic"]);
160
+ if (props.components.italic) {
161
+ const Component = props.components.italic;
162
+ return /* @__PURE__ */ React.createElement(Component, null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
163
+ }
164
+ return /* @__PURE__ */ React.createElement("em", null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
165
+ }
166
+ if (props.underline) {
167
+ const _c = props, { underline } = _c, rest = __objRest(_c, ["underline"]);
168
+ if (props.components.underline) {
169
+ const Component = props.components.underline;
170
+ return /* @__PURE__ */ React.createElement(Component, null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
171
+ }
172
+ return /* @__PURE__ */ React.createElement("u", null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
173
+ }
174
+ if (props.strikethrough) {
175
+ const _d = props, { strikethrough } = _d, rest = __objRest(_d, ["strikethrough"]);
176
+ if (props.components.strikethrough) {
177
+ const Component = props.components.strikethrough;
178
+ return /* @__PURE__ */ React.createElement(Component, null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
179
+ }
180
+ return /* @__PURE__ */ React.createElement("s", null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
181
+ }
182
+ if (props.code) {
183
+ const _e = props, { code } = _e, rest = __objRest(_e, ["code"]);
184
+ if (props.components.code) {
185
+ const Component = props.components.code;
186
+ return /* @__PURE__ */ React.createElement(Component, null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
187
+ }
188
+ return /* @__PURE__ */ React.createElement("code", null, /* @__PURE__ */ React.createElement(Leaf, __spreadValues({}, rest)));
189
+ }
190
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, props.text);
191
+ };
192
+ export { TinaMarkdown };
@@ -0,0 +1,202 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ (function(global, factory) {
33
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react")) : typeof define === "function" && define.amd ? define(["exports", "react"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.tinacms = {}, global.NOOP));
34
+ })(this, function(exports2, React) {
35
+ "use strict";
36
+ function _interopDefaultLegacy(e) {
37
+ return e && typeof e === "object" && "default" in e ? e : { "default": e };
38
+ }
39
+ var React__default = /* @__PURE__ */ _interopDefaultLegacy(React);
40
+ const TinaMarkdown = ({
41
+ content,
42
+ components = {}
43
+ }) => {
44
+ if (!content) {
45
+ return null;
46
+ }
47
+ const nodes = Array.isArray(content) ? content : content.children;
48
+ if (!nodes) {
49
+ console.log(`Expected to find structured content for TinaMarkdown`);
50
+ return null;
51
+ }
52
+ return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, nodes.map((child) => {
53
+ const _a = child, { children } = _a, props = __objRest(_a, ["children"]);
54
+ switch (child.type) {
55
+ case "h1":
56
+ case "h2":
57
+ case "h3":
58
+ case "h4":
59
+ case "h5":
60
+ case "h6":
61
+ case "p":
62
+ case "blockquote":
63
+ case "ol":
64
+ case "ul":
65
+ case "li":
66
+ if (components[child.type]) {
67
+ const Component2 = components[child.type];
68
+ return /* @__PURE__ */ React__default["default"].createElement(Component2, __spreadProps(__spreadValues({}, props), {
69
+ childrenRaw: children
70
+ }), /* @__PURE__ */ React__default["default"].createElement(TinaMarkdown, {
71
+ components,
72
+ content: children
73
+ }));
74
+ }
75
+ return React__default["default"].createElement(child.type, {
76
+ children: /* @__PURE__ */ React__default["default"].createElement(TinaMarkdown, {
77
+ components,
78
+ content: children
79
+ })
80
+ });
81
+ case "lic":
82
+ return /* @__PURE__ */ React__default["default"].createElement("div", null, /* @__PURE__ */ React__default["default"].createElement(TinaMarkdown, {
83
+ components,
84
+ content: child.children
85
+ }));
86
+ case "img":
87
+ if (components[child.type]) {
88
+ const Component2 = components[child.type];
89
+ return /* @__PURE__ */ React__default["default"].createElement(Component2, __spreadValues({}, props));
90
+ }
91
+ return /* @__PURE__ */ React__default["default"].createElement("img", {
92
+ src: child.url,
93
+ alt: child.caption
94
+ });
95
+ case "a":
96
+ if (components[child.type]) {
97
+ const Component2 = components[child.type];
98
+ return /* @__PURE__ */ React__default["default"].createElement(Component2, __spreadValues({}, props), /* @__PURE__ */ React__default["default"].createElement(TinaMarkdown, {
99
+ components,
100
+ content: children
101
+ }));
102
+ }
103
+ return /* @__PURE__ */ React__default["default"].createElement("a", {
104
+ href: child.url
105
+ }, /* @__PURE__ */ React__default["default"].createElement(TinaMarkdown, {
106
+ components,
107
+ content: children
108
+ }));
109
+ case "code_block":
110
+ const value = child.children.map((item) => {
111
+ return item.children[0].text;
112
+ }).join("\n");
113
+ if (components[child.type]) {
114
+ const Component2 = components[child.type];
115
+ return /* @__PURE__ */ React__default["default"].createElement(Component2, __spreadProps(__spreadValues({}, props), {
116
+ childrenRaw: children
117
+ }), value);
118
+ }
119
+ return /* @__PURE__ */ React__default["default"].createElement("pre", null, /* @__PURE__ */ React__default["default"].createElement("code", null, value));
120
+ case "hr":
121
+ if (components[child.type]) {
122
+ const Component2 = components[child.type];
123
+ return /* @__PURE__ */ React__default["default"].createElement(Component2, __spreadValues({}, props));
124
+ }
125
+ return /* @__PURE__ */ React__default["default"].createElement("hr", null);
126
+ case "text":
127
+ return /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({
128
+ components
129
+ }, child));
130
+ case "mdxJsxTextElement":
131
+ case "mdxJsxFlowElement":
132
+ const Component = components[child.name];
133
+ if (Component) {
134
+ const props2 = child.props ? child.props : {};
135
+ return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadValues({}, props2));
136
+ } else {
137
+ const ComponentMissing = components["component_missing"];
138
+ if (ComponentMissing) {
139
+ return /* @__PURE__ */ React__default["default"].createElement(ComponentMissing, {
140
+ name: child.name
141
+ });
142
+ } else {
143
+ throw new Error(`No component provided for ${child.name}`);
144
+ }
145
+ }
146
+ default:
147
+ if (typeof child.text === "string") {
148
+ return /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({
149
+ components
150
+ }, child));
151
+ }
152
+ console.log(`No tina renderer for ${child.type}`, child);
153
+ }
154
+ }));
155
+ };
156
+ const Leaf = (props) => {
157
+ if (props.bold) {
158
+ const _a = props, { bold } = _a, rest = __objRest(_a, ["bold"]);
159
+ if (props.components.bold) {
160
+ const Component = props.components.bold;
161
+ return /* @__PURE__ */ React__default["default"].createElement(Component, null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
162
+ }
163
+ return /* @__PURE__ */ React__default["default"].createElement("strong", null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
164
+ }
165
+ if (props.italic) {
166
+ const _b = props, { italic } = _b, rest = __objRest(_b, ["italic"]);
167
+ if (props.components.italic) {
168
+ const Component = props.components.italic;
169
+ return /* @__PURE__ */ React__default["default"].createElement(Component, null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
170
+ }
171
+ return /* @__PURE__ */ React__default["default"].createElement("em", null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
172
+ }
173
+ if (props.underline) {
174
+ const _c = props, { underline } = _c, rest = __objRest(_c, ["underline"]);
175
+ if (props.components.underline) {
176
+ const Component = props.components.underline;
177
+ return /* @__PURE__ */ React__default["default"].createElement(Component, null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
178
+ }
179
+ return /* @__PURE__ */ React__default["default"].createElement("u", null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
180
+ }
181
+ if (props.strikethrough) {
182
+ const _d = props, { strikethrough } = _d, rest = __objRest(_d, ["strikethrough"]);
183
+ if (props.components.strikethrough) {
184
+ const Component = props.components.strikethrough;
185
+ return /* @__PURE__ */ React__default["default"].createElement(Component, null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
186
+ }
187
+ return /* @__PURE__ */ React__default["default"].createElement("s", null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
188
+ }
189
+ if (props.code) {
190
+ const _e = props, { code } = _e, rest = __objRest(_e, ["code"]);
191
+ if (props.components.code) {
192
+ const Component = props.components.code;
193
+ return /* @__PURE__ */ React__default["default"].createElement(Component, null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
194
+ }
195
+ return /* @__PURE__ */ React__default["default"].createElement("code", null, /* @__PURE__ */ React__default["default"].createElement(Leaf, __spreadValues({}, rest)));
196
+ }
197
+ return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, props.text);
198
+ };
199
+ exports2.TinaMarkdown = TinaMarkdown;
200
+ Object.defineProperty(exports2, "__esModule", { value: true });
201
+ exports2[Symbol.toStringTag] = "Module";
202
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.56.3",
3
+ "version": "0.57.0",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -8,7 +8,8 @@
8
8
  "buildConfig": {
9
9
  "entryPoints": [
10
10
  "src/index.ts",
11
- "src/edit-state.tsx"
11
+ "src/edit-state.tsx",
12
+ "src/rich-text.tsx"
12
13
  ]
13
14
  },
14
15
  "typings": "dist/index.d.ts",
@@ -22,7 +23,9 @@
22
23
  "@graphql-codegen/core": "^1.15.4",
23
24
  "@graphql-codegen/typescript": "^1.15.4",
24
25
  "@graphql-codegen/typescript-operations": "^1.15.4",
25
- "@tinacms/toolkit": "0.54.1",
26
+ "@headlessui/react": "^1.4.1",
27
+ "@heroicons/react": "^1.0.4",
28
+ "@tinacms/toolkit": "0.55.0",
26
29
  "@xstate/react": "^1.1.0",
27
30
  "codemirror": "^5.55.0",
28
31
  "cors": "^2.8.5",
@@ -39,6 +42,8 @@
39
42
  "next": "9.4.2",
40
43
  "node-fetch": "^2.6.0",
41
44
  "prop-types": "15.7.2",
45
+ "react-icons": "^4.3.1",
46
+ "react-router-dom": "^5.3.0",
42
47
  "ts-jest": "^26.5.3",
43
48
  "xstate": "^4.15.1",
44
49
  "yup": "^0.32.0"
@@ -50,14 +55,14 @@
50
55
  "@types/react": "^16.9.38",
51
56
  "@types/yup": "^0.29.10",
52
57
  "next": "9.4.2",
53
- "react": "16.13.1",
58
+ "react": "16.14.0",
54
59
  "react-dom": "16.13.1",
55
60
  "styled-components": "^5.2.0",
56
61
  "tsup": "4.12.5",
57
62
  "typescript": "^4.3.5"
58
63
  },
59
64
  "peerDependencies": {
60
- "react": ">=16.8",
65
+ "react": ">=16.14.0",
61
66
  "react-dom": ">=16.8",
62
67
  "react-is": "^16.13.1 || <18.0.0",
63
68
  "styled-components": "*"