xl-app-sdk 0.0.1 → 0.0.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.
@@ -0,0 +1,8 @@
1
+ export interface XLProps {
2
+ /**
3
+ * 打开代码编辑器(示例 API,可按你的业务扩展)
4
+ */
5
+ openCodeEditor(path: string): void;
6
+ }
7
+ declare const xl: XLProps;
8
+ export default xl;
@@ -0,0 +1,8 @@
1
+ const e = {
2
+ openCodeEditor(o) {
3
+ console.log("[xl-app-sdk] openCodeEditor", o);
4
+ }
5
+ };
6
+ export {
7
+ e as default
8
+ };
@@ -0,0 +1 @@
1
+ (function(o,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(o=typeof globalThis<"u"?globalThis:o||self,o.$xl=e())})(this,(function(){"use strict";return{openCodeEditor(e){console.log("[xl-app-sdk] openCodeEditor",e)}}}));
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "xl-app-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "玄灵前端应用SDK",
5
5
  "main": "dist/xl-app-sdk.umd.js",
6
6
  "module": "dist/xl-app-sdk.esm.js",
7
- "types": "dist/src/index.d.ts",
7
+ "types": "dist/types/index.d.ts",
8
8
  "scripts": {
9
- "dev": "yarn vite",
10
- "build": "yarn vite build && tsc --emitDeclarationOnly",
11
- "preview": "yarn vite preview"
9
+ "dev": "vite",
10
+ "build": "vite build && tsc --emitDeclarationOnly",
11
+ "preview": "vite preview",
12
+ "publish": "npm publish"
12
13
  },
13
14
  "keywords": [
14
15
  "sdk",
@@ -22,7 +23,7 @@
22
23
  ],
23
24
  "exports": {
24
25
  ".": {
25
- "types": "./dist/src/index.d.ts",
26
+ "types": "./dist/types/index.d.ts",
26
27
  "import": "./dist/xl-app-sdk.esm.js",
27
28
  "require": "./dist/xl-app-sdk.umd.js"
28
29
  }