@desktalk/miniapp-text-edit 0.1.0-alpha.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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "packageName": "@desktalk/miniapp-text-edit",
3
+ "packageScope": "text-edit",
4
+ "locales": [],
5
+ "messages": []
6
+ }
@@ -0,0 +1,12 @@
1
+ /** Map file extensions to Monaco Editor language identifiers. */
2
+ /**
3
+ * Detect the Monaco language identifier from a filename.
4
+ * Falls back to 'plaintext' for unknown extensions.
5
+ */
6
+ export declare function detectLanguage(filename: string): string;
7
+ /**
8
+ * Detect line ending style from file content.
9
+ * Returns 'CRLF' if any \r\n is found, otherwise 'LF'.
10
+ */
11
+ export declare function detectLineEnding(content: string): 'LF' | 'CRLF';
12
+ //# sourceMappingURL=language.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/lib/language.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAyCjE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKvD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAE/D"}
package/dist/meta.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "iconFile": "icons/miniapp-text-edit-icon.png"
3
+ }
@@ -0,0 +1,18 @@
1
+ /** Shared data types for the TextEdit MiniApp. */
2
+ export interface TextEditFile {
3
+ /** Relative path to user home (e.g. "src/index.ts") */
4
+ path: string;
5
+ /** Filename (e.g. "index.ts") */
6
+ name: string;
7
+ /** Full file content as UTF-8 text */
8
+ content: string;
9
+ /** File size in bytes */
10
+ size: number;
11
+ /** ISO 8601 last-modified timestamp */
12
+ modifiedAt: string;
13
+ }
14
+ export interface SaveResult {
15
+ success: boolean;
16
+ updatedAt: string;
17
+ }
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,MAAM,WAAW,YAAY;IAC3B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB"}
Binary file
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@desktalk/miniapp-text-edit",
3
+ "version": "0.1.0-alpha.1",
4
+ "description": "Text editor MiniApp for DeskTalk.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/vincentdchan/DeskTalk.git",
10
+ "directory": "packages/miniapp-text-edit"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "icon": "./icons/miniapp-text-edit-icon.png",
16
+ "files": [
17
+ "dist",
18
+ "icons"
19
+ ],
20
+ "exports": {
21
+ "./backend": {
22
+ "types": "./dist/backend.d.ts",
23
+ "import": "./dist/backend.js"
24
+ },
25
+ "./frontend": {
26
+ "types": "./dist/frontend.d.ts",
27
+ "import": "./dist/frontend.js"
28
+ }
29
+ },
30
+ "dependencies": {
31
+ "monaco-editor": "^0.52.0",
32
+ "react": "^19.0.0",
33
+ "react-dom": "^19.0.0",
34
+ "@desktalk/sdk": "0.1.0-alpha.1"
35
+ },
36
+ "devDependencies": {
37
+ "typescript": "^5.7.0",
38
+ "@types/react": "^19.0.0",
39
+ "@types/react-dom": "^19.0.0"
40
+ },
41
+ "scripts": {
42
+ "build": "desktalk-build",
43
+ "clean": "rm -rf dist"
44
+ }
45
+ }