@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.d.mts CHANGED
@@ -35,7 +35,6 @@ type RenderVariableOptions = {
35
35
  };
36
36
  type RenderVariableFunction = (opts: RenderVariableOptions) => JSX.Element | null;
37
37
  type MailyContextType = {
38
- placeholderUrl?: string;
39
38
  variableTriggerCharacter?: string;
40
39
  variables?: Variables;
41
40
  blocks?: BlockItem[];
package/dist/index.d.ts CHANGED
@@ -35,7 +35,6 @@ type RenderVariableOptions = {
35
35
  };
36
36
  type RenderVariableFunction = (opts: RenderVariableOptions) => JSX.Element | null;
37
37
  type MailyContextType = {
38
- placeholderUrl?: string;
39
38
  variableTriggerCharacter?: string;
40
39
  variables?: Variables;
41
40
  blocks?: BlockItem[];
package/dist/index.js CHANGED
@@ -1206,12 +1206,10 @@ var DefaultRenderVariable = (props) => {
1206
1206
 
1207
1207
  // src/editor/provider.tsx
1208
1208
  var import_jsx_runtime15 = require("react/jsx-runtime");
1209
- var DEFAULT_PLACEHOLDER_URL = "maily.to/";
1210
1209
  var DEFAULT_VARIABLE_TRIGGER_CHAR = "@";
1211
1210
  var DEFAULT_VARIABLES = [];
1212
1211
  var DEFAULT_RENDER_VARIABLE_FUNCTION = DefaultRenderVariable;
1213
1212
  var MailyContext = (0, import_react7.createContext)({
1214
- placeholderUrl: DEFAULT_PLACEHOLDER_URL,
1215
1213
  variableTriggerCharacter: DEFAULT_VARIABLE_TRIGGER_CHAR,
1216
1214
  variables: DEFAULT_VARIABLES,
1217
1215
  blocks: DEFAULT_SLASH_COMMANDS,
@@ -2620,8 +2618,7 @@ function LinkInputPopover(props) {
2620
2618
  const {
2621
2619
  variables = [],
2622
2620
  variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
2623
- renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION,
2624
- placeholderUrl = DEFAULT_PLACEHOLDER_URL
2621
+ renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
2625
2622
  } = useMailyContext();
2626
2623
  const autoCompleteOptions = (0, import_react21.useMemo)(() => {
2627
2624
  const withoutTrigger = defaultUrlWithoutProtocol.replace(
@@ -2741,7 +2738,7 @@ function LinkInputPopover(props) {
2741
2738
  },
2742
2739
  autoCompleteOptions,
2743
2740
  ref: linkInputRef,
2744
- placeholder: placeholderUrl,
2741
+ placeholder: "maily.to/",
2745
2742
  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",
2746
2743
  triggerChar: variableTriggerCharacter,
2747
2744
  onSelectOption: (value) => {
@@ -4685,8 +4682,7 @@ function ButtonLabelInput(props) {
4685
4682
  const {
4686
4683
  variables = [],
4687
4684
  variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
4688
- renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION,
4689
- placeholderUrl = DEFAULT_PLACEHOLDER_URL
4685
+ renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
4690
4686
  } = useMailyContext();
4691
4687
  const autoCompleteOptions = (0, import_react39.useMemo)(() => {
4692
4688
  const withoutTrigger = value.replace(
@@ -4730,7 +4726,7 @@ function ButtonLabelInput(props) {
4730
4726
  },
4731
4727
  autoCompleteOptions,
4732
4728
  ref: linkInputRef,
4733
- placeholder: placeholderUrl,
4729
+ placeholder: "maily.to/",
4734
4730
  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",
4735
4731
  triggerChar: variableTriggerCharacter,
4736
4732
  onSelectOption: (value2) => {
@@ -6546,8 +6542,7 @@ function Editor9(props) {
6546
6542
  variables = DEFAULT_VARIABLES,
6547
6543
  blocks = DEFAULT_SLASH_COMMANDS,
6548
6544
  variableTriggerCharacter = DEFAULT_VARIABLE_TRIGGER_CHAR,
6549
- renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION,
6550
- placeholderUrl = DEFAULT_PLACEHOLDER_URL
6545
+ renderVariable = DEFAULT_RENDER_VARIABLE_FUNCTION
6551
6546
  } = props;
6552
6547
  let formattedContent = null;
6553
6548
  if (contentJson) {
@@ -6614,7 +6609,6 @@ function Editor9(props) {
6614
6609
  blocks,
6615
6610
  variableTriggerCharacter,
6616
6611
  renderVariable,
6617
- placeholderUrl,
6618
6612
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
6619
6613
  "div",
6620
6614
  {