amelia-booking-ui 0.0.535 → 0.0.536

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.
@@ -70035,26 +70035,23 @@ const b9 = /* @__PURE__ */ ne({
70035
70035
  }
70036
70036
  };
70037
70037
  }
70038
- }), TIe = t1.create({
70038
+ });
70039
+ function TIe(t) {
70040
+ return t && t.replace(/[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu, (e) => {
70041
+ const n = e.codePointAt(0);
70042
+ return n ? `&#${n};` : e;
70043
+ });
70044
+ }
70045
+ const PIe = t1.create({
70039
70046
  name: "emojiToCode",
70040
70047
  onBeforeCreate() {
70041
70048
  const t = this.editor.getHTML.bind(this.editor);
70042
70049
  this.editor.getHTML = () => {
70043
70050
  const e = t();
70044
- return PIe(e);
70051
+ return TIe(e);
70045
70052
  };
70046
70053
  }
70047
- });
70048
- function PIe(t) {
70049
- return t.replace(
70050
- /[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu,
70051
- (e) => {
70052
- const n = e.codePointAt(0);
70053
- return n ? `&#${n};` : e;
70054
- }
70055
- );
70056
- }
70057
- const OIe = {
70054
+ }), OIe = {
70058
70055
  key: 0,
70059
70056
  class: "am-editor__control"
70060
70057
  }, HYe = /* @__PURE__ */ ne({
@@ -70112,7 +70109,7 @@ const OIe = {
70112
70109
  CIe,
70113
70110
  kIe,
70114
70111
  LIe,
70115
- TIe
70112
+ PIe
70116
70113
  ],
70117
70114
  content: s.value,
70118
70115
  onUpdate: () => {
@@ -70343,9 +70340,7 @@ const iw = /* @__PURE__ */ c2(HIe, [["render", RIe]]), VIe = ["onClick"], jIe =
70343
70340
  setup(t, { emit: e }) {
70344
70341
  const n = Ce("$t", (f) => f), r = t, l = e, o = F([]), a = (f, v) => {
70345
70342
  const b = v.toLowerCase().trim().split(/\s+/), y = f.label.toLowerCase(), x = f.subtitle?.toLowerCase() ?? "";
70346
- return b.every(
70347
- (_) => y.includes(_) || x.includes(_)
70348
- );
70343
+ return b.every((_) => y.includes(_) || x.includes(_));
70349
70344
  }, s = k(() => {
70350
70345
  const f = JSON.parse(JSON.stringify(r.options));
70351
70346
  return r.filterText ? f.filter((v) => {
@@ -76990,6 +76985,7 @@ export {
76990
76985
  wo as AmTooltip,
76991
76986
  hqe as AmUpload,
76992
76987
  hYe as AmUploadItem,
76988
+ TIe as convertEmojiToCode,
76993
76989
  Od as localeMap,
76994
76990
  d2 as usePopperBackground,
76995
76991
  rje as utilCountries
@@ -1,5 +1,3 @@
1
1
  import { Extension } from '@tiptap/core';
2
2
  declare const EmojiToCodeExtension: Extension<any, any>;
3
- declare function convertEmojiToCode(text: string): string;
4
3
  export default EmojiToCodeExtension;
5
- export { convertEmojiToCode };
@@ -71,4 +71,5 @@ export type { RuleItem, ValidateError, ValidateFieldsError } from 'async-validat
71
71
  export type { MultiSelectOption } from './types/multi-select-option';
72
72
  export { default as utilCountries } from './utils/utilCountries.ts';
73
73
  export { usePopperBackground, type PopperBackgroundLevel } from './utils/utilPopper.ts';
74
+ export { convertEmojiToCode } from './utils/utilEmoji.ts';
74
75
  export { default as localeMap } from './assets/languages/localeMap';
@@ -0,0 +1,2 @@
1
+ export declare function convertEmojiToCode(text: string): string;
2
+ export default convertEmojiToCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amelia-booking-ui",
3
- "version": "0.0.535",
3
+ "version": "0.0.536",
4
4
  "description": "A Vue 3 component library for Amelia Booking Plugin.",
5
5
  "type": "module",
6
6
  "repository": {