@xpert-ai/chatkit-powerpoint-addin 0.1.0
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/LICENSE +201 -0
- package/README.md +66 -0
- package/dist/assets/icon-32.png +0 -0
- package/dist/assets/icon-80.png +0 -0
- package/dist/index.d.ts +105 -0
- package/dist/index.js +416 -0
- package/dist/manifest.xml +94 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +226 -0
- package/dist/server/index.js.map +1 -0
- package/dist/taskpane/assets/icon-32.png +0 -0
- package/dist/taskpane/assets/icon-80.png +0 -0
- package/dist/taskpane/assets/taskpane-CT-NNU8F.js +199 -0
- package/dist/taskpane/assets/taskpane-DQ4lBAsH.css +1 -0
- package/dist/taskpane/taskpane.html +14 -0
- package/env.example +9 -0
- package/package.json +69 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{color:#111827;background:#f8fafc;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.taskpane{display:flex;width:100%;height:100%;min-width:280px;flex-direction:column;overflow:hidden;background:#fff}.taskpane.centered{align-items:center;justify-content:center;padding:16px;background:#f8fafc}.chatkit-shell{min-height:0;flex:1 1 auto}.status-banner{flex:0 0 auto;padding:8px 10px;border-bottom:1px solid #fecaca;overflow-wrap:anywhere;font-size:12px;line-height:1.35}.status-banner.error{color:#7f1d1d;background:#fef2f2}.status-card{width:min(100%,320px);border:1px solid #d1d5db;border-radius:8px;padding:16px;background:#fff;box-shadow:0 10px 30px #0f172a14}.status-card h1{margin:0 0 8px;font-size:16px;font-weight:650;line-height:1.25}.status-card p{margin:0;color:#4b5563;font-size:13px;line-height:1.45}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>XpertAI PowerPoint Copilot</title>
|
|
7
|
+
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
|
|
8
|
+
<script type="module" crossorigin src="/assets/taskpane-CT-NNU8F.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/taskpane-DQ4lBAsH.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/env.example
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
PORT=8787
|
|
2
|
+
ADDIN_BASE_URL=https://localhost:3000
|
|
3
|
+
XPERTAI_API_URL=https://api.mtda.cloud/api/ai
|
|
4
|
+
XPERTAI_API_KEY=sk-x-your-api-key
|
|
5
|
+
XPERTAI_XPERT_ID=your-xpert-id
|
|
6
|
+
XPERTAI_CHATKIT_FRAME_URL=https://app.xpertai.cn/chatkit/index.html
|
|
7
|
+
# XPERTAI_ORGANIZATION_ID=org-xxx
|
|
8
|
+
# XPERTAI_PRINCIPAL_USER_ID=user-xxx
|
|
9
|
+
# XPERTAI_CLIENT_SECRET_EXPIRES_AFTER=600
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xpert-ai/chatkit-powerpoint-addin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "PowerPoint task pane add-in that embeds Xpert ChatKit and exposes Office.js client tools.",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
"./package.json": "./package.json",
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"env.example",
|
|
22
|
+
"!**/*.tsbuildinfo"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"react": "^19.0.0",
|
|
26
|
+
"react-dom": "^19.0.0",
|
|
27
|
+
"@xpert-ai/chatkit-react": "~0.3.1",
|
|
28
|
+
"@xpert-ai/chatkit-types": "~0.3.12"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^20.19.0",
|
|
32
|
+
"@types/office-js": "^1.0.591",
|
|
33
|
+
"@types/react": "^19.0.0",
|
|
34
|
+
"@types/react-dom": "^19.0.0",
|
|
35
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
36
|
+
"office-addin-manifest": "^2.1.5",
|
|
37
|
+
"office-addin-dev-certs": "^2.0.9",
|
|
38
|
+
"rimraf": "^6.0.0",
|
|
39
|
+
"typescript": "^5.8.3",
|
|
40
|
+
"vite": "^6.0.0",
|
|
41
|
+
"vite-plugin-dts": "^3.7.0",
|
|
42
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
43
|
+
"vitest": "^3.2.4"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"chatkit",
|
|
47
|
+
"office-addin",
|
|
48
|
+
"powerpoint",
|
|
49
|
+
"xpert"
|
|
50
|
+
],
|
|
51
|
+
"repository": {
|
|
52
|
+
"directory": "packages/powerpoint-addin",
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "https://github.com/xpert-ai/chatkit-js"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "rimraf dist && pnpm build:lib && pnpm build:taskpane && pnpm build:server && pnpm manifest",
|
|
58
|
+
"build:lib": "vite build --config vite.lib.config.ts",
|
|
59
|
+
"build:taskpane": "vite build --config vite.config.ts",
|
|
60
|
+
"build:server": "tsc -p tsconfig.server.json",
|
|
61
|
+
"dev": "vite --host 0.0.0.0 --port 3000",
|
|
62
|
+
"manifest": "node scripts/generate-manifest.mjs",
|
|
63
|
+
"preview": "vite preview --host 0.0.0.0 --port 3000",
|
|
64
|
+
"server": "node dist/server/index.js",
|
|
65
|
+
"type-check": "tsc --noEmit",
|
|
66
|
+
"test": "vitest run",
|
|
67
|
+
"validate:manifest": "office-addin-manifest validate dist/manifest.xml"
|
|
68
|
+
}
|
|
69
|
+
}
|