@axsdk/core 0.1.1 → 0.1.2
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/README.md +156 -1
- package/dist/axapi.d.ts +1 -1
- package/dist/axsdk.d.ts +4 -4
- package/dist/eventbus.d.ts +1 -1
- package/dist/lib.cjs +11 -11
- package/dist/lib.cjs.map +17 -16
- package/dist/lib.js +11 -11
- package/dist/lib.js.map +17 -16
- package/dist/store.d.ts +1 -1
- package/dist/translations.d.ts +1 -1
- package/dist/types/axsdk.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +5 -4
package/dist/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type StoreApi } from 'zustand/vanilla';
|
|
2
|
-
import type { ChatSession, ChatMessage, AXSDKTranslationsSchema } from
|
|
2
|
+
import type { ChatSession, ChatMessage, AXSDKTranslationsSchema } from './types/index';
|
|
3
3
|
export interface AppState {
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
apiKey: string | undefined;
|
package/dist/translations.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const AXSDK_TRANSLATIONS: Record<string, Record<string, string>>;
|
package/dist/types/axsdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from
|
|
1
|
+
import z from 'zod';
|
|
2
2
|
export type AXHandler = (command: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
3
3
|
export declare const AXSDKTranslationsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4
4
|
export type AXSDKTranslationsSchema = z.infer<typeof AXSDKTranslationsSchema>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './axsdk';
|
|
2
|
+
export * from './chat';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axsdk/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "axsdk core",
|
|
6
6
|
"keywords": [],
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"source": "./src/lib.ts"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
+
"module": "./dist/lib.js",
|
|
26
27
|
"main": "./dist/lib.js",
|
|
27
28
|
"types": "./dist/lib.d.ts",
|
|
28
29
|
"files": [
|
|
@@ -31,7 +32,8 @@
|
|
|
31
32
|
"scripts": {
|
|
32
33
|
"dev": "bun ./src/index.ts",
|
|
33
34
|
"build": "bun ./build.ts && bun build:types",
|
|
34
|
-
"build:types": "bunx tsc --emitDeclarationOnly"
|
|
35
|
+
"build:types": "bunx tsc --emitDeclarationOnly",
|
|
36
|
+
"publish": "npm publish --access public"
|
|
35
37
|
},
|
|
36
38
|
"dependencies": {
|
|
37
39
|
"eventemitter3": "^5.0.4",
|
|
@@ -45,6 +47,5 @@
|
|
|
45
47
|
},
|
|
46
48
|
"peerDependencies": {
|
|
47
49
|
"typescript": "^5"
|
|
48
|
-
}
|
|
49
|
-
"module": "./dist/lib.js"
|
|
50
|
+
}
|
|
50
51
|
}
|