featurely-site-manager 1.3.2 → 1.3.3

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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- declare const SDK_VERSION = "1.3.2";
1
+ declare const SDK_VERSION = "1.3.3";
2
2
  type MessageType = "info" | "warning" | "error" | "success";
3
3
  type MessagePosition = "top" | "bottom";
4
4
  type MessageStyle = "banner" | "toast";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const SDK_VERSION = "1.3.2";
1
+ declare const SDK_VERSION = "1.3.3";
2
2
  type MessageType = "info" | "warning" | "error" | "success";
3
3
  type MessagePosition = "top" | "bottom";
4
4
  type MessageStyle = "banner" | "toast";
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ __export(index_exports, {
36
36
  });
37
37
  module.exports = __toCommonJS(index_exports);
38
38
  var import_dompurify = __toESM(require("dompurify"));
39
- var SDK_VERSION = "1.3.2";
39
+ var SDK_VERSION = "1.3.3";
40
40
  var _SiteManager = class _SiteManager {
41
41
  constructor(config) {
42
42
  this.siteConfig = null;
@@ -1109,10 +1109,12 @@ var _SiteManager = class _SiteManager {
1109
1109
  </div>
1110
1110
  ${minimized ? "" : `<div id="__ft_dbg_content__" style="padding:8px 10px;max-height:300px;overflow-y:auto">${content}</div>`}
1111
1111
  `;
1112
- if (!minimized) {
1112
+ if (!minimized && scrollTop > 0) {
1113
1113
  const newContentContainer = el.querySelector("#__ft_dbg_content__");
1114
1114
  if (newContentContainer) {
1115
- newContentContainer.scrollTop = scrollTop;
1115
+ requestAnimationFrame(() => {
1116
+ newContentContainer.scrollTop = scrollTop;
1117
+ });
1116
1118
  }
1117
1119
  }
1118
1120
  el.querySelectorAll("[data-tab]").forEach((btn) => {
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/index.ts
2
2
  import DOMPurify from "dompurify";
3
- var SDK_VERSION = "1.3.2";
3
+ var SDK_VERSION = "1.3.3";
4
4
  var _SiteManager = class _SiteManager {
5
5
  constructor(config) {
6
6
  this.siteConfig = null;
@@ -1073,10 +1073,12 @@ var _SiteManager = class _SiteManager {
1073
1073
  </div>
1074
1074
  ${minimized ? "" : `<div id="__ft_dbg_content__" style="padding:8px 10px;max-height:300px;overflow-y:auto">${content}</div>`}
1075
1075
  `;
1076
- if (!minimized) {
1076
+ if (!minimized && scrollTop > 0) {
1077
1077
  const newContentContainer = el.querySelector("#__ft_dbg_content__");
1078
1078
  if (newContentContainer) {
1079
- newContentContainer.scrollTop = scrollTop;
1079
+ requestAnimationFrame(() => {
1080
+ newContentContainer.scrollTop = scrollTop;
1081
+ });
1080
1082
  }
1081
1083
  }
1082
1084
  el.querySelectorAll("[data-tab]").forEach((btn) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "featurely-site-manager",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Complete site management SDK for maintenance mode, status messages, feature flags, version checking, and analytics",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -57,8 +57,15 @@
57
57
  "typescript": "^5.0.0"
58
58
  },
59
59
  "dependencies": {
60
+ "@tiptap/core": "^3.22.5",
61
+ "@tiptap/extension-link": "^3.22.5",
62
+ "@tiptap/extension-placeholder": "^3.22.5",
63
+ "@tiptap/react": "^3.22.5",
64
+ "@tiptap/starter-kit": "^3.22.5",
60
65
  "dompurify": "^3.3.3",
61
66
  "featurely-error-tracker": "^1.0.23",
62
- "featurely-mcp": "^1.0.6"
67
+ "featurely-mcp": "^1.0.6",
68
+ "featurely-site-manager": "^1.3.1",
69
+ "jose": "^6.2.3"
63
70
  }
64
71
  }