tinacms 1.5.28 → 1.5.30

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/index.js CHANGED
@@ -8652,10 +8652,10 @@ var __publicField = (obj, key, value) => {
8652
8652
  const [syncStatus, setSyncStatus] = React.useState({ state: "loading", message: "Loading..." });
8653
8653
  React__namespace.useEffect(() => {
8654
8654
  const interval = setInterval(async () => {
8655
- var _a2, _b2, _c, _d;
8655
+ var _a2, _b2, _c, _d, _e;
8656
8656
  let doFetchEvents = false;
8657
8657
  if (!((_b2 = (_a2 = cms.api) == null ? void 0 : _a2.tina) == null ? void 0 : _b2.isCustomContentApi)) {
8658
- doFetchEvents = await ((_d = (_c = cms.api) == null ? void 0 : _c.tina) == null ? void 0 : _d.isAuthenticated());
8658
+ doFetchEvents = await ((_e = (_d = (_c = cms.api) == null ? void 0 : _c.tina) == null ? void 0 : _d.authProvider) == null ? void 0 : _e.isAuthenticated());
8659
8659
  }
8660
8660
  if (doFetchEvents) {
8661
8661
  const { events } = await cms.api.tina.fetchEvents();
package/dist/index.mjs CHANGED
@@ -8660,10 +8660,10 @@ function useSyncStatus$1(cms) {
8660
8660
  const [syncStatus, setSyncStatus] = useState({ state: "loading", message: "Loading..." });
8661
8661
  React.useEffect(() => {
8662
8662
  const interval = setInterval(async () => {
8663
- var _a2, _b2, _c, _d;
8663
+ var _a2, _b2, _c, _d, _e;
8664
8664
  let doFetchEvents = false;
8665
8665
  if (!((_b2 = (_a2 = cms.api) == null ? void 0 : _a2.tina) == null ? void 0 : _b2.isCustomContentApi)) {
8666
- doFetchEvents = await ((_d = (_c = cms.api) == null ? void 0 : _c.tina) == null ? void 0 : _d.isAuthenticated());
8666
+ doFetchEvents = await ((_e = (_d = (_c = cms.api) == null ? void 0 : _c.tina) == null ? void 0 : _d.authProvider) == null ? void 0 : _e.isAuthenticated());
8667
8667
  }
8668
8668
  if (doFetchEvents) {
8669
8669
  const { events } = await cms.api.tina.fetchEvents();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "1.5.28",
3
+ "version": "1.5.30",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -70,7 +70,7 @@
70
70
  "@react-types/shared": "^3.10.0",
71
71
  "@sambego/storybook-styles": "^1.0.0",
72
72
  "@tinacms/schema-tools": "1.4.15",
73
- "@tinacms/search": "1.0.17",
73
+ "@tinacms/search": "1.0.18",
74
74
  "@tinacms/mdx": "1.3.23",
75
75
  "@tinacms/sharedctx": "1.0.2",
76
76
  "@udecode/plate-headless": "^21.4.0",