@tinacms/app 0.0.11 → 0.0.13
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/assets/out.es.js +121976 -0
- package/dist/assets/style.css +651 -0
- package/dist/assets/webfontloader.js +620 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.dev.html +26 -0
- package/{appFiles → dist}/index.html +1 -1
- package/dist/index.js +346 -10
- package/dist/prebuild.d.ts +1 -0
- package/dist/prebuild.js +302 -0
- package/package.json +33 -20
- package/appFiles/src/App.tsx +0 -43
- package/appFiles/src/assets/tina.svg +0 -6
- package/appFiles/src/main.tsx +0 -23
- package/appFiles/src/vite-env.d.ts +0 -14
- package/tsconfig.json +0 -20
- package/tsconfig.node.json +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -11,15 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"typings": "dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
"script.mjs",
|
|
16
|
-
"package.json",
|
|
17
|
-
"public",
|
|
18
|
-
"appFiles/src",
|
|
19
|
-
"appFiles/index.html",
|
|
20
|
-
"tsconfig.json",
|
|
21
|
-
"tsconfig.node.json",
|
|
22
|
-
"vite.config.ts"
|
|
14
|
+
"dist"
|
|
23
15
|
],
|
|
24
16
|
"license": "Apache-2.0",
|
|
25
17
|
"buildConfig": {
|
|
@@ -27,29 +19,50 @@
|
|
|
27
19
|
{
|
|
28
20
|
"name": "src/index.ts",
|
|
29
21
|
"target": "node"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "src/prebuild.ts",
|
|
25
|
+
"target": "node"
|
|
30
26
|
}
|
|
31
27
|
]
|
|
32
28
|
},
|
|
33
29
|
"devDependencies": {
|
|
30
|
+
"@types/fs-extra": "^9.0.1",
|
|
34
31
|
"@types/react": "17.0.2",
|
|
35
|
-
"@types/react-dom": "17.0.2"
|
|
36
|
-
"@types/fs-extra": "^9.0.1"
|
|
32
|
+
"@types/react-dom": "17.0.2"
|
|
37
33
|
},
|
|
38
34
|
"dependencies": {
|
|
35
|
+
"@headlessui/react": "^1.6.6",
|
|
36
|
+
"@heroicons/react": "^1.0.6",
|
|
37
|
+
"@tailwindcss/aspect-ratio": "^0.4.0",
|
|
38
|
+
"@tailwindcss/line-clamp": "^0.3.1",
|
|
39
|
+
"@tailwindcss/typography": "^0.5.4",
|
|
40
|
+
"@tinacms/schema-tools": "0.1.4",
|
|
39
41
|
"@tinacms/scripts": "0.51.1",
|
|
40
|
-
"@vitejs/plugin-react": "1.3.2",
|
|
42
|
+
"@vitejs/plugin-react": "^1.3.2",
|
|
43
|
+
"@xstate/react": "^3.0.0",
|
|
44
|
+
"autoprefixer": "^10.4.0",
|
|
45
|
+
"final-form": "^4.20.7",
|
|
41
46
|
"fs-extra": "^9.0.1",
|
|
47
|
+
"esbuild": "^0.15.5",
|
|
48
|
+
"graphql": "^15.1.0",
|
|
49
|
+
"jest": "^27.0.6",
|
|
50
|
+
"postcss": "^8.4.14",
|
|
51
|
+
"postcss-nested": "^5.0.6",
|
|
42
52
|
"react": "17.0.2",
|
|
43
53
|
"react-dom": "17.0.2",
|
|
44
|
-
"
|
|
54
|
+
"react-is": "18.2.0",
|
|
55
|
+
"react-router-dom": "6",
|
|
56
|
+
"styled-components": "5.3.5",
|
|
57
|
+
"tailwindcss": "^3.1.6",
|
|
58
|
+
"tinacms": "0.69.8",
|
|
45
59
|
"typescript": "^4.6.4",
|
|
46
|
-
"vite": "
|
|
47
|
-
"vite-node": "^0.
|
|
48
|
-
"
|
|
60
|
+
"vite": "2.9.15",
|
|
61
|
+
"vite-node": "^0.23.4",
|
|
62
|
+
"xstate": "^4.32.1"
|
|
49
63
|
},
|
|
50
64
|
"scripts": {
|
|
51
|
-
"types": "
|
|
52
|
-
"build": "tinacms-scripts build"
|
|
53
|
-
"test": "jest --passWithNoTests"
|
|
65
|
+
"types": "rm dist/index.d.ts && touch dist/index.d.ts && echo \"export declare const viteBuild: (args: any) => any\" > dist/index.d.ts",
|
|
66
|
+
"build": "tinacms-scripts build && node dist/prebuild.js"
|
|
54
67
|
}
|
|
55
68
|
}
|
package/appFiles/src/App.tsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
|
|
14
|
-
import React from 'react'
|
|
15
|
-
import TinaCMS, { TinaAdmin } from 'tinacms'
|
|
16
|
-
import { TinaEditProvider, useEditState } from 'tinacms/dist/edit-state'
|
|
17
|
-
|
|
18
|
-
// TODO: Resolve this to local file in tsconfig.json
|
|
19
|
-
// @ts-expect-error
|
|
20
|
-
import config from 'TINA_IMPORT'
|
|
21
|
-
|
|
22
|
-
export const TinaAdminWrapper = () => {
|
|
23
|
-
return (
|
|
24
|
-
<TinaCMS {...config}>
|
|
25
|
-
<TinaAdmin />
|
|
26
|
-
</TinaCMS>
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const GoToEdit = () => {
|
|
31
|
-
const { setEdit } = useEditState()
|
|
32
|
-
setEdit(true)
|
|
33
|
-
return <div>Going into edit mode</div>
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function App() {
|
|
37
|
-
return (
|
|
38
|
-
<TinaEditProvider editMode={<TinaAdminWrapper />}>
|
|
39
|
-
<GoToEdit />
|
|
40
|
-
</TinaEditProvider>
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
export default App
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 66 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<title>Tina</title>
|
|
3
|
-
<desc>A proud llama</desc>
|
|
4
|
-
<path d="M39.4615 36.1782C42.763 33.4475 44.2259 17.3098 45.6551 11.5091C47.0843 5.70828 52.995 6.0025 52.995 6.0025C52.995 6.0025 51.4605 8.67299 52.0864 10.6658C52.7123 12.6587 57 14.4401 57 14.4401L56.0752 16.8781C56.0752 16.8781 54.1441 16.631 52.995 18.9297C51.8459 21.2283 53.7336 43.9882 53.7336 43.9882C53.7336 43.9882 46.8271 57.6106 46.8271 63.3621C46.8271 69.1136 49.5495 73.9338 49.5495 73.9338H45.7293C45.7293 73.9338 40.1252 67.2648 38.9759 63.9318C37.8266 60.5988 38.2861 57.2658 38.2861 57.2658C38.2861 57.2658 32.1946 56.921 26.7931 57.2658C21.3915 57.6106 17.7892 62.2539 17.1391 64.8512C16.4889 67.4486 16.2196 73.9338 16.2196 73.9338H13.1991C11.3606 68.2603 9.90043 66.2269 10.6925 63.3621C12.8866 55.4269 12.4557 50.9263 11.9476 48.9217C11.4396 46.9172 8 45.1676 8 45.1676C9.68492 41.7349 11.4048 40.0854 18.8029 39.9133C26.201 39.7413 36.1599 38.9088 39.4615 36.1782Z" fill="currentColor" />
|
|
5
|
-
<path d="M20.25 63.03C20.25 63.03 21.0305 70.2533 25.1773 73.9342H28.7309C25.1773 69.9085 24.7897 59.415 24.7897 59.415C22.9822 60.0035 20.4799 62.1106 20.25 63.03Z" fill="currentColor" />
|
|
6
|
-
</svg>
|
package/appFiles/src/main.tsx
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
|
|
14
|
-
import React from 'react'
|
|
15
|
-
import ReactDOM from 'react-dom'
|
|
16
|
-
import App from './App'
|
|
17
|
-
|
|
18
|
-
ReactDOM.render(
|
|
19
|
-
<React.StrictMode>
|
|
20
|
-
<App />
|
|
21
|
-
</React.StrictMode>,
|
|
22
|
-
document.getElementById('root')
|
|
23
|
-
)
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
|
|
14
|
-
/// <reference types="vite/client" />
|
package/tsconfig.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
6
|
-
"allowJs": false,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"esModuleInterop": false,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"module": "ESNext",
|
|
13
|
-
"moduleResolution": "Node",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"jsx": "react-jsx"
|
|
18
|
-
},
|
|
19
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
20
|
-
}
|