@showlotus/open-scriptable 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/README.md +1 -0
- package/dist/hello-world.js +1 -0
- package/globalconfig.d.ts +5 -0
- package/package.json +37 -0
- package/scriptable.d.ts +1724 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Open-source Scriptable scripts for iOS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=new ListWidget;if(e.addText(`Hello, ${globalConfig.name||"World"}!`).centerAlignText(),e.setPadding(16,16,16,16),e.backgroundColor=Color.dynamic(new Color("#FFFFFF"),new Color("#1f1f23")),config.runsInWidget)Script.setWidget(e);else switch(args.widgetParameter){case"medium":e.presentMedium();break;case"large":e.presentLarge();break;default:e.presentSmall()}Script.complete();
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@showlotus/open-scriptable",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Open-source Scriptable scripts for iOS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"packageManager": "pnpm@8.10.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/showlotus/open-scriptable"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"*.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"scriptable",
|
|
17
|
+
"open-source",
|
|
18
|
+
"ios",
|
|
19
|
+
"apple",
|
|
20
|
+
"scriptable-scripts"
|
|
21
|
+
],
|
|
22
|
+
"author": "showlotus <showlotus2000@gmail.com>",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20.19.0 || >=22.12.0",
|
|
26
|
+
"pnpm": ">=8.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "^24.9.2",
|
|
30
|
+
"terser": "^5.44.0",
|
|
31
|
+
"vite": "^7.1.12"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"dev": "vite",
|
|
35
|
+
"build": "vite build"
|
|
36
|
+
}
|
|
37
|
+
}
|