@wavemaker/rn-codegen 11.14.1-31.647762 → 11.14.1-33.647787
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/npm-shrinkwrap.json +35 -35
- package/package-lock.json +35 -35
- package/package.json +2 -2
- package/src/app.generator.js +58 -1
- package/src/app.generator.js.map +1 -1
- package/src/templates/bootstrap.template +3 -0
- package/src/templates/component/component.template +1 -0
- package/src/templates/package.web.json +3 -3
- package/src/templates/project/package.json +3 -3
- package/src/templates/project/plugins/expo-pull-to-refresh/android/build.gradle +15 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/android/src/main/java/expo/modules/pulltorefresh/ExpoPullToRefreshModule.kt +21 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/android/src/main/java/expo/modules/pulltorefresh/ExpoPullToRefreshView.kt +221 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/expo-module.config.json +16 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/ios/ExpoPullToRefresh.podspec +24 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/ios/ExpoPullToRefreshControlModule.swift +17 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/ios/ExpoPullToRefreshControlView.swift +92 -0
- package/src/templates/project/plugins/expo-pull-to-refresh/package.json +15 -0
- package/src/transpile/components/page/page.transformer.js +11 -1
- package/src/transpile/components/page/page.transformer.js.map +1 -1
- package/src/transpile/property/property-parser.js +1 -0
- package/src/transpile/property/property-parser.js.map +1 -1
- package/src/transpile/style.transformer.js +1 -0
- package/src/transpile/style.transformer.js.map +1 -1
- package/src/transpile/transpile.js +10 -1
- package/src/transpile/transpile.js.map +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/rn-codegen",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-33.647787",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/rn-codegen",
|
|
9
|
-
"version": "11.14.1-
|
|
9
|
+
"version": "11.14.1-33.647787",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/node": "18.11.10",
|
|
19
19
|
"@types/prettier": "2.7.1",
|
|
20
20
|
"@types/yargs": "17.0.15",
|
|
21
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
21
|
+
"@wavemaker/foundation-css": "11.14.1-33.647787",
|
|
22
22
|
"adm-zip": "0.5.9",
|
|
23
23
|
"axios": "1.8.3",
|
|
24
24
|
"clean-css": "5.1.5",
|
|
@@ -155,15 +155,15 @@
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"node_modules/@babel/core/node_modules/@babel/traverse": {
|
|
158
|
-
"version": "7.29.
|
|
159
|
-
"integrity": "sha512-
|
|
158
|
+
"version": "7.29.10",
|
|
159
|
+
"integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",
|
|
160
160
|
"dev": true,
|
|
161
161
|
"license": "MIT",
|
|
162
162
|
"dependencies": {
|
|
163
163
|
"@babel/code-frame": "^7.29.7",
|
|
164
164
|
"@babel/generator": "^7.29.8",
|
|
165
165
|
"@babel/helper-globals": "^7.29.7",
|
|
166
|
-
"@babel/parser": "^7.29.
|
|
166
|
+
"@babel/parser": "^7.29.9",
|
|
167
167
|
"@babel/template": "^7.29.7",
|
|
168
168
|
"@babel/types": "^7.29.8",
|
|
169
169
|
"debug": "^4.3.1"
|
|
@@ -316,15 +316,15 @@
|
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
"node_modules/@babel/helper-module-imports/node_modules/@babel/traverse": {
|
|
319
|
-
"version": "7.29.
|
|
320
|
-
"integrity": "sha512-
|
|
319
|
+
"version": "7.29.10",
|
|
320
|
+
"integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",
|
|
321
321
|
"dev": true,
|
|
322
322
|
"license": "MIT",
|
|
323
323
|
"dependencies": {
|
|
324
324
|
"@babel/code-frame": "^7.29.7",
|
|
325
325
|
"@babel/generator": "^7.29.8",
|
|
326
326
|
"@babel/helper-globals": "^7.29.7",
|
|
327
|
-
"@babel/parser": "^7.29.
|
|
327
|
+
"@babel/parser": "^7.29.9",
|
|
328
328
|
"@babel/template": "^7.29.7",
|
|
329
329
|
"@babel/types": "^7.29.8",
|
|
330
330
|
"debug": "^4.3.1"
|
|
@@ -394,15 +394,15 @@
|
|
|
394
394
|
}
|
|
395
395
|
},
|
|
396
396
|
"node_modules/@babel/helper-module-transforms/node_modules/@babel/traverse": {
|
|
397
|
-
"version": "7.29.
|
|
398
|
-
"integrity": "sha512-
|
|
397
|
+
"version": "7.29.10",
|
|
398
|
+
"integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",
|
|
399
399
|
"dev": true,
|
|
400
400
|
"license": "MIT",
|
|
401
401
|
"dependencies": {
|
|
402
402
|
"@babel/code-frame": "^7.29.7",
|
|
403
403
|
"@babel/generator": "^7.29.8",
|
|
404
404
|
"@babel/helper-globals": "^7.29.7",
|
|
405
|
-
"@babel/parser": "^7.29.
|
|
405
|
+
"@babel/parser": "^7.29.9",
|
|
406
406
|
"@babel/template": "^7.29.7",
|
|
407
407
|
"@babel/types": "^7.29.8",
|
|
408
408
|
"debug": "^4.3.1"
|
|
@@ -469,13 +469,13 @@
|
|
|
469
469
|
}
|
|
470
470
|
},
|
|
471
471
|
"node_modules/@babel/helpers": {
|
|
472
|
-
"version": "7.29.
|
|
473
|
-
"integrity": "sha512-
|
|
472
|
+
"version": "7.29.10",
|
|
473
|
+
"integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==",
|
|
474
474
|
"dev": true,
|
|
475
475
|
"license": "MIT",
|
|
476
476
|
"dependencies": {
|
|
477
477
|
"@babel/template": "^7.29.7",
|
|
478
|
-
"@babel/types": "^7.29.
|
|
478
|
+
"@babel/types": "^7.29.8"
|
|
479
479
|
},
|
|
480
480
|
"engines": {
|
|
481
481
|
"node": ">=6.9.0"
|
|
@@ -1491,8 +1491,8 @@
|
|
|
1491
1491
|
}
|
|
1492
1492
|
},
|
|
1493
1493
|
"node_modules/@wavemaker/foundation-css": {
|
|
1494
|
-
"version": "11.14.1-
|
|
1495
|
-
"integrity": "sha512-
|
|
1494
|
+
"version": "11.14.1-33.647787",
|
|
1495
|
+
"integrity": "sha512-cAnL/tfZ2fyncG7walkg+dUTPTvfyWoNaeGVe1eIF1VGuT08S1spA6WhLF7baAgW8fDpsFO2mHGpw/x3jzF1zg==",
|
|
1496
1496
|
"license": "ISC",
|
|
1497
1497
|
"dependencies": {
|
|
1498
1498
|
"chroma-js": "^3.1.2"
|
|
@@ -1786,8 +1786,8 @@
|
|
|
1786
1786
|
"license": "MIT"
|
|
1787
1787
|
},
|
|
1788
1788
|
"node_modules/baseline-browser-mapping": {
|
|
1789
|
-
"version": "2.11.
|
|
1790
|
-
"integrity": "sha512-
|
|
1789
|
+
"version": "2.11.27",
|
|
1790
|
+
"integrity": "sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==",
|
|
1791
1791
|
"dev": true,
|
|
1792
1792
|
"license": "Apache-2.0",
|
|
1793
1793
|
"bin": {
|
|
@@ -1837,8 +1837,8 @@
|
|
|
1837
1837
|
}
|
|
1838
1838
|
},
|
|
1839
1839
|
"node_modules/browserslist": {
|
|
1840
|
-
"version": "4.29.
|
|
1841
|
-
"integrity": "sha512
|
|
1840
|
+
"version": "4.29.3",
|
|
1841
|
+
"integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==",
|
|
1842
1842
|
"dev": true,
|
|
1843
1843
|
"funding": [
|
|
1844
1844
|
{
|
|
@@ -1857,7 +1857,7 @@
|
|
|
1857
1857
|
"license": "MIT",
|
|
1858
1858
|
"dependencies": {
|
|
1859
1859
|
"baseline-browser-mapping": "^2.11.26",
|
|
1860
|
-
"caniuse-lite": "^1.0.
|
|
1860
|
+
"caniuse-lite": "^1.0.30001813",
|
|
1861
1861
|
"electron-to-chromium": "^1.5.439",
|
|
1862
1862
|
"node-releases": "^2.0.57",
|
|
1863
1863
|
"update-browserslist-db": "^1.3.3"
|
|
@@ -1966,8 +1966,8 @@
|
|
|
1966
1966
|
}
|
|
1967
1967
|
},
|
|
1968
1968
|
"node_modules/caniuse-lite": {
|
|
1969
|
-
"version": "1.0.
|
|
1970
|
-
"integrity": "sha512-
|
|
1969
|
+
"version": "1.0.30001815",
|
|
1970
|
+
"integrity": "sha512-uDybUEyfgbyJJ93J1vikTylBX31AkdVYeVPeffMQpf8XN7hSfr0oZOn4VFOIMNvtU5+rHvC5Udg2TgtJKHm23Q==",
|
|
1971
1971
|
"dev": true,
|
|
1972
1972
|
"funding": [
|
|
1973
1973
|
{
|
|
@@ -2450,8 +2450,8 @@
|
|
|
2450
2450
|
}
|
|
2451
2451
|
},
|
|
2452
2452
|
"node_modules/electron-to-chromium": {
|
|
2453
|
-
"version": "1.5.
|
|
2454
|
-
"integrity": "sha512-
|
|
2453
|
+
"version": "1.5.451",
|
|
2454
|
+
"integrity": "sha512-vUNKPrUzw8ByEMOxloq0a71iD/mPuPxVkbDm3G5YhnxTzOw/I6qAg2MUS0cYj/c267lWmw26yW4Vv7foxTxPLg==",
|
|
2455
2455
|
"dev": true,
|
|
2456
2456
|
"license": "ISC"
|
|
2457
2457
|
},
|
|
@@ -2707,8 +2707,8 @@
|
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
2709
|
"node_modules/follow-redirects": {
|
|
2710
|
-
"version": "1.16.
|
|
2711
|
-
"integrity": "sha512-
|
|
2710
|
+
"version": "1.16.1",
|
|
2711
|
+
"integrity": "sha512-FNvFGzoMLWmE6Yj9spb/zjd7yiNCHiAW9/Tg9CXrQ8wuu32HtlJOwWO11OJafl5FfY3DxTdQ0vj42zU1kvv5jg==",
|
|
2712
2712
|
"funding": [
|
|
2713
2713
|
{
|
|
2714
2714
|
"type": "individual",
|
|
@@ -4756,13 +4756,13 @@
|
|
|
4756
4756
|
}
|
|
4757
4757
|
},
|
|
4758
4758
|
"node_modules/resolve": {
|
|
4759
|
-
"version": "1.22.
|
|
4760
|
-
"integrity": "sha512-
|
|
4759
|
+
"version": "1.22.13",
|
|
4760
|
+
"integrity": "sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==",
|
|
4761
4761
|
"dev": true,
|
|
4762
4762
|
"license": "MIT",
|
|
4763
4763
|
"dependencies": {
|
|
4764
4764
|
"es-errors": "^1.3.0",
|
|
4765
|
-
"is-core-module": "^2.
|
|
4765
|
+
"is-core-module": "^2.17.0",
|
|
4766
4766
|
"path-parse": "^1.0.7",
|
|
4767
4767
|
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
4768
4768
|
},
|
|
@@ -5000,8 +5000,8 @@
|
|
|
5000
5000
|
}
|
|
5001
5001
|
},
|
|
5002
5002
|
"node_modules/source-map-js": {
|
|
5003
|
-
"version": "1.2.
|
|
5004
|
-
"integrity": "sha512-
|
|
5003
|
+
"version": "1.2.2",
|
|
5004
|
+
"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
|
|
5005
5005
|
"license": "BSD-3-Clause",
|
|
5006
5006
|
"engines": {
|
|
5007
5007
|
"node": ">=0.10.0"
|
|
@@ -5390,8 +5390,8 @@
|
|
|
5390
5390
|
}
|
|
5391
5391
|
},
|
|
5392
5392
|
"node_modules/update-browserslist-db": {
|
|
5393
|
-
"version": "1.3.
|
|
5394
|
-
"integrity": "sha512-
|
|
5393
|
+
"version": "1.3.4",
|
|
5394
|
+
"integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==",
|
|
5395
5395
|
"dev": true,
|
|
5396
5396
|
"funding": [
|
|
5397
5397
|
{
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/rn-codegen",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-33.647787",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker/rn-codegen",
|
|
9
|
-
"version": "11.14.1-
|
|
9
|
+
"version": "11.14.1-33.647787",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@types/node": "18.11.10",
|
|
19
19
|
"@types/prettier": "2.7.1",
|
|
20
20
|
"@types/yargs": "17.0.15",
|
|
21
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
21
|
+
"@wavemaker/foundation-css": "11.14.1-33.647787",
|
|
22
22
|
"adm-zip": "0.5.9",
|
|
23
23
|
"axios": "1.8.3",
|
|
24
24
|
"clean-css": "5.1.5",
|
|
@@ -155,15 +155,15 @@
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"node_modules/@babel/core/node_modules/@babel/traverse": {
|
|
158
|
-
"version": "7.29.
|
|
159
|
-
"integrity": "sha512-
|
|
158
|
+
"version": "7.29.10",
|
|
159
|
+
"integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",
|
|
160
160
|
"dev": true,
|
|
161
161
|
"license": "MIT",
|
|
162
162
|
"dependencies": {
|
|
163
163
|
"@babel/code-frame": "^7.29.7",
|
|
164
164
|
"@babel/generator": "^7.29.8",
|
|
165
165
|
"@babel/helper-globals": "^7.29.7",
|
|
166
|
-
"@babel/parser": "^7.29.
|
|
166
|
+
"@babel/parser": "^7.29.9",
|
|
167
167
|
"@babel/template": "^7.29.7",
|
|
168
168
|
"@babel/types": "^7.29.8",
|
|
169
169
|
"debug": "^4.3.1"
|
|
@@ -316,15 +316,15 @@
|
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
"node_modules/@babel/helper-module-imports/node_modules/@babel/traverse": {
|
|
319
|
-
"version": "7.29.
|
|
320
|
-
"integrity": "sha512-
|
|
319
|
+
"version": "7.29.10",
|
|
320
|
+
"integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",
|
|
321
321
|
"dev": true,
|
|
322
322
|
"license": "MIT",
|
|
323
323
|
"dependencies": {
|
|
324
324
|
"@babel/code-frame": "^7.29.7",
|
|
325
325
|
"@babel/generator": "^7.29.8",
|
|
326
326
|
"@babel/helper-globals": "^7.29.7",
|
|
327
|
-
"@babel/parser": "^7.29.
|
|
327
|
+
"@babel/parser": "^7.29.9",
|
|
328
328
|
"@babel/template": "^7.29.7",
|
|
329
329
|
"@babel/types": "^7.29.8",
|
|
330
330
|
"debug": "^4.3.1"
|
|
@@ -394,15 +394,15 @@
|
|
|
394
394
|
}
|
|
395
395
|
},
|
|
396
396
|
"node_modules/@babel/helper-module-transforms/node_modules/@babel/traverse": {
|
|
397
|
-
"version": "7.29.
|
|
398
|
-
"integrity": "sha512-
|
|
397
|
+
"version": "7.29.10",
|
|
398
|
+
"integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",
|
|
399
399
|
"dev": true,
|
|
400
400
|
"license": "MIT",
|
|
401
401
|
"dependencies": {
|
|
402
402
|
"@babel/code-frame": "^7.29.7",
|
|
403
403
|
"@babel/generator": "^7.29.8",
|
|
404
404
|
"@babel/helper-globals": "^7.29.7",
|
|
405
|
-
"@babel/parser": "^7.29.
|
|
405
|
+
"@babel/parser": "^7.29.9",
|
|
406
406
|
"@babel/template": "^7.29.7",
|
|
407
407
|
"@babel/types": "^7.29.8",
|
|
408
408
|
"debug": "^4.3.1"
|
|
@@ -469,13 +469,13 @@
|
|
|
469
469
|
}
|
|
470
470
|
},
|
|
471
471
|
"node_modules/@babel/helpers": {
|
|
472
|
-
"version": "7.29.
|
|
473
|
-
"integrity": "sha512-
|
|
472
|
+
"version": "7.29.10",
|
|
473
|
+
"integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==",
|
|
474
474
|
"dev": true,
|
|
475
475
|
"license": "MIT",
|
|
476
476
|
"dependencies": {
|
|
477
477
|
"@babel/template": "^7.29.7",
|
|
478
|
-
"@babel/types": "^7.29.
|
|
478
|
+
"@babel/types": "^7.29.8"
|
|
479
479
|
},
|
|
480
480
|
"engines": {
|
|
481
481
|
"node": ">=6.9.0"
|
|
@@ -1491,8 +1491,8 @@
|
|
|
1491
1491
|
}
|
|
1492
1492
|
},
|
|
1493
1493
|
"node_modules/@wavemaker/foundation-css": {
|
|
1494
|
-
"version": "11.14.1-
|
|
1495
|
-
"integrity": "sha512-
|
|
1494
|
+
"version": "11.14.1-33.647787",
|
|
1495
|
+
"integrity": "sha512-cAnL/tfZ2fyncG7walkg+dUTPTvfyWoNaeGVe1eIF1VGuT08S1spA6WhLF7baAgW8fDpsFO2mHGpw/x3jzF1zg==",
|
|
1496
1496
|
"license": "ISC",
|
|
1497
1497
|
"dependencies": {
|
|
1498
1498
|
"chroma-js": "^3.1.2"
|
|
@@ -1786,8 +1786,8 @@
|
|
|
1786
1786
|
"license": "MIT"
|
|
1787
1787
|
},
|
|
1788
1788
|
"node_modules/baseline-browser-mapping": {
|
|
1789
|
-
"version": "2.11.
|
|
1790
|
-
"integrity": "sha512-
|
|
1789
|
+
"version": "2.11.27",
|
|
1790
|
+
"integrity": "sha512-ElY12DaROGuan+lMmZ8Cvo/ZUbXPe7Enc/9VU/b1T3Kp4dwytRcNdR8DoSJN5SNJT/CuvcCA0DHDVmMOCePdRQ==",
|
|
1791
1791
|
"dev": true,
|
|
1792
1792
|
"license": "Apache-2.0",
|
|
1793
1793
|
"bin": {
|
|
@@ -1837,8 +1837,8 @@
|
|
|
1837
1837
|
}
|
|
1838
1838
|
},
|
|
1839
1839
|
"node_modules/browserslist": {
|
|
1840
|
-
"version": "4.29.
|
|
1841
|
-
"integrity": "sha512
|
|
1840
|
+
"version": "4.29.3",
|
|
1841
|
+
"integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==",
|
|
1842
1842
|
"dev": true,
|
|
1843
1843
|
"funding": [
|
|
1844
1844
|
{
|
|
@@ -1857,7 +1857,7 @@
|
|
|
1857
1857
|
"license": "MIT",
|
|
1858
1858
|
"dependencies": {
|
|
1859
1859
|
"baseline-browser-mapping": "^2.11.26",
|
|
1860
|
-
"caniuse-lite": "^1.0.
|
|
1860
|
+
"caniuse-lite": "^1.0.30001813",
|
|
1861
1861
|
"electron-to-chromium": "^1.5.439",
|
|
1862
1862
|
"node-releases": "^2.0.57",
|
|
1863
1863
|
"update-browserslist-db": "^1.3.3"
|
|
@@ -1966,8 +1966,8 @@
|
|
|
1966
1966
|
}
|
|
1967
1967
|
},
|
|
1968
1968
|
"node_modules/caniuse-lite": {
|
|
1969
|
-
"version": "1.0.
|
|
1970
|
-
"integrity": "sha512-
|
|
1969
|
+
"version": "1.0.30001815",
|
|
1970
|
+
"integrity": "sha512-uDybUEyfgbyJJ93J1vikTylBX31AkdVYeVPeffMQpf8XN7hSfr0oZOn4VFOIMNvtU5+rHvC5Udg2TgtJKHm23Q==",
|
|
1971
1971
|
"dev": true,
|
|
1972
1972
|
"funding": [
|
|
1973
1973
|
{
|
|
@@ -2450,8 +2450,8 @@
|
|
|
2450
2450
|
}
|
|
2451
2451
|
},
|
|
2452
2452
|
"node_modules/electron-to-chromium": {
|
|
2453
|
-
"version": "1.5.
|
|
2454
|
-
"integrity": "sha512-
|
|
2453
|
+
"version": "1.5.451",
|
|
2454
|
+
"integrity": "sha512-vUNKPrUzw8ByEMOxloq0a71iD/mPuPxVkbDm3G5YhnxTzOw/I6qAg2MUS0cYj/c267lWmw26yW4Vv7foxTxPLg==",
|
|
2455
2455
|
"dev": true,
|
|
2456
2456
|
"license": "ISC"
|
|
2457
2457
|
},
|
|
@@ -2707,8 +2707,8 @@
|
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
2709
|
"node_modules/follow-redirects": {
|
|
2710
|
-
"version": "1.16.
|
|
2711
|
-
"integrity": "sha512-
|
|
2710
|
+
"version": "1.16.1",
|
|
2711
|
+
"integrity": "sha512-FNvFGzoMLWmE6Yj9spb/zjd7yiNCHiAW9/Tg9CXrQ8wuu32HtlJOwWO11OJafl5FfY3DxTdQ0vj42zU1kvv5jg==",
|
|
2712
2712
|
"funding": [
|
|
2713
2713
|
{
|
|
2714
2714
|
"type": "individual",
|
|
@@ -4756,13 +4756,13 @@
|
|
|
4756
4756
|
}
|
|
4757
4757
|
},
|
|
4758
4758
|
"node_modules/resolve": {
|
|
4759
|
-
"version": "1.22.
|
|
4760
|
-
"integrity": "sha512-
|
|
4759
|
+
"version": "1.22.13",
|
|
4760
|
+
"integrity": "sha512-Dj/cW9zBV2aRj6XzCxuGIs3ESZKv02jixne3q6jFZYZ3/Tg09gHHviSMDL4kObh9pqSahdRHEnDoaP2gn8YLhA==",
|
|
4761
4761
|
"dev": true,
|
|
4762
4762
|
"license": "MIT",
|
|
4763
4763
|
"dependencies": {
|
|
4764
4764
|
"es-errors": "^1.3.0",
|
|
4765
|
-
"is-core-module": "^2.
|
|
4765
|
+
"is-core-module": "^2.17.0",
|
|
4766
4766
|
"path-parse": "^1.0.7",
|
|
4767
4767
|
"supports-preserve-symlinks-flag": "^1.0.0"
|
|
4768
4768
|
},
|
|
@@ -5000,8 +5000,8 @@
|
|
|
5000
5000
|
}
|
|
5001
5001
|
},
|
|
5002
5002
|
"node_modules/source-map-js": {
|
|
5003
|
-
"version": "1.2.
|
|
5004
|
-
"integrity": "sha512-
|
|
5003
|
+
"version": "1.2.2",
|
|
5004
|
+
"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
|
|
5005
5005
|
"license": "BSD-3-Clause",
|
|
5006
5006
|
"engines": {
|
|
5007
5007
|
"node": ">=0.10.0"
|
|
@@ -5390,8 +5390,8 @@
|
|
|
5390
5390
|
}
|
|
5391
5391
|
},
|
|
5392
5392
|
"node_modules/update-browserslist-db": {
|
|
5393
|
-
"version": "1.3.
|
|
5394
|
-
"integrity": "sha512-
|
|
5393
|
+
"version": "1.3.4",
|
|
5394
|
+
"integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==",
|
|
5395
5395
|
"dev": true,
|
|
5396
5396
|
"funding": [
|
|
5397
5397
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/rn-codegen",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-33.647787",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"puppeteer": "5.4.0",
|
|
43
43
|
"rimraf": "3.0.2",
|
|
44
44
|
"yargs": "16.2.0",
|
|
45
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
45
|
+
"@wavemaker/foundation-css": "11.14.1-33.647787"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/adm-zip": "0.5.0",
|
package/src/app.generator.js
CHANGED
|
@@ -672,7 +672,9 @@ class AppGenerator {
|
|
|
672
672
|
return this.themeService.generateStudioStyles(styles);
|
|
673
673
|
}
|
|
674
674
|
async generateComponent(info, type, name) {
|
|
675
|
-
|
|
675
|
+
// Also regenerate on an app-config change, not just a page edit: a page's cascaded
|
|
676
|
+
// pulltorefresh value (page.transformer.ts) comes from that config too.
|
|
677
|
+
if (this.incBuilder && !this.incBuilder.isFragmentModified(name) && !this.incBuilder.isConfigModified()) {
|
|
676
678
|
return Promise.resolve();
|
|
677
679
|
}
|
|
678
680
|
if (this.incBuilder) {
|
|
@@ -713,6 +715,15 @@ class AppGenerator {
|
|
|
713
715
|
});
|
|
714
716
|
}
|
|
715
717
|
const imports = (0, lodash_1.sortBy)((0, lodash_1.uniqBy)(transpiledOutput.imports, i => i.name + i.from), i => i.name);
|
|
718
|
+
// Pull-to-refresh invokes this page's flagged variables plus the flagged app variables it references.
|
|
719
|
+
const appVariables = await Promise.resolve(this.projectService.getAppVariables()).catch(() => ({}));
|
|
720
|
+
const pageSource = `${info.markup || ''}\n${info.script || ''}`;
|
|
721
|
+
const pullToRefreshVariables = Array.from(new Set([
|
|
722
|
+
...Object.values(variables).filter((v) => v.pullToRefreshUpdate).map((v) => v.name),
|
|
723
|
+
...Object.values(appVariables || {})
|
|
724
|
+
.filter((v) => v.pullToRefreshUpdate && new RegExp(`\\bVariables\\.${(0, lodash_1.escapeRegExp)(v.name)}\\b`).test(pageSource))
|
|
725
|
+
.map((v) => v.name),
|
|
726
|
+
]));
|
|
716
727
|
const component = COMPONENT_TEMPLATE({
|
|
717
728
|
name: name,
|
|
718
729
|
type: type,
|
|
@@ -725,6 +736,7 @@ class AppGenerator {
|
|
|
725
736
|
startUpVariables: Object.values(variables).filter((v) => v.startUpdate && v.category !== 'wm.TimerVariable').map((v) => v.name),
|
|
726
737
|
startUpActions: Object.values(variables).filter((v) => v.startUpdate && v.category === 'wm.TimerVariable').map((v) => v.name),
|
|
727
738
|
autoUpdateVariables: Object.values(variables).filter((v) => v.autoUpdate || ((v.category === 'wm.Variable' || v.category === 'wm.LiveVariable') && v.dataBinding && v.dataBinding.length)).map((v) => v.name),
|
|
739
|
+
pullToRefreshVariables: pullToRefreshVariables,
|
|
728
740
|
eagerImports: imports.filter(i => !i.lazy),
|
|
729
741
|
lazyImports: imports.filter(i => i.lazy)
|
|
730
742
|
});
|
|
@@ -1514,6 +1526,50 @@ class AppGenerator {
|
|
|
1514
1526
|
}
|
|
1515
1527
|
fs_extra_1.default.writeJsonSync(appJsonPath, appJson, { spaces: 2 });
|
|
1516
1528
|
}
|
|
1529
|
+
// Registered as a file: dependency (a native module, unlike expo-screen-capture-plugin's config plugin) so Expo autolinking discovers it.
|
|
1530
|
+
async copyPullToRefreshPluginIfNeeded() {
|
|
1531
|
+
const config = this.rnConfig;
|
|
1532
|
+
const packageJsonPath = `${this.projectPath}/package.json`;
|
|
1533
|
+
const pluginName = '@wavemaker/expo-pull-to-refresh';
|
|
1534
|
+
const pluginDestPath = `${this.projectPath}/plugins/expo-pull-to-refresh`;
|
|
1535
|
+
if (!fs_extra_1.default.existsSync(packageJsonPath)) {
|
|
1536
|
+
console.warn(`Warning: package.json not found at ${packageJsonPath}`);
|
|
1537
|
+
return;
|
|
1538
|
+
}
|
|
1539
|
+
const packageJson = fs_extra_1.default.readJsonSync(packageJsonPath);
|
|
1540
|
+
// Both flags: an animation alone with the feature off shouldn't ship the plugin.
|
|
1541
|
+
if ((config === null || config === void 0 ? void 0 : config.pulltorefresh) && (config === null || config === void 0 ? void 0 : config.pulltorefreshsource)) {
|
|
1542
|
+
const pluginSourcePath = __dirname + '/templates/project/plugins/expo-pull-to-refresh';
|
|
1543
|
+
if (!fs_extra_1.default.existsSync(pluginSourcePath)) {
|
|
1544
|
+
console.warn(`Warning: Pull to refresh plugin source not found at ${pluginSourcePath}`);
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
fs_extra_1.default.mkdirsSync(`${this.projectPath}/plugins`);
|
|
1548
|
+
fs_extra_1.default.copySync(pluginSourcePath, pluginDestPath);
|
|
1549
|
+
console.log(`Copied pull to refresh plugin to ${pluginDestPath}`);
|
|
1550
|
+
if (!packageJson.dependencies) {
|
|
1551
|
+
packageJson.dependencies = {};
|
|
1552
|
+
}
|
|
1553
|
+
if (packageJson.dependencies[pluginName] !== 'file:./plugins/expo-pull-to-refresh') {
|
|
1554
|
+
packageJson.dependencies[pluginName] = 'file:./plugins/expo-pull-to-refresh';
|
|
1555
|
+
console.log(`Added ${pluginName} to package.json`);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
else {
|
|
1559
|
+
if (fs_extra_1.default.existsSync(pluginDestPath)) {
|
|
1560
|
+
fs_extra_1.default.removeSync(pluginDestPath);
|
|
1561
|
+
const pluginsDir = `${this.projectPath}/plugins`;
|
|
1562
|
+
if (fs_extra_1.default.existsSync(pluginsDir) && fs_extra_1.default.readdirSync(pluginsDir).length === 0) {
|
|
1563
|
+
fs_extra_1.default.removeSync(pluginsDir);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
if (packageJson.dependencies && packageJson.dependencies[pluginName]) {
|
|
1567
|
+
delete packageJson.dependencies[pluginName];
|
|
1568
|
+
console.log(`Removed ${pluginName} from package.json`);
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
fs_extra_1.default.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 4));
|
|
1572
|
+
}
|
|
1517
1573
|
async addCustomPluginsToPackageJson() {
|
|
1518
1574
|
if (this.incBuilder) {
|
|
1519
1575
|
console.log(`Adding custom plugins.`);
|
|
@@ -1742,6 +1798,7 @@ class AppGenerator {
|
|
|
1742
1798
|
.then((build) => (build && this.prettify()))
|
|
1743
1799
|
.then(() => this.projectService.copyNpmPackages(this.projectPath))
|
|
1744
1800
|
.then(() => this.copyScreenCapturePluginIfNeeded())
|
|
1801
|
+
.then(() => this.copyPullToRefreshPluginIfNeeded())
|
|
1745
1802
|
.then(() => console.log('code generated at ' + this.projectPath));
|
|
1746
1803
|
}
|
|
1747
1804
|
generateFragment(name) {
|