@apps-in-toss/web-framework 0.0.7 → 0.0.9

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 (88) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +20 -0
  3. package/bin.js +2 -1
  4. package/dist/cli/chunk-HDRFXOPA.js +63 -0
  5. package/dist/cli/chunk-RUDG2MMT.js +173587 -0
  6. package/dist/cli/index.js +96369 -521
  7. package/dist/cli/lib-NMFBQRQ2.js +1007 -0
  8. package/dist/cli/typescript-THSIDFIK.js +6 -0
  9. package/dist/config/index.d.ts +42 -46
  10. package/dist/config/index.js +4 -284
  11. package/dist/prebuilt/dev.android.js +155780 -0
  12. package/dist/prebuilt/dev.ios.js +155721 -0
  13. package/dist/prebuilt/prod.android.js +20 -0
  14. package/dist/prebuilt/prod.ios.js +20 -0
  15. package/dist/prebuilt/prod.json +14 -0
  16. package/hermesc/0_72_6/linux64-bin/hermesc +0 -0
  17. package/hermesc/0_72_6/osx-bin/hermesc +0 -0
  18. package/hermesc/0_72_6/win64-bin/hermesc.exe +0 -0
  19. package/hermesc/0_72_6/win64-bin/icudt64.dll +0 -0
  20. package/hermesc/0_72_6/win64-bin/icuin64.dll +0 -0
  21. package/hermesc/0_72_6/win64-bin/icuio64.dll +0 -0
  22. package/hermesc/0_72_6/win64-bin/icutest64.dll +0 -0
  23. package/hermesc/0_72_6/win64-bin/icutu64.dll +0 -0
  24. package/hermesc/0_72_6/win64-bin/icuuc64.dll +0 -0
  25. package/hermesc/0_72_6/win64-bin/msvcp140.dll +0 -0
  26. package/hermesc/0_72_6/win64-bin/vcruntime140.dll +0 -0
  27. package/hermesc/0_72_6/win64-bin/vcruntime140_1.dll +0 -0
  28. package/package.json +57 -32
  29. package/src-web/appLogin.d.ts +31 -0
  30. package/src-web/closeView.d.ts +24 -0
  31. package/{dist → src-web}/fetchAlbumPhotos.d.ts +1 -1
  32. package/src-web/generateHapticFeedback.d.ts +52 -0
  33. package/{dist → src-web}/getCurrentLocation.d.ts +47 -10
  34. package/src-web/getDeviceId.d.ts +32 -0
  35. package/src-web/getLocale.d.ts +31 -0
  36. package/src-web/getNetworkStatus.d.ts +55 -0
  37. package/src-web/getSchemeUri.d.ts +26 -0
  38. package/{dist → src-web}/index.d.ts +1 -0
  39. package/src-web/index.js +1 -0
  40. package/src-web/setScreenAwakeMode.d.ts +69 -0
  41. package/src-web/setSecureScreen.d.ts +34 -0
  42. package/src-web/share.d.ts +37 -0
  43. package/{dist → src-web}/startUpdateLocation.d.ts +44 -10
  44. package/dist/chunk-CH3CIAIW.js +0 -7688
  45. package/dist/chunk-DI2VGQ6M.js +0 -53
  46. package/dist/chunk-HL7M3JLX.js +0 -53
  47. package/dist/chunk-I3ZDGLIW.js +0 -19
  48. package/dist/chunk-LJBVSTWE.js +0 -7687
  49. package/dist/chunk-OMIGZ2S7.js +0 -7689
  50. package/dist/chunk-TZCMTMV7.js +0 -38
  51. package/dist/cli/index.cjs +0 -644
  52. package/dist/cli/index.d.cts +0 -2
  53. package/dist/cli/index.d.ts +0 -2
  54. package/dist/cli.cjs +0 -613
  55. package/dist/cli.d.cts +0 -2
  56. package/dist/cli.d.ts +0 -2
  57. package/dist/cli.js +0 -562
  58. package/dist/closeView.d.ts +0 -1
  59. package/dist/config/index.cjs +0 -7963
  60. package/dist/config/index.d.cts +0 -57
  61. package/dist/generateHapticFeedback.d.ts +0 -1
  62. package/dist/getDeviceId.d.ts +0 -1
  63. package/dist/getLocale.d.ts +0 -1
  64. package/dist/getNetworkStatus.d.ts +0 -1
  65. package/dist/getSchemeUri.d.ts +0 -1
  66. package/dist/index.cjs +0 -18
  67. package/dist/index.d.cts +0 -2
  68. package/dist/index.js +0 -1
  69. package/dist/plugins/index.cjs +0 -7682
  70. package/dist/plugins/index.d.cts +0 -15
  71. package/dist/plugins/index.d.ts +0 -15
  72. package/dist/plugins/index.js +0 -11
  73. package/dist/setScreenAwakeMode.d.ts +0 -1
  74. package/dist/setSecureScreen.d.ts +0 -1
  75. package/dist/share.d.ts +0 -1
  76. package/react-native/.babelrc +0 -41
  77. package/react-native/.bedrock/.env.js +0 -4
  78. package/react-native/ait.d.ts +0 -8
  79. package/react-native/context.ts +0 -10
  80. package/react-native/index.ts +0 -4
  81. package/react-native/pages/_404.tsx +0 -1
  82. package/react-native/pages/index.tsx +0 -10
  83. package/react-native/react-native.config.cjs +0 -3
  84. package/react-native/src/_app.tsx +0 -12
  85. /package/{dist → src-web}/fetchContacts.d.ts +0 -0
  86. /package/{dist → src-web}/getClipboardText.d.ts +0 -0
  87. /package/{dist → src-web}/openCamera.d.ts +0 -0
  88. /package/{dist → src-web}/setClipboardText.d.ts +0 -0
