@blinkk/root-cms 1.0.0-beta.6 → 1.0.0-beta.7

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/ui/ui.css CHANGED
@@ -619,6 +619,9 @@
619
619
  object-fit: contain;
620
620
  object-position: center;
621
621
  }
622
+ .DocEditor__ImageField__imagePreview__image__alt {
623
+ margin-top: 4px;
624
+ }
622
625
  .DocEditor__ImageField__noImage {
623
626
  font-family: var(--font-family-mono);
624
627
  margin: 10px 0;
@@ -724,7 +727,7 @@
724
727
  color: var(--color-text-default);
725
728
  }
726
729
  .DocumentPage__side__editor {
727
- padding: 8px 12px;
730
+ padding: 8px 12px 120px;
728
731
  }
729
732
  .DocumentPage__main {
730
733
  width: 100%;
package/dist/ui/ui.js CHANGED
@@ -39866,7 +39866,7 @@ ${content}</tr>
39866
39866
  // package.json
39867
39867
  var package_default = {
39868
39868
  name: "@blinkk/root-cms",
39869
- version: "1.0.0-beta.6",
39869
+ version: "1.0.0-beta.7",
39870
39870
  author: "s@blinkk.com",
39871
39871
  license: "MIT",
39872
39872
  engines: {
@@ -39956,7 +39956,7 @@ ${content}</tr>
39956
39956
  vitest: "^0.18.1"
39957
39957
  },
39958
39958
  peerDependencies: {
39959
- "@blinkk/root": "1.0.0-beta.6",
39959
+ "@blinkk/root": "1.0.0-beta.7",
39960
39960
  "firebase-admin": ">=11",
39961
39961
  preact: "*"
39962
39962
  }
@@ -41812,6 +41812,12 @@ ${content}</tr>
41812
41812
  inputEl.value = "";
41813
41813
  }
41814
41814
  }
41815
+ async function setAltText(newValue) {
41816
+ setImg((currentImg) => {
41817
+ return Object.assign({}, currentImg, { alt: newValue });
41818
+ });
41819
+ props.draft.updateKey(`${props.deepKey}.alt`, newValue);
41820
+ }
41815
41821
  return /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField", children: [
41816
41822
  img && img.src ? /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField__imagePreview", children: [
41817
41823
  /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField__imagePreview__image", children: /* @__PURE__ */ o4(
@@ -41825,11 +41831,23 @@ ${content}</tr>
41825
41831
  /* @__PURE__ */ o4(
41826
41832
  TextInput,
41827
41833
  {
41834
+ className: "DocEditor__ImageField__imagePreview__image__url",
41828
41835
  size: "xs",
41829
41836
  radius: 0,
41830
41837
  value: img.gciUrl || img.src,
41831
41838
  disabled: true
41832
41839
  }
41840
+ ),
41841
+ /* @__PURE__ */ o4(
41842
+ TextInput,
41843
+ {
41844
+ className: "DocEditor__ImageField__imagePreview__image__alt",
41845
+ size: "xs",
41846
+ radius: 0,
41847
+ value: img.alt,
41848
+ label: "Alt text",
41849
+ onChange: (e3) => setAltText(e3.target.value)
41850
+ }
41833
41851
  )
41834
41852
  ] }) : /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField__noImage", children: "No image" }),
41835
41853
  /* @__PURE__ */ o4(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkk/root-cms",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
4
4
  "author": "s@blinkk.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -49,7 +49,7 @@
49
49
  "//": "NOTE(stevenle): due to compat issues with mantine and preact, mantine is pinned to v4.2.12",
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.17.9",
52
- "@blinkk/root": "1.0.0-beta.6",
52
+ "@blinkk/root": "1.0.0-beta.7",
53
53
  "@emotion/react": "^11.10.5",
54
54
  "@firebase/rules-unit-testing": "^2.0.3",
55
55
  "@mantine/core": "4.2.12",
@@ -77,7 +77,7 @@
77
77
  "vitest": "^0.18.1"
78
78
  },
79
79
  "peerDependencies": {
80
- "@blinkk/root": "1.0.0-beta.6",
80
+ "@blinkk/root": "1.0.0-beta.7",
81
81
  "firebase-admin": ">=11",
82
82
  "preact": "*"
83
83
  },