@tailor-cms/tce-preview-runtime 2.0.0-beta.1 → 2.0.0-beta.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.
package/package.json CHANGED
@@ -2,28 +2,28 @@
2
2
  "name": "@tailor-cms/tce-preview-runtime",
3
3
  "description": "Preview content element client side runtime",
4
4
  "author": "Studion <info@gostudion.com>",
5
- "version": "2.0.0-beta.1",
5
+ "version": "2.0.0-beta.2",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@mdi/font": "7.4.47",
9
- "@vitejs/plugin-vue": "6.0.5",
10
- "@vueuse/core": "14.2.1",
8
+ "@mdi/font": "^7.4.47",
9
+ "@vitejs/plugin-vue": "^6.0.5",
10
+ "@vueuse/core": "^14.2.1",
11
11
  "date-fns": "^4.1.0",
12
- "lodash-es": "^4.17.23",
13
- "sass": "1.98.0",
14
- "split.js": "1.6.5",
12
+ "lodash-es": "^4.18.1",
13
+ "sass": "^1.99.0",
14
+ "split.js": "^1.6.5",
15
15
  "stringify-object": "^6.0.0",
16
- "typescript": "5.9.3",
17
- "vite": "8.0.0",
18
- "vite-plugin-vuetify": "2.1.3",
19
- "vue": "3.5.30",
20
- "vuetify": "4.0.2",
21
- "@tailor-cms/cek-common": "^2.0.0-beta.1"
16
+ "typescript": "^6.0.2",
17
+ "vite": "^8.0.6",
18
+ "vite-plugin-vuetify": "^2.1.3",
19
+ "vue": "^3.5.32",
20
+ "vuetify": "^4.0.5",
21
+ "@tailor-cms/cek-common": "^2.0.0-beta.2"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/lodash-es": "^4.17.12",
25
25
  "@types/stringify-object": "^4.0.5",
26
- "@tailor-cms/eslint-config": "^2.0.0-beta.1"
26
+ "@tailor-cms/eslint-config": "^2.0.0-beta.2"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Disallow:
@@ -28,8 +28,16 @@
28
28
  @click="showBothComponents"
29
29
  />
30
30
  </VBtnToggle>
31
- <VBtn href="https://github.com/tailor-cms/tce-template" icon="mdi-github" />
32
- <VBtn href="https://tailor-cms.github.io/xt/" icon="mdi-book-outline" />
31
+ <VBtn
32
+ aria-label="GitHub"
33
+ href="https://github.com/tailor-cms/tce-template"
34
+ icon="mdi-github"
35
+ />
36
+ <VBtn
37
+ aria-label="Documentation"
38
+ href="https://tailor-cms.github.io/xt/"
39
+ icon="mdi-book-outline"
40
+ />
33
41
  </VAppBar>
34
42
  </template>
35
43
 
@@ -7,7 +7,6 @@
7
7
  id="panelBottom"
8
8
  :element="element"
9
9
  :user-state="userState"
10
- class="preview-panel-bottom"
11
10
  @reset-element="$emit('resetElement')"
12
11
  @reset-state="$emit('resetState')"
13
12
  />
@@ -51,9 +50,17 @@ const setupPreview = () => {
51
50
 
52
51
  <style>
53
52
  main {
53
+ position: relative;
54
+ display: flex;
55
+ flex-direction: column;
54
56
  height: calc(100vh - var(--nav-height));
55
57
 
56
- .preview-panel-bottom {
58
+ #panelTop {
59
+ height: calc(70% - 5px);
60
+ }
61
+
62
+ #panelBottom {
63
+ height: calc(30% - 5px);
57
64
  background-color: #eceff1;
58
65
  overflow-y: auto;
59
66
  }
@@ -44,9 +44,9 @@ onMounted(() => {
44
44
  $splash-color: var(--splash-color);
45
45
 
46
46
  .splash-loader {
47
- flex: 1;
48
- width: 100%;
49
- height: 100%;
47
+ position: absolute;
48
+ inset: 0;
49
+ z-index: 1;
50
50
  display: flex;
51
51
  align-items: center;
52
52
  justify-content: center;
package/src/index.html CHANGED
@@ -4,6 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <link rel="icon" href="/favicon.ico" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta name="description" content="Content Element Kit — development environment for building Tailor CMS content elements" />
7
8
  <title>Content Element Kit</title>
8
9
  </head>
9
10
  <body class="overflow-hidden">
package/tsconfig.json CHANGED
@@ -3,13 +3,12 @@
3
3
  "target": "ESNext",
4
4
  "useDefineForClassFields": true,
5
5
  "module": "ESNext",
6
- "moduleResolution": "Node",
6
+ "moduleResolution": "bundler",
7
7
  "strict": true,
8
8
  "jsx": "preserve",
9
9
  "sourceMap": true,
10
10
  "resolveJsonModule": true,
11
11
  "isolatedModules": true,
12
- "esModuleInterop": true,
13
12
  "lib": ["ESNext", "DOM"],
14
13
  "skipLibCheck": true
15
14
  },
@@ -2,8 +2,8 @@
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
4
  "module": "ESNext",
5
- "moduleResolution": "Node",
6
- "allowSyntheticDefaultImports": true
5
+ "moduleResolution": "bundler",
6
+ "skipLibCheck": true
7
7
  },
8
8
  "include": ["vite.config.ts"]
9
9
  }
package/vite.config.ts CHANGED
@@ -18,6 +18,7 @@ Object.entries(config).forEach(([k, v]) => (process.env[`VITE_${k}`] = v));
18
18
  export default defineConfig((): any => {
19
19
  return {
20
20
  root: './src',
21
+ publicDir: '../public',
21
22
  server: {
22
23
  // Accept connections from any host (Docker)
23
24
  host: '0.0.0.0',