@cgboiler/biz-basic 1.0.36 → 1.0.38

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/es/index.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export function install(app: any): void;
8
- export const version: "1.0.35";
8
+ export const version: "1.0.37";
9
9
  import RichTextEditor from './rich-text-editor';
10
10
  export { RichTextEditor };
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import RichTextEditor from "./rich-text-editor";
2
- const version = "1.0.35";
2
+ const version = "1.0.37";
3
3
  function install(app) {
4
4
  const components = [
5
5
  RichTextEditor
@@ -99,10 +99,14 @@ var stdin_default = defineComponent({
99
99
  }
100
100
  });
101
101
  };
102
+ const focus = () => {
103
+ editor.value.commands.focus();
104
+ };
102
105
  expose({
103
106
  getEditor: () => editor.value,
104
107
  insertMention,
105
- insertHashTag
108
+ insertHashTag,
109
+ focus
106
110
  });
107
111
  watch(() => props.modelValue, (newValue) => {
108
112
  var _a, _b;
@@ -155,9 +159,11 @@ var stdin_default = defineComponent({
155
159
  if (tagEl) {
156
160
  const id = tagEl.getAttribute("data-id") || "";
157
161
  const label = tagEl.getAttribute("data-label") || tagEl.textContent || "";
162
+ const hashTag = tagEl.getAttribute("data-hash-tag") || "#";
158
163
  emit("hashTag-clicked", {
159
164
  hashTagId: id,
160
- name: label
165
+ name: label,
166
+ type: hashTag
161
167
  });
162
168
  event.stopPropagation();
163
169
  event.preventDefault();
package/lib/index.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export function install(app: any): void;
8
- export const version: "1.0.35";
8
+ export const version: "1.0.37";
9
9
  import RichTextEditor from './rich-text-editor';
10
10
  export { RichTextEditor };
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ __export(stdin_exports, {
36
36
  module.exports = __toCommonJS(stdin_exports);
37
37
  var import_rich_text_editor = __toESM(require("./rich-text-editor"));
38
38
  __reExport(stdin_exports, require("./rich-text-editor"), module.exports);
39
- const version = "1.0.35";
39
+ const version = "1.0.37";
40
40
  function install(app) {
41
41
  const components = [
42
42
  import_rich_text_editor.default
@@ -131,10 +131,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
131
131
  }
132
132
  });
133
133
  };
134
+ const focus = () => {
135
+ editor.value.commands.focus();
136
+ };
134
137
  expose({
135
138
  getEditor: () => editor.value,
136
139
  insertMention,
137
- insertHashTag
140
+ insertHashTag,
141
+ focus
138
142
  });
139
143
  (0, import_vue2.watch)(() => props.modelValue, (newValue) => {
140
144
  var _a, _b;
@@ -187,9 +191,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
187
191
  if (tagEl) {
188
192
  const id = tagEl.getAttribute("data-id") || "";
189
193
  const label = tagEl.getAttribute("data-label") || tagEl.textContent || "";
194
+ const hashTag = tagEl.getAttribute("data-hash-tag") || "#";
190
195
  emit("hashTag-clicked", {
191
196
  hashTagId: id,
192
- name: label
197
+ name: label,
198
+ type: hashTag
193
199
  });
194
200
  event.stopPropagation();
195
201
  event.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgboiler/biz-basic",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",