tinacms 0.69.15 → 0.69.17

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.
@@ -18,7 +18,10 @@ interface ModalBuilderProps {
18
18
  close(): void;
19
19
  }
20
20
  export declare function ModalBuilder(modalProps: ModalBuilderProps): JSX.Element;
21
- export declare const ErrorLabel: any;
21
+ export declare const ErrorLabel: ({ style, ...props }: {
22
+ [x: string]: any;
23
+ style?: {};
24
+ }) => JSX.Element;
22
25
  interface ButtonProps {
23
26
  name: string;
24
27
  action(): Promise<void>;
package/dist/index.es.js CHANGED
@@ -8,7 +8,6 @@ import { getIn, setIn } from "final-form";
8
8
  import { resolveForm, TinaSchema, addNamespaceToSchema, validateSchema } from "@tinacms/schema-tools";
9
9
  import gql$1 from "graphql-tag";
10
10
  import * as yup from "yup";
11
- import styled from "styled-components";
12
11
  import { setEditing, TinaDataContext, EditContext, useEditState } from "@tinacms/sharedctx";
13
12
  import UrlPattern from "url-pattern";
14
13
  import { NavLink, useNavigate, useParams, useLocation, Link, HashRouter, Routes, Route } from "react-router-dom";
@@ -2439,9 +2438,10 @@ function ModalBuilder(modalProps) {
2439
2438
  ...action
2440
2439
  })))));
2441
2440
  }
2442
- const ErrorLabel = styled.p`
2443
- color: var(--tina-color-error) !important;
2444
- `;
2441
+ const ErrorLabel = ({ style = {}, ...props }) => /* @__PURE__ */ React.createElement("p", {
2442
+ style: { ...style, color: "var(--tina-color-error)" },
2443
+ ...props
2444
+ });
2445
2445
  const AsyncButton = ({ name, primary, action }) => {
2446
2446
  const [submitting, setSubmitting] = useState(false);
2447
2447
  const onClick = useCallback(async () => {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@tinacms/toolkit"), require("graphql"), require("lodash.set"), require("react"), require("final-form"), require("@tinacms/schema-tools"), require("graphql-tag"), require("yup"), require("styled-components"), require("@tinacms/sharedctx"), require("url-pattern"), require("react-router-dom"), require("@headlessui/react"), require("@react-hook/window-size")) : typeof define === "function" && define.amd ? define(["exports", "@tinacms/toolkit", "graphql", "lodash.set", "react", "final-form", "@tinacms/schema-tools", "graphql-tag", "yup", "styled-components", "@tinacms/sharedctx", "url-pattern", "react-router-dom", "@headlessui/react", "@react-hook/window-size"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.tinacms = {}, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP));
3
- })(this, function(exports2, toolkit, G, set, React, finalForm, schemaTools, gql$1, yup, styled, sharedctx, UrlPattern, reactRouterDom, react, windowSize) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@tinacms/toolkit"), require("graphql"), require("lodash.set"), require("react"), require("final-form"), require("@tinacms/schema-tools"), require("graphql-tag"), require("yup"), require("@tinacms/sharedctx"), require("url-pattern"), require("react-router-dom"), require("@headlessui/react"), require("@react-hook/window-size")) : typeof define === "function" && define.amd ? define(["exports", "@tinacms/toolkit", "graphql", "lodash.set", "react", "final-form", "@tinacms/schema-tools", "graphql-tag", "yup", "@tinacms/sharedctx", "url-pattern", "react-router-dom", "@headlessui/react", "@react-hook/window-size"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.tinacms = {}, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP, global.NOOP));
3
+ })(this, function(exports2, toolkit, G, set, React, finalForm, schemaTools, gql$1, yup, sharedctx, UrlPattern, reactRouterDom, react, windowSize) {
4
4
  "use strict";
5
5
  function _interopDefaultLegacy(e) {
6
6
  return e && typeof e === "object" && "default" in e ? e : { "default": e };
@@ -30,7 +30,6 @@
30
30
  var React__default = /* @__PURE__ */ _interopDefaultLegacy(React);
31
31
  var gql__default = /* @__PURE__ */ _interopDefaultLegacy(gql$1);
32
32
  var yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
33
- var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
34
33
  var UrlPattern__default = /* @__PURE__ */ _interopDefaultLegacy(UrlPattern);
35
34
  function popupWindow(url, title, window2, w, h) {
36
35
  const y = window2.top.outerHeight / 2 + window2.top.screenY - h / 2;
@@ -2457,9 +2456,10 @@ mutation addPendingDocumentMutation(
2457
2456
  ...action
2458
2457
  })))));
2459
2458
  }
2460
- const ErrorLabel = styled__default["default"].p`
2461
- color: var(--tina-color-error) !important;
2462
- `;
2459
+ const ErrorLabel = ({ style = {}, ...props }) => /* @__PURE__ */ React__default["default"].createElement("p", {
2460
+ style: { ...style, color: "var(--tina-color-error)" },
2461
+ ...props
2462
+ });
2463
2463
  const AsyncButton = ({ name, primary, action }) => {
2464
2464
  const [submitting, setSubmitting] = React.useState(false);
2465
2465
  const onClick = React.useCallback(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.69.15",
3
+ "version": "0.69.17",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {
@@ -54,9 +54,9 @@
54
54
  "@headlessui/react": "^1.5.0",
55
55
  "@heroicons/react": "^1.0.4",
56
56
  "@react-hook/window-size": "^3.0.7",
57
- "@tinacms/schema-tools": "0.1.7",
57
+ "@tinacms/schema-tools": "0.1.8",
58
58
  "@tinacms/sharedctx": "0.1.3",
59
- "@tinacms/toolkit": "0.57.11",
59
+ "@tinacms/toolkit": "0.58.0",
60
60
  "crypto-js": "^4.0.0",
61
61
  "fetch-ponyfill": "^7.1.0",
62
62
  "final-form": "4.20.1",
@@ -75,7 +75,7 @@
75
75
  "@testing-library/react": "^12.0.0",
76
76
  "@testing-library/react-hooks": "^7.0.2",
77
77
  "@testing-library/user-event": "^12.7.0",
78
- "@tinacms/scripts": "0.51.1",
78
+ "@tinacms/scripts": "0.51.2",
79
79
  "@types/jest": "^27.0.1",
80
80
  "@types/lodash": "^4.14.169",
81
81
  "@types/node": "^14.0.13",
@@ -89,14 +89,12 @@
89
89
  "react": "17.0.2",
90
90
  "react-dom": "17.0.2",
91
91
  "react-is": "^17.0.2",
92
- "styled-components": "^5.2.0",
93
92
  "typescript": "4.3.5"
94
93
  },
95
94
  "peerDependencies": {
96
95
  "react": ">=16.14.0",
97
96
  "react-dom": ">=16.14.0",
98
- "react-is": "^16.13.1 || <18.0.0",
99
- "styled-components": "*"
97
+ "react-is": "^16.13.1 || <18.0.0"
100
98
  },
101
99
  "publishConfig": {
102
100
  "registry": "https://registry.npmjs.org"