@blinkk/root-cms 1.0.0-beta.55 → 1.0.0-beta.56

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 (2) hide show
  1. package/dist/ui/ui.js +12 -10
  2. package/package.json +3 -3
package/dist/ui/ui.js CHANGED
@@ -38146,7 +38146,8 @@ ${this.customData.serverResponse}`;
38146
38146
  createdAt: df(),
38147
38147
  createdBy: window.firebase.user.email,
38148
38148
  modifiedAt: df(),
38149
- modifiedBy: window.firebase.user.email
38149
+ modifiedBy: window.firebase.user.email,
38150
+ locales: ["en"]
38150
38151
  },
38151
38152
  fields: options2?.fields ?? {}
38152
38153
  };
@@ -39853,7 +39854,7 @@ ${this.customData.serverResponse}`;
39853
39854
  // package.json
39854
39855
  var package_default = {
39855
39856
  name: "@blinkk/root-cms",
39856
- version: "1.0.0-beta.55",
39857
+ version: "1.0.0-beta.56",
39857
39858
  author: "s@blinkk.com",
39858
39859
  license: "MIT",
39859
39860
  engines: {
@@ -39956,7 +39957,7 @@ ${this.customData.serverResponse}`;
39956
39957
  vitest: "^0.18.1"
39957
39958
  },
39958
39959
  peerDependencies: {
39959
- "@blinkk/root": "1.0.0-beta.55",
39960
+ "@blinkk/root": "1.0.0-beta.56",
39960
39961
  "firebase-admin": ">=11",
39961
39962
  "firebase-functions": ">=4",
39962
39963
  preact: "10.x",
@@ -40096,13 +40097,14 @@ ${this.customData.serverResponse}`;
40096
40097
  const notificationId = `revert-draft-${docId}`;
40097
40098
  const modalId = modals.openConfirmModal({
40098
40099
  ...modalTheme,
40099
- title: `Revert draft ${docId}`,
40100
+ title: `Discard draft edits for ${docId}`,
40100
40101
  children: /* @__PURE__ */ o4(Text2, { size: "body-sm", weight: "semi-bold", children: [
40101
- "Are you sure you want to revert draft changes for ",
40102
+ "Are you sure you want to discard draft changes for",
40103
+ " ",
40102
40104
  /* @__PURE__ */ o4("code", { children: docId }),
40103
40105
  "? The doc data will revert to the published version. There is no undo."
40104
40106
  ] }),
40105
- labels: { confirm: "Revert draft", cancel: "Cancel" },
40107
+ labels: { confirm: "Discard draft edits", cancel: "Cancel" },
40106
40108
  cancelProps: { size: "xs" },
40107
40109
  confirmProps: { color: "red", size: "xs" },
40108
40110
  onCancel: () => console.log("Cancel"),
@@ -40111,15 +40113,15 @@ ${this.customData.serverResponse}`;
40111
40113
  showNotification({
40112
40114
  id: notificationId,
40113
40115
  title: "Unpublishing doc",
40114
- message: `Requesting revert draft of ${docId}...`,
40116
+ message: `Discarding draft edits of ${docId}...`,
40115
40117
  loading: true,
40116
40118
  autoClose: false
40117
40119
  });
40118
40120
  await cmsRevertDraft(docId);
40119
40121
  updateNotification({
40120
40122
  id: notificationId,
40121
- title: "Reverted draft!",
40122
- message: `Successfully reverted ${docId}!`,
40123
+ title: "Discarded draft edited",
40124
+ message: `Successfully reverted ${docId} back to its published version`,
40123
40125
  loading: false,
40124
40126
  autoClose: 5e3
40125
40127
  });
@@ -40273,7 +40275,7 @@ ${this.customData.serverResponse}`;
40273
40275
  {
40274
40276
  icon: /* @__PURE__ */ o4(IconArrowBack, { size: 20 }),
40275
40277
  onClick: () => onRevertDraft(),
40276
- children: "Revert draft"
40278
+ children: "Discard draft edits"
40277
40279
  }
40278
40280
  ),
40279
40281
  sys.firstPublishedAt && /* @__PURE__ */ o4(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkk/root-cms",
3
- "version": "1.0.0-beta.55",
3
+ "version": "1.0.0-beta.56",
4
4
  "author": "s@blinkk.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -56,7 +56,7 @@
56
56
  "//": "NOTE(stevenle): due to compat issues with mantine and preact, mantine is pinned to v4.2.12",
57
57
  "devDependencies": {
58
58
  "@babel/core": "^7.17.9",
59
- "@blinkk/root": "1.0.0-beta.55",
59
+ "@blinkk/root": "1.0.0-beta.56",
60
60
  "@emotion/react": "^11.10.5",
61
61
  "@firebase/app-compat": "^0.1.33",
62
62
  "@firebase/app-types": "^0.7.0",
@@ -90,7 +90,7 @@
90
90
  "vitest": "^0.18.1"
91
91
  },
92
92
  "peerDependencies": {
93
- "@blinkk/root": "1.0.0-beta.55",
93
+ "@blinkk/root": "1.0.0-beta.56",
94
94
  "firebase-admin": ">=11",
95
95
  "firebase-functions": ">=4",
96
96
  "preact": "10.x",