@select-org/select-post-builder 1.1.25 → 1.1.26

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.
@@ -33672,7 +33672,8 @@ const PostBuilderEditorInstance = ({
33672
33672
  clearOnSuccess,
33673
33673
  onCreatePost,
33674
33674
  className,
33675
- store
33675
+ store,
33676
+ placement
33676
33677
  }) => {
33677
33678
  const [isDragging, setIsDragging] = React.useState(false);
33678
33679
  const { trackPublish } = useAnalyticsTracking();
@@ -33738,11 +33739,12 @@ const PostBuilderEditorInstance = ({
33738
33739
  "div",
33739
33740
  {
33740
33741
  className: cn(
33741
- "post-builder-editor bg-background border rounded-md overflow-hidden min-h-60 max-h-full grow flex flex-col overflow-y-auto transition-all duration-300 ease-in-out",
33742
+ "post-builder-editor bg-background border rounded-md overflow-hidden max-h-full grow flex flex-col overflow-y-auto transition-all duration-300 ease-in-out",
33743
+ placement === EditorPlacement.Comment ? "min-h-32" : "min-h-60",
33742
33744
  className
33743
33745
  ),
33744
33746
  children: [
33745
- /* @__PURE__ */ jsxRuntime.jsx(EditorTypeTabs, { editorTab, onSwitchEditorTab: onSwitchEditor }),
33747
+ placement !== EditorPlacement.Comment && /* @__PURE__ */ jsxRuntime.jsx(EditorTypeTabs, { editorTab, onSwitchEditorTab: onSwitchEditor }),
33746
33748
  /* @__PURE__ */ jsxRuntime.jsx(
33747
33749
  Toolbar,
33748
33750
  {
@@ -33797,6 +33799,7 @@ const PostBuilderEditorInstanceWithDialog = ({
33797
33799
  open,
33798
33800
  onOpenChange,
33799
33801
  onGroupSelect,
33802
+ placement,
33800
33803
  ...rest
33801
33804
  }) => {
33802
33805
  const { trackAbandon } = useAnalyticsTracking();
@@ -33824,7 +33827,7 @@ const PostBuilderEditorInstanceWithDialog = ({
33824
33827
  /* @__PURE__ */ jsxRuntime.jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(X, {}) }) })
33825
33828
  ] })
33826
33829
  ] }),
33827
- /* @__PURE__ */ jsxRuntime.jsx(PostBuilderEditorInstance, { ...rest, store })
33830
+ /* @__PURE__ */ jsxRuntime.jsx(PostBuilderEditorInstance, { ...rest, store, placement })
33828
33831
  ]
33829
33832
  }
33830
33833
  ) });
@@ -33950,7 +33953,7 @@ const PostBuilderEditor = ({
33950
33953
  /* @__PURE__ */ jsxRuntime.jsx(react.EditorContext.Provider, { value: providerValue, children: openModal ? /* @__PURE__ */ jsxRuntime.jsx(
33951
33954
  PostBuilderEditorInstanceWithDialog,
33952
33955
  {
33953
- placement: EditorPlacement.Modal,
33956
+ placement,
33954
33957
  hideGroupSelector,
33955
33958
  user,
33956
33959
  editor,
@@ -33977,7 +33980,8 @@ const PostBuilderEditor = ({
33977
33980
  store,
33978
33981
  isSubmitting,
33979
33982
  onCreatePost,
33980
- clearOnSuccess
33983
+ clearOnSuccess,
33984
+ placement
33981
33985
  }
33982
33986
  )
33983
33987
  ] }) }),
@@ -1648,6 +1648,10 @@ body {
1648
1648
  min-height: calc(var(--spacing) * 16);
1649
1649
  }
1650
1650
 
1651
+ [data-theme="select-post-builder"] .min-h-32 {
1652
+ min-height: calc(var(--spacing) * 32);
1653
+ }
1654
+
1651
1655
  [data-theme="select-post-builder"] .min-h-44 {
1652
1656
  min-height: calc(var(--spacing) * 44);
1653
1657
  }
@@ -33642,7 +33642,8 @@ const PostBuilderEditorInstance = ({
33642
33642
  clearOnSuccess,
33643
33643
  onCreatePost,
33644
33644
  className,
33645
- store
33645
+ store,
33646
+ placement
33646
33647
  }) => {
33647
33648
  const [isDragging, setIsDragging] = useState(false);
33648
33649
  const { trackPublish } = useAnalyticsTracking();
@@ -33708,11 +33709,12 @@ const PostBuilderEditorInstance = ({
33708
33709
  "div",
33709
33710
  {
33710
33711
  className: cn(
33711
- "post-builder-editor bg-background border rounded-md overflow-hidden min-h-60 max-h-full grow flex flex-col overflow-y-auto transition-all duration-300 ease-in-out",
33712
+ "post-builder-editor bg-background border rounded-md overflow-hidden max-h-full grow flex flex-col overflow-y-auto transition-all duration-300 ease-in-out",
33713
+ placement === EditorPlacement.Comment ? "min-h-32" : "min-h-60",
33712
33714
  className
33713
33715
  ),
33714
33716
  children: [
33715
- /* @__PURE__ */ jsx(EditorTypeTabs, { editorTab, onSwitchEditorTab: onSwitchEditor }),
33717
+ placement !== EditorPlacement.Comment && /* @__PURE__ */ jsx(EditorTypeTabs, { editorTab, onSwitchEditorTab: onSwitchEditor }),
33716
33718
  /* @__PURE__ */ jsx(
33717
33719
  Toolbar,
33718
33720
  {
@@ -33767,6 +33769,7 @@ const PostBuilderEditorInstanceWithDialog = ({
33767
33769
  open,
33768
33770
  onOpenChange,
33769
33771
  onGroupSelect,
33772
+ placement,
33770
33773
  ...rest
33771
33774
  }) => {
33772
33775
  const { trackAbandon } = useAnalyticsTracking();
@@ -33794,7 +33797,7 @@ const PostBuilderEditorInstanceWithDialog = ({
33794
33797
  /* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "icon", children: /* @__PURE__ */ jsx(X, {}) }) })
33795
33798
  ] })
33796
33799
  ] }),
33797
- /* @__PURE__ */ jsx(PostBuilderEditorInstance, { ...rest, store })
33800
+ /* @__PURE__ */ jsx(PostBuilderEditorInstance, { ...rest, store, placement })
33798
33801
  ]
33799
33802
  }
33800
33803
  ) });
@@ -33920,7 +33923,7 @@ const PostBuilderEditor = ({
33920
33923
  /* @__PURE__ */ jsx(EditorContext.Provider, { value: providerValue, children: openModal ? /* @__PURE__ */ jsx(
33921
33924
  PostBuilderEditorInstanceWithDialog,
33922
33925
  {
33923
- placement: EditorPlacement.Modal,
33926
+ placement,
33924
33927
  hideGroupSelector,
33925
33928
  user,
33926
33929
  editor,
@@ -33947,7 +33950,8 @@ const PostBuilderEditor = ({
33947
33950
  store,
33948
33951
  isSubmitting,
33949
33952
  onCreatePost,
33950
- clearOnSuccess
33953
+ clearOnSuccess,
33954
+ placement
33951
33955
  }
33952
33956
  )
33953
33957
  ] }) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@select-org/select-post-builder",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
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",