@wavemaker-ai/react-runtime 1.0.0-rc.314 → 1.0.0-rc.317
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/actions/navigation-action.d.ts +1 -0
- package/actions/navigation-action.js +34 -9
- package/components/auth/RoleAuthGuard.d.ts +6 -0
- package/components/auth/RoleAuthGuard.js +65 -0
- package/components/basic/search/index.js +2 -1
- package/components/basic/search/providers.js +2 -2
- package/components/basic/tree/Components/TreeNodeComponent.d.ts +1 -1
- package/components/basic/tree/Components/TreeNodeComponent.js +14 -8
- package/components/basic/tree/hooks/useTreePersistedState.d.ts +3 -0
- package/components/basic/tree/hooks/useTreePersistedState.js +38 -0
- package/components/basic/tree/index.d.ts +1 -0
- package/components/basic/tree/index.js +105 -30
- package/components/basic/tree/props.d.ts +18 -1
- package/components/basic/tree/utils.d.ts +16 -1
- package/components/basic/tree/utils.js +111 -0
- package/components/chart/src/dataUtils.js +1 -1
- package/components/common/customTemplate/useCustomTemplate.js +1 -1
- package/components/container/layout-grid/grid-column/index.js +2 -1
- package/components/data/form/base-form/index.js +3 -1
- package/components/data/form/form-controller/withFormController.js +3 -7
- package/components/data/pagination/hooks/usePagination.js +0 -1
- package/components/data/table/index.js +5 -2
- package/components/data/table/utils/columnBuilder.d.ts +1 -1
- package/components/data/table/utils/columnBuilder.js +7 -4
- package/components/data/table/utils/crud-handlers.js +10 -10
- package/components/data/table/utils/index.d.ts +9 -8
- package/components/data/table/utils/index.js +73 -9
- package/components/layout/leftnav/index.js +21 -2
- package/components/layout/leftnav/props.d.ts +9 -0
- package/components/layout/leftnav/utils/page-class-util.d.ts +9 -0
- package/components/layout/leftnav/utils/page-class-util.js +28 -0
- package/components/navigation/popover/index.js +1 -0
- package/components/page/index.js +22 -6
- package/components/page/page-context.d.ts +4 -0
- package/components/page/page-context.js +5 -0
- package/components/page/partial-container/index.js +1 -4
- package/higherOrder/BaseApp.js +4 -3
- package/higherOrder/BaseAppProps.d.ts +1 -0
- package/higherOrder/BasePage.js +0 -10
- package/hooks/useDataSourceSubscription.js +1 -1
- package/hooks/useHttp.js +0 -4
- package/package-lock.json +103 -103
- package/package.json +3 -3
- package/runtime-dynamic/app-initializer.js +1 -1
- package/runtime-dynamic/components/use-dynamic-component.js +17 -31
- package/runtime-dynamic/factories/build-base-page-like-component.d.ts +1 -1
- package/runtime-dynamic/factories/dynamic-component.js +9 -1
- package/runtime-dynamic/factories/prefab-factory.d.ts +1 -1
- package/runtime-dynamic/factories/utils.d.ts +1 -1
- package/runtime-dynamic/services/component-ref-provider.d.ts +18 -3
- package/runtime-dynamic/services/component-ref-provider.js +15 -38
- package/runtime-dynamic/services/index.d.ts +2 -3
- package/runtime-dynamic/services/index.js +1 -18
- package/runtime-dynamic/services/resource-manager.d.ts +2 -3
- package/runtime-dynamic/services/resource-manager.js +5 -15
- package/runtime-dynamic/services/script-executor.js +1 -7
- package/runtime-dynamic/services/variable-registry.js +0 -4
- package/utils/attr.js +2 -9
- package/utils/custom-expression/index.js +4 -1
- package/utils/custom-expression/parser.js +4 -2
- package/utils/state-persistance.d.ts +1 -1
- package/runtime-dynamic/services/cache.d.ts +0 -29
- package/runtime-dynamic/services/cache.js +0 -51
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker-ai/react-runtime",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.317",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@wavemaker-ai/react-runtime",
|
|
9
|
-
"version": "1.0.0-rc.
|
|
9
|
+
"version": "1.0.0-rc.317",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@base-ui-components/react": "1.0.0-alpha.8",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@mui/x-date-pickers": "8.5.3",
|
|
29
29
|
"@reduxjs/toolkit": "2.9.1",
|
|
30
30
|
"@tanstack/react-table": "8.21.3",
|
|
31
|
-
"@wavemaker-ai/react-codegen": "1.0.0-rc.
|
|
31
|
+
"@wavemaker-ai/react-codegen": "1.0.0-rc.317",
|
|
32
32
|
"@wavemaker/nvd3": "1.8.16",
|
|
33
33
|
"axios": "1.15.1",
|
|
34
34
|
"d3": "7.8.5",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@types/react-dom": "19.2.3",
|
|
68
68
|
"@vitejs/plugin-react": "5.1.4",
|
|
69
69
|
"@vitest/coverage-v8": "3.2.4",
|
|
70
|
-
"@wavemaker-ai/variables": "1.0.0-rc.
|
|
70
|
+
"@wavemaker-ai/variables": "1.0.0-rc.317",
|
|
71
71
|
"axe-core": "4.11.1",
|
|
72
72
|
"esbuild": "0.27.5",
|
|
73
73
|
"eslint": "9",
|
|
@@ -3256,8 +3256,8 @@
|
|
|
3256
3256
|
"license": "MIT"
|
|
3257
3257
|
},
|
|
3258
3258
|
"node_modules/@rollup/rollup-android-arm-eabi": {
|
|
3259
|
-
"version": "4.61.
|
|
3260
|
-
"integrity": "sha512-
|
|
3259
|
+
"version": "4.61.1",
|
|
3260
|
+
"integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==",
|
|
3261
3261
|
"cpu": [
|
|
3262
3262
|
"arm"
|
|
3263
3263
|
],
|
|
@@ -3269,8 +3269,8 @@
|
|
|
3269
3269
|
]
|
|
3270
3270
|
},
|
|
3271
3271
|
"node_modules/@rollup/rollup-android-arm64": {
|
|
3272
|
-
"version": "4.61.
|
|
3273
|
-
"integrity": "sha512-
|
|
3272
|
+
"version": "4.61.1",
|
|
3273
|
+
"integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==",
|
|
3274
3274
|
"cpu": [
|
|
3275
3275
|
"arm64"
|
|
3276
3276
|
],
|
|
@@ -3282,8 +3282,8 @@
|
|
|
3282
3282
|
]
|
|
3283
3283
|
},
|
|
3284
3284
|
"node_modules/@rollup/rollup-darwin-arm64": {
|
|
3285
|
-
"version": "4.61.
|
|
3286
|
-
"integrity": "sha512-
|
|
3285
|
+
"version": "4.61.1",
|
|
3286
|
+
"integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==",
|
|
3287
3287
|
"cpu": [
|
|
3288
3288
|
"arm64"
|
|
3289
3289
|
],
|
|
@@ -3295,8 +3295,8 @@
|
|
|
3295
3295
|
]
|
|
3296
3296
|
},
|
|
3297
3297
|
"node_modules/@rollup/rollup-darwin-x64": {
|
|
3298
|
-
"version": "4.61.
|
|
3299
|
-
"integrity": "sha512
|
|
3298
|
+
"version": "4.61.1",
|
|
3299
|
+
"integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==",
|
|
3300
3300
|
"cpu": [
|
|
3301
3301
|
"x64"
|
|
3302
3302
|
],
|
|
@@ -3308,8 +3308,8 @@
|
|
|
3308
3308
|
]
|
|
3309
3309
|
},
|
|
3310
3310
|
"node_modules/@rollup/rollup-freebsd-arm64": {
|
|
3311
|
-
"version": "4.61.
|
|
3312
|
-
"integrity": "sha512-
|
|
3311
|
+
"version": "4.61.1",
|
|
3312
|
+
"integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==",
|
|
3313
3313
|
"cpu": [
|
|
3314
3314
|
"arm64"
|
|
3315
3315
|
],
|
|
@@ -3321,8 +3321,8 @@
|
|
|
3321
3321
|
]
|
|
3322
3322
|
},
|
|
3323
3323
|
"node_modules/@rollup/rollup-freebsd-x64": {
|
|
3324
|
-
"version": "4.61.
|
|
3325
|
-
"integrity": "sha512-
|
|
3324
|
+
"version": "4.61.1",
|
|
3325
|
+
"integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==",
|
|
3326
3326
|
"cpu": [
|
|
3327
3327
|
"x64"
|
|
3328
3328
|
],
|
|
@@ -3334,8 +3334,8 @@
|
|
|
3334
3334
|
]
|
|
3335
3335
|
},
|
|
3336
3336
|
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
|
3337
|
-
"version": "4.61.
|
|
3338
|
-
"integrity": "sha512-
|
|
3337
|
+
"version": "4.61.1",
|
|
3338
|
+
"integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==",
|
|
3339
3339
|
"cpu": [
|
|
3340
3340
|
"arm"
|
|
3341
3341
|
],
|
|
@@ -3347,8 +3347,8 @@
|
|
|
3347
3347
|
]
|
|
3348
3348
|
},
|
|
3349
3349
|
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
|
|
3350
|
-
"version": "4.61.
|
|
3351
|
-
"integrity": "sha512-
|
|
3350
|
+
"version": "4.61.1",
|
|
3351
|
+
"integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==",
|
|
3352
3352
|
"cpu": [
|
|
3353
3353
|
"arm"
|
|
3354
3354
|
],
|
|
@@ -3360,8 +3360,8 @@
|
|
|
3360
3360
|
]
|
|
3361
3361
|
},
|
|
3362
3362
|
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
|
3363
|
-
"version": "4.61.
|
|
3364
|
-
"integrity": "sha512-
|
|
3363
|
+
"version": "4.61.1",
|
|
3364
|
+
"integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==",
|
|
3365
3365
|
"cpu": [
|
|
3366
3366
|
"arm64"
|
|
3367
3367
|
],
|
|
@@ -3373,8 +3373,8 @@
|
|
|
3373
3373
|
]
|
|
3374
3374
|
},
|
|
3375
3375
|
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
|
3376
|
-
"version": "4.61.
|
|
3377
|
-
"integrity": "sha512-
|
|
3376
|
+
"version": "4.61.1",
|
|
3377
|
+
"integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==",
|
|
3378
3378
|
"cpu": [
|
|
3379
3379
|
"arm64"
|
|
3380
3380
|
],
|
|
@@ -3386,8 +3386,8 @@
|
|
|
3386
3386
|
]
|
|
3387
3387
|
},
|
|
3388
3388
|
"node_modules/@rollup/rollup-linux-loong64-gnu": {
|
|
3389
|
-
"version": "4.61.
|
|
3390
|
-
"integrity": "sha512-
|
|
3389
|
+
"version": "4.61.1",
|
|
3390
|
+
"integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==",
|
|
3391
3391
|
"cpu": [
|
|
3392
3392
|
"loong64"
|
|
3393
3393
|
],
|
|
@@ -3399,8 +3399,8 @@
|
|
|
3399
3399
|
]
|
|
3400
3400
|
},
|
|
3401
3401
|
"node_modules/@rollup/rollup-linux-loong64-musl": {
|
|
3402
|
-
"version": "4.61.
|
|
3403
|
-
"integrity": "sha512-
|
|
3402
|
+
"version": "4.61.1",
|
|
3403
|
+
"integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==",
|
|
3404
3404
|
"cpu": [
|
|
3405
3405
|
"loong64"
|
|
3406
3406
|
],
|
|
@@ -3412,8 +3412,8 @@
|
|
|
3412
3412
|
]
|
|
3413
3413
|
},
|
|
3414
3414
|
"node_modules/@rollup/rollup-linux-ppc64-gnu": {
|
|
3415
|
-
"version": "4.61.
|
|
3416
|
-
"integrity": "sha512-
|
|
3415
|
+
"version": "4.61.1",
|
|
3416
|
+
"integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==",
|
|
3417
3417
|
"cpu": [
|
|
3418
3418
|
"ppc64"
|
|
3419
3419
|
],
|
|
@@ -3425,8 +3425,8 @@
|
|
|
3425
3425
|
]
|
|
3426
3426
|
},
|
|
3427
3427
|
"node_modules/@rollup/rollup-linux-ppc64-musl": {
|
|
3428
|
-
"version": "4.61.
|
|
3429
|
-
"integrity": "sha512
|
|
3428
|
+
"version": "4.61.1",
|
|
3429
|
+
"integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==",
|
|
3430
3430
|
"cpu": [
|
|
3431
3431
|
"ppc64"
|
|
3432
3432
|
],
|
|
@@ -3438,8 +3438,8 @@
|
|
|
3438
3438
|
]
|
|
3439
3439
|
},
|
|
3440
3440
|
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
|
3441
|
-
"version": "4.61.
|
|
3442
|
-
"integrity": "sha512-
|
|
3441
|
+
"version": "4.61.1",
|
|
3442
|
+
"integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==",
|
|
3443
3443
|
"cpu": [
|
|
3444
3444
|
"riscv64"
|
|
3445
3445
|
],
|
|
@@ -3451,8 +3451,8 @@
|
|
|
3451
3451
|
]
|
|
3452
3452
|
},
|
|
3453
3453
|
"node_modules/@rollup/rollup-linux-riscv64-musl": {
|
|
3454
|
-
"version": "4.61.
|
|
3455
|
-
"integrity": "sha512-
|
|
3454
|
+
"version": "4.61.1",
|
|
3455
|
+
"integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==",
|
|
3456
3456
|
"cpu": [
|
|
3457
3457
|
"riscv64"
|
|
3458
3458
|
],
|
|
@@ -3464,8 +3464,8 @@
|
|
|
3464
3464
|
]
|
|
3465
3465
|
},
|
|
3466
3466
|
"node_modules/@rollup/rollup-linux-s390x-gnu": {
|
|
3467
|
-
"version": "4.61.
|
|
3468
|
-
"integrity": "sha512-
|
|
3467
|
+
"version": "4.61.1",
|
|
3468
|
+
"integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==",
|
|
3469
3469
|
"cpu": [
|
|
3470
3470
|
"s390x"
|
|
3471
3471
|
],
|
|
@@ -3477,8 +3477,8 @@
|
|
|
3477
3477
|
]
|
|
3478
3478
|
},
|
|
3479
3479
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
|
3480
|
-
"version": "4.61.
|
|
3481
|
-
"integrity": "sha512-
|
|
3480
|
+
"version": "4.61.1",
|
|
3481
|
+
"integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==",
|
|
3482
3482
|
"cpu": [
|
|
3483
3483
|
"x64"
|
|
3484
3484
|
],
|
|
@@ -3490,8 +3490,8 @@
|
|
|
3490
3490
|
]
|
|
3491
3491
|
},
|
|
3492
3492
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
|
3493
|
-
"version": "4.61.
|
|
3494
|
-
"integrity": "sha512-
|
|
3493
|
+
"version": "4.61.1",
|
|
3494
|
+
"integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==",
|
|
3495
3495
|
"cpu": [
|
|
3496
3496
|
"x64"
|
|
3497
3497
|
],
|
|
@@ -3503,8 +3503,8 @@
|
|
|
3503
3503
|
]
|
|
3504
3504
|
},
|
|
3505
3505
|
"node_modules/@rollup/rollup-openbsd-x64": {
|
|
3506
|
-
"version": "4.61.
|
|
3507
|
-
"integrity": "sha512-
|
|
3506
|
+
"version": "4.61.1",
|
|
3507
|
+
"integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==",
|
|
3508
3508
|
"cpu": [
|
|
3509
3509
|
"x64"
|
|
3510
3510
|
],
|
|
@@ -3516,8 +3516,8 @@
|
|
|
3516
3516
|
]
|
|
3517
3517
|
},
|
|
3518
3518
|
"node_modules/@rollup/rollup-openharmony-arm64": {
|
|
3519
|
-
"version": "4.61.
|
|
3520
|
-
"integrity": "sha512-
|
|
3519
|
+
"version": "4.61.1",
|
|
3520
|
+
"integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==",
|
|
3521
3521
|
"cpu": [
|
|
3522
3522
|
"arm64"
|
|
3523
3523
|
],
|
|
@@ -3529,8 +3529,8 @@
|
|
|
3529
3529
|
]
|
|
3530
3530
|
},
|
|
3531
3531
|
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
|
3532
|
-
"version": "4.61.
|
|
3533
|
-
"integrity": "sha512-
|
|
3532
|
+
"version": "4.61.1",
|
|
3533
|
+
"integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==",
|
|
3534
3534
|
"cpu": [
|
|
3535
3535
|
"arm64"
|
|
3536
3536
|
],
|
|
@@ -3542,8 +3542,8 @@
|
|
|
3542
3542
|
]
|
|
3543
3543
|
},
|
|
3544
3544
|
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
|
3545
|
-
"version": "4.61.
|
|
3546
|
-
"integrity": "sha512-
|
|
3545
|
+
"version": "4.61.1",
|
|
3546
|
+
"integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==",
|
|
3547
3547
|
"cpu": [
|
|
3548
3548
|
"ia32"
|
|
3549
3549
|
],
|
|
@@ -3555,8 +3555,8 @@
|
|
|
3555
3555
|
]
|
|
3556
3556
|
},
|
|
3557
3557
|
"node_modules/@rollup/rollup-win32-x64-gnu": {
|
|
3558
|
-
"version": "4.61.
|
|
3559
|
-
"integrity": "sha512-
|
|
3558
|
+
"version": "4.61.1",
|
|
3559
|
+
"integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==",
|
|
3560
3560
|
"cpu": [
|
|
3561
3561
|
"x64"
|
|
3562
3562
|
],
|
|
@@ -3568,8 +3568,8 @@
|
|
|
3568
3568
|
]
|
|
3569
3569
|
},
|
|
3570
3570
|
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
|
3571
|
-
"version": "4.61.
|
|
3572
|
-
"integrity": "sha512-
|
|
3571
|
+
"version": "4.61.1",
|
|
3572
|
+
"integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==",
|
|
3573
3573
|
"cpu": [
|
|
3574
3574
|
"x64"
|
|
3575
3575
|
],
|
|
@@ -4525,8 +4525,8 @@
|
|
|
4525
4525
|
}
|
|
4526
4526
|
},
|
|
4527
4527
|
"node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
|
|
4528
|
-
"version": "7.8.
|
|
4529
|
-
"integrity": "sha512-
|
|
4528
|
+
"version": "7.8.2",
|
|
4529
|
+
"integrity": "sha512-c8jsqUZm3omBOI66G90z1Dyw5z622G8oLG+omfsHBJf3CWQTlOcwOjvOG6wtiNfW6anKm/eA39LMwMtMez2TiQ==",
|
|
4530
4530
|
"dev": true,
|
|
4531
4531
|
"license": "ISC",
|
|
4532
4532
|
"bin": {
|
|
@@ -5065,8 +5065,8 @@
|
|
|
5065
5065
|
}
|
|
5066
5066
|
},
|
|
5067
5067
|
"node_modules/@wavemaker-ai/react-codegen": {
|
|
5068
|
-
"version": "1.0.0-rc.
|
|
5069
|
-
"integrity": "sha512-
|
|
5068
|
+
"version": "1.0.0-rc.317",
|
|
5069
|
+
"integrity": "sha512-zgenUHcmfd7+jnHYycyUjl3BMWQ/9Fh/Ag79g/E7o4+7/xskJfWbIzBlC6Nu9U0Ma/bCTVR8MRpp7GoQuVi6ag==",
|
|
5070
5070
|
"license": "ISC",
|
|
5071
5071
|
"dependencies": {
|
|
5072
5072
|
"@angular/compiler": "12.2.1",
|
|
@@ -5348,8 +5348,8 @@
|
|
|
5348
5348
|
}
|
|
5349
5349
|
},
|
|
5350
5350
|
"node_modules/@wavemaker-ai/variables": {
|
|
5351
|
-
"version": "1.0.0-rc.
|
|
5352
|
-
"integrity": "sha512-
|
|
5351
|
+
"version": "1.0.0-rc.317",
|
|
5352
|
+
"integrity": "sha512-80qpDUTKOozz4R0Z4u2TjnNV4pr/Rd9Zy8lPIon/s1zV4Z8ZRjns+1aH+7oH555S0HtBI3EZWivhJ2uCDREmyQ==",
|
|
5353
5353
|
"dev": true,
|
|
5354
5354
|
"license": "ISC",
|
|
5355
5355
|
"dependencies": {
|
|
@@ -5907,8 +5907,8 @@
|
|
|
5907
5907
|
}
|
|
5908
5908
|
},
|
|
5909
5909
|
"node_modules/bare-url": {
|
|
5910
|
-
"version": "2.4.
|
|
5911
|
-
"integrity": "sha512-
|
|
5910
|
+
"version": "2.4.5",
|
|
5911
|
+
"integrity": "sha512-K+y9xF1tN+CdPu4qWwr0QiK1Al07eFPGYK5M2pDXcmHdMdgC/tT/bpmMe1hrmRHaidKLkXrC+cRNYf3XVDUhSQ==",
|
|
5912
5912
|
"license": "Apache-2.0",
|
|
5913
5913
|
"dependencies": {
|
|
5914
5914
|
"bare-path": "^3.0.0"
|
|
@@ -6565,8 +6565,8 @@
|
|
|
6565
6565
|
}
|
|
6566
6566
|
},
|
|
6567
6567
|
"node_modules/cssstyle/node_modules/@csstools/css-syntax-patches-for-csstree": {
|
|
6568
|
-
"version": "1.1.
|
|
6569
|
-
"integrity": "sha512-
|
|
6568
|
+
"version": "1.1.5",
|
|
6569
|
+
"integrity": "sha512-oNjBvzLq2GPZtJphCjLqXow/cHySHSgtxvKZb7OqSZ/xHgw6NWNhfad+6AB9cLeVm6eA9d/qMll3JdEHjy6M+A==",
|
|
6570
6570
|
"dev": true,
|
|
6571
6571
|
"funding": [
|
|
6572
6572
|
{
|
|
@@ -7280,8 +7280,8 @@
|
|
|
7280
7280
|
"license": "MIT"
|
|
7281
7281
|
},
|
|
7282
7282
|
"node_modules/electron-to-chromium": {
|
|
7283
|
-
"version": "1.5.
|
|
7284
|
-
"integrity": "sha512-
|
|
7283
|
+
"version": "1.5.367",
|
|
7284
|
+
"integrity": "sha512-4Mk/mrynCNQ+atY40D3UpmhLWB6AHMbYMlIrPhHcMF6x0L7O0b052FCAsxw1LlaR++UFuNg3D/A6XCuGDa0guQ==",
|
|
7285
7285
|
"dev": true,
|
|
7286
7286
|
"license": "ISC"
|
|
7287
7287
|
},
|
|
@@ -9042,8 +9042,8 @@
|
|
|
9042
9042
|
}
|
|
9043
9043
|
},
|
|
9044
9044
|
"node_modules/is-bun-module/node_modules/semver": {
|
|
9045
|
-
"version": "7.8.
|
|
9046
|
-
"integrity": "sha512-
|
|
9045
|
+
"version": "7.8.2",
|
|
9046
|
+
"integrity": "sha512-c8jsqUZm3omBOI66G90z1Dyw5z622G8oLG+omfsHBJf3CWQTlOcwOjvOG6wtiNfW6anKm/eA39LMwMtMez2TiQ==",
|
|
9047
9047
|
"dev": true,
|
|
9048
9048
|
"license": "ISC",
|
|
9049
9049
|
"bin": {
|
|
@@ -10394,8 +10394,8 @@
|
|
|
10394
10394
|
}
|
|
10395
10395
|
},
|
|
10396
10396
|
"node_modules/make-dir/node_modules/semver": {
|
|
10397
|
-
"version": "7.8.
|
|
10398
|
-
"integrity": "sha512-
|
|
10397
|
+
"version": "7.8.2",
|
|
10398
|
+
"integrity": "sha512-c8jsqUZm3omBOI66G90z1Dyw5z622G8oLG+omfsHBJf3CWQTlOcwOjvOG6wtiNfW6anKm/eA39LMwMtMez2TiQ==",
|
|
10399
10399
|
"dev": true,
|
|
10400
10400
|
"license": "ISC",
|
|
10401
10401
|
"bin": {
|
|
@@ -12005,8 +12005,8 @@
|
|
|
12005
12005
|
"license": "Unlicense"
|
|
12006
12006
|
},
|
|
12007
12007
|
"node_modules/rollup": {
|
|
12008
|
-
"version": "4.61.
|
|
12009
|
-
"integrity": "sha512-
|
|
12008
|
+
"version": "4.61.1",
|
|
12009
|
+
"integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==",
|
|
12010
12010
|
"dev": true,
|
|
12011
12011
|
"license": "MIT",
|
|
12012
12012
|
"dependencies": {
|
|
@@ -12020,31 +12020,31 @@
|
|
|
12020
12020
|
"npm": ">=8.0.0"
|
|
12021
12021
|
},
|
|
12022
12022
|
"optionalDependencies": {
|
|
12023
|
-
"@rollup/rollup-android-arm-eabi": "4.61.
|
|
12024
|
-
"@rollup/rollup-android-arm64": "4.61.
|
|
12025
|
-
"@rollup/rollup-darwin-arm64": "4.61.
|
|
12026
|
-
"@rollup/rollup-darwin-x64": "4.61.
|
|
12027
|
-
"@rollup/rollup-freebsd-arm64": "4.61.
|
|
12028
|
-
"@rollup/rollup-freebsd-x64": "4.61.
|
|
12029
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.61.
|
|
12030
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.61.
|
|
12031
|
-
"@rollup/rollup-linux-arm64-gnu": "4.61.
|
|
12032
|
-
"@rollup/rollup-linux-arm64-musl": "4.61.
|
|
12033
|
-
"@rollup/rollup-linux-loong64-gnu": "4.61.
|
|
12034
|
-
"@rollup/rollup-linux-loong64-musl": "4.61.
|
|
12035
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.61.
|
|
12036
|
-
"@rollup/rollup-linux-ppc64-musl": "4.61.
|
|
12037
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.61.
|
|
12038
|
-
"@rollup/rollup-linux-riscv64-musl": "4.61.
|
|
12039
|
-
"@rollup/rollup-linux-s390x-gnu": "4.61.
|
|
12040
|
-
"@rollup/rollup-linux-x64-gnu": "4.61.
|
|
12041
|
-
"@rollup/rollup-linux-x64-musl": "4.61.
|
|
12042
|
-
"@rollup/rollup-openbsd-x64": "4.61.
|
|
12043
|
-
"@rollup/rollup-openharmony-arm64": "4.61.
|
|
12044
|
-
"@rollup/rollup-win32-arm64-msvc": "4.61.
|
|
12045
|
-
"@rollup/rollup-win32-ia32-msvc": "4.61.
|
|
12046
|
-
"@rollup/rollup-win32-x64-gnu": "4.61.
|
|
12047
|
-
"@rollup/rollup-win32-x64-msvc": "4.61.
|
|
12023
|
+
"@rollup/rollup-android-arm-eabi": "4.61.1",
|
|
12024
|
+
"@rollup/rollup-android-arm64": "4.61.1",
|
|
12025
|
+
"@rollup/rollup-darwin-arm64": "4.61.1",
|
|
12026
|
+
"@rollup/rollup-darwin-x64": "4.61.1",
|
|
12027
|
+
"@rollup/rollup-freebsd-arm64": "4.61.1",
|
|
12028
|
+
"@rollup/rollup-freebsd-x64": "4.61.1",
|
|
12029
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.61.1",
|
|
12030
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.61.1",
|
|
12031
|
+
"@rollup/rollup-linux-arm64-gnu": "4.61.1",
|
|
12032
|
+
"@rollup/rollup-linux-arm64-musl": "4.61.1",
|
|
12033
|
+
"@rollup/rollup-linux-loong64-gnu": "4.61.1",
|
|
12034
|
+
"@rollup/rollup-linux-loong64-musl": "4.61.1",
|
|
12035
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.61.1",
|
|
12036
|
+
"@rollup/rollup-linux-ppc64-musl": "4.61.1",
|
|
12037
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.61.1",
|
|
12038
|
+
"@rollup/rollup-linux-riscv64-musl": "4.61.1",
|
|
12039
|
+
"@rollup/rollup-linux-s390x-gnu": "4.61.1",
|
|
12040
|
+
"@rollup/rollup-linux-x64-gnu": "4.61.1",
|
|
12041
|
+
"@rollup/rollup-linux-x64-musl": "4.61.1",
|
|
12042
|
+
"@rollup/rollup-openbsd-x64": "4.61.1",
|
|
12043
|
+
"@rollup/rollup-openharmony-arm64": "4.61.1",
|
|
12044
|
+
"@rollup/rollup-win32-arm64-msvc": "4.61.1",
|
|
12045
|
+
"@rollup/rollup-win32-ia32-msvc": "4.61.1",
|
|
12046
|
+
"@rollup/rollup-win32-x64-gnu": "4.61.1",
|
|
12047
|
+
"@rollup/rollup-win32-x64-msvc": "4.61.1",
|
|
12048
12048
|
"fsevents": "~2.3.2"
|
|
12049
12049
|
}
|
|
12050
12050
|
},
|
|
@@ -12282,8 +12282,8 @@
|
|
|
12282
12282
|
}
|
|
12283
12283
|
},
|
|
12284
12284
|
"node_modules/sharp/node_modules/semver": {
|
|
12285
|
-
"version": "7.8.
|
|
12286
|
-
"integrity": "sha512-
|
|
12285
|
+
"version": "7.8.2",
|
|
12286
|
+
"integrity": "sha512-c8jsqUZm3omBOI66G90z1Dyw5z622G8oLG+omfsHBJf3CWQTlOcwOjvOG6wtiNfW6anKm/eA39LMwMtMez2TiQ==",
|
|
12287
12287
|
"license": "ISC",
|
|
12288
12288
|
"optional": true,
|
|
12289
12289
|
"bin": {
|
|
@@ -12527,8 +12527,8 @@
|
|
|
12527
12527
|
}
|
|
12528
12528
|
},
|
|
12529
12529
|
"node_modules/streamx": {
|
|
12530
|
-
"version": "2.
|
|
12531
|
-
"integrity": "sha512-
|
|
12530
|
+
"version": "2.27.0",
|
|
12531
|
+
"integrity": "sha512-WZ189TKnHoAokYHvwzaAQMpd55cgUmFIcJFzBSgGcb886jau5DL+XdDhTWV4ps3FLvk+OORp0dLRTPsLZ21CSA==",
|
|
12532
12532
|
"license": "MIT",
|
|
12533
12533
|
"dependencies": {
|
|
12534
12534
|
"events-universal": "^1.0.0",
|
|
@@ -13324,8 +13324,8 @@
|
|
|
13324
13324
|
}
|
|
13325
13325
|
},
|
|
13326
13326
|
"node_modules/undici": {
|
|
13327
|
-
"version": "7.27.
|
|
13328
|
-
"integrity": "sha512
|
|
13327
|
+
"version": "7.27.1",
|
|
13328
|
+
"integrity": "sha512-UDdpiex+mzigiyrXrGbiUaF4HzTNhKbh2vRNFaTMzcqmLIPrZxaCtwo/1TMSuWoM1Xz3WiTo9KdgI3kRqYzJGg==",
|
|
13329
13329
|
"dev": true,
|
|
13330
13330
|
"license": "MIT",
|
|
13331
13331
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker-ai/react-runtime",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.317",
|
|
4
4
|
"description": "React runtime package for Wavemaker",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@mui/x-date-pickers": "8.5.3",
|
|
58
58
|
"@reduxjs/toolkit": "2.9.1",
|
|
59
59
|
"@tanstack/react-table": "8.21.3",
|
|
60
|
-
"@wavemaker-ai/react-codegen": "1.0.0-rc.
|
|
60
|
+
"@wavemaker-ai/react-codegen": "1.0.0-rc.317",
|
|
61
61
|
"@wavemaker/nvd3": "1.8.16",
|
|
62
62
|
"axios": "1.15.1",
|
|
63
63
|
"d3": "7.8.5",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@types/react-dom": "19.2.3",
|
|
97
97
|
"@vitejs/plugin-react": "5.1.4",
|
|
98
98
|
"@vitest/coverage-v8": "3.2.4",
|
|
99
|
-
"@wavemaker-ai/variables": "1.0.0-rc.
|
|
99
|
+
"@wavemaker-ai/variables": "1.0.0-rc.317",
|
|
100
100
|
"axe-core": "4.11.1",
|
|
101
101
|
"esbuild": "0.27.5",
|
|
102
102
|
"eslint": "9",
|
|
@@ -99,7 +99,7 @@ async function loadAppScript() {
|
|
|
99
99
|
}
|
|
100
100
|
async function loadAppVariables() {
|
|
101
101
|
var _a;
|
|
102
|
-
return (_a = await fetchResource("./app.variables.json", true
|
|
102
|
+
return (_a = await fetchResource("./app.variables.json", true)) != null ? _a : {};
|
|
103
103
|
}
|
|
104
104
|
async function loadCustomFormatters() {
|
|
105
105
|
const js = await fetchOptionalText("./extensions/formatters.js");
|
|
@@ -1,43 +1,29 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useRef } from "react";
|
|
2
2
|
import { getComponentRef, getPrefabConfig } from "../services/component-ref-provider";
|
|
3
3
|
import { ComponentType } from "../services/fragment-url";
|
|
4
|
-
import { getComponentFromCache, setComponentInCache } from "../services/cache";
|
|
5
4
|
import { buildBasePageLikeComponent } from "../factories/build-base-page-like-component";
|
|
6
5
|
import { buildPrefabComponent } from "../factories/prefab-factory";
|
|
6
|
+
import { useAppContext } from "../../context/AppContext";
|
|
7
7
|
const builders = {
|
|
8
8
|
[ComponentType.PAGE]: (name, fragment) => buildBasePageLikeComponent("page", name, fragment),
|
|
9
9
|
[ComponentType.PARTIAL]: (name, fragment) => buildBasePageLikeComponent("partial", name, fragment),
|
|
10
10
|
[ComponentType.PREFAB]: (name, fragment, prefabOutboundDefaults) => buildPrefabComponent(name, fragment, prefabOutboundDefaults != null ? prefabOutboundDefaults : {})
|
|
11
11
|
};
|
|
12
|
-
function getCachedComponent(componentType, name) {
|
|
13
|
-
if (!name) return void 0;
|
|
14
|
-
return getComponentFromCache(componentType, name);
|
|
15
|
-
}
|
|
16
|
-
function resolveInitialState(componentName, componentType) {
|
|
17
|
-
const cached = getCachedComponent(componentType, componentName);
|
|
18
|
-
if (cached) return { Component: cached, isLoading: false, error: null };
|
|
19
|
-
return { Component: null, isLoading: !!componentName, error: null };
|
|
20
|
-
}
|
|
21
|
-
function getFragmentFetchOptions(componentType, prefabNameOption, resolvedName) {
|
|
22
|
-
if (componentType !== ComponentType.PREFAB) return void 0;
|
|
23
|
-
return { prefabName: prefabNameOption || resolvedName };
|
|
24
|
-
}
|
|
25
12
|
function useDynamicComponent(componentName, componentType, options) {
|
|
26
|
-
const [state, setState] = useState(
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
const [state, setState] = useState({
|
|
14
|
+
Component: null,
|
|
15
|
+
isLoading: !!componentName,
|
|
16
|
+
error: null
|
|
17
|
+
});
|
|
29
18
|
const activeRequestRef = useRef(0);
|
|
19
|
+
const appContext = useAppContext();
|
|
30
20
|
const load = useCallback(
|
|
31
21
|
async (name) => {
|
|
32
|
-
|
|
33
|
-
if (cached) {
|
|
34
|
-
setState({ Component: cached, isLoading: false, error: null });
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
22
|
+
var _a, _b;
|
|
37
23
|
const requestId = ++activeRequestRef.current;
|
|
38
24
|
setState({ Component: null, isLoading: true, error: null });
|
|
39
25
|
try {
|
|
40
|
-
const fetchOptions =
|
|
26
|
+
const fetchOptions = componentType === ComponentType.PREFAB ? { prefabName: (options == null ? void 0 : options.prefabName) || name } : void 0;
|
|
41
27
|
let prefabOutboundDefaults;
|
|
42
28
|
if (componentType === ComponentType.PREFAB) {
|
|
43
29
|
prefabOutboundDefaults = await getPrefabConfig(name) || {};
|
|
@@ -46,7 +32,14 @@ function useDynamicComponent(componentName, componentType, options) {
|
|
|
46
32
|
const builder = builders[componentType];
|
|
47
33
|
if (!builder) throw new Error(`No builder registered for component type: ${componentType}`);
|
|
48
34
|
const Component = await builder(name, fragment, prefabOutboundDefaults);
|
|
49
|
-
|
|
35
|
+
if ((fragment == null ? void 0 : fragment.error) && (fragment == null ? void 0 : fragment.error) == "Access Denied") {
|
|
36
|
+
setState({ Component, isLoading: false, error: null });
|
|
37
|
+
appContext == null ? void 0 : appContext.notifyApp(
|
|
38
|
+
((_b = (_a = appContext == null ? void 0 : appContext.appLocale) == null ? void 0 : _a.LABELS) == null ? void 0 : _b.ACCESS_DENIED) || (fragment == null ? void 0 : fragment.error),
|
|
39
|
+
"Error"
|
|
40
|
+
);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
50
43
|
if (requestId === activeRequestRef.current) {
|
|
51
44
|
setState({ Component, isLoading: false, error: null });
|
|
52
45
|
}
|
|
@@ -61,13 +54,6 @@ function useDynamicComponent(componentName, componentType, options) {
|
|
|
61
54
|
);
|
|
62
55
|
useEffect(() => {
|
|
63
56
|
if (!componentName) return;
|
|
64
|
-
const cached = getCachedComponent(componentType, componentName);
|
|
65
|
-
if (cached) {
|
|
66
|
-
setState(
|
|
67
|
-
(prev) => prev.Component === cached ? prev : { Component: cached, isLoading: false, error: null }
|
|
68
|
-
);
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
57
|
load(componentName);
|
|
72
58
|
}, [componentName, load, componentType]);
|
|
73
59
|
return state;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { DecodedFragment } from "../services/
|
|
2
|
+
import type { DecodedFragment } from "../services/component-ref-provider";
|
|
3
3
|
export type BasePageLikeKind = "page" | "partial";
|
|
4
4
|
/**
|
|
5
5
|
* Shared path for dynamically loaded pages and partials: both wrap codegen output
|
|
@@ -65,10 +65,18 @@ function createDynamicComponent({
|
|
|
65
65
|
if (styles) {
|
|
66
66
|
scopeComponentStyles(componentName, componentType, styles);
|
|
67
67
|
}
|
|
68
|
+
let id = null;
|
|
68
69
|
if (appState) {
|
|
69
|
-
|
|
70
|
+
if (componentType.toLowerCase() === "page") {
|
|
71
|
+
id = setTimeout(() => {
|
|
72
|
+
appState.pageReady();
|
|
73
|
+
}, 1e3);
|
|
74
|
+
} else {
|
|
75
|
+
appState.pageReady();
|
|
76
|
+
}
|
|
70
77
|
}
|
|
71
78
|
return () => {
|
|
79
|
+
if (id) clearTimeout(id);
|
|
72
80
|
removeComponentStyles(componentName, componentType);
|
|
73
81
|
};
|
|
74
82
|
}, []);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { DecodedFragment } from "../services/
|
|
2
|
+
import type { DecodedFragment } from "../services/component-ref-provider";
|
|
3
3
|
export declare function buildPrefabComponent(prefabName: string, fragment: DecodedFragment, defaultPrefabProps: Record<string, unknown>): Promise<React.ComponentType<any>>;
|