@tinacms/app 1.1.1 → 1.1.2

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.
@@ -3,12 +3,7 @@
3
3
  */
4
4
  import { Client, Field, Form, FormOptions, TinaCMS } from 'tinacms'
5
5
  import { assign, createMachine, sendParent } from 'xstate'
6
- import {
7
- resolveForm,
8
- Templateable,
9
- TinaFieldEnriched,
10
- TinaSchema,
11
- } from 'tinacms'
6
+ import { resolveForm, Template, TinaFieldEnriched, TinaSchema } from 'tinacms'
12
7
 
13
8
  export type FieldType = Field & TinaFieldEnriched
14
9
  export type FormValues = Record<string, unknown>
@@ -53,7 +48,7 @@ export const documentMachine =
53
48
  /** @xstate-layout N4IgpgJg5mDOIC5QAoC2BDAxgCwJYDswBKAOgNwBdd0AbXALwKgGIIB7Qs-ANzYGswJNFjyFS5KrQZMEBXpnRUOAbQAMAXUSgADm1iVcHLSAAeiAEwAWSyUsA2VQE4AzAHYArABoQAT0QAORxJHEMdLd1d7d3NXWIBfOO9hHAJiLgMpRnwWMAAnXLZckm0aRQAzQtQhDBSxdMk6LKhZHjYFJXw1TSQQXX0O4zMEKxt7JzcvXwtVd2DQu2d-ZwBGVWX-dwTEkHw2CDhjZNE0iWpGpmM+gyMeoctzbz8EVaDLUNdAtfvIze2j1NIuTA6AgTx0emu+EGiEszlUtlcdncdnMkyey3WtlC-mWjmW7ncTlRCSSNWOpDyBVylwhA1uMLhCKRKLRFlxcxC4UiSJikRJIH+Yhp-UMUPpz38j0Q6y2cSAA */
54
49
  createMachine(
55
50
  {
56
- tsTypes: {} as import('./document-machine.typegen').Typegen0,
51
+ // tsTypes: {} as ,
57
52
  schema: {
58
53
  context: {} as ContextType,
59
54
  services: {} as {
@@ -174,14 +169,14 @@ export const documentMachine =
174
169
  const collection = schema.getCollection(
175
170
  node._internalSys.collection.name
176
171
  )
177
- let template: Templateable
172
+ let template: Template
178
173
  if (collection.templates) {
179
174
  template = collection.templates.find((template) => {
180
175
  if (typeof template === 'string') {
181
176
  throw new Error(`Global templates not supported`)
182
177
  }
183
178
  return template.name === node._internalSys.template
184
- }) as Templateable
179
+ }) as Template
185
180
  } else {
186
181
  template = collection
187
182
  }
@@ -51,6 +51,7 @@ export const Preview = (
51
51
  />
52
52
  )}
53
53
  <iframe
54
+ data-test="tina-iframe"
54
55
  id="tina-iframe"
55
56
  ref={props.iframeRef}
56
57
  className="h-screen w-full bg-white"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/app",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -36,10 +36,10 @@
36
36
  "@types/fs-extra": "^9.0.1",
37
37
  "@types/react": "17.0.2",
38
38
  "@types/react-dom": "17.0.2",
39
- "@tinacms/scripts": "1.0.2",
40
- "tinacms": "1.2.2",
41
- "@tinacms/toolkit": "1.3.4",
42
- "@tinacms/mdx": "1.3.1",
39
+ "@tinacms/scripts": "1.0.3",
40
+ "tinacms": "1.3.0",
41
+ "@tinacms/toolkit": "1.4.0",
42
+ "@tinacms/mdx": "1.3.2",
43
43
  "jest": "^27.0.6"
44
44
  },
45
45
  "dependencies": {