artalk 2.4.0 → 2.4.1

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.
@@ -2,12 +2,14 @@ import ArtalkConfig from '../types/artalk-config';
2
2
  import { EventPayloadMap, Handler } from '../types/event';
3
3
  import ArtalkPlug from '../types/plug';
4
4
  import Context from '../types/context';
5
+ import ListLite from './list/list-lite';
5
6
  /**
6
7
  * Artalk
7
8
  *
8
9
  * @website https://artalk.js.org
9
10
  */
10
11
  export default class Artalk {
12
+ static ListLite: typeof ListLite;
11
13
  static readonly defaults: ArtalkConfig;
12
14
  conf: ArtalkConfig;
13
15
  ctx: Context;
@@ -1,4 +1,2 @@
1
1
  import Artalk from './artalk';
2
- import ListLite from './list/list-lite';
3
2
  export default Artalk;
4
- export { ListLite };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artalk",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "backendMinVersion": "2.2.0",
5
5
  "license": "LGPL-3.0",
6
6
  "description": "A Selfhosted Comment System",
package/src/artalk.ts CHANGED
@@ -7,6 +7,7 @@ import Context from '~/types/context'
7
7
  import ConcreteContext from './context'
8
8
  import defaults from './defaults'
9
9
 
10
+ import ListLite from './list/list-lite'
10
11
  import CheckerLauncher from './lib/checker'
11
12
  import Editor from './editor'
12
13
  import List from './list'
@@ -23,6 +24,7 @@ import * as Stat from './lib/stat'
23
24
  * @website https://artalk.js.org
24
25
  */
25
26
  export default class Artalk {
27
+ public static ListLite = ListLite
26
28
  public static readonly defaults: ArtalkConfig = defaults
27
29
 
28
30
  public conf!: ArtalkConfig
package/src/main.ts CHANGED
@@ -1,6 +1,3 @@
1
1
  import Artalk from './artalk'
2
- import ListLite from './list/list-lite'
3
2
 
4
3
  export default Artalk
5
-
6
- export { ListLite }
package/vite.config.ts CHANGED
@@ -18,10 +18,6 @@ export default Utils.mergeDeep(baseConf, defineConfig({
18
18
  rollupOptions: {
19
19
  output: {
20
20
  assetFileNames: (assetInfo) => (/\.css$/.test(assetInfo.name || '') ? "Artalk.css" : "[name].[ext]"),
21
-
22
- // Entry module "src/main.ts" is using named and default exports together.
23
- // Consumers of your bundle will have to use `Artalk["default"]` to access the default export
24
- exports: 'named'
25
21
  }
26
22
  }
27
23
  },