@sindingmind/cms-astro 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/LICENSE +21 -21
  2. package/dist/bridge.js +17 -17
  3. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Sinding Mind ApS
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sinding Mind ApS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/bridge.js CHANGED
@@ -32,23 +32,23 @@ function post(msg) {
32
32
  const host = document.createElement("div");
33
33
  host.setAttribute("data-cms-overlay", "");
34
34
  const shadow = host.attachShadow({ mode: "open" });
35
- shadow.innerHTML = `<style>
36
- :host{all:initial}
37
- .box{position:fixed;pointer-events:none;border-radius:6px;z-index:2147483646;display:none}
38
- .hover{outline:2px dashed #2D68AF;outline-offset:3px}
39
- .sel{outline:3px solid #2D68AF;outline-offset:3px;box-shadow:0 0 0 9999px rgba(20,35,58,.06)}
40
- .tools{position:fixed;z-index:2147483647;display:none;gap:2px;background:#14233A;border-radius:8px;padding:3px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
41
- .tools button{all:unset;cursor:pointer;color:#fff;font:600 13px/1 system-ui,sans-serif;padding:8px 10px;border-radius:6px;min-width:24px;min-height:24px;text-align:center}
42
- .tools button:hover,.tools button:focus-visible{background:#2D68AF;outline:2px solid #F8C838;outline-offset:0}
43
- .label{position:fixed;z-index:2147483647;display:none;background:#2D68AF;color:#fff;font:600 12px/1 system-ui,sans-serif;padding:4px 7px;border-radius:4px;pointer-events:none}
44
- </style>
45
- <div class="box hover"></div><div class="box sel"></div><div class="label"></div>
46
- <div class="tools" role="toolbar" aria-label="Element i listen">
47
- <button data-op="up" aria-label="Flyt op" title="Flyt op">↑</button>
48
- <button data-op="down" aria-label="Flyt ned" title="Flyt ned">↓</button>
49
- <button data-op="duplicate" aria-label="Kopiér" title="Kopiér">Kopiér</button>
50
- <button data-op="add" aria-label="Tilføj nyt efter" title="Tilføj nyt efter">+ Ny</button>
51
- <button data-op="delete" aria-label="Slet" title="Slet">Slet</button>
35
+ shadow.innerHTML = `<style>
36
+ :host{all:initial}
37
+ .box{position:fixed;pointer-events:none;border-radius:6px;z-index:2147483646;display:none}
38
+ .hover{outline:2px dashed #2D68AF;outline-offset:3px}
39
+ .sel{outline:3px solid #2D68AF;outline-offset:3px;box-shadow:0 0 0 9999px rgba(20,35,58,.06)}
40
+ .tools{position:fixed;z-index:2147483647;display:none;gap:2px;background:#14233A;border-radius:8px;padding:3px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
41
+ .tools button{all:unset;cursor:pointer;color:#fff;font:600 13px/1 system-ui,sans-serif;padding:8px 10px;border-radius:6px;min-width:24px;min-height:24px;text-align:center}
42
+ .tools button:hover,.tools button:focus-visible{background:#2D68AF;outline:2px solid #F8C838;outline-offset:0}
43
+ .label{position:fixed;z-index:2147483647;display:none;background:#2D68AF;color:#fff;font:600 12px/1 system-ui,sans-serif;padding:4px 7px;border-radius:4px;pointer-events:none}
44
+ </style>
45
+ <div class="box hover"></div><div class="box sel"></div><div class="label"></div>
46
+ <div class="tools" role="toolbar" aria-label="Element i listen">
47
+ <button data-op="up" aria-label="Flyt op" title="Flyt op">↑</button>
48
+ <button data-op="down" aria-label="Flyt ned" title="Flyt ned">↓</button>
49
+ <button data-op="duplicate" aria-label="Kopiér" title="Kopiér">Kopiér</button>
50
+ <button data-op="add" aria-label="Tilføj nyt efter" title="Tilføj nyt efter">+ Ny</button>
51
+ <button data-op="delete" aria-label="Slet" title="Slet">Slet</button>
52
52
  </div>`;
53
53
  const hoverBox = shadow.querySelector(".hover");
54
54
  const selBox = shadow.querySelector(".sel");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sindingmind/cms-astro",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The open Astro integration of the Sinding Mind CMS: field definitions, Zod schemas, content collections and click-to-edit preview markers that leave no trace in a production build.",
5
5
  "license": "MIT",
6
6
  "author": "Sinding Mind ApS",