@@ -1,15 +0,0 @@
1
- import * as _react_native_bedrock_cli from '@react-native-bedrock/cli';
2
- import { Permission } from '@apps-in-toss/framework/plugins';
3
- import { BedrockPlugin } from 'react-native-bedrock/config';
4
-
5
- interface AppsInTossWebPluginOptions {
6
- port: number;
7
- commands: {
8
- dev: string;
9
- build: string;
10
- };
11
- permissions: Permission[];
12
- }
13
- declare function appsInTossWeb(options: AppsInTossWebPluginOptions): (BedrockPlugin | (_react_native_bedrock_cli.BedrockPluginCore | Promise<_react_native_bedrock_cli.BedrockPluginCore>)[])[];
14
-
15
- export { type AppsInTossWebPluginOptions, appsInTossWeb };
@@ -1,15 +0,0 @@
1
- import * as _react_native_bedrock_cli from '@react-native-bedrock/cli';
2
- import { Permission } from '@apps-in-toss/framework/plugins';
3
- import { BedrockPlugin } from 'react-native-bedrock/config';
4
-
5
- interface AppsInTossWebPluginOptions {
6
- port: number;
7
- commands: {
8
- dev: string;
9
- build: string;
10
- };
11
- permissions: Permission[];
12
- }
13
- declare function appsInTossWeb(options: AppsInTossWebPluginOptions): (BedrockPlugin | (_react_native_bedrock_cli.BedrockPluginCore | Promise<_react_native_bedrock_cli.BedrockPluginCore>)[])[];
14
-
15
- export { type AppsInTossWebPluginOptions, appsInTossWeb };
@@ -1,11 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import {
3
- appsInTossWeb,
4
- init_esm_shims
5
- } from "../chunk-CH3CIAIW.js";
6
-
7
- // src/plugins/index.ts
8
- init_esm_shims();
9
- export {
10
- appsInTossWeb
11
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
package/dist/share.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "targets": {
7
- "ie": 11
8
- }
9
- }
10
- ],
11
- ["@babel/preset-typescript"],
12
- [
13
- "@babel/preset-react",
14
- {
15
- "runtime": "automatic"
16
- }
17
- ]
18
- ],
19
- "plugins": [
20
- ["@apps-in-toss/babel-plugin-json", { "jsonPath": "./.bedrock/metadata.json", "identifierName": "Ait" }],
21
- ["@babel/plugin-transform-flow-strip-types"],
22
- [
23
- "@babel/plugin-proposal-class-properties",
24
- {
25
- "loose": true
26
- }
27
- ],
28
- [
29
- "@babel/plugin-proposal-private-property-in-object",
30
- {
31
- "loose": true
32
- }
33
- ],
34
- [
35
- "@babel/plugin-proposal-private-methods",
36
- {
37
- "loose": true
38
- }
39
- ]
40
- ]
41
- }
@@ -1,4 +0,0 @@
1
- global.__bedrock = global.__bedrock || {};
2
- global.__bedrock.shared = { buildNumber: "00000000" };
3
- global.__bedrock.apps = global.__bedrock.apps || {};
4
- global.__bedrock.apps["ping-pong"] = { buildNumber: "00000000" };
@@ -1,8 +0,0 @@
1
- declare global {
2
- const Ait: {
3
- appName: string;
4
- webPort: number;
5
- };
6
- }
7
-
8
- export {};
@@ -1,10 +0,0 @@
1
- const files = new Map();
2
-
3
- files.set('./index.tsx', require('./pages/index.tsx'));
4
- files.set('./_404.tsx', require('./pages/_404.tsx'));
5
-
6
- export function context(id: string) {
7
- return files.get(id);
8
- }
9
-
10
- context.keys = () => Array.from(files.keys());
@@ -1,4 +0,0 @@
1
- import { register } from 'react-native-bedrock';
2
- import App from './src/_app';
3
-
4
- register(App);
@@ -1 +0,0 @@
1
- export { default } from './index';
@@ -1,10 +0,0 @@
1
- import { WebView } from '@apps-in-toss/framework';
2
- import { View } from 'react-native';
3
-
4
- export default function Index() {
5
- return (
6
- <View style={{ flex: 1 }}>
7
- <WebView style={{ flex: 1 }} localhostPort={Ait.webPort} />
8
- </View>
9
- );
10
- }
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- reactNativePath: require('path').dirname(require.resolve('react-native/package.json')),
3
- };
@@ -1,12 +0,0 @@
1
- import { type PropsWithChildren } from 'react';
2
- import { Bedrock, type InitialProps } from 'react-native-bedrock';
3
- import { context } from '../context';
4
-
5
- function AppContainer({ children }: PropsWithChildren<InitialProps>) {
6
- return <>{children}</>;
7
- }
8
-
9
- export default Bedrock.registerApp(AppContainer, {
10
- appName: Ait.appName, // this auto replace appName to Ait.appName
11
- context,
12
- });
File without changes
File without changes
File without changes
File without changes