@select-org/select-post-builder 1.1.3 → 1.1.4

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.
@@ -20845,8 +20845,7 @@ const useHostAnalyticsBridge = () => {
20845
20845
  };
20846
20846
  const usePersistence = () => {
20847
20847
  const saveCurrentTabContent = (editorType, editor) => {
20848
- if (typeof window === "undefined" || typeof localStorage === "undefined" || !editor || editor.isEmpty)
20849
- return;
20848
+ if (typeof window === "undefined" || typeof localStorage === "undefined" || !editor) return;
20850
20849
  const json = editor?.getJSON();
20851
20850
  const filteredJson = filterNodes(json, (node) => !node?.attrs?.uploading);
20852
20851
  if (filteredJson) {
@@ -20815,8 +20815,7 @@ const useHostAnalyticsBridge = () => {
20815
20815
  };
20816
20816
  const usePersistence = () => {
20817
20817
  const saveCurrentTabContent = (editorType, editor) => {
20818
- if (typeof window === "undefined" || typeof localStorage === "undefined" || !editor || editor.isEmpty)
20819
- return;
20818
+ if (typeof window === "undefined" || typeof localStorage === "undefined" || !editor) return;
20820
20819
  const json = editor?.getJSON();
20821
20820
  const filteredJson = filterNodes(json, (node) => !node?.attrs?.uploading);
20822
20821
  if (filteredJson) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@select-org/select-post-builder",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "A reusable, extensible Post Builder widget for the Select platform and beyond.",
5
5
  "main": "./dist/post-builder.cjs.js",
6
6
  "module": "./dist/post-builder.js",