gomtm 0.0.393 → 0.0.395
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/package.json +13 -31
- package/dist/esm/block/BlockItem.d.ts +0 -14
- package/dist/esm/block/BlockItem.js +0 -202
- package/dist/esm/block/BlockPage.d.ts +0 -15
- package/dist/esm/block/BlockPage.js +0 -197
- package/dist/esm/block/ChildrenDebug.d.ts +0 -15
- package/dist/esm/block/ChildrenDebug.js +0 -177
- package/dist/esm/block/MtBlockSS.d.ts +0 -6
- package/dist/esm/block/MtBlockSS.js +0 -10
- package/dist/esm/block/block-edit/MtBlockEditor.d.ts +0 -2
- package/dist/esm/block/block-edit/MtBlockEditor.js +0 -8
- package/dist/esm/block/block-store.d.ts +0 -14
- package/dist/esm/block/block-store.js +0 -79
- package/dist/esm/block/blockRegister.d.ts +0 -8
- package/dist/esm/block/blockRegister.js +0 -55
- package/dist/esm/block/blocks/Hello2Block.d.ts +0 -4
- package/dist/esm/block/blocks/Hello2Block.js +0 -12
- package/dist/esm/block/blocks/HelloBlock.d.ts +0 -5
- package/dist/esm/block/blocks/HelloBlock.js +0 -14
- package/dist/esm/block/blocks/HelloText.d.ts +0 -4
- package/dist/esm/block/blocks/HelloText.js +0 -12
- package/dist/esm/block/blocks/hello/Hello.d.ts +0 -4
- package/dist/esm/block/blocks/hello/Hello.js +0 -11
- package/dist/esm/block/blocks/hello/edit.d.ts +0 -5
- package/dist/esm/block/blocks/hello/edit.js +0 -15
- package/dist/esm/block/blocks/hello/index.d.ts +0 -9
- package/dist/esm/block/blocks/hello/index.js +0 -29
- package/dist/esm/block/blocks/hello2/index.d.ts +0 -4
- package/dist/esm/block/blocks/hello2/index.js +0 -12
- package/dist/esm/block/consts.d.ts +0 -1
- package/dist/esm/block/consts.js +0 -4
- package/dist/esm/cli/build.d.ts +0 -2
- package/dist/esm/cli/build.js +0 -60
- package/dist/esm/cli/deployMtWorker.d.ts +0 -2
- package/dist/esm/cli/deployMtWorker.js +0 -19
- package/dist/esm/cli/deploy_cf_worker.d.ts +0 -2
- package/dist/esm/cli/deploy_cf_worker.js +0 -70
- package/dist/esm/cli/deploy_mtxcli.d.ts +0 -2
- package/dist/esm/cli/deploy_mtxcli.js +0 -55
- package/dist/esm/cli/deploy_mtxedge.d.ts +0 -2
- package/dist/esm/cli/deploy_mtxedge.js +0 -55
- package/dist/esm/cli/deploy_mtxui.d.ts +0 -2
- package/dist/esm/cli/deploy_mtxui.js +0 -45
- package/dist/esm/cli/up_cf1.d.ts +0 -2
- package/dist/esm/cli/up_cf1.js +0 -29
- package/dist/esm/cli/utils.d.ts +0 -1
- package/dist/esm/cli/utils.js +0 -5
- package/dist/esm/cli/vc_mtxedge.d.ts +0 -2
- package/dist/esm/cli/vc_mtxedge.js +0 -44
- package/dist/esm/components/MtDate.d.ts +0 -6
- package/dist/esm/components/MtDate.js +0 -17
- package/dist/esm/components/MtmErrorView.d.ts +0 -7
- package/dist/esm/components/MtmErrorView.js +0 -16
- package/dist/esm/components/MtmInstallScript.d.ts +0 -2
- package/dist/esm/components/MtmInstallScript.js +0 -16
- package/dist/esm/components/SSR.d.ts +0 -11
- package/dist/esm/components/SSR.js +0 -76
- package/dist/esm/components/Tag.d.ts +0 -6
- package/dist/esm/components/Tag.js +0 -17
- package/dist/esm/components/auth/AuthPage.d.ts +0 -2
- package/dist/esm/components/auth/AuthPage.js +0 -36
- package/dist/esm/components/auth/LoginScreen2.d.ts +0 -2
- package/dist/esm/components/auth/LoginScreen2.js +0 -106
- package/dist/esm/components/auth/UserAuthForm.d.ts +0 -5
- package/dist/esm/components/auth/UserAuthForm.js +0 -76
- package/dist/esm/components/blog/BlogPostCreateForm.d.ts +0 -2
- package/dist/esm/components/blog/BlogPostCreateForm.js +0 -27
- package/dist/esm/components/blog/BlogPostImportDlgUrl.d.ts +0 -6
- package/dist/esm/components/blog/BlogPostImportDlgUrl.js +0 -94
- package/dist/esm/components/blog/PostEditForm.d.ts +0 -2
- package/dist/esm/components/blog/PostEditForm.js +0 -91
- package/dist/esm/components/blog/post-content.d.ts +0 -5
- package/dist/esm/components/blog/post-content.js +0 -15
- package/dist/esm/components/curdView/curdViewEditor.d.ts +0 -7
- package/dist/esm/components/curdView/curdViewEditor.js +0 -109
- package/dist/esm/components/devtools/GoMtmDebug.d.ts +0 -2
- package/dist/esm/components/devtools/GoMtmDebug.js +0 -48
- package/dist/esm/components/formFieldRender/SchemaFormFieldsRender.d.ts +0 -6
- package/dist/esm/components/formFieldRender/SchemaFormFieldsRender.js +0 -46
- package/dist/esm/components/site/SiteInfo.d.ts +0 -2
- package/dist/esm/components/site/SiteInfo.js +0 -15
- package/dist/esm/components/site/SiteSwitchDlg.d.ts +0 -0
- package/dist/esm/components/site/SiteSwitchDlg.js +0 -1
- package/dist/esm/connectquery/call-unary-method.d.ts +0 -8
- package/dist/esm/connectquery/call-unary-method.js +0 -47
- package/dist/esm/connectquery/connect-query-key.d.ts +0 -16
- package/dist/esm/connectquery/connect-query-key.js +0 -15
- package/dist/esm/connectquery/create-use-infinite-query-options.d.ts +0 -22
- package/dist/esm/connectquery/create-use-infinite-query-options.js +0 -93
- package/dist/esm/connectquery/create-use-query-options.d.ts +0 -21
- package/dist/esm/connectquery/create-use-query-options.js +0 -74
- package/dist/esm/connectquery/default-options.d.ts +0 -6
- package/dist/esm/connectquery/default-options.js +0 -9
- package/dist/esm/connectquery/index.d.ts +0 -16
- package/dist/esm/connectquery/index.js +0 -33
- package/dist/esm/connectquery/method-unary-descriptor.d.ts +0 -4
- package/dist/esm/connectquery/method-unary-descriptor.js +0 -0
- package/dist/esm/connectquery/use-infinite-query.d.ts +0 -14
- package/dist/esm/connectquery/use-infinite-query.js +0 -87
- package/dist/esm/connectquery/use-mutation.d.ts +0 -10
- package/dist/esm/connectquery/use-mutation.js +0 -79
- package/dist/esm/connectquery/use-query.d.ts +0 -14
- package/dist/esm/connectquery/use-query.js +0 -75
- package/dist/esm/connectquery/use-transport.d.ts +0 -7
- package/dist/esm/connectquery/use-transport.js +0 -23
- package/dist/esm/connectquery/utils.d.ts +0 -8
- package/dist/esm/connectquery/utils.js +0 -24
- package/dist/esm/consts.d.ts +0 -34
- package/dist/esm/consts.js +0 -70
- package/dist/esm/curd/CreateFormV2.d.ts +0 -16
- package/dist/esm/curd/CreateFormV2.js +0 -81
- package/dist/esm/curd/CurdView.d.ts +0 -4
- package/dist/esm/curd/CurdView.js +0 -35
- package/dist/esm/curd/CurdViewSS.d.ts +0 -4
- package/dist/esm/curd/CurdViewSS.js +0 -69
- package/dist/esm/curd/DynViews.d.ts +0 -6
- package/dist/esm/curd/DynViews.js +0 -69
- package/dist/esm/curd/ListPageCommands.d.ts +0 -2
- package/dist/esm/curd/ListPageCommands.js +0 -25
- package/dist/esm/curd/create/CurdCreatePanel.d.ts +0 -5
- package/dist/esm/curd/create/CurdCreatePanel.js +0 -47
- package/dist/esm/curd/create/useCurdCreate.d.ts +0 -7
- package/dist/esm/curd/create/useCurdCreate.js +0 -25
- package/dist/esm/curd/edit/CurdEditPanel.d.ts +0 -2
- package/dist/esm/curd/edit/CurdEditPanel.js +0 -60
- package/dist/esm/curd/edit/form-context.d.ts +0 -17
- package/dist/esm/curd/edit/form-context.js +0 -92
- package/dist/esm/curd/edit/formStore.d.ts +0 -17
- package/dist/esm/curd/edit/formStore.js +0 -92
- package/dist/esm/curd/edit/useCurdUpdateForm.d.ts +0 -7
- package/dist/esm/curd/edit/useCurdUpdateForm.js +0 -25
- package/dist/esm/curd/form/CurdEditPanel.d.ts +0 -2
- package/dist/esm/curd/form/CurdEditPanel.js +0 -36
- package/dist/esm/curd/form/FormShell.d.ts +0 -2
- package/dist/esm/curd/form/FormShell.js +0 -9
- package/dist/esm/curd/form/GomtmForm.d.ts +0 -2
- package/dist/esm/curd/form/GomtmForm.js +0 -46
- package/dist/esm/curd/form/formStore.d.ts +0 -31
- package/dist/esm/curd/form/formStore.js +0 -188
- package/dist/esm/curd/form/useCurdUpdateForm.d.ts +0 -7
- package/dist/esm/curd/form/useCurdUpdateForm.js +0 -25
- package/dist/esm/curd/form-context.d.ts +0 -17
- package/dist/esm/curd/form-context.js +0 -89
- package/dist/esm/curd/list-item/ListViewLayoutRender.d.ts +0 -15
- package/dist/esm/curd/list-item/ListViewLayoutRender.js +0 -220
- package/dist/esm/curd/listview/CommonListView.d.ts +0 -9
- package/dist/esm/curd/listview/CommonListView.js +0 -139
- package/dist/esm/curd/listview/CommonListViewV2.d.ts +0 -5
- package/dist/esm/curd/listview/CommonListViewV2.js +0 -66
- package/dist/esm/curd/listview/ListViewComponentsSetup.d.ts +0 -3
- package/dist/esm/curd/listview/ListViewComponentsSetup.js +0 -23
- package/dist/esm/curd/listview/ListViewRender.d.ts +0 -2
- package/dist/esm/curd/listview/ListViewRender.js +0 -20
- package/dist/esm/curd/listview/MtListView.d.ts +0 -3
- package/dist/esm/curd/listview/MtListView.js +0 -50
- package/dist/esm/curd/listview/list-store.d.ts +0 -34
- package/dist/esm/curd/listview/list-store.js +0 -90
- package/dist/esm/curd/listview/listview-layouts/default/index.d.ts +0 -2
- package/dist/esm/curd/listview/listview-layouts/default/index.js +0 -9
- package/dist/esm/curd/listview/listview-layouts/listviewlayout-demo/index.d.ts +0 -2
- package/dist/esm/curd/listview/listview-layouts/listviewlayout-demo/index.js +0 -12
- package/dist/esm/curd/mutationButton.d.ts +0 -7
- package/dist/esm/curd/mutationButton.js +0 -14
- package/dist/esm/curd/remove/RemovePanel.d.ts +0 -13
- package/dist/esm/curd/remove/RemovePanel.js +0 -72
- package/dist/esm/form/ConnectEsUpdateForm.d.ts +0 -17
- package/dist/esm/form/ConnectEsUpdateForm.js +0 -78
- package/dist/esm/form/GoMtmForm.d.ts +0 -5
- package/dist/esm/form/GoMtmForm.js +0 -31
- package/dist/esm/form/SchemaFormView.d.ts +0 -14
- package/dist/esm/form/SchemaFormView.js +0 -44
- package/dist/esm/gomtmQuery.d.ts +0 -7
- package/dist/esm/gomtmQuery.js +0 -86
- package/dist/esm/gomtmpb/descriptions/mtm/conf/conf.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/conf/conf.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/mtps/mtpspb/mtps.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/mtps/mtpspb/mtps.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/ai.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/ai.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/av.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/av.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/bot.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/bot.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/curd.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/curd.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/cx.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/cx.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/events.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/events.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/mtm.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/mtm.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/sp.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/sp.js +0 -0
- package/dist/esm/gomtmpb/mtm/conf/conf-ConfService_connectquery.d.ts +0 -53
- package/dist/esm/gomtmpb/mtm/conf/conf-ConfService_connectquery.js +0 -60
- package/dist/esm/gomtmpb/mtm/conf/conf_connect.d.ts +0 -38
- package/dist/esm/gomtmpb/mtm/conf/conf_connect.js +0 -56
- package/dist/esm/gomtmpb/mtm/conf/conf_pb.d.ts +0 -481
- package/dist/esm/gomtmpb/mtm/conf/conf_pb.js +0 -2359
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps-PsService_connectquery.d.ts +0 -52
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps-PsService_connectquery.js +0 -59
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_connect.d.ts +0 -37
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_connect.js +0 -55
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_pb.d.ts +0 -154
- package/dist/esm/gomtmpb/mtm/mtps/mtpspb/mtps_pb.js +0 -530
- package/dist/esm/gomtmpb/mtm/sppb/ai-AiService_connectquery.d.ts +0 -22
- package/dist/esm/gomtmpb/mtm/sppb/ai-AiService_connectquery.js +0 -26
- package/dist/esm/gomtmpb/mtm/sppb/ai_connect.d.ts +0 -19
- package/dist/esm/gomtmpb/mtm/sppb/ai_connect.js +0 -32
- package/dist/esm/gomtmpb/mtm/sppb/ai_pb.d.ts +0 -47
- package/dist/esm/gomtmpb/mtm/sppb/ai_pb.js +0 -149
- package/dist/esm/gomtmpb/mtm/sppb/av-AvService_connectquery.d.ts +0 -53
- package/dist/esm/gomtmpb/mtm/sppb/av-AvService_connectquery.js +0 -60
- package/dist/esm/gomtmpb/mtm/sppb/av_connect.d.ts +0 -38
- package/dist/esm/gomtmpb/mtm/sppb/av_connect.js +0 -56
- package/dist/esm/gomtmpb/mtm/sppb/av_pb.d.ts +0 -77
- package/dist/esm/gomtmpb/mtm/sppb/av_pb.js +0 -290
- package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +0 -173
- package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +0 -192
- package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +0 -110
- package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +0 -180
- package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +0 -722
- package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +0 -2291
- package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +0 -53
- package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +0 -60
- package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +0 -38
- package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +0 -56
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +0 -472
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +0 -2357
- package/dist/esm/gomtmpb/mtm/sppb/curd-CurdService_connectquery.d.ts +0 -73
- package/dist/esm/gomtmpb/mtm/sppb/curd-CurdService_connectquery.js +0 -82
- package/dist/esm/gomtmpb/mtm/sppb/curd_connect.d.ts +0 -50
- package/dist/esm/gomtmpb/mtm/sppb/curd_connect.js +0 -79
- package/dist/esm/gomtmpb/mtm/sppb/curd_pb.d.ts +0 -199
- package/dist/esm/gomtmpb/mtm/sppb/curd_pb.js +0 -773
- package/dist/esm/gomtmpb/mtm/sppb/cx-CxService_connectquery.d.ts +0 -133
- package/dist/esm/gomtmpb/mtm/sppb/cx-CxService_connectquery.js +0 -148
- package/dist/esm/gomtmpb/mtm/sppb/cx_connect.d.ts +0 -86
- package/dist/esm/gomtmpb/mtm/sppb/cx_connect.js +0 -141
- package/dist/esm/gomtmpb/mtm/sppb/cx_pb.d.ts +0 -335
- package/dist/esm/gomtmpb/mtm/sppb/cx_pb.js +0 -1618
- package/dist/esm/gomtmpb/mtm/sppb/events_pb.d.ts +0 -231
- package/dist/esm/gomtmpb/mtm/sppb/events_pb.js +0 -874
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.d.ts +0 -63
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.js +0 -71
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.d.ts +0 -44
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.js +0 -67
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.d.ts +0 -108
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.js +0 -311
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.d.ts +0 -12
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.js +0 -15
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.d.ts +0 -13
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.js +0 -19
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.d.ts +0 -23
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.js +0 -67
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.d.ts +0 -392
- package/dist/esm/gomtmpb/mtm/sppb/mtm-MtmService_connectquery.js +0 -433
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.d.ts +0 -241
- package/dist/esm/gomtmpb/mtm/sppb/mtm_connect.js +0 -395
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.d.ts +0 -1675
- package/dist/esm/gomtmpb/mtm/sppb/mtm_pb.js +0 -6831
- package/dist/esm/gomtmpb/mtm/sppb/sp-SpService_connectquery.d.ts +0 -213
- package/dist/esm/gomtmpb/mtm/sppb/sp-SpService_connectquery.js +0 -236
- package/dist/esm/gomtmpb/mtm/sppb/sp_connect.d.ts +0 -134
- package/dist/esm/gomtmpb/mtm/sppb/sp_connect.js +0 -210
- package/dist/esm/gomtmpb/mtm/sppb/sp_pb.d.ts +0 -684
- package/dist/esm/gomtmpb/mtm/sppb/sp_pb.js +0 -2905
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +0 -5
- package/dist/esm/lib/auth/jwt.d.ts +0 -7
- package/dist/esm/lib/auth/jwt.js +0 -43
- package/dist/esm/lib/meta.d.ts +0 -10
- package/dist/esm/lib/meta.js +0 -76
- package/dist/esm/ly/LayoutBase.d.ts +0 -6
- package/dist/esm/ly/LayoutBase.js +0 -83
- package/dist/esm/ly/Lazy.d.ts +0 -2
- package/dist/esm/ly/Lazy.js +0 -12
- package/dist/esm/ly/UserAvatorMenus.d.ts +0 -2
- package/dist/esm/ly/UserAvatorMenus.js +0 -75
- package/dist/esm/ly/dash5/aside.d.ts +0 -2
- package/dist/esm/ly/dash5/aside.js +0 -40
- package/dist/esm/ly/dash5/components/PageCreate.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageCreate.js +0 -8
- package/dist/esm/ly/dash5/components/PageEdit.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageEdit.js +0 -8
- package/dist/esm/ly/dash5/components/PageList.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageList.js +0 -9
- package/dist/esm/ly/dash5/components/PageShow.d.ts +0 -4
- package/dist/esm/ly/dash5/components/PageShow.js +0 -8
- package/dist/esm/ly/dash5/header.d.ts +0 -2
- package/dist/esm/ly/dash5/header.js +0 -124
- package/dist/esm/ly/dash5/index.d.ts +0 -2
- package/dist/esm/ly/dash5/index.js +0 -25
- package/dist/esm/ly/debug-layout/index.d.ts +0 -2
- package/dist/esm/ly/debug-layout/index.js +0 -12
- package/dist/esm/ly/demo-layout/index.d.ts +0 -2
- package/dist/esm/ly/demo-layout/index.js +0 -9
- package/dist/esm/ly/front-layout/PageCmds.d.ts +0 -2
- package/dist/esm/ly/front-layout/PageCmds.js +0 -25
- package/dist/esm/ly/front-layout/PageSearchCmd.d.ts +0 -2
- package/dist/esm/ly/front-layout/PageSearchCmd.js +0 -70
- package/dist/esm/ly/front-layout/header.d.ts +0 -2
- package/dist/esm/ly/front-layout/header.js +0 -18
- package/dist/esm/ly/front-layout/headerv2.d.ts +0 -0
- package/dist/esm/ly/front-layout/headerv2.js +0 -0
- package/dist/esm/ly/front-layout/index.d.ts +0 -2
- package/dist/esm/ly/front-layout/index.js +0 -12
- package/dist/esm/ly/front-layout/main-nav.d.ts +0 -3
- package/dist/esm/ly/front-layout/main-nav.js +0 -116
- package/dist/esm/lzBizComponents.d.ts +0 -5
- package/dist/esm/lzBizComponents.js +0 -15
- package/dist/esm/main.d.ts +0 -2
- package/dist/esm/main.js +0 -34
- package/dist/esm/messageTypeRegistry.d.ts +0 -5
- package/dist/esm/messageTypeRegistry.js +0 -34
- package/dist/esm/mtmFetcher.d.ts +0 -30
- package/dist/esm/mtmFetcher.js +0 -211
- package/dist/esm/providers/AuthProvider.d.ts +0 -9
- package/dist/esm/providers/AuthProvider.js +0 -104
- package/dist/esm/providers/GomtmAppSS.d.ts +0 -2
- package/dist/esm/providers/GomtmAppSS.js +0 -71
- package/dist/esm/providers/LoggerProvider.d.ts +0 -10
- package/dist/esm/providers/LoggerProvider.js +0 -23
- package/dist/esm/providers/ReactQueryProvider.d.ts +0 -4
- package/dist/esm/providers/ReactQueryProvider.js +0 -67
- package/dist/esm/store/App_useTransition.d.ts +0 -2
- package/dist/esm/store/App_useTransition.js +0 -59
- package/dist/esm/store/GomtmAppSetting.d.ts +0 -2
- package/dist/esm/store/GomtmAppSetting.js +0 -18
- package/dist/esm/store/customStorage.d.ts +0 -2
- package/dist/esm/store/customStorage.js +0 -35
- package/dist/esm/store/mtapp-store.d.ts +0 -49
- package/dist/esm/store/mtapp-store.js +0 -157
- package/dist/esm/validations/CrawlerConfig.d.ts +0 -18
- package/dist/esm/validations/CrawlerConfig.js +0 -10
- package/dist/esm/validations/_common.d.ts +0 -57
- package/dist/esm/validations/_common.js +0 -30
- package/dist/esm/validations/auth.d.ts +0 -33
- package/dist/esm/validations/auth.js +0 -18
- package/dist/esm/validations/blog.d.ts +0 -17
- package/dist/esm/validations/blog.js +0 -10
- package/dist/esm/validations/crawlerSchema.d.ts +0 -17
- package/dist/esm/validations/crawlerSchema.js +0 -10
- package/dist/esm/validations/env.d.ts +0 -8
- package/dist/esm/validations/env.js +0 -9
- package/dist/esm/validations/post.d.ts +0 -34
- package/dist/esm/validations/post.js +0 -28
- package/dist/esm/validations/sp.d.ts +0 -18
- package/dist/esm/validations/sp.js +0 -12
- package/dist/esm/validations/spContentModi.d.ts +0 -62
- package/dist/esm/validations/spContentModi.js +0 -30
- package/dist/esm/validations/spHost.d.ts +0 -8
- package/dist/esm/validations/spHost.js +0 -7
- package/dist/esm/validations/spPage.d.ts +0 -14
- package/dist/esm/validations/spPage.js +0 -9
- package/dist/esm/validations/spRoute.d.ts +0 -57
- package/dist/esm/validations/spRoute.js +0 -28
- package/dist/esm/validations/user.d.ts +0 -64
- package/dist/esm/validations/user.js +0 -33
- package/dist/tsconfig.type.tsbuildinfo +0 -1
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "mtxuilib/ui/form";
|
|
20
|
-
import { Input } from "mtxuilib/ui/input";
|
|
21
|
-
import { useFormContext } from "react-hook-form";
|
|
22
|
-
const SchemaFormFieldsRender = (props) => {
|
|
23
|
-
var _a;
|
|
24
|
-
const { schema } = props;
|
|
25
|
-
const form = useFormContext();
|
|
26
|
-
return /* @__PURE__ */ jsx(Fragment, { children: (_a = schema.fields) == null ? void 0 : _a.map((formField, i) => {
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
28
|
-
FormField,
|
|
29
|
-
{
|
|
30
|
-
control: form.control,
|
|
31
|
-
name: formField.name,
|
|
32
|
-
defaultValue: formField.defaultValue || "",
|
|
33
|
-
render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
|
|
34
|
-
formField.label && /* @__PURE__ */ jsx(FormLabel, { children: formField.label }),
|
|
35
|
-
/* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Input, __spreadValues({ placeholder: formField.placeholder }, field)) }) }),
|
|
36
|
-
formField.description && /* @__PURE__ */ jsx(FormDescription, { children: formField.description }),
|
|
37
|
-
/* @__PURE__ */ jsx(FormMessage, {})
|
|
38
|
-
] })
|
|
39
|
-
},
|
|
40
|
-
i
|
|
41
|
-
);
|
|
42
|
-
}) });
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
SchemaFormFieldsRender
|
|
46
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "mtxuilib/lib/utils";
|
|
4
|
-
import { useGomtmSuspenseQuery } from "../../gomtmQuery";
|
|
5
|
-
import { siteGet } from "../../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
|
|
6
|
-
const SiteInfo = (props) => {
|
|
7
|
-
const query = useGomtmSuspenseQuery(siteGet.service.typeName, siteGet.name, {});
|
|
8
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("bg-blue-100 "), children: [
|
|
9
|
-
/* @__PURE__ */ jsx("h1", { children: "site info" }),
|
|
10
|
-
/* @__PURE__ */ jsx("pre", { children: JSON.stringify(query.data, null, 2) })
|
|
11
|
-
] });
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
SiteInfo
|
|
15
|
-
};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PlainMessage, type Message, type PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { CallOptions, Transport } from "@connectrpc/connect";
|
|
3
|
-
import { MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
4
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
5
|
-
export declare function callUnaryMethod<I extends Message<I>, O extends Message<O>>(methodType: MethodUnaryDescriptor<I, O>, input: PartialMessage<I> | undefined, { callOptions, transport, }: {
|
|
6
|
-
transport: Transport;
|
|
7
|
-
callOptions?: CallOptions | undefined;
|
|
8
|
-
}): Promise<PlainMessage<O> & PlainMessage<MtmError>>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
var fulfilled = (value) => {
|
|
4
|
-
try {
|
|
5
|
-
step(generator.next(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
reject(e);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var rejected = (value) => {
|
|
11
|
-
try {
|
|
12
|
-
step(generator.throw(value));
|
|
13
|
-
} catch (e) {
|
|
14
|
-
reject(e);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
import { toPlainMessage } from "@bufbuild/protobuf";
|
|
22
|
-
function callUnaryMethod(_0, _1, _2) {
|
|
23
|
-
return __async(this, arguments, function* (methodType, input, {
|
|
24
|
-
callOptions,
|
|
25
|
-
transport
|
|
26
|
-
}) {
|
|
27
|
-
try {
|
|
28
|
-
const result = yield transport.unary(
|
|
29
|
-
{ typeName: methodType.service.typeName, methods: {} },
|
|
30
|
-
methodType,
|
|
31
|
-
callOptions == null ? void 0 : callOptions.signal,
|
|
32
|
-
callOptions == null ? void 0 : callOptions.timeoutMs,
|
|
33
|
-
callOptions == null ? void 0 : callOptions.headers,
|
|
34
|
-
input != null ? input : {}
|
|
35
|
-
);
|
|
36
|
-
return toPlainMessage(result.message);
|
|
37
|
-
} catch (e) {
|
|
38
|
-
return {
|
|
39
|
-
errMessage: e == null ? void 0 : e.toString(),
|
|
40
|
-
errCode: "unary_call_error"
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
callUnaryMethod
|
|
47
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
3
|
-
import type { DisableQuery } from "./utils";
|
|
4
|
-
export type ConnectQueryKey<I extends Message<I>> = [
|
|
5
|
-
serviceTypeName: string,
|
|
6
|
-
methodName: string,
|
|
7
|
-
input: PartialMessage<I>
|
|
8
|
-
];
|
|
9
|
-
export declare function createConnectQueryKey<I extends Message<I>, O extends Message<O>>(methodDescriptor: Pick<MethodUnaryDescriptor<I, O>, "I" | "name" | "service">, input?: DisableQuery | PartialMessage<I> | undefined): ConnectQueryKey<I>;
|
|
10
|
-
export type ConnectInfiniteQueryKey<I extends Message<I>> = [
|
|
11
|
-
serviceTypeName: string,
|
|
12
|
-
methodName: string,
|
|
13
|
-
input: PartialMessage<I>,
|
|
14
|
-
"infinite"
|
|
15
|
-
];
|
|
16
|
-
export declare function createConnectInfiniteQueryKey<I extends Message<I>, O extends Message<O>>(methodDescriptor: Pick<MethodUnaryDescriptor<I, O>, "I" | "name" | "service">, input?: DisableQuery | PartialMessage<I> | undefined): ConnectInfiniteQueryKey<I>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { disableQuery } from "./utils";
|
|
2
|
-
function createConnectQueryKey(methodDescriptor, input) {
|
|
3
|
-
return [
|
|
4
|
-
methodDescriptor.service.typeName,
|
|
5
|
-
methodDescriptor.name,
|
|
6
|
-
input === disableQuery || !input ? {} : input
|
|
7
|
-
];
|
|
8
|
-
}
|
|
9
|
-
function createConnectInfiniteQueryKey(methodDescriptor, input) {
|
|
10
|
-
return [...createConnectQueryKey(methodDescriptor, input), "infinite"];
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
createConnectInfiniteQueryKey,
|
|
14
|
-
createConnectQueryKey
|
|
15
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { CallOptions, ConnectError, Transport } from "@connectrpc/connect";
|
|
3
|
-
import type { GetNextPageParamFunction, InfiniteData, QueryFunction, UseInfiniteQueryOptions, UseSuspenseInfiniteQueryOptions } from "@tanstack/react-query";
|
|
4
|
-
import { MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
5
|
-
import { type ConnectInfiniteQueryKey } from "./connect-query-key";
|
|
6
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
7
|
-
import { type DisableQuery } from "./utils";
|
|
8
|
-
export interface ConnectInfiniteQueryOptions<I extends Message<I>, O extends Message<O>, ParamKey extends keyof PartialMessage<I>> {
|
|
9
|
-
pageParamKey: ParamKey;
|
|
10
|
-
transport: Transport;
|
|
11
|
-
callOptions?: Omit<CallOptions, "signal"> | undefined;
|
|
12
|
-
getNextPageParam: GetNextPageParamFunction<PartialMessage<I>[ParamKey], O | PlainMessage<MtmError>>;
|
|
13
|
-
}
|
|
14
|
-
export type CreateInfiniteQueryOptions<I extends Message<I>, O extends Message<O>, ParamKey extends keyof PartialMessage<I>> = ConnectInfiniteQueryOptions<I, O, ParamKey> & Omit<UseInfiniteQueryOptions<O, ConnectError, InfiniteData<O>, O, ConnectInfiniteQueryKey<I>, PartialMessage<I>[ParamKey]>, "getNextPageParam" | "initialPageParam" | "queryFn" | "queryKey">;
|
|
15
|
-
export type CreateSuspenseInfiniteQueryOptions<I extends Message<I>, O extends Message<O>, ParamKey extends keyof PartialMessage<I>> = ConnectInfiniteQueryOptions<I, O, ParamKey> & Omit<UseSuspenseInfiniteQueryOptions<O, ConnectError, InfiniteData<O>, O, ConnectInfiniteQueryKey<I>, PartialMessage<I>[ParamKey]>, "getNextPageParam" | "initialPageParam" | "queryFn" | "queryKey">;
|
|
16
|
-
export declare function createUseInfiniteQueryOptions<I extends Message<I>, O extends Message<O>, ParamKey extends keyof PartialMessage<I>>(methodSig: MethodUnaryDescriptor<I, O>, input: DisableQuery | (PartialMessage<I> & Required<Pick<PartialMessage<I>, ParamKey>>), { transport, getNextPageParam, pageParamKey, callOptions, }: ConnectInfiniteQueryOptions<I, O, ParamKey>): {
|
|
17
|
-
getNextPageParam: ConnectInfiniteQueryOptions<I, O, ParamKey>["getNextPageParam"];
|
|
18
|
-
queryKey: ConnectInfiniteQueryKey<I>;
|
|
19
|
-
queryFn: QueryFunction<O | PlainMessage<MtmError>, ConnectInfiniteQueryKey<I>, PartialMessage<I>[ParamKey]>;
|
|
20
|
-
initialPageParam: PartialMessage<I>[ParamKey];
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __async = (__this, __arguments, generator) => {
|
|
21
|
-
return new Promise((resolve, reject) => {
|
|
22
|
-
var fulfilled = (value) => {
|
|
23
|
-
try {
|
|
24
|
-
step(generator.next(value));
|
|
25
|
-
} catch (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var rejected = (value) => {
|
|
30
|
-
try {
|
|
31
|
-
step(generator.throw(value));
|
|
32
|
-
} catch (e) {
|
|
33
|
-
reject(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
import { callUnaryMethod } from "./call-unary-method";
|
|
41
|
-
import {
|
|
42
|
-
createConnectInfiniteQueryKey
|
|
43
|
-
} from "./connect-query-key";
|
|
44
|
-
import { assert, disableQuery } from "./utils";
|
|
45
|
-
function createUnaryInfiniteQueryFn(methodType, input, {
|
|
46
|
-
callOptions,
|
|
47
|
-
transport,
|
|
48
|
-
pageParamKey
|
|
49
|
-
}) {
|
|
50
|
-
return (context) => __async(this, null, function* () {
|
|
51
|
-
var _a;
|
|
52
|
-
assert(input !== disableQuery, "Disabled query cannot be fetched");
|
|
53
|
-
assert("pageParam" in context, "pageParam must be part of context");
|
|
54
|
-
const inputCombinedWithPageParam = __spreadProps(__spreadValues({}, input), {
|
|
55
|
-
[pageParamKey]: context.pageParam
|
|
56
|
-
});
|
|
57
|
-
console.log("callUnaryMothod", inputCombinedWithPageParam);
|
|
58
|
-
return callUnaryMethod(methodType, inputCombinedWithPageParam, {
|
|
59
|
-
callOptions: __spreadProps(__spreadValues({}, callOptions), {
|
|
60
|
-
signal: (_a = callOptions == null ? void 0 : callOptions.signal) != null ? _a : context.signal
|
|
61
|
-
}),
|
|
62
|
-
transport
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function createUseInfiniteQueryOptions(methodSig, input, {
|
|
67
|
-
transport,
|
|
68
|
-
getNextPageParam,
|
|
69
|
-
pageParamKey,
|
|
70
|
-
callOptions
|
|
71
|
-
}) {
|
|
72
|
-
const queryKey = createConnectInfiniteQueryKey(
|
|
73
|
-
methodSig,
|
|
74
|
-
// input,
|
|
75
|
-
input === disableQuery ? void 0 : __spreadProps(__spreadValues({}, input), {
|
|
76
|
-
[pageParamKey]: void 0
|
|
77
|
-
})
|
|
78
|
-
);
|
|
79
|
-
return {
|
|
80
|
-
getNextPageParam,
|
|
81
|
-
initialPageParam: input === disableQuery ? void 0 : input[pageParamKey],
|
|
82
|
-
queryKey,
|
|
83
|
-
queryFn: createUnaryInfiniteQueryFn(methodSig, input, {
|
|
84
|
-
transport,
|
|
85
|
-
callOptions,
|
|
86
|
-
pageParamKey
|
|
87
|
-
}),
|
|
88
|
-
enabled: input !== disableQuery
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
createUseInfiniteQueryOptions
|
|
93
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { CallOptions, ConnectError, Transport } from "@connectrpc/connect";
|
|
3
|
-
import type { QueryFunction, UseQueryOptions, UseSuspenseQueryOptions } from "@tanstack/react-query";
|
|
4
|
-
import { PlainMessage } from "..";
|
|
5
|
-
import { MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
6
|
-
import type { ConnectQueryKey } from "./connect-query-key";
|
|
7
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
8
|
-
import { type DisableQuery } from "./utils";
|
|
9
|
-
export interface ConnectQueryOptions {
|
|
10
|
-
transport: Transport;
|
|
11
|
-
callOptions?: Omit<CallOptions, "signal"> | undefined;
|
|
12
|
-
}
|
|
13
|
-
export type CreateQueryOptions<I extends Message<I>, O extends Message<O>, SelectOutData = 0 | PlainMessage<MtmError>> = ConnectQueryOptions & Omit<UseQueryOptions<O | PlainMessage<MtmError>, ConnectError, SelectOutData, ConnectQueryKey<I>>, "queryFn" | "queryKey">;
|
|
14
|
-
export type CreateSuspenseQueryOptions<I extends Message<I>, O extends Message<O>, SelectOutData = 0> = ConnectQueryOptions & Omit<UseSuspenseQueryOptions<O | PlainMessage<MtmError>, ConnectError, SelectOutData, ConnectQueryKey<I>>, "queryFn" | "queryKey">;
|
|
15
|
-
export declare function createUseQueryOptions<I extends Message<I>, O extends Message<O>>(methodSig: MethodUnaryDescriptor<I, O>, input: DisableQuery | PartialMessage<I> | undefined, { transport, callOptions, }: ConnectQueryOptions & {
|
|
16
|
-
transport: Transport;
|
|
17
|
-
}): {
|
|
18
|
-
queryKey: ConnectQueryKey<I>;
|
|
19
|
-
queryFn: QueryFunction<O | PlainMessage<MtmError>, ConnectQueryKey<I>>;
|
|
20
|
-
enabled: boolean;
|
|
21
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __async = (__this, __arguments, generator) => {
|
|
21
|
-
return new Promise((resolve, reject) => {
|
|
22
|
-
var fulfilled = (value) => {
|
|
23
|
-
try {
|
|
24
|
-
step(generator.next(value));
|
|
25
|
-
} catch (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var rejected = (value) => {
|
|
30
|
-
try {
|
|
31
|
-
step(generator.throw(value));
|
|
32
|
-
} catch (e) {
|
|
33
|
-
reject(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
import { callUnaryMethod } from "./call-unary-method";
|
|
41
|
-
import { createConnectQueryKey } from "./connect-query-key";
|
|
42
|
-
import { assert, disableQuery } from "./utils";
|
|
43
|
-
function createUnaryQueryFn(methodType, input, {
|
|
44
|
-
callOptions,
|
|
45
|
-
transport
|
|
46
|
-
}) {
|
|
47
|
-
return (context) => __async(this, null, function* () {
|
|
48
|
-
var _a;
|
|
49
|
-
assert(input !== disableQuery, "Disabled query cannot be fetched");
|
|
50
|
-
return callUnaryMethod(methodType, input, {
|
|
51
|
-
callOptions: __spreadProps(__spreadValues({}, callOptions), {
|
|
52
|
-
signal: (_a = callOptions == null ? void 0 : callOptions.signal) != null ? _a : context.signal
|
|
53
|
-
}),
|
|
54
|
-
transport
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function createUseQueryOptions(methodSig, input, {
|
|
59
|
-
transport,
|
|
60
|
-
callOptions
|
|
61
|
-
}) {
|
|
62
|
-
const queryKey = createConnectQueryKey(methodSig, input);
|
|
63
|
-
return {
|
|
64
|
-
queryKey,
|
|
65
|
-
queryFn: createUnaryQueryFn(methodSig, input, {
|
|
66
|
-
transport,
|
|
67
|
-
callOptions
|
|
68
|
-
}),
|
|
69
|
-
enabled: input !== disableQuery
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
createUseQueryOptions
|
|
74
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { callUnaryMethod } from "./call-unary-method";
|
|
2
|
-
export { createConnectInfiniteQueryKey, createConnectQueryKey } from "./connect-query-key";
|
|
3
|
-
export type { ConnectInfiniteQueryKey, ConnectQueryKey } from "./connect-query-key";
|
|
4
|
-
export { createUseInfiniteQueryOptions as createInfiniteQueryOptions } from "./create-use-infinite-query-options";
|
|
5
|
-
export type { CreateInfiniteQueryOptions as UseInfiniteQueryOptions } from "./create-use-infinite-query-options";
|
|
6
|
-
export { createUseQueryOptions as createQueryOptions } from "./create-use-query-options";
|
|
7
|
-
export type { CreateQueryOptions as UseQueryOptions } from "./create-use-query-options";
|
|
8
|
-
export { defaultOptions } from "./default-options";
|
|
9
|
-
export type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
10
|
-
export { useInfiniteQuery, useSuspenseInfiniteQuery } from "./use-infinite-query";
|
|
11
|
-
export { useMutation } from "./use-mutation";
|
|
12
|
-
export type { UseMutationOptions } from "./use-mutation";
|
|
13
|
-
export { useQuery, useSuspenseQuery } from "./use-query";
|
|
14
|
-
export { TransportProvider, useTransport } from "./use-transport";
|
|
15
|
-
export { createProtobufSafeUpdater, disableQuery } from "./utils";
|
|
16
|
-
export type { ConnectUpdater, DisableQuery } from "./utils";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { callUnaryMethod } from "./call-unary-method";
|
|
2
|
-
import {
|
|
3
|
-
createConnectInfiniteQueryKey,
|
|
4
|
-
createConnectQueryKey
|
|
5
|
-
} from "./connect-query-key";
|
|
6
|
-
import { createUseInfiniteQueryOptions } from "./create-use-infinite-query-options";
|
|
7
|
-
import { createUseQueryOptions } from "./create-use-query-options";
|
|
8
|
-
import { defaultOptions } from "./default-options";
|
|
9
|
-
import {
|
|
10
|
-
useInfiniteQuery,
|
|
11
|
-
useSuspenseInfiniteQuery
|
|
12
|
-
} from "./use-infinite-query";
|
|
13
|
-
import { useMutation } from "./use-mutation";
|
|
14
|
-
import { useQuery, useSuspenseQuery } from "./use-query";
|
|
15
|
-
import { TransportProvider, useTransport } from "./use-transport";
|
|
16
|
-
import { createProtobufSafeUpdater, disableQuery } from "./utils";
|
|
17
|
-
export {
|
|
18
|
-
TransportProvider,
|
|
19
|
-
callUnaryMethod,
|
|
20
|
-
createConnectInfiniteQueryKey,
|
|
21
|
-
createConnectQueryKey,
|
|
22
|
-
createUseInfiniteQueryOptions as createInfiniteQueryOptions,
|
|
23
|
-
createProtobufSafeUpdater,
|
|
24
|
-
createUseQueryOptions as createQueryOptions,
|
|
25
|
-
defaultOptions,
|
|
26
|
-
disableQuery,
|
|
27
|
-
useInfiniteQuery,
|
|
28
|
-
useMutation,
|
|
29
|
-
useQuery,
|
|
30
|
-
useSuspenseInfiniteQuery,
|
|
31
|
-
useSuspenseQuery,
|
|
32
|
-
useTransport
|
|
33
|
-
};
|
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { ConnectError, Transport } from "@connectrpc/connect";
|
|
3
|
-
import type { InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from "@tanstack/react-query";
|
|
4
|
-
import { PlainMessage } from "..";
|
|
5
|
-
import { MtmError } from "../gomtmpb/mtm/sppb/mtm_pb";
|
|
6
|
-
import type { CreateInfiniteQueryOptions, CreateSuspenseInfiniteQueryOptions } from "./create-use-infinite-query-options";
|
|
7
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
8
|
-
import type { DisableQuery } from "./utils";
|
|
9
|
-
export declare function useInfiniteQuery<I extends Message<I>, O extends Message<O>, ParamKey extends keyof PartialMessage<I>>(methodSig: MethodUnaryDescriptor<I, O>, input: DisableQuery | (PartialMessage<I> & Required<Pick<PartialMessage<I>, ParamKey>>), { transport, callOptions, pageParamKey, getNextPageParam, ...options }: Omit<CreateInfiniteQueryOptions<I, O, ParamKey>, "transport"> & {
|
|
10
|
-
transport?: Transport;
|
|
11
|
-
}): UseInfiniteQueryResult<InfiniteData<O | PlainMessage<MtmError>>, ConnectError>;
|
|
12
|
-
export declare function useSuspenseInfiniteQuery<I extends Message<I>, O extends Message<O>, ParamKey extends keyof PartialMessage<I>>(methodSig: MethodUnaryDescriptor<I, O>, input: PartialMessage<I> & Required<Pick<PartialMessage<I>, ParamKey>>, { transport, callOptions, pageParamKey, getNextPageParam, ...options }: Omit<CreateSuspenseInfiniteQueryOptions<I, O, ParamKey>, "transport" | "refetchInterval"> & {
|
|
13
|
-
transport?: Transport;
|
|
14
|
-
}): UseSuspenseInfiniteQueryResult<InfiniteData<O & PlainMessage<MtmError>>, ConnectError>;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import {
|
|
33
|
-
useInfiniteQuery as tsUseInfiniteQuery,
|
|
34
|
-
useSuspenseInfiniteQuery as tsUseSuspenseInfiniteQuery
|
|
35
|
-
} from "@tanstack/react-query";
|
|
36
|
-
import { createUseInfiniteQueryOptions } from "./create-use-infinite-query-options";
|
|
37
|
-
import { useTransport } from "./use-transport";
|
|
38
|
-
function useInfiniteQuery(methodSig, input, _a) {
|
|
39
|
-
var _b = _a, {
|
|
40
|
-
transport,
|
|
41
|
-
callOptions,
|
|
42
|
-
pageParamKey,
|
|
43
|
-
getNextPageParam
|
|
44
|
-
} = _b, options = __objRest(_b, [
|
|
45
|
-
"transport",
|
|
46
|
-
"callOptions",
|
|
47
|
-
"pageParamKey",
|
|
48
|
-
"getNextPageParam"
|
|
49
|
-
]);
|
|
50
|
-
var _a2;
|
|
51
|
-
const transportFromCtx = useTransport();
|
|
52
|
-
const baseOptions = createUseInfiniteQueryOptions(methodSig, input, {
|
|
53
|
-
transport: transport != null ? transport : transportFromCtx,
|
|
54
|
-
getNextPageParam,
|
|
55
|
-
pageParamKey,
|
|
56
|
-
callOptions
|
|
57
|
-
});
|
|
58
|
-
const enabled = baseOptions.enabled && ((_a2 = options.enabled) != null ? _a2 : true);
|
|
59
|
-
return tsUseInfiniteQuery(__spreadProps(__spreadValues(__spreadValues({}, options), baseOptions), {
|
|
60
|
-
enabled
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
function useSuspenseInfiniteQuery(methodSig, input, _c) {
|
|
64
|
-
var _d = _c, {
|
|
65
|
-
transport,
|
|
66
|
-
callOptions,
|
|
67
|
-
pageParamKey,
|
|
68
|
-
getNextPageParam
|
|
69
|
-
} = _d, options = __objRest(_d, [
|
|
70
|
-
"transport",
|
|
71
|
-
"callOptions",
|
|
72
|
-
"pageParamKey",
|
|
73
|
-
"getNextPageParam"
|
|
74
|
-
]);
|
|
75
|
-
const transportFromCtx = useTransport();
|
|
76
|
-
const baseOptions = createUseInfiniteQueryOptions(methodSig, input, {
|
|
77
|
-
transport: transport != null ? transport : transportFromCtx,
|
|
78
|
-
getNextPageParam,
|
|
79
|
-
pageParamKey,
|
|
80
|
-
callOptions
|
|
81
|
-
});
|
|
82
|
-
return tsUseSuspenseInfiniteQuery(__spreadValues(__spreadValues({}, options), baseOptions));
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
useInfiniteQuery,
|
|
86
|
-
useSuspenseInfiniteQuery
|
|
87
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Message, PartialMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import type { CallOptions, ConnectError, Transport } from "@connectrpc/connect";
|
|
3
|
-
import type { UseMutationOptions as TSUseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
4
|
-
import type { ConnectQueryKey } from "./connect-query-key";
|
|
5
|
-
import type { MethodUnaryDescriptor } from "./method-unary-descriptor";
|
|
6
|
-
export type UseMutationOptions<I extends Message<I>, O extends Message<O>> = Omit<TSUseMutationOptions<O, ConnectError, PartialMessage<I>, ConnectQueryKey<I>>, "mutationFn"> & {
|
|
7
|
-
transport?: Transport;
|
|
8
|
-
callOptions?: CallOptions;
|
|
9
|
-
};
|
|
10
|
-
export declare function useMutation<I extends Message<I>, O extends Message<O>>(methodSig: MethodUnaryDescriptor<I, O>, { transport, callOptions, ...queryOptions }?: UseMutationOptions<I, O>): UseMutationResult<O, ConnectError, PartialMessage<I>>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
var __async = (__this, __arguments, generator) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
var fulfilled = (value) => {
|
|
35
|
-
try {
|
|
36
|
-
step(generator.next(value));
|
|
37
|
-
} catch (e) {
|
|
38
|
-
reject(e);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var rejected = (value) => {
|
|
42
|
-
try {
|
|
43
|
-
step(generator.throw(value));
|
|
44
|
-
} catch (e) {
|
|
45
|
-
reject(e);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
49
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
import { useMutation as tsUseMutation } from "@tanstack/react-query";
|
|
53
|
-
import { useCallback } from "react";
|
|
54
|
-
import { useTransport } from "./use-transport";
|
|
55
|
-
function useMutation(methodSig, _a = {}) {
|
|
56
|
-
var _b = _a, { transport, callOptions } = _b, queryOptions = __objRest(_b, ["transport", "callOptions"]);
|
|
57
|
-
const transportFromCtx = useTransport();
|
|
58
|
-
const transportToUse = transport != null ? transport : transportFromCtx;
|
|
59
|
-
const mutationFn = useCallback(
|
|
60
|
-
(input) => __async(this, null, function* () {
|
|
61
|
-
const result = yield transportToUse.unary(
|
|
62
|
-
{ typeName: methodSig.service.typeName, methods: {} },
|
|
63
|
-
methodSig,
|
|
64
|
-
callOptions == null ? void 0 : callOptions.signal,
|
|
65
|
-
callOptions == null ? void 0 : callOptions.timeoutMs,
|
|
66
|
-
callOptions == null ? void 0 : callOptions.headers,
|
|
67
|
-
input
|
|
68
|
-
);
|
|
69
|
-
return result.message;
|
|
70
|
-
}),
|
|
71
|
-
[transportToUse, callOptions, methodSig]
|
|
72
|
-
);
|
|
73
|
-
return tsUseMutation(__spreadProps(__spreadValues({}, queryOptions), {
|
|
74
|
-
mutationFn
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
export {
|
|
78
|
-
useMutation
|
|
79
|
-
};
|