alemonjs 2.1.59 → 2.1.61

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.
@@ -7,6 +7,7 @@ import 'path';
7
7
  import 'yaml';
8
8
  import '../../cbp/processor/config.js';
9
9
  import { sendAPI } from '../../cbp/processor/api.js';
10
+ import '../message-format-old.js';
10
11
  import { getCurrentEvent } from '../hook-event-context.js';
11
12
 
12
13
  const createDeepProxy = (event, path = []) => {
@@ -7,6 +7,7 @@ import 'path';
7
7
  import 'yaml';
8
8
  import '../../cbp/processor/config.js';
9
9
  import 'flatted';
10
+ import '../message-format-old.js';
10
11
  import '../hook-event-context.js';
11
12
 
12
13
  const useMe = () => {
@@ -7,6 +7,7 @@ import 'path';
7
7
  import 'yaml';
8
8
  import '../../cbp/processor/config.js';
9
9
  import 'flatted';
10
+ import '../message-format-old.js';
10
11
  import '../hook-event-context.js';
11
12
 
12
13
  const useRequest = () => {
@@ -7,6 +7,7 @@ import 'path';
7
7
  import 'yaml';
8
8
  import '../../cbp/processor/config.js';
9
9
  import 'flatted';
10
+ import '../message-format-old.js';
10
11
  import '../hook-event-context.js';
11
12
 
12
13
  const useUser = () => {
package/lib/app/index.js CHANGED
@@ -39,3 +39,4 @@ export { registerAppDir, scheduleCancel, scheduleCancelAll, scheduleCancelByApp,
39
39
  export { createEventValue, createSelects, onSelects, onState, unChildren, unState, useState } from './event-utils.js';
40
40
  export { MessageDirect, createDataFormat, format, getMessageIntent, sendToChannel, sendToUser } from './message-api.js';
41
41
  export { Format, FormatButtonGroup, FormatMarkDown, FormatModal, FormatSelect } from './message-format.js';
42
+ export { Attachment, Audio, BT, Button, Image, ImageFile, ImageURL, Link, MD, Markdown, MarkdownOriginal, Mention, Text, Video } from './message-format-old.js';
@@ -1,4 +1,5 @@
1
1
  import { DataMention, DataText, DataImageURL, DataImageFile, DataButtonRow, DataButtonGroup, DataButton, DataMarkDown, DataLink, DataMarkdownCode, DataAttachment, DataMarkdownMention, DataMarkdownButton, DataEnums, DataSelect, DataSelectOption, DataModal, DataTextInput, DataEmbed } from '../types';
2
+ export * from './message-format-old.js';
2
3
  export declare class FormatButtonGroup {
3
4
  #private;
4
5
  get value(): DataButtonGroup;
@@ -1,3 +1,5 @@
1
+ export { Attachment, Audio, BT, Button, Image, ImageFile, ImageURL, Link, MD, Markdown, MarkdownOriginal, Mention, Text, Video } from './message-format-old.js';
2
+
1
3
  class FormatButtonGroup {
2
4
  #rows = [];
3
5
  #currentRow = null;
@@ -16,6 +16,7 @@ import { createResult } from '../../core/utils.js';
16
16
  import '../../app/hook-event-context.js';
17
17
  import { apiResolves, apiTimeouts, actionResolves, actionTimeouts, FULL_RECEIVE_HEADER } from '../processor/config.js';
18
18
  import { setDirectSend } from '../processor/transport.js';
19
+ import '../../app/message-format-old.js';
19
20
  import 'cron';
20
21
  import '../../app/event-utils.js';
21
22
  import '../../app/message-api.js';
package/lib/client.js CHANGED
@@ -27,6 +27,7 @@ import './app/event-middleware.js';
27
27
  import './app/event-processor.js';
28
28
  import './app/event-response.js';
29
29
  import './app/hook-event-context.js';
30
+ import './app/message-format-old.js';
30
31
  import 'cron';
31
32
  import './app/event-utils.js';
32
33
  import './app/message-api.js';
package/lib/index.js CHANGED
@@ -47,3 +47,4 @@ export { createEventValue, createSelects, onSelects, onState, unChildren, unStat
47
47
  export { MessageDirect, createDataFormat, format, getMessageIntent, sendToChannel, sendToUser } from './app/message-api.js';
48
48
  export { Format, FormatButtonGroup, FormatMarkDown, FormatModal, FormatSelect } from './app/message-format.js';
49
49
  export { start } from './main.js';
50
+ export { Attachment, Audio, BT, Button, Image, ImageFile, ImageURL, Link, MD, Markdown, MarkdownOriginal, Mention, Text, Video } from './app/message-format-old.js';
@@ -6,6 +6,7 @@ export type DataButton = {
6
6
  autoEnter?: boolean;
7
7
  data?: string;
8
8
  type?: 'command' | 'link' | 'call';
9
+ notAutoConfirmation?: boolean;
9
10
  };
10
11
  };
11
12
  export type DataButtonRow = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "2.1.59",
3
+ "version": "2.1.61",
4
4
  "description": "bot script",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",