bleam 0.0.5 → 0.0.6

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.
Files changed (113) hide show
  1. package/dist/ai.cjs +187 -0
  2. package/dist/ai.d.cts +52 -0
  3. package/dist/ai.d.ts +52 -0
  4. package/dist/ai.js +182 -0
  5. package/dist/animated.cjs +286 -0
  6. package/dist/animated.d.cts +47 -0
  7. package/dist/animated.d.ts +47 -0
  8. package/dist/animated.js +281 -0
  9. package/dist/app.d.cts +1 -2
  10. package/dist/app.d.ts +1 -2
  11. package/dist/app.js +1 -2
  12. package/dist/bundler.d.cts +1 -2
  13. package/dist/bundler.d.ts +1 -2
  14. package/dist/chrome.cjs +265 -0
  15. package/dist/chrome.d.cts +19 -0
  16. package/dist/chrome.d.ts +19 -0
  17. package/dist/chrome.js +262 -0
  18. package/dist/cli.cjs +768 -31
  19. package/dist/cli.js +767 -34
  20. package/dist/config-Bb6SULnR.cjs +46 -0
  21. package/dist/config-CfWa3q-k.js +28 -0
  22. package/dist/config-ClDGHNb3.d.ts +39 -0
  23. package/dist/config-D3gPaVMb.d.cts +39 -0
  24. package/dist/config.cjs +4 -25
  25. package/dist/config.d.cts +2 -28
  26. package/dist/config.d.ts +2 -28
  27. package/dist/config.js +2 -24
  28. package/dist/crypto-BB92-Upx.js +7 -0
  29. package/dist/crypto-CT3VZ7lF.cjs +13 -0
  30. package/dist/crypto.cjs +2 -2
  31. package/dist/crypto.d.cts +8 -1
  32. package/dist/crypto.d.ts +8 -1
  33. package/dist/crypto.js +2 -2
  34. package/dist/dev-protocol.d.cts +3 -3
  35. package/dist/dev-protocol.d.ts +3 -3
  36. package/dist/dev-protocol.js +1 -2
  37. package/dist/fs.cjs +12 -2
  38. package/dist/fs.d.cts +7 -1
  39. package/dist/fs.d.ts +7 -1
  40. package/dist/fs.js +10 -1
  41. package/dist/index.cjs +4 -5
  42. package/dist/index.d.cts +2 -3
  43. package/dist/index.d.ts +2 -3
  44. package/dist/index.js +2 -4
  45. package/dist/native-macos-D6p2SmUj.js +20 -0
  46. package/dist/native-macos-DLwo_ii9.cjs +31 -0
  47. package/dist/native-runtime-C85Nuc4F.js +10 -0
  48. package/dist/native-runtime-CbPzrs8j.d.cts +33 -0
  49. package/dist/{native-runtime-CdeT0JyQ.cjs → native-runtime-CsXnXkQn.cjs} +1 -14
  50. package/dist/native-runtime-DxHSrsTX.d.ts +33 -0
  51. package/dist/native.cjs +35 -32
  52. package/dist/native.d.cts +4 -34
  53. package/dist/native.d.ts +3 -33
  54. package/dist/native.js +36 -34
  55. package/dist/runtime.d.cts +1 -2
  56. package/dist/runtime.d.ts +1 -2
  57. package/dist/schema-BOuUHcqo.d.cts +58 -0
  58. package/dist/schema-DVmoD9JL.js +90 -0
  59. package/dist/schema-bxeeCyLn.cjs +102 -0
  60. package/dist/schema-ipsECAso.d.ts +58 -0
  61. package/dist/schema.cjs +4 -0
  62. package/dist/schema.d.cts +2 -0
  63. package/dist/schema.d.ts +2 -0
  64. package/dist/schema.js +3 -0
  65. package/dist/state.cjs +765 -0
  66. package/dist/state.d.cts +129 -0
  67. package/dist/state.d.ts +129 -0
  68. package/dist/state.js +747 -0
  69. package/dist/styles.cjs +742 -0
  70. package/dist/styles.d.cts +701 -0
  71. package/dist/styles.d.ts +701 -0
  72. package/dist/styles.js +739 -0
  73. package/dist/ui.cjs +113 -0
  74. package/dist/ui.d.cts +30 -0
  75. package/dist/ui.d.ts +30 -0
  76. package/dist/ui.js +110 -0
  77. package/metro-config.cjs +18 -13
  78. package/package.json +47 -13
  79. package/templates/basic/app/index.tsx +130 -12
  80. package/templates/basic/app.config.ts +4 -2
  81. package/dist/app.d.cts.map +0 -1
  82. package/dist/app.d.ts.map +0 -1
  83. package/dist/app.js.map +0 -1
  84. package/dist/bundler.d.cts.map +0 -1
  85. package/dist/bundler.d.ts.map +0 -1
  86. package/dist/cli.js.map +0 -1
  87. package/dist/config.d.cts.map +0 -1
  88. package/dist/config.d.ts.map +0 -1
  89. package/dist/config.js.map +0 -1
  90. package/dist/crypto-BNhWeXMj.cjs +0 -15
  91. package/dist/crypto-Bg8cD8wX.d.cts +0 -8
  92. package/dist/crypto-Bg8cD8wX.d.cts.map +0 -1
  93. package/dist/crypto-CCA_hvao.js +0 -11
  94. package/dist/crypto-CCA_hvao.js.map +0 -1
  95. package/dist/crypto-IOzbNoJD.d.ts +0 -8
  96. package/dist/crypto-IOzbNoJD.d.ts.map +0 -1
  97. package/dist/dev-protocol.d.cts.map +0 -1
  98. package/dist/dev-protocol.d.ts.map +0 -1
  99. package/dist/dev-protocol.js.map +0 -1
  100. package/dist/fs-BK7joD1g.js +0 -13
  101. package/dist/fs-BK7joD1g.js.map +0 -1
  102. package/dist/fs-CEhcjuN6.d.ts +0 -9
  103. package/dist/fs-CEhcjuN6.d.ts.map +0 -1
  104. package/dist/fs-CfE8CHf_.d.cts +0 -9
  105. package/dist/fs-CfE8CHf_.d.cts.map +0 -1
  106. package/dist/fs-DKHYTPua.cjs +0 -18
  107. package/dist/native-runtime-BoqybBBf.js +0 -18
  108. package/dist/native-runtime-BoqybBBf.js.map +0 -1
  109. package/dist/native.d.cts.map +0 -1
  110. package/dist/native.d.ts.map +0 -1
  111. package/dist/native.js.map +0 -1
  112. package/dist/runtime.d.cts.map +0 -1
  113. package/dist/runtime.d.ts.map +0 -1
