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.
- package/dist/Artalk.es.js +2 -2
- package/dist/Artalk.iife.js +1 -1
- package/dist/Artalk.js +1 -1
- package/dist/ArtalkLite.es.js +2 -2
- package/dist/ArtalkLite.iife.js +1 -1
- package/dist/ArtalkLite.js +1 -1
- package/dist/src/artalk.d.ts +2 -0
- package/dist/src/main.d.ts +0 -2
- package/package.json +1 -1
- package/src/artalk.ts +2 -0
- package/src/main.ts +0 -3
- package/vite.config.ts +0 -4
package/dist/src/artalk.d.ts
CHANGED
|
@@ -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;
|
package/dist/src/main.d.ts
CHANGED
package/package.json
CHANGED
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
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
|
},
|