bleam 0.0.5 → 0.0.7
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/dist/ai.cjs +4146 -0
- package/dist/ai.d.cts +535 -0
- package/dist/ai.d.ts +535 -0
- package/dist/ai.js +4102 -0
- package/dist/animated.cjs +286 -0
- package/dist/animated.d.cts +47 -0
- package/dist/animated.d.ts +47 -0
- package/dist/animated.js +281 -0
- package/dist/app.cjs +92 -0
- package/dist/app.d.cts +1 -2
- package/dist/app.d.ts +1 -2
- package/dist/app.js +93 -2
- package/dist/bundler.d.cts +1 -2
- package/dist/bundler.d.ts +1 -2
- package/dist/cli.cjs +1375 -71
- package/dist/cli.d.cts +89 -1
- package/dist/cli.d.ts +89 -1
- package/dist/cli.js +1373 -74
- package/dist/config-Bb6SULnR.cjs +46 -0
- package/dist/config-CfWa3q-k.js +28 -0
- package/dist/config-Cms0rvqg.d.ts +40 -0
- package/dist/config-CufOVJV3.d.cts +40 -0
- package/dist/config.cjs +4 -25
- package/dist/config.d.cts +2 -28
- package/dist/config.d.ts +2 -28
- package/dist/config.js +2 -24
- package/dist/crypto-BB92-Upx.js +7 -0
- package/dist/crypto-CT3VZ7lF.cjs +13 -0
- package/dist/crypto.cjs +2 -2
- package/dist/crypto.d.cts +6 -1
- package/dist/crypto.d.ts +8 -1
- package/dist/crypto.js +2 -2
- package/dist/dev-protocol.d.cts +16 -3
- package/dist/dev-protocol.d.ts +16 -3
- package/dist/dev-protocol.js +1 -2
- package/dist/files-Bo7h9fik.cjs +468 -0
- package/dist/files-Ds1wT8C2.js +445 -0
- package/dist/files-DwA7pzr3.d.cts +99 -0
- package/dist/files-VrkQlKIT.d.ts +99 -0
- package/dist/files.cjs +7 -0
- package/dist/files.d.cts +2 -0
- package/dist/files.d.ts +2 -0
- package/dist/files.js +4 -0
- package/dist/index.cjs +4 -5
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -4
- package/dist/native-runtime-C85Nuc4F.js +10 -0
- package/dist/{native-runtime-CdeT0JyQ.cjs → native-runtime-CsXnXkQn.cjs} +1 -14
- package/dist/native-sqlite-xcGdamRD.js +64 -0
- package/dist/native-sqlite-yQLD5s9i.cjs +66 -0
- package/dist/platform.cjs +27 -0
- package/dist/platform.d.cts +39 -0
- package/dist/platform.d.ts +39 -0
- package/dist/platform.js +21 -0
- package/dist/runtime.d.cts +1 -7
- package/dist/runtime.d.ts +1 -7
- package/dist/schema-Bo5Jvqus.js +90 -0
- package/dist/schema-DOOjfXvs.d.ts +58 -0
- package/dist/schema-ENSMX_1t.d.cts +58 -0
- package/dist/schema-rQ13mrpD.cjs +102 -0
- package/dist/schema.cjs +4 -0
- package/dist/schema.d.cts +2 -0
- package/dist/schema.d.ts +2 -0
- package/dist/schema.js +3 -0
- package/dist/state-Bx0VlTlO.cjs +852 -0
- package/dist/state-CAwe-Vw1.js +767 -0
- package/dist/state.cjs +19 -0
- package/dist/state.d.cts +159 -0
- package/dist/state.d.ts +159 -0
- package/dist/state.js +6 -0
- package/dist/styles.cjs +742 -0
- package/dist/styles.d.cts +701 -0
- package/dist/styles.d.ts +701 -0
- package/dist/styles.js +739 -0
- package/dist/ui-1WepaMS4.d.cts +92 -0
- package/dist/ui-234Plg7Z.d.cts +92 -0
- package/dist/ui-BJmXhz9Q.d.ts +92 -0
- package/dist/ui-Dd7SXdbg.d.cts +92 -0
- package/dist/ui-Ds88eETu.d.ts +92 -0
- package/dist/ui-TaqnB5SP.d.ts +92 -0
- package/dist/ui-WQvnXL0W.d.ts +92 -0
- package/dist/ui.cjs +364 -0
- package/dist/ui.d.cts +2 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.js +357 -0
- package/dist/window.cjs +596 -0
- package/dist/window.d.cts +63 -0
- package/dist/window.d.ts +63 -0
- package/dist/window.js +589 -0
- package/metro-config.cjs +18 -13
- package/package.json +57 -21
- package/templates/basic/app/index.tsx +133 -12
- package/templates/basic/app.config.ts +4 -2
- package/templates/foundation-models/app/index.tsx +32 -0
- package/templates/foundation-models/app.config.ts +5 -0
- package/templates/image-generation/app/index.tsx +39 -0
- package/templates/image-generation/app.config.ts +5 -0
- package/templates/state/app/index.tsx +30 -0
- package/templates/state/app.config.ts +5 -0
- package/dist/app.d.cts.map +0 -1
- package/dist/app.d.ts.map +0 -1
- package/dist/app.js.map +0 -1
- package/dist/bundler.d.cts.map +0 -1
- package/dist/bundler.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/crypto-BNhWeXMj.cjs +0 -15
- package/dist/crypto-Bg8cD8wX.d.cts +0 -8
- package/dist/crypto-Bg8cD8wX.d.cts.map +0 -1
- package/dist/crypto-CCA_hvao.js +0 -11
- package/dist/crypto-CCA_hvao.js.map +0 -1
- package/dist/crypto-IOzbNoJD.d.ts +0 -8
- package/dist/crypto-IOzbNoJD.d.ts.map +0 -1
- package/dist/dev-protocol.d.cts.map +0 -1
- package/dist/dev-protocol.d.ts.map +0 -1
- package/dist/dev-protocol.js.map +0 -1
- package/dist/fs-BK7joD1g.js +0 -13
- package/dist/fs-BK7joD1g.js.map +0 -1
- package/dist/fs-CEhcjuN6.d.ts +0 -9
- package/dist/fs-CEhcjuN6.d.ts.map +0 -1
- package/dist/fs-CfE8CHf_.d.cts +0 -9
- package/dist/fs-CfE8CHf_.d.cts.map +0 -1
- package/dist/fs-DKHYTPua.cjs +0 -18
- package/dist/fs.cjs +0 -3
- package/dist/fs.d.cts +0 -2
- package/dist/fs.d.ts +0 -2
- package/dist/fs.js +0 -3
- package/dist/native-runtime-BoqybBBf.js +0 -18
- package/dist/native-runtime-BoqybBBf.js.map +0 -1
- package/dist/native.cjs +0 -132
- package/dist/native.d.cts +0 -64
- package/dist/native.d.cts.map +0 -1
- package/dist/native.d.ts +0 -64
- package/dist/native.d.ts.map +0 -1
- package/dist/native.js +0 -133
- package/dist/native.js.map +0 -1
- package/dist/runtime.d.cts.map +0 -1
- package/dist/runtime.d.ts.map +0 -1
package/dist/fs-CfE8CHf_.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/fs.d.ts
|
|
2
|
-
interface BleamFileSystem {
|
|
3
|
-
readText(path: string): Promise<string>;
|
|
4
|
-
writeText(path: string, contents: string): Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
declare const fs: BleamFileSystem;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { fs as n, BleamFileSystem as t };
|
|
9
|
-
//# sourceMappingURL=fs-CfE8CHf_.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fs-CfE8CHf_.d.cts","names":[],"sources":["../src/fs.ts"],"sourcesContent":[],"mappings":";UAAiB,eAAA;EAAA,QAAA,CAAA,IAAA,EAAA,MAAe,CAAA,EACN,OAAA,CAAA,MACmB,CAAA;EAGhC,SAOZ,CAAA,IAAA,EAPgB,MAAA,EAAA,QAOhB,EAAA,MAAA,CAAA,EAV4C,OAU5C,CAAA,IAAA,CAAA;;cAPY,IAAI"}
|
package/dist/fs-DKHYTPua.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/fs.ts
|
|
3
|
-
const fs = {
|
|
4
|
-
readText() {
|
|
5
|
-
throw new Error("bleam/fs is not available in this runtime yet");
|
|
6
|
-
},
|
|
7
|
-
writeText() {
|
|
8
|
-
throw new Error("bleam/fs is not available in this runtime yet");
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
Object.defineProperty(exports, 'fs', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return fs;
|
|
17
|
-
}
|
|
18
|
-
});
|
package/dist/fs.cjs
DELETED
package/dist/fs.d.cts
DELETED
package/dist/fs.d.ts
DELETED
package/dist/fs.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import NativeScript from "@nativescript/react-native";
|
|
2
|
-
|
|
3
|
-
//#region src/native-runtime.ts
|
|
4
|
-
let initialized = false;
|
|
5
|
-
function globals() {
|
|
6
|
-
return globalThis;
|
|
7
|
-
}
|
|
8
|
-
function ensureNativeScript() {
|
|
9
|
-
if (!initialized) {
|
|
10
|
-
NativeScript.init();
|
|
11
|
-
initialized = true;
|
|
12
|
-
}
|
|
13
|
-
return NativeScript;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
export { globals as n, ensureNativeScript as t };
|
|
18
|
-
//# sourceMappingURL=native-runtime-BoqybBBf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-runtime-BoqybBBf.js","names":[],"sources":["../src/native-runtime.ts"],"sourcesContent":["import NativeScript from '@nativescript/react-native'\n\nlet initialized = false\n\nexport type NativeGlobals = typeof globalThis & Record<string, any>\n\nexport function globals() {\n return globalThis as NativeGlobals\n}\n\nexport function ensureNativeScript() {\n if (!initialized) {\n NativeScript.init()\n initialized = true\n }\n return NativeScript\n}\n"],"mappings":";;;AAEA,IAAI,cAAc;AAIlB,SAAgB,UAAU;AACxB,QAAO;;AAGT,SAAgB,qBAAqB;AACnC,KAAI,CAAC,aAAa;AAChB,eAAa,MAAM;AACnB,gBAAc;;AAEhB,QAAO"}
|
package/dist/native.cjs
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
const require_native_runtime = require('./native-runtime-CdeT0JyQ.cjs');
|
|
2
|
-
|
|
3
|
-
//#region src/native.ts
|
|
4
|
-
function colorFromHex(hex) {
|
|
5
|
-
const value = hex.trim().replace(/^#/, "");
|
|
6
|
-
const normalized = value.length === 3 ? value.split("").map((part) => `${part}${part}`).join("") : value;
|
|
7
|
-
if (!/^[\da-f]{6}$/i.test(normalized)) throw new Error(`Invalid native color: ${hex}`);
|
|
8
|
-
const number = Number.parseInt(normalized, 16);
|
|
9
|
-
const red = (number >> 16 & 255) / 255;
|
|
10
|
-
const green = (number >> 8 & 255) / 255;
|
|
11
|
-
const blue = (number & 255) / 255;
|
|
12
|
-
return require_native_runtime.globals().UIColor.colorWithRedGreenBlueAlpha(red, green, blue, 1);
|
|
13
|
-
}
|
|
14
|
-
function forEachNativeObject(collection, callback) {
|
|
15
|
-
const values = collection?.allObjects ?? collection;
|
|
16
|
-
if (Array.isArray(values)) {
|
|
17
|
-
values.forEach(callback);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const count = Number(values?.count ?? 0);
|
|
21
|
-
for (let index = 0; index < count; index += 1) callback(values.objectAtIndex(index));
|
|
22
|
-
}
|
|
23
|
-
async function runOnUI(callback) {
|
|
24
|
-
return require_native_runtime.ensureNativeScript().runOnUI(callback);
|
|
25
|
-
}
|
|
26
|
-
async function setTintColor(hex) {
|
|
27
|
-
await runOnUI(() => {
|
|
28
|
-
const api = require_native_runtime.globals();
|
|
29
|
-
const color = colorFromHex(hex);
|
|
30
|
-
const application = api.UIApplication.sharedApplication;
|
|
31
|
-
if (application.keyWindow) application.keyWindow.tintColor = color;
|
|
32
|
-
forEachNativeObject(application.connectedScenes, (scene) => {
|
|
33
|
-
forEachNativeObject(scene.windows, (window) => {
|
|
34
|
-
window.tintColor = color;
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
async function setWindowTitle(title) {
|
|
40
|
-
await runOnUI(() => {
|
|
41
|
-
const api = require_native_runtime.globals();
|
|
42
|
-
const application = api.UIApplication.sharedApplication;
|
|
43
|
-
forEachNativeObject(application.connectedScenes, (scene) => {
|
|
44
|
-
if ("title" in scene) scene.title = title;
|
|
45
|
-
});
|
|
46
|
-
const appKit = api.NSApplication?.sharedApplication;
|
|
47
|
-
const window = appKit?.keyWindow ?? appKit?.mainWindow;
|
|
48
|
-
if (window && "title" in window) window.title = title;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function documentsDirectoryPath() {
|
|
52
|
-
const api = require_native_runtime.globals();
|
|
53
|
-
if (!api.NSSearchPathForDirectoriesInDomains) throw new Error("Native FileManager unavailable: NSSearchPathForDirectoriesInDomains missing");
|
|
54
|
-
if (typeof api.NSSearchPathDirectory?.Document !== "number") throw new Error("Native FileManager unavailable: NSSearchPathDirectory.Document missing");
|
|
55
|
-
if (typeof api.NSSearchPathDomainMask?.UserDomain !== "number") throw new Error("Native FileManager unavailable: NSSearchPathDomainMask.UserDomain missing");
|
|
56
|
-
const path = api.NSSearchPathForDirectoriesInDomains(api.NSSearchPathDirectory.Document, api.NSSearchPathDomainMask.UserDomain, true)?.objectAtIndex(0);
|
|
57
|
-
if (typeof path !== "string") throw new Error("Native FileManager unavailable: Documents directory missing");
|
|
58
|
-
return path;
|
|
59
|
-
}
|
|
60
|
-
function documentPath(name) {
|
|
61
|
-
return require_native_runtime.globals().NSString.stringWithString(documentsDirectoryPath()).stringByAppendingPathComponent(name);
|
|
62
|
-
}
|
|
63
|
-
async function writeDocumentText(name, text) {
|
|
64
|
-
await runOnUI(() => {
|
|
65
|
-
const api = require_native_runtime.globals();
|
|
66
|
-
const path = documentPath(name);
|
|
67
|
-
if (!api.NSString.stringWithString(text).writeToFileAtomicallyEncodingError(path, true, api.NSUTF8StringEncoding, null)) throw new Error(`Failed to write native document at ${path}`);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
async function readDocumentText(name) {
|
|
71
|
-
let text = "";
|
|
72
|
-
await runOnUI(() => {
|
|
73
|
-
const api = require_native_runtime.globals();
|
|
74
|
-
text = String(api.NSString.stringWithContentsOfFileEncodingError(documentPath(name), api.NSUTF8StringEncoding, null));
|
|
75
|
-
});
|
|
76
|
-
return text;
|
|
77
|
-
}
|
|
78
|
-
async function documentExists(name) {
|
|
79
|
-
let exists = false;
|
|
80
|
-
await runOnUI(() => {
|
|
81
|
-
const api = require_native_runtime.globals();
|
|
82
|
-
exists = Boolean(api.NSFileManager.defaultManager.fileExistsAtPath(documentPath(name)));
|
|
83
|
-
});
|
|
84
|
-
return exists;
|
|
85
|
-
}
|
|
86
|
-
async function listDocuments() {
|
|
87
|
-
const names = [];
|
|
88
|
-
await runOnUI(() => {
|
|
89
|
-
forEachNativeObject(require_native_runtime.globals().NSFileManager.defaultManager.contentsOfDirectoryAtPathError(documentsDirectoryPath(), null), (item) => {
|
|
90
|
-
names.push(String(item));
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
return names;
|
|
94
|
-
}
|
|
95
|
-
const NativeLabel = require_native_runtime.ensureNativeScript().defineUIKitView({
|
|
96
|
-
name: "NativeLabel",
|
|
97
|
-
layout: {
|
|
98
|
-
sizing: "intrinsic",
|
|
99
|
-
defaultSize: {
|
|
100
|
-
width: 1,
|
|
101
|
-
height: 28
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
create() {
|
|
105
|
-
const api = require_native_runtime.globals();
|
|
106
|
-
const label = api.UILabel.new();
|
|
107
|
-
label.textAlignment = api.NSTextAlignment.Center;
|
|
108
|
-
label.font = api.UIFont.boldSystemFontOfSize(18);
|
|
109
|
-
return label;
|
|
110
|
-
},
|
|
111
|
-
update(label, props, previousProps, ctx) {
|
|
112
|
-
label.text = props.text;
|
|
113
|
-
label.textColor = colorFromHex(props.color ?? "#0a84ff");
|
|
114
|
-
ctx?.invalidateLayout();
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
const native = {
|
|
118
|
-
init: require_native_runtime.ensureNativeScript,
|
|
119
|
-
NativeLabel,
|
|
120
|
-
runOnUI,
|
|
121
|
-
ui: { setTintColor },
|
|
122
|
-
files: {
|
|
123
|
-
exists: documentExists,
|
|
124
|
-
listDocuments,
|
|
125
|
-
readText: readDocumentText,
|
|
126
|
-
writeText: writeDocumentText
|
|
127
|
-
},
|
|
128
|
-
window: { setTitle: setWindowTitle }
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
//#endregion
|
|
132
|
-
exports.native = native;
|
package/dist/native.d.cts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as _nativescript_react_native0 from "@nativescript/react-native";
|
|
2
|
-
|
|
3
|
-
//#region src/native-runtime.d.ts
|
|
4
|
-
declare function ensureNativeScript(): {
|
|
5
|
-
init: typeof _nativescript_react_native0.init;
|
|
6
|
-
install: typeof _nativescript_react_native0.install;
|
|
7
|
-
installGlobals: typeof _nativescript_react_native0.installGlobals;
|
|
8
|
-
isInstalled: typeof _nativescript_react_native0.isInstalled;
|
|
9
|
-
defaultMetadataPath: typeof _nativescript_react_native0.defaultMetadataPath;
|
|
10
|
-
defineUIKitContainer: typeof _nativescript_react_native0.defineUIKitContainer;
|
|
11
|
-
defineUIKitView: typeof _nativescript_react_native0.defineUIKitView;
|
|
12
|
-
defineUIViewController: typeof _nativescript_react_native0.defineUIViewController;
|
|
13
|
-
getRuntimeBackend: typeof _nativescript_react_native0.getRuntimeBackend;
|
|
14
|
-
assertUIKitThread: typeof _nativescript_react_native0.assertUIKitThread;
|
|
15
|
-
createDelegate: typeof _nativescript_react_native0.createDelegate;
|
|
16
|
-
createEventBridge: typeof _nativescript_react_native0.createEventBridge;
|
|
17
|
-
createRetainer: typeof _nativescript_react_native0.createRetainer;
|
|
18
|
-
eventBridge: typeof _nativescript_react_native0.eventBridge;
|
|
19
|
-
getClass: typeof _nativescript_react_native0.getClass;
|
|
20
|
-
getProtocol: typeof _nativescript_react_native0.getProtocol;
|
|
21
|
-
isClassAvailable: typeof _nativescript_react_native0.isClassAvailable;
|
|
22
|
-
isFrameworkLoaded: typeof _nativescript_react_native0.isFrameworkLoaded;
|
|
23
|
-
isMainThread: typeof _nativescript_react_native0.isMainThread;
|
|
24
|
-
jsInvoker: typeof _nativescript_react_native0.jsInvoker;
|
|
25
|
-
loadFramework: typeof _nativescript_react_native0.loadFramework;
|
|
26
|
-
release: typeof _nativescript_react_native0.release;
|
|
27
|
-
retain: typeof _nativescript_react_native0.retain;
|
|
28
|
-
runOnUI: typeof _nativescript_react_native0.runOnUI;
|
|
29
|
-
uiInvoker: typeof _nativescript_react_native0.uiInvoker;
|
|
30
|
-
warnIfNotUIKitThread: typeof _nativescript_react_native0.warnIfNotUIKitThread;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/native.d.ts
|
|
34
|
-
declare function runOnUI<T>(callback: () => T): Promise<void>;
|
|
35
|
-
declare function setTintColor(hex: string): Promise<void>;
|
|
36
|
-
declare function setWindowTitle(title: string): Promise<void>;
|
|
37
|
-
declare function writeDocumentText(name: string, text: string): Promise<void>;
|
|
38
|
-
declare function readDocumentText(name: string): Promise<string>;
|
|
39
|
-
declare function documentExists(name: string): Promise<boolean>;
|
|
40
|
-
declare function listDocuments(): Promise<string[]>;
|
|
41
|
-
type NativeLabelProps = {
|
|
42
|
-
text: string;
|
|
43
|
-
color?: string;
|
|
44
|
-
};
|
|
45
|
-
declare const native: {
|
|
46
|
-
init: typeof ensureNativeScript;
|
|
47
|
-
NativeLabel: _nativescript_react_native0.UIKitViewComponent<NativeLabelProps, any>;
|
|
48
|
-
runOnUI: typeof runOnUI;
|
|
49
|
-
ui: {
|
|
50
|
-
setTintColor: typeof setTintColor;
|
|
51
|
-
};
|
|
52
|
-
files: {
|
|
53
|
-
exists: typeof documentExists;
|
|
54
|
-
listDocuments: typeof listDocuments;
|
|
55
|
-
readText: typeof readDocumentText;
|
|
56
|
-
writeText: typeof writeDocumentText;
|
|
57
|
-
};
|
|
58
|
-
window: {
|
|
59
|
-
setTitle: typeof setWindowTitle;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
//#endregion
|
|
63
|
-
export { native };
|
|
64
|
-
//# sourceMappingURL=native.d.cts.map
|
package/dist/native.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.cts","names":[],"sources":["../src/native-runtime.ts","../src/native.ts"],"sourcesContent":[],"mappings":";;;iBAUgB,kBAAA,CAAA;EAAA,IAAA,EAAA,OAAkB,2BAAA,CAAA,IAAA;EAAA,OAAA,EAAA,0CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCuBnB,2BAA2B,IAAC;iBAI5B,YAAA,eAAwB;AD3BvC,iBC4Ce,cAAA,CD5CmB,KAAA,EAAA,MAAA,CAAA,EC4CS,OD5CT,CAAA,IAAA,CAAA;iBCgGnB,iBAAA,CDhGmB,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,ECgGyB,ODhGzB,CAAA,IAAA,CAAA;iBCkHnB,gBAAA,gBAA6B;iBAe7B,cAAA,gBAA2B;iBAW3B,aAAA,CAAA,GAAa;KAevB,gBAAA;;;;cAyBQ"}
|
package/dist/native.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as _nativescript_react_native0 from "@nativescript/react-native";
|
|
2
|
-
|
|
3
|
-
//#region src/native-runtime.d.ts
|
|
4
|
-
declare function ensureNativeScript(): {
|
|
5
|
-
init: typeof _nativescript_react_native0.init;
|
|
6
|
-
install: typeof _nativescript_react_native0.install;
|
|
7
|
-
installGlobals: typeof _nativescript_react_native0.installGlobals;
|
|
8
|
-
isInstalled: typeof _nativescript_react_native0.isInstalled;
|
|
9
|
-
defaultMetadataPath: typeof _nativescript_react_native0.defaultMetadataPath;
|
|
10
|
-
defineUIKitContainer: typeof _nativescript_react_native0.defineUIKitContainer;
|
|
11
|
-
defineUIKitView: typeof _nativescript_react_native0.defineUIKitView;
|
|
12
|
-
defineUIViewController: typeof _nativescript_react_native0.defineUIViewController;
|
|
13
|
-
getRuntimeBackend: typeof _nativescript_react_native0.getRuntimeBackend;
|
|
14
|
-
assertUIKitThread: typeof _nativescript_react_native0.assertUIKitThread;
|
|
15
|
-
createDelegate: typeof _nativescript_react_native0.createDelegate;
|
|
16
|
-
createEventBridge: typeof _nativescript_react_native0.createEventBridge;
|
|
17
|
-
createRetainer: typeof _nativescript_react_native0.createRetainer;
|
|
18
|
-
eventBridge: typeof _nativescript_react_native0.eventBridge;
|
|
19
|
-
getClass: typeof _nativescript_react_native0.getClass;
|
|
20
|
-
getProtocol: typeof _nativescript_react_native0.getProtocol;
|
|
21
|
-
isClassAvailable: typeof _nativescript_react_native0.isClassAvailable;
|
|
22
|
-
isFrameworkLoaded: typeof _nativescript_react_native0.isFrameworkLoaded;
|
|
23
|
-
isMainThread: typeof _nativescript_react_native0.isMainThread;
|
|
24
|
-
jsInvoker: typeof _nativescript_react_native0.jsInvoker;
|
|
25
|
-
loadFramework: typeof _nativescript_react_native0.loadFramework;
|
|
26
|
-
release: typeof _nativescript_react_native0.release;
|
|
27
|
-
retain: typeof _nativescript_react_native0.retain;
|
|
28
|
-
runOnUI: typeof _nativescript_react_native0.runOnUI;
|
|
29
|
-
uiInvoker: typeof _nativescript_react_native0.uiInvoker;
|
|
30
|
-
warnIfNotUIKitThread: typeof _nativescript_react_native0.warnIfNotUIKitThread;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/native.d.ts
|
|
34
|
-
declare function runOnUI<T>(callback: () => T): Promise<void>;
|
|
35
|
-
declare function setTintColor(hex: string): Promise<void>;
|
|
36
|
-
declare function setWindowTitle(title: string): Promise<void>;
|
|
37
|
-
declare function writeDocumentText(name: string, text: string): Promise<void>;
|
|
38
|
-
declare function readDocumentText(name: string): Promise<string>;
|
|
39
|
-
declare function documentExists(name: string): Promise<boolean>;
|
|
40
|
-
declare function listDocuments(): Promise<string[]>;
|
|
41
|
-
type NativeLabelProps = {
|
|
42
|
-
text: string;
|
|
43
|
-
color?: string;
|
|
44
|
-
};
|
|
45
|
-
declare const native: {
|
|
46
|
-
init: typeof ensureNativeScript;
|
|
47
|
-
NativeLabel: _nativescript_react_native0.UIKitViewComponent<NativeLabelProps, any>;
|
|
48
|
-
runOnUI: typeof runOnUI;
|
|
49
|
-
ui: {
|
|
50
|
-
setTintColor: typeof setTintColor;
|
|
51
|
-
};
|
|
52
|
-
files: {
|
|
53
|
-
exists: typeof documentExists;
|
|
54
|
-
listDocuments: typeof listDocuments;
|
|
55
|
-
readText: typeof readDocumentText;
|
|
56
|
-
writeText: typeof writeDocumentText;
|
|
57
|
-
};
|
|
58
|
-
window: {
|
|
59
|
-
setTitle: typeof setWindowTitle;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
//#endregion
|
|
63
|
-
export { native };
|
|
64
|
-
//# sourceMappingURL=native.d.ts.map
|
package/dist/native.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","names":[],"sources":["../src/native-runtime.ts","../src/native.ts"],"sourcesContent":[],"mappings":";;;iBAUgB,kBAAA,CAAA;EAAA,IAAA,EAAA,OAAkB,2BAAA,CAAA,IAAA;EAAA,OAAA,EAAA,0CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCuBnB,2BAA2B,IAAC;iBAI5B,YAAA,eAAwB;AD3BvC,iBC4Ce,cAAA,CD5CmB,KAAA,EAAA,MAAA,CAAA,EC4CS,OD5CT,CAAA,IAAA,CAAA;iBCgGnB,iBAAA,CDhGmB,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,ECgGyB,ODhGzB,CAAA,IAAA,CAAA;iBCkHnB,gBAAA,gBAA6B;iBAe7B,cAAA,gBAA2B;iBAW3B,aAAA,CAAA,GAAa;KAevB,gBAAA;;;;cAyBQ"}
|
package/dist/native.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { n as globals, t as ensureNativeScript } from "./native-runtime-BoqybBBf.js";
|
|
2
|
-
|
|
3
|
-
//#region src/native.ts
|
|
4
|
-
function colorFromHex(hex) {
|
|
5
|
-
const value = hex.trim().replace(/^#/, "");
|
|
6
|
-
const normalized = value.length === 3 ? value.split("").map((part) => `${part}${part}`).join("") : value;
|
|
7
|
-
if (!/^[\da-f]{6}$/i.test(normalized)) throw new Error(`Invalid native color: ${hex}`);
|
|
8
|
-
const number = Number.parseInt(normalized, 16);
|
|
9
|
-
const red = (number >> 16 & 255) / 255;
|
|
10
|
-
const green = (number >> 8 & 255) / 255;
|
|
11
|
-
const blue = (number & 255) / 255;
|
|
12
|
-
return globals().UIColor.colorWithRedGreenBlueAlpha(red, green, blue, 1);
|
|
13
|
-
}
|
|
14
|
-
function forEachNativeObject(collection, callback) {
|
|
15
|
-
const values = collection?.allObjects ?? collection;
|
|
16
|
-
if (Array.isArray(values)) {
|
|
17
|
-
values.forEach(callback);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
const count = Number(values?.count ?? 0);
|
|
21
|
-
for (let index = 0; index < count; index += 1) callback(values.objectAtIndex(index));
|
|
22
|
-
}
|
|
23
|
-
async function runOnUI(callback) {
|
|
24
|
-
return ensureNativeScript().runOnUI(callback);
|
|
25
|
-
}
|
|
26
|
-
async function setTintColor(hex) {
|
|
27
|
-
await runOnUI(() => {
|
|
28
|
-
const api = globals();
|
|
29
|
-
const color = colorFromHex(hex);
|
|
30
|
-
const application = api.UIApplication.sharedApplication;
|
|
31
|
-
if (application.keyWindow) application.keyWindow.tintColor = color;
|
|
32
|
-
forEachNativeObject(application.connectedScenes, (scene) => {
|
|
33
|
-
forEachNativeObject(scene.windows, (window) => {
|
|
34
|
-
window.tintColor = color;
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
async function setWindowTitle(title) {
|
|
40
|
-
await runOnUI(() => {
|
|
41
|
-
const api = globals();
|
|
42
|
-
const application = api.UIApplication.sharedApplication;
|
|
43
|
-
forEachNativeObject(application.connectedScenes, (scene) => {
|
|
44
|
-
if ("title" in scene) scene.title = title;
|
|
45
|
-
});
|
|
46
|
-
const appKit = api.NSApplication?.sharedApplication;
|
|
47
|
-
const window = appKit?.keyWindow ?? appKit?.mainWindow;
|
|
48
|
-
if (window && "title" in window) window.title = title;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function documentsDirectoryPath() {
|
|
52
|
-
const api = globals();
|
|
53
|
-
if (!api.NSSearchPathForDirectoriesInDomains) throw new Error("Native FileManager unavailable: NSSearchPathForDirectoriesInDomains missing");
|
|
54
|
-
if (typeof api.NSSearchPathDirectory?.Document !== "number") throw new Error("Native FileManager unavailable: NSSearchPathDirectory.Document missing");
|
|
55
|
-
if (typeof api.NSSearchPathDomainMask?.UserDomain !== "number") throw new Error("Native FileManager unavailable: NSSearchPathDomainMask.UserDomain missing");
|
|
56
|
-
const path = api.NSSearchPathForDirectoriesInDomains(api.NSSearchPathDirectory.Document, api.NSSearchPathDomainMask.UserDomain, true)?.objectAtIndex(0);
|
|
57
|
-
if (typeof path !== "string") throw new Error("Native FileManager unavailable: Documents directory missing");
|
|
58
|
-
return path;
|
|
59
|
-
}
|
|
60
|
-
function documentPath(name) {
|
|
61
|
-
return globals().NSString.stringWithString(documentsDirectoryPath()).stringByAppendingPathComponent(name);
|
|
62
|
-
}
|
|
63
|
-
async function writeDocumentText(name, text) {
|
|
64
|
-
await runOnUI(() => {
|
|
65
|
-
const api = globals();
|
|
66
|
-
const path = documentPath(name);
|
|
67
|
-
if (!api.NSString.stringWithString(text).writeToFileAtomicallyEncodingError(path, true, api.NSUTF8StringEncoding, null)) throw new Error(`Failed to write native document at ${path}`);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
async function readDocumentText(name) {
|
|
71
|
-
let text = "";
|
|
72
|
-
await runOnUI(() => {
|
|
73
|
-
const api = globals();
|
|
74
|
-
text = String(api.NSString.stringWithContentsOfFileEncodingError(documentPath(name), api.NSUTF8StringEncoding, null));
|
|
75
|
-
});
|
|
76
|
-
return text;
|
|
77
|
-
}
|
|
78
|
-
async function documentExists(name) {
|
|
79
|
-
let exists = false;
|
|
80
|
-
await runOnUI(() => {
|
|
81
|
-
const api = globals();
|
|
82
|
-
exists = Boolean(api.NSFileManager.defaultManager.fileExistsAtPath(documentPath(name)));
|
|
83
|
-
});
|
|
84
|
-
return exists;
|
|
85
|
-
}
|
|
86
|
-
async function listDocuments() {
|
|
87
|
-
const names = [];
|
|
88
|
-
await runOnUI(() => {
|
|
89
|
-
forEachNativeObject(globals().NSFileManager.defaultManager.contentsOfDirectoryAtPathError(documentsDirectoryPath(), null), (item) => {
|
|
90
|
-
names.push(String(item));
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
return names;
|
|
94
|
-
}
|
|
95
|
-
const NativeLabel = ensureNativeScript().defineUIKitView({
|
|
96
|
-
name: "NativeLabel",
|
|
97
|
-
layout: {
|
|
98
|
-
sizing: "intrinsic",
|
|
99
|
-
defaultSize: {
|
|
100
|
-
width: 1,
|
|
101
|
-
height: 28
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
create() {
|
|
105
|
-
const api = globals();
|
|
106
|
-
const label = api.UILabel.new();
|
|
107
|
-
label.textAlignment = api.NSTextAlignment.Center;
|
|
108
|
-
label.font = api.UIFont.boldSystemFontOfSize(18);
|
|
109
|
-
return label;
|
|
110
|
-
},
|
|
111
|
-
update(label, props, previousProps, ctx) {
|
|
112
|
-
label.text = props.text;
|
|
113
|
-
label.textColor = colorFromHex(props.color ?? "#0a84ff");
|
|
114
|
-
ctx?.invalidateLayout();
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
const native = {
|
|
118
|
-
init: ensureNativeScript,
|
|
119
|
-
NativeLabel,
|
|
120
|
-
runOnUI,
|
|
121
|
-
ui: { setTintColor },
|
|
122
|
-
files: {
|
|
123
|
-
exists: documentExists,
|
|
124
|
-
listDocuments,
|
|
125
|
-
readText: readDocumentText,
|
|
126
|
-
writeText: writeDocumentText
|
|
127
|
-
},
|
|
128
|
-
window: { setTitle: setWindowTitle }
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
//#endregion
|
|
132
|
-
export { native };
|
|
133
|
-
//# sourceMappingURL=native.js.map
|
package/dist/native.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native.js","names":["names: string[]"],"sources":["../src/native.ts"],"sourcesContent":["import { ensureNativeScript, globals } from './native-runtime'\n\nfunction colorFromHex(hex: string) {\n const value = hex.trim().replace(/^#/, '')\n const normalized = value.length === 3\n ? value.split('').map((part) => `${part}${part}`).join('')\n : value\n\n if (!/^[\\da-f]{6}$/i.test(normalized)) {\n throw new Error(`Invalid native color: ${hex}`)\n }\n\n const number = Number.parseInt(normalized, 16)\n const red = ((number >> 16) & 255) / 255\n const green = ((number >> 8) & 255) / 255\n const blue = (number & 255) / 255\n return globals().UIColor.colorWithRedGreenBlueAlpha(red, green, blue, 1)\n}\n\nfunction forEachNativeObject(collection: any, callback: (item: any) => void) {\n const values = collection?.allObjects ?? collection\n\n if (Array.isArray(values)) {\n values.forEach(callback)\n return\n }\n\n const count = Number(values?.count ?? 0)\n for (let index = 0; index < count; index += 1) {\n callback(values.objectAtIndex(index))\n }\n}\n\nasync function runOnUI<T>(callback: () => T) {\n return ensureNativeScript().runOnUI(callback)\n}\n\nasync function setTintColor(hex: string) {\n await runOnUI(() => {\n const api = globals()\n const color = colorFromHex(hex)\n const application = api.UIApplication.sharedApplication\n if (application.keyWindow) {\n application.keyWindow.tintColor = color\n }\n\n forEachNativeObject(application.connectedScenes, (scene) => {\n forEachNativeObject(scene.windows, (window) => {\n window.tintColor = color\n })\n })\n })\n}\n\nasync function setWindowTitle(title: string) {\n await runOnUI(() => {\n const api = globals()\n const application = api.UIApplication.sharedApplication\n\n forEachNativeObject(application.connectedScenes, (scene) => {\n if ('title' in scene) {\n scene.title = title\n }\n })\n\n const appKit = api.NSApplication?.sharedApplication\n const window = appKit?.keyWindow ?? appKit?.mainWindow\n if (window && 'title' in window) {\n window.title = title\n }\n })\n}\n\nfunction documentsDirectoryPath() {\n const api = globals()\n\n if (!api.NSSearchPathForDirectoriesInDomains) {\n throw new Error('Native FileManager unavailable: NSSearchPathForDirectoriesInDomains missing')\n }\n if (typeof api.NSSearchPathDirectory?.Document !== 'number') {\n throw new Error('Native FileManager unavailable: NSSearchPathDirectory.Document missing')\n }\n if (typeof api.NSSearchPathDomainMask?.UserDomain !== 'number') {\n throw new Error('Native FileManager unavailable: NSSearchPathDomainMask.UserDomain missing')\n }\n\n const paths = api.NSSearchPathForDirectoriesInDomains(\n api.NSSearchPathDirectory.Document,\n api.NSSearchPathDomainMask.UserDomain,\n true,\n )\n const path = paths?.objectAtIndex(0)\n if (typeof path !== 'string') {\n throw new Error('Native FileManager unavailable: Documents directory missing')\n }\n\n return path\n}\n\nfunction documentPath(name: string) {\n const api = globals()\n return api.NSString.stringWithString(\n documentsDirectoryPath(),\n ).stringByAppendingPathComponent(name) as string\n}\n\nasync function writeDocumentText(name: string, text: string) {\n await runOnUI(() => {\n const api = globals()\n const path = documentPath(name)\n const value = api.NSString.stringWithString(text)\n const didWrite = value.writeToFileAtomicallyEncodingError(\n path,\n true,\n api.NSUTF8StringEncoding,\n null,\n )\n\n if (!didWrite) {\n throw new Error(`Failed to write native document at ${path}`)\n }\n })\n}\n\nasync function readDocumentText(name: string) {\n let text = ''\n await runOnUI(() => {\n const api = globals()\n text = String(\n api.NSString.stringWithContentsOfFileEncodingError(\n documentPath(name),\n api.NSUTF8StringEncoding,\n null,\n ),\n )\n })\n return text\n}\n\nasync function documentExists(name: string) {\n let exists = false\n await runOnUI(() => {\n const api = globals()\n exists = Boolean(\n api.NSFileManager.defaultManager.fileExistsAtPath(documentPath(name)),\n )\n })\n return exists\n}\n\nasync function listDocuments() {\n const names: string[] = []\n await runOnUI(() => {\n const api = globals()\n const items = api.NSFileManager.defaultManager.contentsOfDirectoryAtPathError(\n documentsDirectoryPath(),\n null,\n )\n forEachNativeObject(items, (item) => {\n names.push(String(item))\n })\n })\n return names\n}\n\ntype NativeLabelProps = {\n text: string\n color?: string\n}\n\nconst NativeLabel = ensureNativeScript().defineUIKitView<NativeLabelProps, any>({\n name: 'NativeLabel',\n layout: {\n sizing: 'intrinsic',\n defaultSize: { width: 1, height: 28 },\n },\n create() {\n const api = globals()\n const label = api.UILabel.new()\n label.textAlignment = api.NSTextAlignment.Center\n label.font = api.UIFont.boldSystemFontOfSize(18)\n return label\n },\n update(label, props, previousProps, ctx) {\n label.text = props.text\n label.textColor = colorFromHex(props.color ?? '#0a84ff')\n ctx?.invalidateLayout()\n },\n})\n\nexport const native = {\n init: ensureNativeScript,\n NativeLabel,\n runOnUI,\n ui: {\n setTintColor,\n },\n files: {\n exists: documentExists,\n listDocuments,\n readText: readDocumentText,\n writeText: writeDocumentText,\n },\n window: {\n setTitle: setWindowTitle,\n },\n}\n"],"mappings":"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"}
|
package/dist/runtime.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../src/runtime.ts"],"sourcesContent":[],"mappings":";UAAiB,iBAAA;EAAA,IAAA,EAAA,MAAA;EAKA,OAAA,CAAA,EAAA,MAAA;;UAAA,cAAA;;;;gBAID"}
|
package/dist/runtime.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/runtime.ts"],"sourcesContent":[],"mappings":";UAAiB,iBAAA;EAAA,IAAA,EAAA,MAAA;EAKA,OAAA,CAAA,EAAA,MAAA;;UAAA,cAAA;;;;gBAID"}
|