@superfeedback/widget 0.0.34 → 0.0.35

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/widget.js CHANGED
@@ -5959,7 +5959,7 @@ var { iconLoaded, getIcon, listIcons, addIcon, addCollection, calculateSize, bui
5959
5959
  iconName: Kc.icon
5960
5960
  }, null, 8, ["iconName"])], 8, _hoisted_7$1)])]), createBaseVNode("div", _hoisted_8$1, [Kc.title ? (openBlock(), createElementBlock("h3", _hoisted_9$1, toDisplayString(Kc.title), 1)) : createCommentVNode("", !0), Kc.description ? (openBlock(), createElementBlock("p", _hoisted_10$1, toDisplayString(Kc.description), 1)) : createCommentVNode("", !0)])]))])])]));
5961
5961
  }
5962
- }), _hoisted_1$8 = ["data-action", "onClick"], _hoisted_2$6 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:p-0 sf:flex sf:items-center sf:gap-0.5" }, fd_tabs_default = /* @__PURE__ */ defineComponent({
5962
+ }), _hoisted_1$8 = ["data-action", "onClick"], _hoisted_2$6 = { class: "sf:flex sf:items-center sf:gap-0.5" }, fd_tabs_default = /* @__PURE__ */ defineComponent({
5963
5963
  __name: "fd-tabs",
5964
5964
  props: {
5965
5965
  action: {},
@@ -5984,13 +5984,13 @@ var { iconLoaded, getIcon, listIcons, addIcon, addCollection, calculateSize, bui
5984
5984
  return watch(() => bg.action, Dg, { immediate: !0 }), watch(() => bg.tabs, Dg, { deep: !0 }), (yg, bg) => (openBlock(), createElementBlock("ul", {
5985
5985
  ref_key: "containerRef",
5986
5986
  ref: Sg,
5987
- class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:list-none sf:m-0 sf:p-1 sf:relative sf:flex sf:items-center sf:gap-1 sf:overflow-hidden sf:rounded-2xl sf:bg-gray-100"
5988
- }, [bg[0] ||= createBaseVNode("li", { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:list-none sf:m-0 sf:p-0 sf:absolute sf:inset-y-1 sf:left-0 sf:w-(--marker-width) sf:translate-x-(--marker-position) sf:rounded-xl sf:bg-linear-to-r sf:from-[#38bdf8] sf:to-[#2563eb] sf:shadow-md sf:transition-all sf:duration-100" }, null, -1), (openBlock(!0), createElementBlock(Fragment, null, renderList(Kc.tabs, (Kc) => (openBlock(), createElementBlock("li", {
5987
+ class: "sf:p-1 sf:relative sf:flex sf:items-center sf:gap-1 sf:overflow-hidden sf:rounded-2xl sf:bg-gray-100"
5988
+ }, [bg[0] ||= createBaseVNode("li", { class: "sf:absolute sf:inset-y-1 sf:left-0 sf:w-(--marker-width) sf:translate-x-(--marker-position) sf:rounded-xl sf:bg-linear-to-r sf:from-[#38bdf8] sf:to-[#2563eb] sf:shadow-md sf:transition-all sf:duration-100" }, null, -1), (openBlock(!0), createElementBlock(Fragment, null, renderList(Kc.tabs, (Kc) => (openBlock(), createElementBlock("li", {
5989
5989
  key: String(Kc.action),
5990
- class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:list-none sf:m-0 sf:p-0 sf:relative sf:flex-1"
5990
+ class: "sf:relative sf:flex-1"
5991
5991
  }, [createBaseVNode("button", {
5992
5992
  "data-action": Kc.action,
5993
- class: normalizeClass(["sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:bg-transparent sf:border-none sf:font-normal sf:normal-case sf:cursor-pointer sf:flex sf:w-full sf:items-center sf:justify-center sf:rounded-xl sf:p-2 sf:text-gray-600 sf:transition-all sf:duration-100", {
5993
+ class: normalizeClass(["sf:cursor-pointer sf:flex sf:w-full sf:items-center sf:justify-center sf:rounded-xl sf:p-2 sf:text-gray-600 sf:transition-all sf:duration-100", {
5994
5994
  "sf:transition-all sf:duration-100": Cg(Kc),
5995
5995
  "sf:hover:border-gray-400 sf:hover:bg-gray-50": !Cg(Kc)
5996
5996
  }]),
@@ -5998,7 +5998,7 @@ var { iconLoaded, getIcon, listIcons, addIcon, addCollection, calculateSize, bui
5998
5998
  }, [createBaseVNode("div", _hoisted_2$6, [createVNode(fd_icon_default, {
5999
5999
  "icon-name": Kc.icon,
6000
6000
  class: normalizeClass({ "sf:text-white": Cg(Kc) })
6001
- }, null, 8, ["icon-name", "class"]), createBaseVNode("span", { class: normalizeClass(["sf:revert-layer sf:box-border sf:tracking-normal sf:font-sans sf:leading-normal sf:m-0 sf:p-0 sf:inline sf:text-sm sf:font-normal sf:not-italic", {
6001
+ }, null, 8, ["icon-name", "class"]), createBaseVNode("span", { class: normalizeClass(["sf:text-sm", {
6002
6002
  "sf:text-gray-100": Cg(Kc),
6003
6003
  "sf:text-gray-600": !Cg(Kc)
6004
6004
  }]) }, toDisplayString(Kc.label), 3)])], 10, _hoisted_1$8)]))), 128))], 512));
@@ -6786,10 +6786,7 @@ var _hoisted_1$5 = { class: "sf:grid sf:w-80 sf:gap-4 sf:rounded-xl sf:border sf
6786
6786
  }, " Send another ")
6787
6787
  ]));
6788
6788
  }
6789
- }), _hoisted_1$4 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:block sf:m-0 sf:p-0 sf:text-center" }, _hoisted_2$2 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:mb-1 sf:text-2xl sf:font-bold sf:text-gray-900" }, _hoisted_3$2 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:text-sm sf:text-gray-500" }, _hoisted_4$1 = {
6790
- key: 0,
6791
- class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:block sf:m-0 sf:p-0"
6792
- }, _hoisted_5 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:block sf:m-0 sf:group sf:relative sf:rounded-2xl sf:p-0.5 sf:transition-all sf:duration-300 sf:focus-within:outline-none" }, _hoisted_6 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:block sf:m-0 sf:relative sf:z-10 sf:rounded-2xl sf:border sf:border-gray-200 sf:bg-white sf:p-1 sf:focus-within:border-transparent" }, _hoisted_7 = ["disabled"], _hoisted_8 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:block sf:m-0 sf:p-0 rr-block" }, _hoisted_9 = ["disabled"], _hoisted_10 = { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:p-0 sf:flex sf:items-center sf:gap-2" }, _hoisted_11 = { class: "sf:revert-layer sf:text-sm sf:tracking-normal sf:normal-case sf:not-italic sf:text-white sf:font-medium sf:box-border sf:font-sans sf:leading-normal sf:inline sf:m-0 sf:p-0" }, super_feedback_default = /* @__PURE__ */ defineComponent({
6789
+ }), _hoisted_1$4 = { class: "sf:text-center" }, _hoisted_2$2 = { class: "sf:mb-1 sf:text-2xl sf:font-bold sf:text-gray-900" }, _hoisted_3$2 = { class: "sf:text-sm sf:text-gray-500" }, _hoisted_4$1 = { key: 0 }, _hoisted_5 = { class: "sf:group sf:relative sf:rounded-2xl sf:p-0.5 sf:transition-all sf:duration-300 sf:focus-within:outline-none" }, _hoisted_6 = { class: "sf:relative sf:z-10 sf:rounded-2xl sf:border sf:border-gray-200 sf:bg-white sf:p-1 sf:focus-within:border-transparent" }, _hoisted_7 = ["disabled"], _hoisted_8 = { class: "rr-block" }, _hoisted_9 = ["disabled"], _hoisted_10 = { class: "sf:flex sf:items-center sf:gap-2" }, _hoisted_11 = { class: "sf:text-sm sf:text-white sf:font-medium" }, super_feedback_default = /* @__PURE__ */ defineComponent({
6793
6790
  __name: "super-feedback",
6794
6791
  props: {
6795
6792
  options: {},
@@ -6835,7 +6832,7 @@ var _hoisted_1$5 = { class: "sf:grid sf:w-80 sf:gap-4 sf:rounded-xl sf:border sf
6835
6832
  });
6836
6833
  return (yg, xg) => (openBlock(), createElementBlock(Fragment, null, [Mg.value === null ? (openBlock(), createElementBlock("section", {
6837
6834
  key: 0,
6838
- class: normalizeClass(["sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:grid sf:gap-3 sf:rounded-xl sf:border sf:border-solid sf:border-gray-200 sf:bg-white sf:p-4 sf:selection:bg-blue-200 sf:selection:text-inherit", Fg.value])
6835
+ class: normalizeClass(["sf:grid sf:gap-3 sf:rounded-xl sf:border sf:border-solid sf:border-gray-200 sf:bg-white sf:p-4 sf:selection:bg-blue-200 sf:selection:text-inherit", Fg.value])
6839
6836
  }, [
6840
6837
  createBaseVNode("div", _hoisted_1$4, [createBaseVNode("h2", _hoisted_2$2, toDisplayString(Kc.title), 1), createBaseVNode("p", _hoisted_3$2, toDisplayString(Kc.description), 1)]),
6841
6838
  Pg.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$1, [unref(Tg) === "none" && Pg.value > 1 ? (openBlock(), createBlock(resolveDynamicComponent(Ag.value), {
@@ -6853,27 +6850,27 @@ var _hoisted_1$5 = { class: "sf:grid sf:w-80 sf:gap-4 sf:rounded-xl sf:border sf
6853
6850
  unref(Eg)(Kc);
6854
6851
  }
6855
6852
  }, null, 8, ["action", "tabs"])) : createCommentVNode("", !0),
6856
- createBaseVNode("div", _hoisted_5, [xg[3] ||= createBaseVNode("div", { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:block sf:m-0 sf:p-0 sf:absolute sf:inset-0 sf:z-0 sf:rounded-2xl sf:bg-linear-to-r sf:from-blue-500 sf:via-purple-500 sf:to-pink-500 sf:opacity-0 sf:transition-opacity sf:duration-300 sf:group-focus-within:opacity-100" }, null, -1), createBaseVNode("div", _hoisted_6, [withDirectives(createBaseVNode("textarea", {
6853
+ createBaseVNode("div", _hoisted_5, [xg[3] ||= createBaseVNode("div", { class: "sf:absolute sf:inset-0 sf:z-0 sf:rounded-2xl sf:bg-linear-to-r sf:from-blue-500 sf:via-purple-500 sf:to-pink-500 sf:opacity-0 sf:transition-opacity sf:duration-300 sf:group-focus-within:opacity-100" }, null, -1), createBaseVNode("div", _hoisted_6, [withDirectives(createBaseVNode("textarea", {
6857
6854
  "onUpdate:modelValue": xg[1] ||= (Kc) => unref(Cg).message = Kc,
6858
6855
  name: "message",
6859
6856
  "aria-label": "Feedback message",
6860
6857
  disabled: Kc.isReadonly,
6861
- class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:block sf:w-full sf:resize-none sf:border sf:border-transparent sf:bg-white sf:text-sm sf:text-gray-700 sf:p-1 sf:outline-none sf:rounded-2xl sf:placeholder-gray-500 sf:placeholder:text-sm sf:placeholder:not-italic sf:focus:outline-none sf:focus:shadow-none sf:focus:border-transparent sf:focus:ring-0 sf:disabled:cursor-not-allowed sf:disabled:opacity-60",
6858
+ class: "sf:block sf:w-full sf:resize-none sf:border sf:border-transparent sf:bg-white sf:text-sm sf:text-gray-700 sf:p-1 sf:outline-none sf:rounded-2xl sf:placeholder-gray-500 sf:placeholder:text-sm sf:placeholder:not-italic sf:focus:outline-none sf:focus:shadow-none sf:focus:border-transparent sf:focus:ring-0 sf:disabled:cursor-not-allowed sf:disabled:opacity-60",
6862
6859
  placeholder: "What would you like to share about?",
6863
6860
  rows: "4"
6864
6861
  }, null, 8, _hoisted_7), [[vModelText, unref(Cg).message]])])]),
6865
6862
  createBaseVNode("div", _hoisted_8, [createBaseVNode("button", {
6866
6863
  disabled: !Dg.value || !jg.value || unref(bg),
6867
- class: "sf:revert-layer sf:appearance-none sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:border-0 sf:outline-none sf:cursor-pointer sf:text-sm sf:font-medium sf:normal-case sf:disabled:cursor-not-allowed sf:disabled:opacity-50 sf:rr-block sf:flex sf:items-center sf:justify-center sf:w-full sf:gap-2 sf:rounded-2xl sf:bg-linear-to-r sf:from-blue-500 sf:to-indigo-600 sf:px-6 sf:py-3 sf:text-white sf:shadow-md sf:transition-all sf:hover:from-blue-600 sf:hover:to-indigo-600 sf:disabled:hover:from-blue-500 sf:disabled:hover:to-indigo-600",
6864
+ class: "sf:cursor-pointer sf:text-sm sf:font-medium sf:disabled:cursor-not-allowed sf:disabled:opacity-50 rr-block sf:flex sf:items-center sf:justify-center sf:w-full sf:gap-2 sf:rounded-2xl sf:bg-linear-to-r sf:from-blue-500 sf:to-indigo-600 sf:px-6 sf:py-3 sf:text-white sf:shadow-md sf:transition-all sf:hover:from-blue-600 sf:hover:to-indigo-600 sf:disabled:hover:from-blue-500 sf:disabled:hover:to-indigo-600",
6868
6865
  onClick: Ng
6869
6866
  }, [createBaseVNode("span", _hoisted_10, [createBaseVNode("span", _hoisted_11, toDisplayString(Kc.submitLabel), 1), createVNode(fd_icon_default, {
6870
6867
  iconName: "material-symbols:send-rounded",
6871
6868
  class: "sf:w-fit sf:text-white"
6872
6869
  })])], 8, _hoisted_9)]),
6873
- xg[4] ||= createBaseVNode("div", { class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:m-0 sf:p-0 sf:flex sf:items-center sf:justify-center sf:gap-1 sf:opacity-40 sf:transition-opacity sf:group sf:hover:opacity-100" }, [createBaseVNode("span", { class: "sf:revert-layer sf:text-gray-500 sf:box-border sf:font-sans sf:leading-normal sf:inline sf:m-0 sf:p-0 sf:text-[11px] sf:font-medium sf:text-gray-00 sf:uppercase sf:tracking-wider" }, " Powered by "), createBaseVNode("a", {
6870
+ xg[4] ||= createBaseVNode("div", { class: "sf:flex sf:items-center sf:justify-center sf:gap-1 sf:opacity-40 sf:transition-opacity sf:group sf:hover:opacity-100" }, [createBaseVNode("span", { class: "sf:text-gray-500 sf:text-[11px] sf:font-medium sf:uppercase sf:tracking-wider" }, " Powered by "), createBaseVNode("a", {
6874
6871
  href: "https://superfeedback.ai/",
6875
6872
  target: "_blank",
6876
- class: "sf:revert-layer sf:box-border sf:font-sans sf:leading-normal sf:no-underline sf:hover:no-underline sf:text-[11px] sf:font-bold sf:text-gray-800 sf:transition-colors sf:group-hover:text-blue-500 sf:hover:text-blue-500"
6873
+ class: "sf:no-underline sf:hover:no-underline sf:text-[11px] sf:font-bold sf:text-gray-800 sf:transition-colors sf:group-hover:text-blue-500 sf:hover:text-blue-500"
6877
6874
  }, " superfeedback ")], -1)
6878
6875
  ], 2)) : createCommentVNode("", !0), Mg.value === null ? createCommentVNode("", !0) : (openBlock(), createBlock(fd_confirmation_default, {
6879
6876
  key: 1,
@@ -8625,7 +8622,7 @@ var tt = "none", et = class {
8625
8622
  onMouseleave: wg[1] ||= (Kc) => yg.value = !1
8626
8623
  }, [renderSlot(Cg.$slots, "default")], 544), (openBlock(), createBlock(Teleport, { to: "body" }, [yg.value ? (openBlock(), createElementBlock("span", {
8627
8624
  key: 0,
8628
- class: "rr-block sf:pointer-events-none sf:z-50 sf:rounded-md sf:bg-gray-900 sf:px-2 sf:py-1 sf:text-xs sf:font-medium sf:whitespace-nowrap sf:text-gray-100 sf:shadow-lg sf:select-none",
8625
+ class: "sf-isolate rr-block sf:pointer-events-none sf:z-50 sf:rounded-md sf:bg-gray-900 sf:px-2 sf:py-1 sf:text-xs sf:font-medium sf:whitespace-nowrap sf:text-gray-100 sf:shadow-lg sf:select-none",
8629
8626
  role: "tooltip",
8630
8627
  ref_key: "tooltipElement",
8631
8628
  ref: xg,
@@ -8725,7 +8722,7 @@ var _hoisted_1$1 = { class: "sf:flex sf:flex-col sf:items-center sf:gap-1 sf:bor
8725
8722
  }), onUnmounted(() => {
8726
8723
  window.removeEventListener("resize", Og);
8727
8724
  }), (yg, bg) => (openBlock(), createElementBlock("div", {
8728
- class: "rr-block sf:fixed sf:z-40 sf:flex sf:justify-center",
8725
+ class: "sf-isolate rr-block sf:fixed sf:z-40 sf:flex sf:justify-center",
8729
8726
  style: normalizeStyle({
8730
8727
  left: `${unref(Eg)?.x}px`,
8731
8728
  top: `${unref(Eg)?.y}px`,
@@ -8916,7 +8913,7 @@ var _hoisted_1$1 = { class: "sf:flex sf:flex-col sf:items-center sf:gap-1 sf:bor
8916
8913
  ref_key: "rootRef",
8917
8914
  ref: Dg,
8918
8915
  id: "fd-screenshot-editor",
8919
- class: "sf:bg-opacity-50 sf:fixed sf:inset-0 sf:z-999 sf:flex sf:items-center sf:justify-center",
8916
+ class: "sf-isolate sf:bg-opacity-50 sf:fixed sf:inset-0 sf:z-999 sf:flex sf:items-center sf:justify-center",
8920
8917
  onClick: e_
8921
8918
  }, [
8922
8919
  createVNode(Transition, {
@@ -9203,7 +9200,7 @@ var _hoisted_1 = { key: 0 }, root_default = /* @__PURE__ */ defineComponent({
9203
9200
  }), (Kc, Cg) => (openBlock(), createElementBlock(Fragment, null, [
9204
9201
  unref(Sg) && Jg.value || bg.previewMode ? (openBlock(), createElementBlock("button", {
9205
9202
  key: 0,
9206
- class: normalizeClass(["sf:px-3 sf:z-50 sf:py-1", [Wg.value, Zg.value]]),
9203
+ class: normalizeClass(["sf-isolate sf:px-3 sf:z-50 sf:py-1 sf:rounded-none sf:border-0", [Wg.value, Zg.value]]),
9207
9204
  style: normalizeStyle({ backgroundColor: unref(xg)?.triggerLabelColor || "#FBBF24" }),
9208
9205
  ref_key: "reference",
9209
9206
  ref: wg,
@@ -9215,7 +9212,7 @@ var _hoisted_1 = { key: 0 }, root_default = /* @__PURE__ */ defineComponent({
9215
9212
  ref_key: "floating",
9216
9213
  ref: Tg,
9217
9214
  style: normalizeStyle(unref(Eg)),
9218
- class: "rr-block z-[9999]"
9215
+ class: "sf-isolate rr-block sf:z-9999"
9219
9216
  }, [createVNode(Transition, {
9220
9217
  "enter-active-class": Gg.value?.enterActive,
9221
9218
  "enter-from-class": Gg.value?.enterFrom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superfeedback/widget",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "files": [