@tideworthy/tidysites-platform 0.7.0 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ - EmDash 1.0: the peer range is `>=1.0.0 <2.0.0` for `emdash` and `@emdash-cms/auth` (was 0.37 only). Nothing in the package changed: every export it depends on (`emdash/runtime` `getDb`, `emdash/seed` `loadSeed`, `emdash/middleware` `runScheduledTasks`, the repositories, `applySeed`, the auth token helpers) is still public in 1.0.1; only the `emdash/middleware/*` and `emdash/db/*-migrations` subpaths moved under `emdash/internal/*`, and this package never used them. Proven on a 0.37 database: the 1.0.1 runtime applied its 15 migrations on the first request (73 to 88), pages, sessions, editing, fill, maintenance and the content API all answered as before.
6
+
7
+ ## 0.7.1
8
+
9
+ - Editor: the class the bar puts on `<html>` is `tidy-has-bar`. 0.7.0 used `tidy-bar`, the bar's own class, so the bar's fixed styles applied to the document and pushed the top of the page off screen for a signed-in editor.
10
+
3
11
  ## 0.7.0
4
12
 
5
13
  - Editor: the corner pill is a bar across the top of the page. "Staging" (the `label` prop) on the left; Edit on the right while editing is off; Business details, Publish (with the count, only while something is unpublished) and Done while it is on. The bar sets `--tidy-bar` on `<html>` so a template's sticky header can sit below it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tideworthy/tidysites-platform",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The Tidysites platform integration for EmDash sites: bootstrap, sessions, maintenance, health, and publish hooks under /_tidy/*.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -37,18 +37,18 @@
37
37
  "check": "npm run typecheck && npm run test"
38
38
  },
39
39
  "peerDependencies": {
40
- "@emdash-cms/auth": ">=0.37.0 <0.38.0",
40
+ "@emdash-cms/auth": ">=1.0.0 <2.0.0",
41
41
  "astro": "^7.0.0",
42
- "emdash": ">=0.37.0 <0.38.0",
42
+ "emdash": ">=1.0.0 <2.0.0",
43
43
  "kysely": ">=0.29.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@astrojs/react": "^6.0.0",
47
47
  "@cloudflare/workers-types": "^5.20260915.1",
48
- "@emdash-cms/auth": "0.37.0",
48
+ "@emdash-cms/auth": "1.0.1",
49
49
  "@emdash-cms/auth-atproto": ">=0.2.8",
50
50
  "astro": "^7.3.2",
51
- "emdash": "0.37.0",
51
+ "emdash": "1.0.1",
52
52
  "kysely": "^0.29.0",
53
53
  "react": "19.2.4",
54
54
  "react-dom": "19.2.4",
@@ -35,7 +35,7 @@ const here = Astro.url.pathname + Astro.url.search;
35
35
  const toggle = (on: boolean) => `/_tidy/edit?on=${on ? 1 : 0}&to=${encodeURIComponent(here)}`;
36
36
  const editable = active && Boolean(collection && id && blocks && value);
37
37
  const config = editable ? JSON.stringify({ collection, id, field, blocks, value, records, done: toggle(false) }) : null;
38
- const htmlClass = !signedIn ? "" : !active ? "tidy-bar tidy-idle" : editable ? "tidy-bar" : "tidy-bar tidy-inline";
38
+ const htmlClass = !signedIn ? "" : !active ? "tidy-has-bar tidy-idle" : editable ? "tidy-has-bar" : "tidy-has-bar tidy-inline";
39
39
  ---
40
40
  {signedIn && (
41
41
  <>
@@ -57,8 +57,8 @@ const htmlClass = !signedIn ? "" : !active ? "tidy-bar tidy-idle" : editable ? "
57
57
  )}
58
58
  <style is:global>
59
59
  .tidy-editing #emdash-toolbar, .tidy-idle #emdash-toolbar { display: none !important; }
60
- html.tidy-bar { --tidy-bar: 44px; }
61
- html.tidy-bar body { padding-top: var(--tidy-bar); }
60
+ html.tidy-has-bar { --tidy-bar: 44px; }
61
+ html.tidy-has-bar body { padding-top: var(--tidy-bar); }
62
62
  .tidy-bar { position: fixed; top: 0; left: 0; right: 0; height: var(--tidy-bar, 44px); z-index: 2147483000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; box-sizing: border-box; background: #17211c; color: #fff; font: 500 13px/1 system-ui, sans-serif; box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 6px 20px rgba(0,0,0,.18); }
63
63
  .tidy-bar-label { opacity: .7; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
64
64
  .tidy-bar-actions { display: flex; align-items: center; gap: 8px; }
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Kept in step with package.json by the release checklist in MAINTAINING.md. */
2
- export const VERSION = "0.7.0";
2
+ export const VERSION = "0.8.0";
3
3
  export const PLUGIN_ID = "tidy-platform";