gomtm 0.0.391 → 0.0.394
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 +49 -38
- 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,177 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
-
import { cn } from "mtxuilib/lib/utils";
|
|
35
|
-
import { Dialog, DialogContent, DialogTrigger } from "mtxuilib/ui/dialog";
|
|
36
|
-
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
37
|
-
import { Children, createContext, createElement, useContext, useMemo, useRef, useState } from "react";
|
|
38
|
-
import { createStore, useStore } from "zustand";
|
|
39
|
-
import { MtBlockRender, getComponentName } from "./blockRegister";
|
|
40
|
-
const createDemoChildrenStore = (initProps) => {
|
|
41
|
-
return createStore()((set, get) => __spreadProps(__spreadValues({}, initProps), {
|
|
42
|
-
setOriginPropsList: (debugData) => set({ originPropsList: debugData }),
|
|
43
|
-
setDesignMode: (designMode) => set({ designMode }),
|
|
44
|
-
setOverrideData: (overrideData) => set({ overrideData })
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
const blockContext = createContext(null);
|
|
48
|
-
const DemoChildrenProvider = (props) => {
|
|
49
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
50
|
-
const storeRef = useRef();
|
|
51
|
-
if (!storeRef.current) {
|
|
52
|
-
storeRef.current = createDemoChildrenStore(props);
|
|
53
|
-
}
|
|
54
|
-
return /* @__PURE__ */ jsxs(blockContext.Provider, { value: storeRef.current, children: [
|
|
55
|
-
/* @__PURE__ */ jsx(BlockDesignToolbar, {}),
|
|
56
|
-
children
|
|
57
|
-
] });
|
|
58
|
-
};
|
|
59
|
-
function useDemoChildrenBlock(selector) {
|
|
60
|
-
const store = useContext(blockContext);
|
|
61
|
-
if (!store)
|
|
62
|
-
throw new Error("useDemoChildrenBlock Missing DemoChildrenProvider in the tree");
|
|
63
|
-
return useStore(store, selector);
|
|
64
|
-
}
|
|
65
|
-
const BlockCanva = (props) => {
|
|
66
|
-
const { children } = props;
|
|
67
|
-
if (!children) {
|
|
68
|
-
return /* @__PURE__ */ jsx("div", { children: "no children" });
|
|
69
|
-
}
|
|
70
|
-
return /* @__PURE__ */ jsx(DemoChildrenProvider, { children: /* @__PURE__ */ jsx(ChildrenDebugInner, { children }) });
|
|
71
|
-
};
|
|
72
|
-
const ChildrenDebugInner = (props) => {
|
|
73
|
-
const { children } = props;
|
|
74
|
-
const originPropsList = useDemoChildrenBlock((x) => x.originPropsList);
|
|
75
|
-
const setDebugData = useDemoChildrenBlock((x) => x.setOriginPropsList);
|
|
76
|
-
const designMode = useDemoChildrenBlock((x) => x.designMode);
|
|
77
|
-
useMemo(() => {
|
|
78
|
-
let data2 = [];
|
|
79
|
-
{
|
|
80
|
-
Children.map(children, (child) => {
|
|
81
|
-
const compName = getComponentName(child.type);
|
|
82
|
-
const debugData = {
|
|
83
|
-
"blockType": compName,
|
|
84
|
-
"props": child.props
|
|
85
|
-
};
|
|
86
|
-
data2 = [...data2, debugData];
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
setDebugData(data2);
|
|
90
|
-
}, [children, setDebugData]);
|
|
91
|
-
if (!children) {
|
|
92
|
-
return /* @__PURE__ */ jsx("div", { children: "no children" });
|
|
93
|
-
}
|
|
94
|
-
return /* @__PURE__ */ jsx("div", { className: cn(
|
|
95
|
-
designMode && "bg-red-300 shadow-md outline"
|
|
96
|
-
), children: Children.map(children, (child, i) => {
|
|
97
|
-
return designMode ? /* @__PURE__ */ jsx(ChildrenEditMode, { child, i }) : /* @__PURE__ */ jsx(ChildrenOrigin, { child, i });
|
|
98
|
-
}) });
|
|
99
|
-
};
|
|
100
|
-
function ChildrenOrigin(props) {
|
|
101
|
-
const { child, i } = props;
|
|
102
|
-
const originPropsList = useDemoChildrenBlock((x) => x.originPropsList);
|
|
103
|
-
const overProps = useMemo(() => originPropsList && originPropsList[i].props, [i, originPropsList]);
|
|
104
|
-
return /* @__PURE__ */ jsx(Fragment, { children: createElement(child.type, __spreadValues(__spreadValues({}, child.props), overProps)) });
|
|
105
|
-
}
|
|
106
|
-
function ChildrenEditMode(props) {
|
|
107
|
-
var _a;
|
|
108
|
-
const { child, i } = props;
|
|
109
|
-
const [open, setOpen] = useState(false);
|
|
110
|
-
const originPropsList = useDemoChildrenBlock((x) => x.originPropsList);
|
|
111
|
-
const setOriginPropsList = useDemoChildrenBlock((x) => x.setOriginPropsList);
|
|
112
|
-
const oriProps = useMemo(() => {
|
|
113
|
-
return originPropsList[i];
|
|
114
|
-
}, [i, originPropsList]);
|
|
115
|
-
const Editor = (_a = child.type) == null ? void 0 : _a.Editor;
|
|
116
|
-
const overProps = useMemo(() => originPropsList && originPropsList[i].props, [i, originPropsList]);
|
|
117
|
-
return /* @__PURE__ */ jsxs("div", { className: " relative", children: [
|
|
118
|
-
/* @__PURE__ */ jsxs(
|
|
119
|
-
MtButton,
|
|
120
|
-
{
|
|
121
|
-
className: " absolute right-0 top-0",
|
|
122
|
-
onClick: () => {
|
|
123
|
-
setOpen(true);
|
|
124
|
-
},
|
|
125
|
-
children: [
|
|
126
|
-
"ed(",
|
|
127
|
-
i,
|
|
128
|
-
")"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
createElement(child.type, __spreadValues(__spreadValues({}, child.props), overProps)),
|
|
133
|
-
/* @__PURE__ */ jsx(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
134
|
-
"editor",
|
|
135
|
-
Editor && /* @__PURE__ */ jsx(Editor, { preProps: oriProps, setNewProps: (values) => {
|
|
136
|
-
console.log("\u8BBE\u7F6E\u65B0\u503C", values);
|
|
137
|
-
setOriginPropsList(originPropsList.map((item, j) => {
|
|
138
|
-
if (i == j) {
|
|
139
|
-
return { props: values };
|
|
140
|
-
}
|
|
141
|
-
return item;
|
|
142
|
-
}));
|
|
143
|
-
} })
|
|
144
|
-
] }) })
|
|
145
|
-
] });
|
|
146
|
-
}
|
|
147
|
-
const BlockDesignToolbar = () => {
|
|
148
|
-
const debugData = useDemoChildrenBlock((x) => x.originPropsList);
|
|
149
|
-
const designMode = useDemoChildrenBlock((x) => x.designMode);
|
|
150
|
-
const setDesignMode = useDemoChildrenBlock((x) => x.setDesignMode);
|
|
151
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-1 bg-slate-600 p-2", children: [
|
|
152
|
-
/* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
153
|
-
setDesignMode(!designMode);
|
|
154
|
-
}, children: "edit" }),
|
|
155
|
-
/* @__PURE__ */ jsxs(Dialog, { children: [
|
|
156
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { children: "info" }) }),
|
|
157
|
-
/* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx("pre", { children: JSON.stringify(debugData, null, 2) }) })
|
|
158
|
-
] }),
|
|
159
|
-
/* @__PURE__ */ jsxs(Dialog, { children: [
|
|
160
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(MtButton, { children: "reRender" }) }),
|
|
161
|
-
/* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(RenderByPresistData, { data: debugData }) })
|
|
162
|
-
] })
|
|
163
|
-
] });
|
|
164
|
-
};
|
|
165
|
-
function RenderByPresistData(props) {
|
|
166
|
-
const { data } = props;
|
|
167
|
-
const items = data;
|
|
168
|
-
return /* @__PURE__ */ jsx("div", { className: "bg-yellow-100 p-2", children: items.map((item, i) => {
|
|
169
|
-
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(MtBlockRender, { type: item.blockType, compProps: item.props }) }, i);
|
|
170
|
-
}) });
|
|
171
|
-
}
|
|
172
|
-
export {
|
|
173
|
-
BlockCanva,
|
|
174
|
-
DemoChildrenProvider,
|
|
175
|
-
blockContext,
|
|
176
|
-
useDemoChildrenBlock
|
|
177
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Suspense } from "react";
|
|
3
|
-
import { BlockProvider } from "./block-store";
|
|
4
|
-
function MtBlock(props) {
|
|
5
|
-
const { id, type, blockProps } = props;
|
|
6
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "loading block" }), children: /* @__PURE__ */ jsx(BlockProvider, { id, type }) }) });
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
MtBlock
|
|
10
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
export interface BlockStateProps {
|
|
3
|
-
id: string;
|
|
4
|
-
type: string;
|
|
5
|
-
props?: any;
|
|
6
|
-
openEdit?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface BlockState extends BlockStateProps {
|
|
9
|
-
setOpenEdit: (openEdit: boolean) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const blockContext: import("react").Context<import("zustand").StoreApi<BlockState> | null>;
|
|
12
|
-
export declare const BlockProvider: (props: PropsWithChildren<BlockStateProps>) => import("react").JSX.Element;
|
|
13
|
-
export declare function useBlock<T>(selector: (state: BlockState) => T): T;
|
|
14
|
-
export declare const BlockDebug: () => import("react").JSX.Element;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
-
import { createContext, useContext, useRef } from "react";
|
|
35
|
-
import { useStore } from "zustand";
|
|
36
|
-
import { createStore } from "zustand/vanilla";
|
|
37
|
-
const createBlockStore = (initProps) => {
|
|
38
|
-
return createStore()((set, get) => __spreadProps(__spreadValues({
|
|
39
|
-
id: "",
|
|
40
|
-
type: ""
|
|
41
|
-
}, initProps), {
|
|
42
|
-
setOpenEdit: (openEdit) => set({ openEdit })
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
const blockContext = createContext(null);
|
|
46
|
-
const BlockProvider = (props) => {
|
|
47
|
-
const _a = props, { children } = _a, etc = __objRest(_a, ["children"]);
|
|
48
|
-
const storeRef = useRef();
|
|
49
|
-
if (!storeRef.current) {
|
|
50
|
-
storeRef.current = createBlockStore(props);
|
|
51
|
-
}
|
|
52
|
-
return /* @__PURE__ */ jsx(blockContext.Provider, { value: storeRef.current, children });
|
|
53
|
-
};
|
|
54
|
-
function useBlock(selector) {
|
|
55
|
-
const store = useContext(blockContext);
|
|
56
|
-
if (!store)
|
|
57
|
-
throw new Error("useBlock Missing BlockProvider in the tree");
|
|
58
|
-
return useStore(store, selector);
|
|
59
|
-
}
|
|
60
|
-
const BlockDebug = () => {
|
|
61
|
-
const id = useBlock((x) => x.id);
|
|
62
|
-
const type = useBlock((x) => x.type);
|
|
63
|
-
return /* @__PURE__ */ jsxs("div", { className: "bg-red-300 p-4", children: [
|
|
64
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
65
|
-
"id: ",
|
|
66
|
-
JSON.stringify(id)
|
|
67
|
-
] }),
|
|
68
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
69
|
-
"type: ",
|
|
70
|
-
JSON.stringify(type)
|
|
71
|
-
] })
|
|
72
|
-
] });
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
BlockDebug,
|
|
76
|
-
BlockProvider,
|
|
77
|
-
blockContext,
|
|
78
|
-
useBlock
|
|
79
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
2
|
-
export declare const getComponentName: (comp: any) => any;
|
|
3
|
-
export declare const registerBlock: (comp: ComponentType<any>, type?: string) => void;
|
|
4
|
-
export declare const registAllBlock: () => void;
|
|
5
|
-
export declare function MtBlockRender(props: {
|
|
6
|
-
type: string;
|
|
7
|
-
compProps: any;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
@@ -1,55 +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 HelloBlock from "./blocks/hello";
|
|
20
|
-
import Hello2Block from "./blocks/hello2";
|
|
21
|
-
const getComponentName = (comp) => {
|
|
22
|
-
let name1 = comp.blockName;
|
|
23
|
-
if (!name1) {
|
|
24
|
-
name1 = comp == null ? void 0 : comp.name;
|
|
25
|
-
}
|
|
26
|
-
return name1;
|
|
27
|
-
};
|
|
28
|
-
const blocks = {};
|
|
29
|
-
const registerBlock = (comp, type) => {
|
|
30
|
-
const name = getComponentName(comp);
|
|
31
|
-
console.log("registerBlock", name);
|
|
32
|
-
blocks[name] = comp;
|
|
33
|
-
};
|
|
34
|
-
const registAllBlock = () => {
|
|
35
|
-
registerBlock(HelloBlock);
|
|
36
|
-
registerBlock(Hello2Block);
|
|
37
|
-
};
|
|
38
|
-
registAllBlock();
|
|
39
|
-
function MtBlockRender(props) {
|
|
40
|
-
const { compProps, type } = props;
|
|
41
|
-
const BlockComp = blocks[type];
|
|
42
|
-
if (!BlockComp) {
|
|
43
|
-
return /* @__PURE__ */ jsxs("div", { className: "bg-600 mx-auto p-8", children: [
|
|
44
|
-
"unknow block:",
|
|
45
|
-
type
|
|
46
|
-
] });
|
|
47
|
-
}
|
|
48
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(BlockComp, __spreadValues({}, compProps)) });
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
MtBlockRender,
|
|
52
|
-
getComponentName,
|
|
53
|
-
registAllBlock,
|
|
54
|
-
registerBlock
|
|
55
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs } from "react/jsx-runtime";
|
|
3
|
-
function Hello2Block(props) {
|
|
4
|
-
const { id } = props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { className: "mx-auto flex gap-2 bg-blue-100 p-2", children: [
|
|
6
|
-
"hello2 block: ",
|
|
7
|
-
id
|
|
8
|
-
] });
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
Hello2Block as default
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs } from "react/jsx-runtime";
|
|
3
|
-
function HelloBlock(props) {
|
|
4
|
-
const { id, text } = props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { className: "bg-slate-100 p-2", children: [
|
|
6
|
-
"hello block: ",
|
|
7
|
-
id,
|
|
8
|
-
",text:",
|
|
9
|
-
text
|
|
10
|
-
] });
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
HelloBlock as default
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
function HelloBlock(props) {
|
|
3
|
-
const { text } = props;
|
|
4
|
-
return /* @__PURE__ */ jsxs("div", { className: "border bg-slate-100 p-2 shadow-md outline", children: [
|
|
5
|
-
/* @__PURE__ */ jsx("h1", { children: "hello-block" }),
|
|
6
|
-
/* @__PURE__ */ jsx("div", { className: "bg-slate-300 p-2", children: text })
|
|
7
|
-
] });
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
HelloBlock as default
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { MtButton } from "mtxuilib/ui/ui-mt/Button";
|
|
3
|
-
function HelloBlockEditor(_props) {
|
|
4
|
-
const { props, setProps } = _props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
6
|
-
/* @__PURE__ */ jsx("h1", { children: "hello editor" }),
|
|
7
|
-
/* @__PURE__ */ jsx(MtButton, { onClick: () => {
|
|
8
|
-
console.log("todo set text");
|
|
9
|
-
setProps({ text: "new text-------------------" });
|
|
10
|
-
}, children: "set text" })
|
|
11
|
-
] });
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
HelloBlockEditor as default
|
|
15
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare function HelloBlock(props: {
|
|
3
|
-
text?: string;
|
|
4
|
-
}): import("react").JSX.Element;
|
|
5
|
-
declare namespace HelloBlock {
|
|
6
|
-
var blockName: string;
|
|
7
|
-
var Editor: import("react").LazyExoticComponent<typeof import("./edit").default>;
|
|
8
|
-
}
|
|
9
|
-
export default HelloBlock;
|
|
@@ -1,29 +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 { jsx } from "react/jsx-runtime";
|
|
19
|
-
import { lazy } from "react";
|
|
20
|
-
const LzHelloBlock = lazy(() => import("./Hello"));
|
|
21
|
-
const LzEdit = lazy(() => import("./edit"));
|
|
22
|
-
function HelloBlock(props) {
|
|
23
|
-
return /* @__PURE__ */ jsx(LzHelloBlock, __spreadValues({}, props));
|
|
24
|
-
}
|
|
25
|
-
HelloBlock.blockName = "hello-block";
|
|
26
|
-
HelloBlock.Editor = LzEdit;
|
|
27
|
-
export {
|
|
28
|
-
HelloBlock as default
|
|
29
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs } from "react/jsx-runtime";
|
|
3
|
-
function Hello2Block(props) {
|
|
4
|
-
const { id } = props;
|
|
5
|
-
return /* @__PURE__ */ jsxs("div", { className: "mx-auto flex gap-2 bg-blue-100 p-2", children: [
|
|
6
|
-
"hello2 block: ",
|
|
7
|
-
id
|
|
8
|
-
] });
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
Hello2Block as default
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HOTKEY_Design_mode = "alt+x";
|
package/dist/esm/block/consts.js
DELETED
package/dist/esm/cli/build.d.ts
DELETED
package/dist/esm/cli/build.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve2, 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 ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
import { exec } from "mtxlib/exec";
|
|
22
|
-
import { isInVercel, sleep } from "mtxlib/utils";
|
|
23
|
-
import { resolve } from "path";
|
|
24
|
-
function registerCommandTurboBuild(program) {
|
|
25
|
-
program.command("build").action(() => {
|
|
26
|
-
(() => __async(this, null, function* () {
|
|
27
|
-
if (isInVercel()) {
|
|
28
|
-
console.log("\u63D0\u793A: \u6784\u5EFA\u73AF\u5883\u5904\u4E8E vercel");
|
|
29
|
-
}
|
|
30
|
-
yield exec(`npx turbo run build`);
|
|
31
|
-
const projectRoot = resolve("../..");
|
|
32
|
-
console.log("projectRoot", projectRoot);
|
|
33
|
-
yield exec(`npx turbo run build`);
|
|
34
|
-
const packagesVersionPatch = [
|
|
35
|
-
"packages/mtxlib",
|
|
36
|
-
"packages/mtxuilib",
|
|
37
|
-
"apps/gomtm",
|
|
38
|
-
// "packages/mtxdb",
|
|
39
|
-
// "packages/mtwebworker",
|
|
40
|
-
"apps/mtxui",
|
|
41
|
-
"apps/mtxedge"
|
|
42
|
-
// "apps/mtxcli",
|
|
43
|
-
];
|
|
44
|
-
yield exec(`(git commit -a -m "release" || true)`);
|
|
45
|
-
for (const p of packagesVersionPatch) {
|
|
46
|
-
console.log("\u66F4\u65B0\u7248\u672C\u53F7", p);
|
|
47
|
-
yield exec(`pnpm version patch`, {
|
|
48
|
-
cwd: resolve(projectRoot, p)
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
yield sleep(4e3);
|
|
52
|
-
yield exec(`pnpm run release`, {
|
|
53
|
-
cwd: resolve(projectRoot)
|
|
54
|
-
});
|
|
55
|
-
}))();
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
registerCommandTurboBuild
|
|
60
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { exec } from "mtxlib/exec";
|
|
2
|
-
import { resolve } from "path";
|
|
3
|
-
import { projectRoot } from "./utils";
|
|
4
|
-
function cmdDeployMtworker(program) {
|
|
5
|
-
program.command("deploy_mtworker").action(() => {
|
|
6
|
-
const vercelToken = process.env.VERCEL_TOKEN;
|
|
7
|
-
console.log("vercelToken", vercelToken);
|
|
8
|
-
const projectName = "mtworker";
|
|
9
|
-
exec(`npx vercel link --yes --project=${projectName} --token=${vercelToken}`, {
|
|
10
|
-
cwd: resolve(projectRoot, "apps/mtworker")
|
|
11
|
-
});
|
|
12
|
-
exec(`npx vercel deploy --yes --local-config vercel.json --prod --token="${vercelToken}"`, {
|
|
13
|
-
cwd: resolve(projectRoot, "apps/mtworker")
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
cmdDeployMtworker
|
|
19
|
-
};
|