@@ -0,0 +1,46 @@
1
+
2
+ //#region src/config.ts
3
+ function defineConfig(config) {
4
+ return config;
5
+ }
6
+ function appConfig(config) {
7
+ return config;
8
+ }
9
+ function slugFromName(name) {
10
+ return name.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "bleam-app";
11
+ }
12
+ function createExpoConfig(config) {
13
+ return { expo: {
14
+ name: config.name,
15
+ slug: slugFromName(config.name),
16
+ version: config.version ?? "0.0.0",
17
+ orientation: "default",
18
+ platforms: ["ios"],
19
+ newArchEnabled: true,
20
+ extra: { bleam: {
21
+ runtimeVersion: config.version ?? "0.0.0",
22
+ sdkVersion: config.version ?? "0.0.0",
23
+ appearance: config.appearance
24
+ } }
25
+ } };
26
+ }
27
+
28
+ //#endregion
29
+ Object.defineProperty(exports, 'appConfig', {
30
+ enumerable: true,
31
+ get: function () {
32
+ return appConfig;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, 'createExpoConfig', {
36
+ enumerable: true,
37
+ get: function () {
38
+ return createExpoConfig;
39
+ }
40
+ });
41
+ Object.defineProperty(exports, 'defineConfig', {
42
+ enumerable: true,
43
+ get: function () {
44
+ return defineConfig;
45
+ }
46
+ });
@@ -0,0 +1,28 @@
1
+ //#region src/config.ts
2
+ function defineConfig(config) {
3
+ return config;
4
+ }
5
+ function appConfig(config) {
6
+ return config;
7
+ }
8
+ function slugFromName(name) {
9
+ return name.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "bleam-app";
10
+ }
11
+ function createExpoConfig(config) {
12
+ return { expo: {
13
+ name: config.name,
14
+ slug: slugFromName(config.name),
15
+ version: config.version ?? "0.0.0",
16
+ orientation: "default",
17
+ platforms: ["ios"],
18
+ newArchEnabled: true,
19
+ extra: { bleam: {
20
+ runtimeVersion: config.version ?? "0.0.0",
21
+ sdkVersion: config.version ?? "0.0.0",
22
+ appearance: config.appearance
23
+ } }
24
+ } };
25
+ }
26
+
27
+ //#endregion
28
+ export { createExpoConfig as n, defineConfig as r, appConfig as t };
@@ -0,0 +1,39 @@
1
+ //#region src/config.d.ts
2
+ type HexColor = `#${string}`;
3
+ type BleamUserInterfaceStyle = 'automatic' | 'light' | 'dark';
4
+ interface BleamAppearance {
5
+ window?: {
6
+ backgroundColor?: HexColor;
7
+ };
8
+ userInterfaceStyle?: BleamUserInterfaceStyle;
9
+ }
10
+ interface BleamConfig {
11
+ name: string;
12
+ version?: string;
13
+ buildNumber?: string;
14
+ bundleIdentifier?: string;
15
+ teamId?: string;
16
+ appearance?: BleamAppearance;
17
+ }
18
+ interface BleamInternalExpoConfig {
19
+ expo: {
20
+ name: string;
21
+ slug: string;
22
+ version: string;
23
+ orientation: 'default';
24
+ platforms: ['ios'];
25
+ newArchEnabled: true;
26
+ extra: {
27
+ bleam: {
28
+ runtimeVersion: string;
29
+ sdkVersion: string;
30
+ appearance?: BleamAppearance;
31
+ };
32
+ };
33
+ };
34
+ }
35
+ declare function defineConfig(config: BleamConfig): BleamConfig;
36
+ declare function appConfig(config: BleamConfig): BleamConfig;
37
+ declare function createExpoConfig(config: BleamConfig): BleamInternalExpoConfig;
38
+ //#endregion
39
+ export { HexColor as a, defineConfig as c, BleamUserInterfaceStyle as i, BleamConfig as n, appConfig as o, BleamInternalExpoConfig as r, createExpoConfig as s, BleamAppearance as t };
@@ -0,0 +1,39 @@
1
+ //#region src/config.d.ts
2
+ type HexColor = `#${string}`;
3
+ type BleamUserInterfaceStyle = 'automatic' | 'light' | 'dark';
4
+ interface BleamAppearance {
5
+ window?: {
6
+ backgroundColor?: HexColor;
7
+ };
8
+ userInterfaceStyle?: BleamUserInterfaceStyle;
9
+ }
10
+ interface BleamConfig {
11
+ name: string;
12
+ version?: string;
13
+ buildNumber?: string;
14
+ bundleIdentifier?: string;
15
+ teamId?: string;
16
+ appearance?: BleamAppearance;
17
+ }
18
+ interface BleamInternalExpoConfig {
19
+ expo: {
20
+ name: string;
21
+ slug: string;
22
+ version: string;
23
+ orientation: 'default';
24
+ platforms: ['ios'];
25
+ newArchEnabled: true;
26
+ extra: {
27
+ bleam: {
28
+ runtimeVersion: string;
29
+ sdkVersion: string;
30
+ appearance?: BleamAppearance;
31
+ };
32
+ };
33
+ };
34
+ }
35
+ declare function defineConfig(config: BleamConfig): BleamConfig;
36
+ declare function appConfig(config: BleamConfig): BleamConfig;
37
+ declare function createExpoConfig(config: BleamConfig): BleamInternalExpoConfig;
38
+ //#endregion
39
+ export { HexColor as a, defineConfig as c, BleamUserInterfaceStyle as i, BleamConfig as n, appConfig as o, BleamInternalExpoConfig as r, createExpoConfig as s, BleamAppearance as t };
package/dist/config.cjs CHANGED
@@ -1,26 +1,5 @@
1
+ const require_config = require('./config-Bb6SULnR.cjs');
1
2
 
2
- //#region src/config.ts
3
- function defineConfig(config) {
4
- return config;
5
- }
6
- function slugFromName(name) {
7
- return name.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "bleam-app";
8
- }
9
- function createExpoConfig(config) {
10
- return { expo: {
11
- name: config.name,
12
- slug: slugFromName(config.name),
13
- version: config.version ?? "0.0.0",
14
- orientation: "default",
15
- platforms: ["ios"],
16
- newArchEnabled: true,
17
- extra: { bleam: {
18
- runtimeVersion: config.version ?? "0.0.0",
19
- sdkVersion: config.version ?? "0.0.0"
20
- } }
21
- } };
22
- }
23
-
24
- //#endregion
25
- exports.createExpoConfig = createExpoConfig;
26
- exports.defineConfig = defineConfig;
3
+ exports.appConfig = require_config.appConfig;
4
+ exports.createExpoConfig = require_config.createExpoConfig;
5
+ exports.defineConfig = require_config.defineConfig;
package/dist/config.d.cts CHANGED
@@ -1,28 +1,2 @@
1
- //#region src/config.d.ts
2
- interface BleamConfig {
3
- name: string;
4
- version?: string;
5
- bundleIdentifier?: string;
6
- teamId?: string;
7
- }
8
- interface BleamInternalExpoConfig {
9
- expo: {
10
- name: string;
11
- slug: string;
12
- version: string;
13
- orientation: 'default';
14
- platforms: ['ios'];
15
- newArchEnabled: true;
16
- extra: {
17
- bleam: {
18
- runtimeVersion: string;
19
- sdkVersion: string;
20
- };
21
- };
22
- };
23
- }
24
- declare function defineConfig(config: BleamConfig): BleamConfig;
25
- declare function createExpoConfig(config: BleamConfig): BleamInternalExpoConfig;
26
- //#endregion
27
- export { BleamConfig, BleamInternalExpoConfig, createExpoConfig, defineConfig };
28
- //# sourceMappingURL=config.d.cts.map
1
+ import { a as HexColor, c as defineConfig, i as BleamUserInterfaceStyle, n as BleamConfig, o as appConfig, r as BleamInternalExpoConfig, s as createExpoConfig, t as BleamAppearance } from "./config-D3gPaVMb.cjs";
2
+ export { BleamAppearance, BleamConfig, BleamInternalExpoConfig, BleamUserInterfaceStyle, HexColor, appConfig, createExpoConfig, defineConfig };
package/dist/config.d.ts CHANGED
@@ -1,28 +1,2 @@
1
- //#region src/config.d.ts
2
- interface BleamConfig {
3
- name: string;
4
- version?: string;
5
- bundleIdentifier?: string;
6
- teamId?: string;
7
- }
8
- interface BleamInternalExpoConfig {
9
- expo: {
10
- name: string;
11
- slug: string;
12
- version: string;
13
- orientation: 'default';
14
- platforms: ['ios'];
15
- newArchEnabled: true;
16
- extra: {
17
- bleam: {
18
- runtimeVersion: string;
19
- sdkVersion: string;
20
- };
21
- };
22
- };
23
- }
24
- declare function defineConfig(config: BleamConfig): BleamConfig;
25
- declare function createExpoConfig(config: BleamConfig): BleamInternalExpoConfig;
26
- //#endregion
27
- export { BleamConfig, BleamInternalExpoConfig, createExpoConfig, defineConfig };
28
- //# sourceMappingURL=config.d.ts.map
1
+ import { a as HexColor, c as defineConfig, i as BleamUserInterfaceStyle, n as BleamConfig, o as appConfig, r as BleamInternalExpoConfig, s as createExpoConfig, t as BleamAppearance } from "./config-ClDGHNb3.js";
2
+ export { BleamAppearance, BleamConfig, BleamInternalExpoConfig, BleamUserInterfaceStyle, HexColor, appConfig, createExpoConfig, defineConfig };
package/dist/config.js CHANGED
@@ -1,25 +1,3 @@
1
- //#region src/config.ts
2
- function defineConfig(config) {
3
- return config;
4
- }
5
- function slugFromName(name) {
6
- return name.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "bleam-app";
7
- }
8
- function createExpoConfig(config) {
9
- return { expo: {
10
- name: config.name,
11
- slug: slugFromName(config.name),
12
- version: config.version ?? "0.0.0",
13
- orientation: "default",
14
- platforms: ["ios"],
15
- newArchEnabled: true,
16
- extra: { bleam: {
17
- runtimeVersion: config.version ?? "0.0.0",
18
- sdkVersion: config.version ?? "0.0.0"
19
- } }
20
- } };
21
- }
1
+ import { n as createExpoConfig, r as defineConfig, t as appConfig } from "./config-CfWa3q-k.js";
22
2
 
23
- //#endregion
24
- export { createExpoConfig, defineConfig };
25
- //# sourceMappingURL=config.js.map
3
+ export { appConfig, createExpoConfig, defineConfig };
@@ -0,0 +1,7 @@
1
+ //#region src/crypto.ts
2
+ const crypto = { randomUUID() {
3
+ return String(NSUUID.UUID().UUIDString).toLowerCase();
4
+ } };
5
+
6
+ //#endregion
7
+ export { crypto as t };
@@ -0,0 +1,13 @@
1
+
2
+ //#region src/crypto.ts
3
+ const crypto = { randomUUID() {
4
+ return String(NSUUID.UUID().UUIDString).toLowerCase();
5
+ } };
6
+
7
+ //#endregion
8
+ Object.defineProperty(exports, 'crypto', {
9
+ enumerable: true,
10
+ get: function () {
11
+ return crypto;
12
+ }
13
+ });
package/dist/crypto.cjs CHANGED
@@ -1,4 +1,4 @@
1
- require('./native-runtime-CdeT0JyQ.cjs');
2
- const require_crypto = require('./crypto-BNhWeXMj.cjs');
1
+ require('./native-runtime-CsXnXkQn.cjs');
2
+ const require_crypto = require('./crypto-CT3VZ7lF.cjs');
3
3
 
4
4
  exports.crypto = require_crypto.crypto;
package/dist/crypto.d.cts CHANGED
@@ -1,2 +1,9 @@
1
- import { n as crypto, t as BleamCrypto } from "./crypto-Bg8cD8wX.cjs";
1
+ import "./native-runtime-CbPzrs8j.cjs";
2
+
3
+ //#region src/crypto.d.ts
4
+ interface BleamCrypto {
5
+ randomUUID(): string;
6
+ }
7
+ declare const crypto: BleamCrypto;
8
+ //#endregion
2
9
  export { BleamCrypto, crypto };
package/dist/crypto.d.ts CHANGED
@@ -1,2 +1,9 @@
1
- import { n as crypto, t as BleamCrypto } from "./crypto-IOzbNoJD.js";
1
+ import "./native-runtime-DxHSrsTX.js";
2
+
3
+ //#region src/crypto.d.ts
4
+ interface BleamCrypto {
5
+ randomUUID(): string;
6
+ }
7
+ declare const crypto: BleamCrypto;
8
+ //#endregion
2
9
  export { BleamCrypto, crypto };
package/dist/crypto.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./native-runtime-BoqybBBf.js";
2
- import { t as crypto } from "./crypto-CCA_hvao.js";
1
+ import "./native-runtime-C85Nuc4F.js";
2
+ import { t as crypto } from "./crypto-BB92-Upx.js";
3
3
 
4
4
  export { crypto };
@@ -1,9 +1,10 @@
1
1
  //#region src/dev-protocol.d.ts
2
+ type BleamPlatform = 'macos';
2
3
  interface BleamManifest {
3
4
  name: string;
4
5
  sdkVersion: string;
5
6
  runtimeVersion: string;
6
- platform: 'macos';
7
+ platform: BleamPlatform;
7
8
  bundleUrl: string;
8
9
  assetsUrl?: string;
9
10
  dev: boolean;
@@ -12,5 +13,4 @@ declare const BLEAM_MANIFEST_PATH = "/bleam/manifest.json";
12
13
  declare function createBleamDevBundleUrl(origin: string): string;
13
14
  declare function isBleamManifest(value: unknown): value is BleamManifest;
14
15
  //#endregion
15
- export { BLEAM_MANIFEST_PATH, BleamManifest, createBleamDevBundleUrl, isBleamManifest };
16
- //# sourceMappingURL=dev-protocol.d.cts.map
16
+ export { BLEAM_MANIFEST_PATH, BleamManifest, BleamPlatform, createBleamDevBundleUrl, isBleamManifest };
@@ -1,9 +1,10 @@
1
1
  //#region src/dev-protocol.d.ts
2
+ type BleamPlatform = 'macos';
2
3
  interface BleamManifest {
3
4
  name: string;
4
5
  sdkVersion: string;
5
6
  runtimeVersion: string;
6
- platform: 'macos';
7
+ platform: BleamPlatform;
7
8
  bundleUrl: string;
8
9
  assetsUrl?: string;
9
10
  dev: boolean;
@@ -12,5 +13,4 @@ declare const BLEAM_MANIFEST_PATH = "/bleam/manifest.json";
12
13
  declare function createBleamDevBundleUrl(origin: string): string;
13
14
  declare function isBleamManifest(value: unknown): value is BleamManifest;
14
15
  //#endregion
15
- export { BLEAM_MANIFEST_PATH, BleamManifest, createBleamDevBundleUrl, isBleamManifest };
16
- //# sourceMappingURL=dev-protocol.d.ts.map
16
+ export { BLEAM_MANIFEST_PATH, BleamManifest, BleamPlatform, createBleamDevBundleUrl, isBleamManifest };
@@ -10,5 +10,4 @@ function isBleamManifest(value) {
10
10
  }
11
11
 
12
12
  //#endregion
13
- export { BLEAM_MANIFEST_PATH, createBleamDevBundleUrl, isBleamManifest };
14
- //# sourceMappingURL=dev-protocol.js.map
13
+ export { BLEAM_MANIFEST_PATH, createBleamDevBundleUrl, isBleamManifest };
package/dist/fs.cjs CHANGED
@@ -1,3 +1,13 @@
1
- const require_fs = require('./fs-DKHYTPua.cjs');
2
1
 
3
- exports.fs = require_fs.fs;
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
+ exports.fs = fs;
package/dist/fs.d.cts CHANGED
@@ -1,2 +1,8 @@
1
- import { n as fs, t as BleamFileSystem } from "./fs-CfE8CHf_.cjs";
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
2
8
  export { BleamFileSystem, fs };
package/dist/fs.d.ts CHANGED
@@ -1,2 +1,8 @@
1
- import { n as fs, t as BleamFileSystem } from "./fs-CEhcjuN6.js";
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
2
8
  export { BleamFileSystem, fs };
package/dist/fs.js CHANGED
@@ -1,3 +1,12 @@
1
- import { t as fs } from "./fs-BK7joD1g.js";
1
+ //#region src/fs.ts
2
+ const fs = {
3
+ readText() {
4
+ throw new Error("bleam/fs is not available in this runtime yet");
5
+ },
6
+ writeText() {
7
+ throw new Error("bleam/fs is not available in this runtime yet");
8
+ }
9
+ };
2
10
 
11
+ //#endregion
3
12
  export { fs };
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
- require('./native-runtime-CdeT0JyQ.cjs');
2
- const require_crypto = require('./crypto-BNhWeXMj.cjs');
3
- const require_fs = require('./fs-DKHYTPua.cjs');
1
+ const require_config = require('./config-Bb6SULnR.cjs');
4
2
 
5
- exports.crypto = require_crypto.crypto;
6
- exports.fs = require_fs.fs;
3
+ exports.appConfig = require_config.appConfig;
4
+ exports.createExpoConfig = require_config.createExpoConfig;
5
+ exports.defineConfig = require_config.defineConfig;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,2 @@
1
- import { n as crypto, t as BleamCrypto } from "./crypto-Bg8cD8wX.cjs";
2
- import { n as fs, t as BleamFileSystem } from "./fs-CfE8CHf_.cjs";
3
- export { BleamCrypto, BleamFileSystem, crypto, fs };
1
+ import { a as HexColor, c as defineConfig, i as BleamUserInterfaceStyle, n as BleamConfig, o as appConfig, r as BleamInternalExpoConfig, s as createExpoConfig, t as BleamAppearance } from "./config-D3gPaVMb.cjs";
2
+ export { BleamAppearance, BleamConfig, BleamInternalExpoConfig, BleamUserInterfaceStyle, HexColor, appConfig, createExpoConfig, defineConfig };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import { n as crypto, t as BleamCrypto } from "./crypto-IOzbNoJD.js";
2
- import { n as fs, t as BleamFileSystem } from "./fs-CEhcjuN6.js";
3
- export { BleamCrypto, BleamFileSystem, crypto, fs };
1
+ import { a as HexColor, c as defineConfig, i as BleamUserInterfaceStyle, n as BleamConfig, o as appConfig, r as BleamInternalExpoConfig, s as createExpoConfig, t as BleamAppearance } from "./config-ClDGHNb3.js";
2
+ export { BleamAppearance, BleamConfig, BleamInternalExpoConfig, BleamUserInterfaceStyle, HexColor, appConfig, createExpoConfig, defineConfig };
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import "./native-runtime-BoqybBBf.js";
2
- import { t as crypto } from "./crypto-CCA_hvao.js";
3
- import { t as fs } from "./fs-BK7joD1g.js";
1
+ import { n as createExpoConfig, r as defineConfig, t as appConfig } from "./config-CfWa3q-k.js";
4
2
 
5
- export { crypto, fs };
3
+ export { appConfig, createExpoConfig, defineConfig };
@@ -0,0 +1,20 @@
1
+ import { t as ensureNativeScript } from "./native-runtime-C85Nuc4F.js";
2
+
3
+ //#region src/native-macos.ts
4
+ function macOSApplication() {
5
+ return ensureNativeScript().getClass("NSApplication")?.sharedApplication;
6
+ }
7
+ function createMacOSToolbar(identifier) {
8
+ const toolbarClass = ensureNativeScript().getClass("NSToolbar");
9
+ if (!toolbarClass) return;
10
+ try {
11
+ const toolbar = toolbarClass.alloc?.().initWithIdentifier?.(identifier);
12
+ if (toolbar) return toolbar;
13
+ } catch {}
14
+ try {
15
+ return toolbarClass.new?.();
16
+ } catch {}
17
+ }
18
+
19
+ //#endregion
20
+ export { macOSApplication as n, createMacOSToolbar as t };
@@ -0,0 +1,31 @@
1
+ const require_native_runtime = require('./native-runtime-CsXnXkQn.cjs');
2
+
3
+ //#region src/native-macos.ts
4
+ function macOSApplication() {
5
+ return require_native_runtime.ensureNativeScript().getClass("NSApplication")?.sharedApplication;
6
+ }
7
+ function createMacOSToolbar(identifier) {
8
+ const toolbarClass = require_native_runtime.ensureNativeScript().getClass("NSToolbar");
9
+ if (!toolbarClass) return;
10
+ try {
11
+ const toolbar = toolbarClass.alloc?.().initWithIdentifier?.(identifier);
12
+ if (toolbar) return toolbar;
13
+ } catch {}
14
+ try {
15
+ return toolbarClass.new?.();
16
+ } catch {}
17
+ }
18
+
19
+ //#endregion
20
+ Object.defineProperty(exports, 'createMacOSToolbar', {
21
+ enumerable: true,
22
+ get: function () {
23
+ return createMacOSToolbar;
24
+ }
25
+ });
26
+ Object.defineProperty(exports, 'macOSApplication', {
27
+ enumerable: true,
28
+ get: function () {
29
+ return macOSApplication;
30
+ }
31
+ });
@@ -0,0 +1,10 @@
1
+ import NativeScript from "@nativescript/react-native";
2
+
3
+ //#region src/native-runtime.ts
4
+ NativeScript.init();
5
+ function ensureNativeScript() {
6
+ return NativeScript;
7
+ }
8
+
9
+ //#endregion
10
+ export { ensureNativeScript as t };
@@ -0,0 +1,33 @@
1
+ import * as _nativescript_react_native2 from "@nativescript/react-native";
2
+
3
+ //#region src/native-runtime.d.ts
4
+ declare function ensureNativeScript(): {
5
+ init: typeof _nativescript_react_native2.init;
6
+ install: typeof _nativescript_react_native2.install;
7
+ installGlobals: typeof _nativescript_react_native2.installGlobals;
8
+ isInstalled: typeof _nativescript_react_native2.isInstalled;
9
+ defaultMetadataPath: typeof _nativescript_react_native2.defaultMetadataPath;
10
+ defineUIKitContainer: typeof _nativescript_react_native2.defineUIKitContainer;
11
+ defineUIKitView: typeof _nativescript_react_native2.defineUIKitView;
12
+ defineUIViewController: typeof _nativescript_react_native2.defineUIViewController;
13
+ getRuntimeBackend: typeof _nativescript_react_native2.getRuntimeBackend;
14
+ assertUIKitThread: typeof _nativescript_react_native2.assertUIKitThread;
15
+ createDelegate: typeof _nativescript_react_native2.createDelegate;
16
+ createEventBridge: typeof _nativescript_react_native2.createEventBridge;
17
+ createRetainer: typeof _nativescript_react_native2.createRetainer;
18
+ eventBridge: typeof _nativescript_react_native2.eventBridge;
19
+ getClass: typeof _nativescript_react_native2.getClass;
20
+ getProtocol: typeof _nativescript_react_native2.getProtocol;
21
+ isClassAvailable: typeof _nativescript_react_native2.isClassAvailable;
22
+ isFrameworkLoaded: typeof _nativescript_react_native2.isFrameworkLoaded;
23
+ isMainThread: typeof _nativescript_react_native2.isMainThread;
24
+ jsInvoker: typeof _nativescript_react_native2.jsInvoker;
25
+ loadFramework: typeof _nativescript_react_native2.loadFramework;
26
+ release: typeof _nativescript_react_native2.release;
27
+ retain: typeof _nativescript_react_native2.retain;
28
+ runOnUI: typeof _nativescript_react_native2.runOnUI;
29
+ uiInvoker: typeof _nativescript_react_native2.uiInvoker;
30
+ warnIfNotUIKitThread: typeof _nativescript_react_native2.warnIfNotUIKitThread;
31
+ };
32
+ //#endregion
33
+ export { ensureNativeScript as t };
@@ -3,15 +3,8 @@ let __nativescript_react_native = require("@nativescript/react-native");
3
3
  __nativescript_react_native = require_chunk.__toESM(__nativescript_react_native);
4
4
 
5
5
  //#region src/native-runtime.ts
6
- let initialized = false;
7
- function globals() {
8
- return globalThis;
9
- }
6
+ __nativescript_react_native.default.init();
10
7
  function ensureNativeScript() {
11
- if (!initialized) {
12
- __nativescript_react_native.default.init();
13
- initialized = true;
14
- }
15
8
  return __nativescript_react_native.default;
16
9
  }
17
10
 
@@ -21,10 +14,4 @@ Object.defineProperty(exports, 'ensureNativeScript', {
21
14
  get: function () {
22
15
  return ensureNativeScript;
23
16
  }
24
- });
25
- Object.defineProperty(exports, 'globals', {
26
- enumerable: true,
27
- get: function () {
28
- return globals;
29
- }
30
17
  });
@@ -0,0 +1,33 @@
1
+ import * as _nativescript_react_native2 from "@nativescript/react-native";
2
+
3
+ //#region src/native-runtime.d.ts
4
+ declare function ensureNativeScript(): {
5
+ init: typeof _nativescript_react_native2.init;
6
+ install: typeof _nativescript_react_native2.install;
7
+ installGlobals: typeof _nativescript_react_native2.installGlobals;
8
+ isInstalled: typeof _nativescript_react_native2.isInstalled;
9
+ defaultMetadataPath: typeof _nativescript_react_native2.defaultMetadataPath;
10
+ defineUIKitContainer: typeof _nativescript_react_native2.defineUIKitContainer;
11
+ defineUIKitView: typeof _nativescript_react_native2.defineUIKitView;
12
+ defineUIViewController: typeof _nativescript_react_native2.defineUIViewController;
13
+ getRuntimeBackend: typeof _nativescript_react_native2.getRuntimeBackend;
14
+ assertUIKitThread: typeof _nativescript_react_native2.assertUIKitThread;
15
+ createDelegate: typeof _nativescript_react_native2.createDelegate;
16
+ createEventBridge: typeof _nativescript_react_native2.createEventBridge;
17
+ createRetainer: typeof _nativescript_react_native2.createRetainer;
18
+ eventBridge: typeof _nativescript_react_native2.eventBridge;
19
+ getClass: typeof _nativescript_react_native2.getClass;
20
+ getProtocol: typeof _nativescript_react_native2.getProtocol;
21
+ isClassAvailable: typeof _nativescript_react_native2.isClassAvailable;
22
+ isFrameworkLoaded: typeof _nativescript_react_native2.isFrameworkLoaded;
23
+ isMainThread: typeof _nativescript_react_native2.isMainThread;
24
+ jsInvoker: typeof _nativescript_react_native2.jsInvoker;
25
+ loadFramework: typeof _nativescript_react_native2.loadFramework;
26
+ release: typeof _nativescript_react_native2.release;
27
+ retain: typeof _nativescript_react_native2.retain;
28
+ runOnUI: typeof _nativescript_react_native2.runOnUI;
29
+ uiInvoker: typeof _nativescript_react_native2.uiInvoker;
30
+ warnIfNotUIKitThread: typeof _nativescript_react_native2.warnIfNotUIKitThread;
31
+ };
32
+ //#endregion
33
+ export { ensureNativeScript as t };