@daisychainapp/maily-to-core 0.0.2-2.1 → 0.0.22

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.mjs CHANGED
@@ -1203,12 +1203,10 @@ var DefaultRenderVariable = (props) => {
1203
1203
 
1204
1204
  // src/editor/provider.tsx
1205
1205
  import { jsx as jsx15 } from "react/jsx-runtime";
1206
- var DEFAULT_PLACEHOLDER_URL = "maily.to/";
1207
1206
  var DEFAULT_VARIABLE_TRIGGER_CHAR = "@";
1208
1207
  var DEFAULT_VARIABLES = [];
1209
1208
  var DEFAULT_RENDER_VARIABLE_FUNCTION = DefaultRenderVariable;
1210
1209
  var MailyContext = createContext({
1211
- placeholderUrl: DEFAULT_PLACEHOLDER_URL,
1212
1210
  variableTriggerCharacter: DEFAULT_VARIABLE_TRIGGER_CHAR,
1213
1211
  variables: DEFAULT_VARIABLES,
1214
1212
  blocks: DEFAULT_SLASH_COMMANDS,
@@ -2641,8 +2639,7 @@ function LinkInputPopover(props) {
2641
2639
  const {
2642
2640
  variables = [],
2643
2641
  variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
2644
- renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION,
2645
- placeholderUrl = DEFAULT_PLACEHOLDER_URL
2642
+ renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
2646
2643
  } = useMailyContext();
2647
2644
  const autoCompleteOptions = useMemo5(() => {
2648
2645
  const withoutTrigger = defaultUrlWithoutProtocol.replace(
@@ -2762,7 +2759,7 @@ function LinkInputPopover(props) {
2762
2759
  },
2763
2760
  autoCompleteOptions,
2764
2761
  ref: linkInputRef,
2765
- placeholder: placeholderUrl,
2762
+ placeholder: "maily.to/",
2766
2763
  className: "-mly-ms-px mly-block mly-h-8 mly-w-52 mly-rounded-lg mly-rounded-s-none mly-border mly-border-gray-300 mly-px-2 mly-py-1.5 mly-pr-6 mly-text-sm mly-shadow-sm mly-outline-none placeholder:mly-text-gray-400",
2767
2764
  triggerChar: variableTriggerCharacter,
2768
2765
  onSelectOption: (value) => {
@@ -4714,8 +4711,7 @@ function ButtonLabelInput(props) {
4714
4711
  const {
4715
4712
  variables = [],
4716
4713
  variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
4717
- renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION,
4718
- placeholderUrl = DEFAULT_PLACEHOLDER_URL
4714
+ renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
4719
4715
  } = useMailyContext();
4720
4716
  const autoCompleteOptions = useMemo6(() => {
4721
4717
  const withoutTrigger = value.replace(
@@ -4759,7 +4755,7 @@ function ButtonLabelInput(props) {
4759
4755
  },
4760
4756
  autoCompleteOptions,
4761
4757
  ref: linkInputRef,
4762
- placeholder: placeholderUrl,
4758
+ placeholder: "maily.to/",
4763
4759
  className: "mly-h-7 mly-w-40 mly-rounded-md mly-px-2 mly-pr-6 mly-text-sm mly-text-midnight-gray hover:mly-bg-soft-gray focus:mly-bg-soft-gray focus:mly-outline-none",
4764
4760
  triggerChar: variableTriggerCharacter,
4765
4761
  onSelectOption: (value2) => {
@@ -6589,8 +6585,7 @@ function Editor9(props) {
6589
6585
  variables = DEFAULT_VARIABLES,
6590
6586
  blocks = DEFAULT_SLASH_COMMANDS,
6591
6587
  variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
6592
- renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION,
6593
- placeholderUrl = DEFAULT_PLACEHOLDER_URL
6588
+ renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
6594
6589
  } = props;
6595
6590
  let formattedContent = null;
6596
6591
  if (contentJson) {
@@ -6657,7 +6652,6 @@ function Editor9(props) {
6657
6652
  blocks,
6658
6653
  variableTriggerCharacter,
6659
6654
  renderVariable,
6660
- placeholderUrl,
6661
6655
  children: /* @__PURE__ */ jsxs27(
6662
6656
  "div",
6663
6657
  {