@nuraly/runtime 0.1.7 → 0.1.8
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/README.md +83 -765
- package/components/ui/components/Event/EventValue/EventValue.ts +13 -8
- package/components/ui/components/ToastContainer/ToastContainer.ts +1 -1
- package/components/ui/components/advanced/AIChat/AIChat.ts +1 -2
- package/components/ui/components/advanced/Collapse/Collapse.ts +5 -2
- package/components/ui/components/advanced/Collections/Collections.ts +2 -2
- package/components/ui/components/advanced/MicroApp/MicroApp.ts +3 -11
- package/components/ui/components/advanced/RefComponent/RefComponent.ts +2 -2
- package/components/ui/components/advanced/RichText/RichText.ts +5 -4
- package/components/ui/components/advanced/RichText/RichTextEditor.ts +0 -167
- package/components/ui/components/base/BaseElement/base-change-detection.ts +1 -5
- package/components/ui/components/base/BaseElement.ts +229 -610
- package/components/ui/components/base/FormRegisterable.ts +83 -0
- package/components/ui/components/base/controllers/DragDropController.ts +175 -0
- package/components/ui/components/base/controllers/ErrorController.ts +180 -0
- package/components/ui/components/base/controllers/EventController.ts +112 -0
- package/components/ui/components/base/controllers/InputHandlerController.ts +298 -0
- package/components/ui/components/base/controllers/SelectionController.ts +323 -0
- package/components/ui/components/base/controllers/StyleHandlerController.ts +286 -0
- package/components/ui/components/base/controllers/index.ts +11 -0
- package/components/ui/components/base/mixins/EditorModeMixin.ts +185 -0
- package/components/ui/components/base/mixins/index.ts +6 -0
- package/components/ui/components/base/types/base-element.types.ts +138 -0
- package/components/ui/components/base/types/index.ts +21 -0
- package/components/ui/components/base/utils/event-debouncer.ts +209 -0
- package/components/ui/components/base/utils/index.ts +11 -0
- package/components/ui/components/base/utils/style-cache.ts +94 -0
- package/components/ui/components/display/BoxModel/BoxModel.ts +177 -116
- package/components/ui/components/display/Code/Code.ts +40 -26
- package/components/ui/components/display/Divider/Divider.ts +2 -2
- package/components/ui/components/display/Icon/Icon.ts +2 -3
- package/components/ui/components/display/Image/Image.ts +72 -46
- package/components/ui/components/display/Tag/Tag.ts +2 -3
- package/components/ui/components/display/Video/Video.ts +91 -31
- package/components/ui/components/inputs/Button/Button.ts +2 -2
- package/components/ui/components/inputs/Checkbox/Checkbox.ts +14 -40
- package/components/ui/components/inputs/ColorPicker/colorpicker.ts +3 -4
- package/components/ui/components/inputs/DatePicker/DatePicker.ts +47 -25
- package/components/ui/components/inputs/Dropdown/Dropdown.ts +2 -2
- package/components/ui/components/inputs/Form/Form.style.ts +26 -0
- package/components/ui/components/inputs/Form/Form.ts +352 -0
- package/components/ui/components/inputs/IconPicker/IconPicker.ts +22 -18
- package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +0 -20
- package/components/ui/components/inputs/NumberInput/NumberInput.ts +0 -4
- package/components/ui/components/inputs/RadioButton/Radio-button.ts +11 -13
- package/components/ui/components/inputs/Select/Select.ts +38 -24
- package/components/ui/components/inputs/TextInput/TextInput.ts +15 -9
- package/components/ui/components/inputs/Textarea/Textarea.ts +30 -30
- package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +1 -1
- package/components/ui/components/layout/Card/Card.ts +112 -10
- package/components/ui/components/layout/Containers/Container.style.ts +18 -0
- package/components/ui/components/layout/Containers/Container.ts +11 -5
- package/components/ui/components/layout/Grid/Col.style.ts +27 -0
- package/components/ui/components/layout/Grid/Col.ts +209 -0
- package/components/ui/components/layout/Grid/Row.style.ts +73 -0
- package/components/ui/components/layout/Grid/Row.ts +166 -0
- package/components/ui/components/layout/Grid/index.ts +7 -0
- package/components/ui/components/layout/Panel/Panel.ts +2 -2
- package/components/ui/components/layout/Tabs/Tabs.ts +0 -1
- package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +62 -26
- package/components/ui/components/navigation/Link/Link.ts +27 -16
- package/components/ui/components/navigation/Menu/Menu.ts +26 -48
- package/components/ui/components/runtime/MicroApp/MicroApp.ts +7 -147
- package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +6 -2
- package/components/ui/components/studio/FunctionsPanel/FunctionsPanel.ts +472 -0
- package/components/ui/components/studio/FunctionsPanel/index.ts +1 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.style.ts +242 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.ts +476 -0
- package/components/ui/components/utility/Border/Border.ts +0 -14
- package/components/ui/components/utility/BorderManager/BorderManager.style.ts +237 -0
- package/components/ui/components/utility/BorderManager/BorderManager.ts +503 -0
- package/components/ui/components/utility/BoxShadow/BoxShadow.ts +0 -16
- package/components/ui/components/utility/Document/Document.ts +54 -25
- package/components/ui/components/utility/Export-Import/Export-Import.ts +8 -7
- package/components/ui/components/utility/Handlers/Handlers.ts +14 -17
- package/components/ui/components/utility/ValidationRules/ValidationRules.ts +440 -0
- package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +1 -0
- package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +1 -24
- package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +4 -3
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +2 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +12 -6
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +23 -0
- package/dist/{index-B4yIOSMd.js → BaseElement-BNBn_IJk.js} +2920 -267
- package/dist/{CodeEditor-YsOapSut.js → CodeEditor-Bf4L2rO_.js} +84127 -76319
- package/dist/{CodeEditor-BiNku87K.js → CodeEditor-Cpph-xRc.js} +7 -7
- package/dist/{abap-B2diVmjb.js → abap-D0Neqhq6.js} +91 -1
- package/dist/{apex-3NuJ-nsI.js → apex-B5LhxkeG.js} +18 -1
- package/dist/assets/editor.worker-DcwbJ0PV.js +12 -0
- package/dist/assets/html.worker-BTMxskjR.js +461 -0
- package/dist/assets/json.worker-D3vTGdf_.js +49 -0
- package/dist/assets/ts.worker-BsM1BXac.js +51334 -0
- package/dist/{azcli-XGXuUsMB.js → azcli-BrBH0QTU.js} +1 -1
- package/dist/{bat-B8Vhm634.js → bat-BfzAov64.js} +12 -1
- package/dist/{bicep-Cc8X5S_k.js → bicep-C3bCSWel.js} +1 -1
- package/dist/{cameligo-Bo3wBh9T.js → cameligo-sFL5plcd.js} +13 -1
- package/dist/{clojure-CPoQlpIK.js → clojure-CfeExRz0.js} +14 -1
- package/dist/{coffee-BxvTGz39.js → coffee-Xws5K0WL.js} +11 -1
- package/dist/{cpp-5RpEV7vC.js → cpp-CqOUEpxN.js} +28 -23
- package/dist/{csharp-slXXP3fo.js → csharp-DVLiBOZb.js} +13 -1
- package/dist/{csp-B98p6-gH.js → csp-DVFp9bw5.js} +3 -1
- package/dist/{css-BDsDSAin.js → css-DwARn2R6.js} +8 -1
- package/dist/cssMode-DMsdy1N0.js +1577 -0
- package/dist/{cypher-Dc4IMouD.js → cypher-uY0Mffat.js} +8 -1
- package/dist/{dart-LhvE3yD2.js → dart-D27H-mX_.js} +18 -1
- package/dist/{dockerfile-CwzplJeZ.js → dockerfile-CmV85WZK.js} +5 -1
- package/dist/{ecl-DxW3FiJi.js → ecl--fKn7yzB.js} +9 -1
- package/dist/{elixir-BI40g7TU.js → elixir-DUhH17ON.js} +87 -1
- package/dist/{flow9-tR2v0bGz.js → flow9-B3Dx2LLe.js} +8 -1
- package/dist/{freemarker2-Bfqhwyij.js → freemarker2-D51H9HYi.js} +359 -7
- package/dist/{fsharp-BLAma0OT.js → fsharp-SyqBfUAR.js} +14 -1
- package/dist/{go-nYcD3y4Z.js → go-BbMR2tdT.js} +17 -1
- package/dist/{graphql-Dp1cHWmP.js → graphql-DDJE6tIl.js} +17 -1
- package/dist/{handlebars-DCgKNBmn.js → handlebars-CF6gdAX4.js} +38 -4
- package/dist/{hcl-6NT8Kbna.js → hcl-YBvpaUqf.js} +13 -1
- package/dist/{html-C6wR7sMB.js → html-c2n_zkM3.js} +37 -4
- package/dist/htmlMode-9IJTuZUh.js +1587 -0
- package/dist/{ini-BZCOLrEc.js → ini-Ct73dBtM.js} +10 -1
- package/dist/{java-DAMcfJbX.js → java-C_jlkwoG.js} +18 -1
- package/dist/{javascript-D1L5MTmg.js → javascript-DhEEBMxD.js} +3 -2
- package/dist/jsonMode-CB6k-4rp.js +2002 -0
- package/dist/{julia-CQ46G71H.js → julia-D8WE5U1e.js} +22 -1
- package/dist/{kotlin-CEjVo_6E.js → kotlin-Zy9aq5yB.js} +15 -1
- package/dist/{less-DreV99nP.js → less-sZ0iHtE8.js} +1 -1
- package/dist/{lexon-DBVJhqLb.js → lexon-CsdNL29A.js} +13 -1
- package/dist/{liquid-D_pDYIs1.js → liquid-CwtPiwnW.js} +12 -4
- package/dist/{lua-Dcc_j6L-.js → lua-C2YJo0zw.js} +12 -1
- package/dist/{m3-B9SlZL4n.js → m3-CPLP40SG.js} +7 -1
- package/dist/{markdown-CuGw9_MP.js → markdown-B1mf5e0R.js} +34 -1
- package/dist/{mdx-CKsJ3cF4.js → mdx-LewPRYF8.js} +2 -2
- package/dist/{micro-app-entry-xdTX5-ut.js → micro-app-entry-C3RDIukG.js} +8082 -9628
- package/dist/micro-app.bundle.js +3 -3
- package/dist/micro-app.js +3585 -6759
- package/dist/{mips-BUWqP-OH.js → mips-DA33BZX1.js} +11 -1
- package/dist/{msdax-DtkouYCg.js → msdax-CCYFIQsP.js} +5 -1
- package/dist/{mysql-IkAsWSmF.js → mysql-hjmIjL-D.js} +11 -3
- package/dist/{objective-c-B2-ronfg.js → objective-c-RRCpEmqC.js} +2 -1
- package/dist/{pascal-Bsnz2eJA.js → pascal-CeV8XfxB.js} +13 -1
- package/dist/{pascaligo-D_sMUn0Q.js → pascaligo-IEEGVJAJ.js} +13 -1
- package/dist/{perl-BPzHt9SS.js → perl-B5-QbHq_.js} +34 -1
- package/dist/{pgsql-DlTJB0PD.js → pgsql-s6kqEJmi.js} +14 -4
- package/dist/{php-Dmq5OjwK.js → php-CWWqzOo8.js} +36 -1
- package/dist/{pla-HJcccrBy.js → pla-FSvb_YP_.js} +13 -1
- package/dist/{postiats-OQn6DKv-.js → postiats-DQdscQXO.js} +370 -1
- package/dist/{powerquery-DKaMYC8w.js → powerquery-CtA5JA1I.js} +7 -1
- package/dist/{powershell-DWeJHik1.js → powershell-DglEq96N.js} +13 -1
- package/dist/{protobuf-CBn_IseU.js → protobuf-BSepub3e.js} +5 -1
- package/dist/{pug-BoRpCINl.js → pug-B1847F4G.js} +16 -1
- package/dist/{python-zPpZYwLF.js → python-h5Z2g-yl.js} +59 -11
- package/dist/{qsharp-4rGyVZOw.js → qsharp-D4i0Nqg9.js} +28 -3
- package/dist/{r-DsgLhBOb.js → r-cdRigKxa.js} +5 -1
- package/dist/{razor-B_fCUeGX.js → razor-D5ep1Doy.js} +48 -4
- package/dist/{redis-B2fdL4Bg.js → redis-D9MFxvE8.js} +16 -6
- package/dist/{redshift-DoaeyCkH.js → redshift-CmCnsvL-.js} +13 -4
- package/dist/{restructuredtext-D-6OFBY9.js → restructuredtext-CWy8J51t.js} +19 -1
- package/dist/{ruby-D1DD6baV.js → ruby-WP-c36m5.js} +76 -3
- package/dist/runtime.js +34 -45
- package/dist/{rust-DssUV39M.js → rust-Q9FLdYpu.js} +13 -1
- package/dist/{sb-Dmb6tAdv.js → sb-C54-JBGT.js} +12 -1
- package/dist/{scala-Co3ETaym.js → scala-CzbFImc5.js} +24 -1
- package/dist/{scheme-CMrqXTty.js → scheme-BhfDmYN3.js} +1 -1
- package/dist/{scss-DkGudv8Q.js → scss-CEmiBXpS.js} +25 -1
- package/dist/{shell-BHN2BI4L.js → shell-Bmc1VhG0.js} +4 -1
- package/dist/{solidity-b-R-raGB.js → solidity-C9Q2I8Hh.js} +23 -1
- package/dist/{sophia-Y4GjyxNB.js → sophia-jWa1UyKz.js} +16 -1
- package/dist/{sparql-CDAPZb88.js → sparql-CM7jctbc.js} +15 -1
- package/dist/{sql-DkkpPiUq.js → sql-WzihTkbg.js} +42 -1
- package/dist/{st-CSPV91Ej.js → st-6y7_3aup.js} +8 -1
- package/dist/style.css +1 -1
- package/dist/{swift-DdSC5O48.js → swift-k-0zxG_D.js} +4 -1
- package/dist/{systemverilog-CI03XpAv.js → systemverilog-Pnr5_rIP.js} +29 -3
- package/dist/{tcl-B8DayMSI.js → tcl-fNPXval8.js} +7 -1
- package/dist/tsMode-B_6LiBE1.js +976 -0
- package/dist/{twig-B1AUPVB_.js → twig-L2MkztkV.js} +76 -1
- package/dist/{typescript-DrlYcCUn.js → typescript-BBG0jH4p.js} +23 -2
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/{vb-BIC7ccdG.js → vb-B5YC2xN9.js} +15 -1
- package/dist/{wgsl-C9yjop46.js → wgsl-D9BRtftY.js} +26 -1
- package/dist/{xml-BzP9D0eZ.js → xml-DgLB7rE6.js} +8 -2
- package/dist/{yaml-CT7GOvXu.js → yaml-DiI4HpSv.js} +30 -2
- package/handlers/compiler.ts +196 -16
- package/handlers/context-setup.ts +10 -5
- package/handlers/handler-api-factory.ts +358 -0
- package/handlers/handler-api.ts +379 -0
- package/handlers/handler-executor.ts +25 -5
- package/handlers/handler-scope.ts +398 -0
- package/handlers/index.ts +34 -2
- package/handlers/runtime-api/component-properties.ts +0 -8
- package/handlers/runtime-api/index.ts +1 -1
- package/handlers/runtime-api/toast.ts +1 -1
- package/index.ts +14 -115
- package/micro-app/README.md +10 -10
- package/micro-app/state/MicroAppRuntimeContext.ts +1 -28
- package/micro-app-entry.ts +0 -5
- package/package.json +19 -1
- package/redux/actions/application/index.ts +0 -1
- package/redux/actions/component/addComponentAction.ts +15 -4
- package/redux/actions/component/moveDraggedComponent.ts +1 -2
- package/redux/actions/component/update-component-name.ts +1 -1
- package/redux/actions/component/updateComponentAttributes.ts +7 -2
- package/redux/handlers/functions/build-function-handler.ts +11 -3
- package/redux/handlers/functions/deploy-function-handler.ts +11 -3
- package/redux/handlers/functions/invoke-function-handler.ts +11 -3
- package/redux/handlers/functions/load-functions-handler.ts +2 -1
- package/redux/handlers/functions/update-function-handler.ts +2 -1
- package/redux/store/component/component.interface.ts +8 -2
- package/redux/store/component/store.ts +1 -4
- package/state/runtime-context.ts +1 -23
- package/utils/RuntimeContextHelpers.ts +221 -90
- package/utils/change-detection.ts +125 -1
- package/utils/clipboard-utils.ts +18 -8
- package/utils/component-registry.ts +118 -0
- package/utils/index.ts +14 -1
- package/utils/naming-generator.ts +3 -1
- package/utils/randomness.ts +3 -1
- package/utils/register-components.ts +21 -29
- package/utils/render-util.ts +27 -48
- package/utils/toast.ts +97 -0
- package/vite.config.ts +29 -12
- package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +0 -11
- package/components/ui/components/Event/EventAttribute/EventAttribute.ts +0 -28
- package/components/ui/components/base/BaseElement/calculateStyles.ts +0 -31
- package/components/ui/components/base/BaseElement/drag-events.helpers.ts +0 -71
- package/components/ui/components/base/BaseElement/execute-event.helpers.ts +0 -45
- package/components/ui/components/base/BaseElement/interactions.helpers.ts +0 -14
- package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +0 -95
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +0 -102
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +0 -258
- package/components/ui/components/wrappers/PreviewWrapper.ts +0 -28
- package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +0 -154
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants.d.ts +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/constants.js +0 -7
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/controllers.js +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/index.d.ts +0 -25
- package/components/ui/nuraly-ui/packages/common/dist/index.js +0 -27
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +0 -3
- package/components/ui/nuraly-ui/packages/common/dist/mixins.d.ts +0 -26
- package/components/ui/nuraly-ui/packages/common/dist/mixins.js +0 -29
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.d.ts +0 -42
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +0 -38
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.d.ts +0 -1
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.d.ts +0 -77
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +0 -341
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.d.ts +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.d.ts +0 -48
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +0 -133
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +0 -141
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.d.ts +0 -64
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +0 -95
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.d.ts +0 -13
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.d.ts +0 -78
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +0 -194
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.d.ts +0 -44
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.d.ts +0 -60
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.d.ts +0 -108
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes.d.ts +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/themes.js +0 -23
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/utils.js +0 -22
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/dist/SmartAttributeHandler-C4EliaG0.js +0 -153
- package/dist/SmartAttributeHandler-u-ZHGueR.js +0 -193
- package/dist/assets/editor.worker-C_S4Avdt.js +0 -11
- package/dist/assets/html.worker-DfuQASUV.js +0 -458
- package/dist/assets/json.worker-Cucz4wxY.js +0 -42
- package/dist/assets/ts.worker-Dme6S0YK.js +0 -37021
- package/dist/cssMode-CqMQ6Xsa.js +0 -1443
- package/dist/htmlMode-KglxyZXm.js +0 -1453
- package/dist/jsonMode-B3rqxD-b.js +0 -1863
- package/dist/tsMode-DEiq8fQ0.js +0 -800
- package/redux/actions/application/loadApplicationPermissionAction.ts +0 -10
- package/utils/styleUtil.ts +0 -7
|
@@ -85,18 +85,6 @@ export class MicroApp extends LitElement {
|
|
|
85
85
|
override willUpdate(changedProperties: Map<string, any>): void {
|
|
86
86
|
super.willUpdate(changedProperties);
|
|
87
87
|
|
|
88
|
-
console.log('[MicroApp DEBUG] willUpdate called', {
|
|
89
|
-
changedProperties: Array.from(changedProperties.keys()),
|
|
90
|
-
uuid: this.uuid,
|
|
91
|
-
page_uuid: this.page_uuid,
|
|
92
|
-
useIsolatedContext: this.useIsolatedContext,
|
|
93
|
-
hasStoreContext: !!this.storeContext,
|
|
94
|
-
appComponentsLength: this.appComponents?.length,
|
|
95
|
-
appPagesLength: this.appPages?.length,
|
|
96
|
-
componentsLength: this.components.length,
|
|
97
|
-
componentsToRenderLength: this.componentsToRender.length
|
|
98
|
-
});
|
|
99
|
-
|
|
100
88
|
// Handle isolated context initialization when pre-loaded data is provided
|
|
101
89
|
if (this.useIsolatedContext) {
|
|
102
90
|
// Check if appComponents or appPages were just set
|
|
@@ -105,16 +93,8 @@ export class MicroApp extends LitElement {
|
|
|
105
93
|
(changedProperties.has("appPages") && this.appPages)
|
|
106
94
|
);
|
|
107
95
|
|
|
108
|
-
console.log('[MicroApp DEBUG] Isolated context check', {
|
|
109
|
-
dataJustProvided,
|
|
110
|
-
hasAppComponents: !!this.appComponents,
|
|
111
|
-
hasAppPages: !!this.appPages,
|
|
112
|
-
hasStoreContext: !!this.storeContext
|
|
113
|
-
});
|
|
114
|
-
|
|
115
96
|
// Initialize isolated context if data was just provided and not initialized yet
|
|
116
97
|
if (dataJustProvided && !this.storeContext) {
|
|
117
|
-
console.log('[MicroApp DEBUG] Calling initializeIsolatedContext from willUpdate');
|
|
118
98
|
this.initializeIsolatedContext();
|
|
119
99
|
return;
|
|
120
100
|
}
|
|
@@ -134,39 +114,15 @@ export class MicroApp extends LitElement {
|
|
|
134
114
|
* Updates componentsToRender based on the current selection.
|
|
135
115
|
*/
|
|
136
116
|
private updateComponentsToRender(): void {
|
|
137
|
-
console.log('[MicroApp DEBUG] 📝 updateComponentsToRender called', {
|
|
138
|
-
componentToRenderUUID: this.componentToRenderUUID,
|
|
139
|
-
componentsLength: this.components.length
|
|
140
|
-
});
|
|
141
117
|
|
|
142
118
|
this.componentsToRender = this.componentToRenderUUID
|
|
143
119
|
? this.components.filter((component) => component.uuid === this.componentToRenderUUID)
|
|
144
120
|
: this.components;
|
|
145
|
-
|
|
146
|
-
console.log('[MicroApp DEBUG] componentsToRender updated', {
|
|
147
|
-
componentsToRenderLength: this.componentsToRender.length,
|
|
148
|
-
componentsToRender: this.componentsToRender.map(c => ({
|
|
149
|
-
uuid: c.uuid,
|
|
150
|
-
type: c.component_type
|
|
151
|
-
}))
|
|
152
|
-
});
|
|
153
121
|
}
|
|
154
122
|
|
|
155
123
|
override connectedCallback(): void {
|
|
156
124
|
super.connectedCallback();
|
|
157
125
|
|
|
158
|
-
console.log('[MicroApp DEBUG] 🔌 connectedCallback called', {
|
|
159
|
-
uuid: this.uuid,
|
|
160
|
-
page_uuid: this.page_uuid,
|
|
161
|
-
useIsolatedContext: this.useIsolatedContext,
|
|
162
|
-
hasAppComponents: !!this.appComponents,
|
|
163
|
-
appComponentsLength: this.appComponents?.length,
|
|
164
|
-
hasAppPages: !!this.appPages,
|
|
165
|
-
appPagesLength: this.appPages?.length,
|
|
166
|
-
mode: this.mode,
|
|
167
|
-
prod: this.prod
|
|
168
|
-
});
|
|
169
|
-
|
|
170
126
|
// Initialize toast container singleton (ensures it exists globally)
|
|
171
127
|
ToastContainer.getInstance();
|
|
172
128
|
|
|
@@ -175,14 +131,10 @@ export class MicroApp extends LitElement {
|
|
|
175
131
|
// Only initialize now if we have pre-loaded data
|
|
176
132
|
// Otherwise, wait for properties to be set (handled in updated())
|
|
177
133
|
if (this.appComponents || this.appPages) {
|
|
178
|
-
console.log('[MicroApp DEBUG] Calling initializeIsolatedContext from connectedCallback (has pre-loaded data)');
|
|
179
134
|
this.initializeIsolatedContext();
|
|
180
|
-
} else {
|
|
181
|
-
console.log('[MicroApp DEBUG] Skipping initializeIsolatedContext in connectedCallback (no pre-loaded data yet)');
|
|
182
135
|
}
|
|
183
136
|
} else {
|
|
184
137
|
// Legacy mode
|
|
185
|
-
console.log('[MicroApp DEBUG] Using legacy mode (useIsolatedContext=false)');
|
|
186
138
|
this.setupSubscriptions();
|
|
187
139
|
if(!ExecuteInstance.Vars.currentPlatform){
|
|
188
140
|
ExecuteInstance.VarsProxy.currentPlatform = getInitPlatform()
|
|
@@ -299,8 +251,7 @@ export class MicroApp extends LitElement {
|
|
|
299
251
|
|
|
300
252
|
// Subscribe to global variable changes to trigger micro-app re-render (LEGACY MODE)
|
|
301
253
|
// This ensures that when global variables change, the micro-app components re-render
|
|
302
|
-
const globalVarHandler = (
|
|
303
|
-
console.log(`[MicroApp ${this.uuid}] [LEGACY] Global variable changed: ${data.varName} = ${data.value}`);
|
|
254
|
+
const globalVarHandler = () => {
|
|
304
255
|
// Trigger refresh of the micro-app
|
|
305
256
|
this.refreshComponent();
|
|
306
257
|
};
|
|
@@ -347,16 +298,8 @@ export class MicroApp extends LitElement {
|
|
|
347
298
|
*/
|
|
348
299
|
private async initializeIsolatedContext(): Promise<void> {
|
|
349
300
|
try {
|
|
350
|
-
console.log('[MicroApp DEBUG] 🚀 Starting initializeIsolatedContext', {
|
|
351
|
-
uuid: this.uuid,
|
|
352
|
-
page_uuid: this.page_uuid,
|
|
353
|
-
appComponents: this.appComponents?.length,
|
|
354
|
-
appPages: this.appPages?.length
|
|
355
|
-
});
|
|
356
|
-
|
|
357
301
|
// Generate unique micro-app instance ID using proper UUID
|
|
358
302
|
this.microAppId = `${this.uuid}_${uuidv4()}`;
|
|
359
|
-
console.log('[MicroApp DEBUG] Generated microAppId:', this.microAppId);
|
|
360
303
|
|
|
361
304
|
// 1. Create store context with optional pre-loaded data
|
|
362
305
|
this.storeContext = new MicroAppStoreContext(
|
|
@@ -365,69 +308,42 @@ export class MicroApp extends LitElement {
|
|
|
365
308
|
this.appComponents,
|
|
366
309
|
this.appPages
|
|
367
310
|
);
|
|
368
|
-
console.log('[MicroApp DEBUG] ✅ StoreContext created');
|
|
369
311
|
|
|
370
312
|
// 2. Create runtime context
|
|
371
313
|
this.runtimeContext = new MicroAppRuntimeContext(this.storeContext);
|
|
372
|
-
console.log('[MicroApp DEBUG] ✅ RuntimeContext created');
|
|
373
314
|
|
|
374
315
|
// 3. Create page manager
|
|
375
316
|
this.pageManager = new MicroAppPageManager(this.storeContext);
|
|
376
317
|
// Store page manager reference in store context for handler access
|
|
377
318
|
this.storeContext.setPageManager(this.pageManager);
|
|
378
|
-
console.log('[MicroApp DEBUG] ✅ PageManager created');
|
|
379
319
|
|
|
380
320
|
// 4. Get message bus
|
|
381
321
|
this.messageBus = MicroAppMessageBus.getInstance();
|
|
382
|
-
console.log('[MicroApp DEBUG] ✅ MessageBus obtained');
|
|
383
322
|
|
|
384
323
|
// 6. Subscribe to messages
|
|
385
324
|
this.messageUnsubscribe = this.messageBus.subscribe(this.microAppId, (message) => {
|
|
386
325
|
this.handleMessage(message);
|
|
387
326
|
});
|
|
388
|
-
console.log('[MicroApp DEBUG] ✅ Subscribed to messages');
|
|
389
327
|
|
|
390
328
|
// 7. Load application data
|
|
391
329
|
await this.storeContext.loadApplication();
|
|
392
|
-
const loadedComponents = this.storeContext.getComponents();
|
|
393
|
-
console.log('[MicroApp DEBUG] ✅ Application data loaded', {
|
|
394
|
-
componentsCount: loadedComponents.length,
|
|
395
|
-
components: loadedComponents.map(c => ({ uuid: c.uuid, type: c.component_type, root: c.root }))
|
|
396
|
-
});
|
|
397
330
|
|
|
398
331
|
// 8. Load pages
|
|
399
332
|
await this.pageManager.loadPages();
|
|
400
|
-
const loadedPages = this.storeContext.getPages();
|
|
401
|
-
console.log('[MicroApp DEBUG] ✅ Pages loaded', {
|
|
402
|
-
pagesCount: loadedPages.length,
|
|
403
|
-
pages: loadedPages.map(p => ({ uuid: p.uuid, name: p.name }))
|
|
404
|
-
});
|
|
405
333
|
|
|
406
334
|
// 9. Register components in runtime
|
|
407
335
|
this.runtimeContext.registerComponents();
|
|
408
|
-
console.log('[MicroApp DEBUG] ✅ Components registered in runtime');
|
|
409
336
|
|
|
410
337
|
// 9.5. Sync components to global store so Container can find children
|
|
411
338
|
// This is needed because Container.ts looks up children in the global $components store
|
|
412
339
|
const componentsWithChildren = this.storeContext.getComponents();
|
|
413
340
|
$components.setKey(this.uuid, componentsWithChildren);
|
|
414
|
-
console.log('[MicroApp DEBUG] ✅ Components synced to global store', {
|
|
415
|
-
key: this.uuid,
|
|
416
|
-
count: componentsWithChildren.length
|
|
417
|
-
});
|
|
418
341
|
|
|
419
342
|
// 10. Setup subscriptions to isolated stores
|
|
420
343
|
this.setupIsolatedSubscriptions();
|
|
421
|
-
console.log('[MicroApp DEBUG] ✅ Subscriptions setup');
|
|
422
344
|
|
|
423
345
|
// 11. Update component list
|
|
424
346
|
this.refreshIsolatedComponents();
|
|
425
|
-
console.log('[MicroApp DEBUG] ✅ Components refreshed', {
|
|
426
|
-
componentsLength: this.components.length,
|
|
427
|
-
componentsToRenderLength: this.componentsToRender.length,
|
|
428
|
-
components: this.components.map(c => ({ uuid: c.uuid, type: c.component_type })),
|
|
429
|
-
componentsToRender: this.componentsToRender.map(c => ({ uuid: c.uuid, type: c.component_type }))
|
|
430
|
-
});
|
|
431
347
|
|
|
432
348
|
// 12. Set platform if not already set
|
|
433
349
|
if (!this.runtimeContext.getVar('currentPlatform')) {
|
|
@@ -436,11 +352,8 @@ export class MicroApp extends LitElement {
|
|
|
436
352
|
|
|
437
353
|
EditorInstance.setEditorMode(this.prod);
|
|
438
354
|
|
|
439
|
-
console.log('[MicroApp DEBUG] 🎉 initializeIsolatedContext completed successfully');
|
|
440
|
-
|
|
441
355
|
} catch (error) {
|
|
442
|
-
console.error(`[MicroApp
|
|
443
|
-
console.error('[MicroApp DEBUG] Error stack:', error instanceof Error ? error.stack : 'No stack');
|
|
356
|
+
console.error(`[MicroApp] Failed to initialize isolated context:`, error);
|
|
444
357
|
}
|
|
445
358
|
}
|
|
446
359
|
|
|
@@ -482,8 +395,7 @@ export class MicroApp extends LitElement {
|
|
|
482
395
|
|
|
483
396
|
// Subscribe to global variable changes to trigger micro-app re-render
|
|
484
397
|
// This ensures that when global variables change, the micro-app components re-render
|
|
485
|
-
const globalVarHandler = (
|
|
486
|
-
console.log(`[MicroApp ${this.uuid}] Global variable changed: ${data.varName} = ${data.value}`);
|
|
398
|
+
const globalVarHandler = () => {
|
|
487
399
|
// Trigger re-render of the entire micro-app
|
|
488
400
|
this.requestUpdate();
|
|
489
401
|
};
|
|
@@ -499,32 +411,11 @@ export class MicroApp extends LitElement {
|
|
|
499
411
|
* Refresh components from isolated store
|
|
500
412
|
*/
|
|
501
413
|
private refreshIsolatedComponents(): void {
|
|
502
|
-
|
|
503
|
-
hasStoreContext: !!this.storeContext,
|
|
504
|
-
hasPageManager: !!this.pageManager,
|
|
505
|
-
page_uuid: this.page_uuid
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
if (!this.storeContext || !this.pageManager) {
|
|
509
|
-
console.log('[MicroApp DEBUG] ⚠️ refreshIsolatedComponents early return - missing context');
|
|
510
|
-
return;
|
|
511
|
-
}
|
|
414
|
+
if (!this.storeContext || !this.pageManager) return;
|
|
512
415
|
|
|
513
416
|
const allComponents = this.storeContext.getComponents();
|
|
514
417
|
const currentPage = this.pageManager.getCurrentPage();
|
|
515
418
|
|
|
516
|
-
console.log('[MicroApp DEBUG] Components and page info', {
|
|
517
|
-
allComponentsCount: allComponents.length,
|
|
518
|
-
allComponents: allComponents.map(c => ({
|
|
519
|
-
uuid: c.uuid,
|
|
520
|
-
type: c.component_type,
|
|
521
|
-
root: c.root,
|
|
522
|
-
pageId: c.pageId
|
|
523
|
-
})),
|
|
524
|
-
currentPage: currentPage ? { uuid: currentPage.uuid, name: currentPage.name } : null,
|
|
525
|
-
page_uuid: this.page_uuid
|
|
526
|
-
});
|
|
527
|
-
|
|
528
419
|
// Filter components by page if page_uuid is specified
|
|
529
420
|
this.components = this.page_uuid
|
|
530
421
|
? allComponents.filter((component) => component.pageId === this.page_uuid && component.root === true)
|
|
@@ -532,16 +423,6 @@ export class MicroApp extends LitElement {
|
|
|
532
423
|
? allComponents.filter((component) => component.pageId === currentPage.uuid && component.root === true)
|
|
533
424
|
: allComponents.filter((component) => component.root === true);
|
|
534
425
|
|
|
535
|
-
console.log('[MicroApp DEBUG] Filtered components', {
|
|
536
|
-
filterMode: this.page_uuid ? 'by page_uuid' : (currentPage ? 'by currentPage' : 'all root'),
|
|
537
|
-
componentsCount: this.components.length,
|
|
538
|
-
components: this.components.map(c => ({
|
|
539
|
-
uuid: c.uuid,
|
|
540
|
-
type: c.component_type,
|
|
541
|
-
root: c.root
|
|
542
|
-
}))
|
|
543
|
-
});
|
|
544
|
-
|
|
545
426
|
this.updateComponentsToRender();
|
|
546
427
|
}
|
|
547
428
|
|
|
@@ -587,32 +468,11 @@ export class MicroApp extends LitElement {
|
|
|
587
468
|
}
|
|
588
469
|
|
|
589
470
|
override render() {
|
|
590
|
-
|
|
591
|
-
uuid: this.uuid,
|
|
592
|
-
hasUuid: !!this.uuid,
|
|
593
|
-
componentsToRenderLength: this.componentsToRender.length,
|
|
594
|
-
componentsToRender: this.componentsToRender.map(c => ({
|
|
595
|
-
uuid: c.uuid,
|
|
596
|
-
type: c.component_type,
|
|
597
|
-
root: c.root,
|
|
598
|
-
pageId: c.pageId
|
|
599
|
-
})),
|
|
600
|
-
willReturnNothing: !this.uuid || !this.componentsToRender.length,
|
|
601
|
-
isPreviewMode: this.isPreviewMode()
|
|
602
|
-
});
|
|
471
|
+
if (!this.uuid || !this.componentsToRender.length) return nothing;
|
|
603
472
|
|
|
604
|
-
if (!this.uuid || !this.componentsToRender.length) {
|
|
605
|
-
console.log('[MicroApp DEBUG] ⚠️ render() returning nothing because:', {
|
|
606
|
-
noUuid: !this.uuid,
|
|
607
|
-
noComponentsToRender: !this.componentsToRender.length
|
|
608
|
-
});
|
|
609
|
-
return nothing;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
console.log('[MicroApp DEBUG] ✅ render() will render components');
|
|
613
473
|
return html`
|
|
614
|
-
<div
|
|
615
|
-
|
|
474
|
+
<div
|
|
475
|
+
|
|
616
476
|
style=${styleMap({
|
|
617
477
|
"height": "100%",
|
|
618
478
|
})}>
|
|
@@ -79,7 +79,9 @@ export const defaultMicroAppDataLoader: MicroAppDataLoader = {
|
|
|
79
79
|
*/
|
|
80
80
|
async loadComponents(appUuid: string): Promise<ComponentsLoadResult> {
|
|
81
81
|
try {
|
|
82
|
-
const response = await fetch(`/api/components/application/${appUuid}
|
|
82
|
+
const response = await fetch(`/api/components/application/${appUuid}`, {
|
|
83
|
+
credentials: 'include'
|
|
84
|
+
});
|
|
83
85
|
|
|
84
86
|
if (!response.ok) {
|
|
85
87
|
return {
|
|
@@ -117,7 +119,9 @@ export const defaultMicroAppDataLoader: MicroAppDataLoader = {
|
|
|
117
119
|
*/
|
|
118
120
|
async loadPages(appUuid: string): Promise<PagesLoadResult> {
|
|
119
121
|
try {
|
|
120
|
-
const response = await fetch(`/api/pages/application/${appUuid}
|
|
122
|
+
const response = await fetch(`/api/pages/application/${appUuid}`, {
|
|
123
|
+
credentials: 'include'
|
|
124
|
+
});
|
|
121
125
|
|
|
122
126
|
if (!response.ok) {
|
|
123
127
|
return {
|