@nuraly/runtime 0.1.6 → 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 +2 -4
- 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-0GwD2UDB.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-XzXhMwTc.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-CmrcNfkM.js → handlebars-CF6gdAX4.js} +38 -4
- package/dist/{hcl-6NT8Kbna.js → hcl-YBvpaUqf.js} +13 -1
- package/dist/{html-BsvlsNx5.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-D-M-tA-x.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-_8i5JYO-.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-CiSJOftS.js → mdx-LewPRYF8.js} +2 -2
- package/dist/{micro-app-entry-BT6Pk6bn.js → micro-app-entry-C3RDIukG.js} +7621 -9067
- package/dist/micro-app.bundle.js +3 -3
- package/dist/micro-app.js +3575 -6621
- 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-DNxbUiJS.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-BFH0wq9s.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-DFCDgKOy.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-axhHDYch.js → xml-DgLB7rE6.js} +8 -2
- package/dist/{yaml-fWSpoHsZ.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-B1UJKlqJ.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-BzqArQ52.js +0 -1443
- package/dist/htmlMode-CmNePjzn.js +0 -1453
- package/dist/jsonMode-CKj6yF-8.js +0 -1863
- package/dist/tsMode-DfXg_Y5Y.js +0 -800
- package/redux/actions/application/loadApplicationPermissionAction.ts +0 -10
- package/utils/styleUtil.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -823,10 +823,13 @@ var e = {
|
|
|
823
823
|
],
|
|
824
824
|
tokenizer: {
|
|
825
825
|
root: [
|
|
826
|
+
// quoted identifier
|
|
826
827
|
[/#"[\w \.]+"/, "identifier.quote"],
|
|
828
|
+
// numbers
|
|
827
829
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
828
830
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
829
831
|
[/\d+([eE][\-+]?\d+)?/, "number"],
|
|
832
|
+
// keywords
|
|
830
833
|
[
|
|
831
834
|
/(#?[a-z]+)\b/,
|
|
832
835
|
{
|
|
@@ -840,6 +843,7 @@ var e = {
|
|
|
840
843
|
}
|
|
841
844
|
}
|
|
842
845
|
],
|
|
846
|
+
// built-in types
|
|
843
847
|
[
|
|
844
848
|
/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,
|
|
845
849
|
{
|
|
@@ -849,6 +853,7 @@ var e = {
|
|
|
849
853
|
}
|
|
850
854
|
}
|
|
851
855
|
],
|
|
856
|
+
// other built-ins
|
|
852
857
|
[
|
|
853
858
|
/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,
|
|
854
859
|
{
|
|
@@ -859,6 +864,7 @@ var e = {
|
|
|
859
864
|
}
|
|
860
865
|
}
|
|
861
866
|
],
|
|
867
|
+
// other identifiers
|
|
862
868
|
[/\b([a-zA-Z_][\w\.]*)\b/, "identifier"],
|
|
863
869
|
{ include: "@whitespace" },
|
|
864
870
|
{ include: "@comments" },
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
7
7
|
var e = {
|
|
8
|
+
// the default separators except `$-`
|
|
8
9
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
10
|
comments: {
|
|
10
11
|
lineComment: "#",
|
|
@@ -84,10 +85,13 @@ var e = {
|
|
|
84
85
|
"configuration"
|
|
85
86
|
],
|
|
86
87
|
helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,
|
|
88
|
+
// we include these common regular expressions
|
|
87
89
|
symbols: /[=><!~?&%|+\-*\/\^;\.,]+/,
|
|
88
90
|
escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
91
|
+
// The main tokenizer for our languages
|
|
89
92
|
tokenizer: {
|
|
90
93
|
root: [
|
|
94
|
+
// commands and keywords
|
|
91
95
|
[
|
|
92
96
|
/[a-zA-Z_][\w-]*/,
|
|
93
97
|
{
|
|
@@ -97,20 +101,28 @@ var e = {
|
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
103
|
],
|
|
104
|
+
// whitespace
|
|
100
105
|
[/[ \t\r\n]+/, ""],
|
|
106
|
+
// labels
|
|
101
107
|
[/^:\w*/, "metatag"],
|
|
108
|
+
// variables
|
|
102
109
|
[
|
|
103
110
|
/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,
|
|
104
111
|
"variable"
|
|
105
112
|
],
|
|
113
|
+
// Comments
|
|
106
114
|
[/<#/, "comment", "@comment"],
|
|
107
115
|
[/#.*$/, "comment"],
|
|
116
|
+
// delimiters
|
|
108
117
|
[/[{}()\[\]]/, "@brackets"],
|
|
109
118
|
[/@symbols/, "delimiter"],
|
|
119
|
+
// numbers
|
|
110
120
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
111
121
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
112
122
|
[/\d+?/, "number"],
|
|
123
|
+
// delimiter: after number because of .\d floats
|
|
113
124
|
[/[;,.]/, "delimiter"],
|
|
125
|
+
// strings:
|
|
114
126
|
[/\@"/, "string", '@herestring."'],
|
|
115
127
|
[/\@'/, "string", "@herestring.'"],
|
|
116
128
|
[
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -121,11 +121,13 @@ var e = ["true", "false"], t = {
|
|
|
121
121
|
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
|
|
122
122
|
],
|
|
123
123
|
[
|
|
124
|
+
// If no `syntax` provided, regarded as proto2
|
|
124
125
|
/.*?/,
|
|
125
126
|
{ token: "", switchTo: "@topLevel.proto2" }
|
|
126
127
|
]
|
|
127
128
|
],
|
|
128
129
|
topLevel: [
|
|
130
|
+
// whitespace
|
|
129
131
|
{ include: "@whitespace" },
|
|
130
132
|
{ include: "@constant" },
|
|
131
133
|
[/=/, "operators"],
|
|
@@ -375,6 +377,7 @@ var e = ["true", "false"], t = {
|
|
|
375
377
|
comment: [
|
|
376
378
|
[/[^\/*]+/, "comment"],
|
|
377
379
|
[/\/\*/, "comment", "@push"],
|
|
380
|
+
// nested comment
|
|
378
381
|
["\\*/", "comment", "@pop"],
|
|
379
382
|
[/[\/*]/, "comment"]
|
|
380
383
|
],
|
|
@@ -397,6 +400,7 @@ var e = ["true", "false"], t = {
|
|
|
397
400
|
["@decimalLit", "number"],
|
|
398
401
|
["@floatLit", "number.float"],
|
|
399
402
|
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
|
|
403
|
+
// non-terminated string
|
|
400
404
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
401
405
|
[/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
|
|
402
406
|
[/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -168,10 +168,12 @@ var e = {
|
|
|
168
168
|
"video",
|
|
169
169
|
"wbr"
|
|
170
170
|
],
|
|
171
|
+
// we include these common regular expressions
|
|
171
172
|
symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
|
|
172
173
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
173
174
|
tokenizer: {
|
|
174
175
|
root: [
|
|
176
|
+
// Tag or a keyword at start
|
|
175
177
|
[
|
|
176
178
|
/^(\s*)([a-zA-Z_-][\w-]*)/,
|
|
177
179
|
{
|
|
@@ -187,6 +189,7 @@ var e = {
|
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
191
|
],
|
|
192
|
+
// id
|
|
190
193
|
[
|
|
191
194
|
/^(\s*)(#[a-zA-Z_-][\w-]*)/,
|
|
192
195
|
{
|
|
@@ -196,6 +199,7 @@ var e = {
|
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
201
|
],
|
|
202
|
+
// class
|
|
199
203
|
[
|
|
200
204
|
/^(\s*)(\.[a-zA-Z_-][\w-]*)/,
|
|
201
205
|
{
|
|
@@ -205,8 +209,10 @@ var e = {
|
|
|
205
209
|
}
|
|
206
210
|
}
|
|
207
211
|
],
|
|
212
|
+
// plain text with pipe
|
|
208
213
|
[/^(\s*)(\|.*)$/, ""],
|
|
209
214
|
{ include: "@whitespace" },
|
|
215
|
+
// keywords
|
|
210
216
|
[
|
|
211
217
|
/[a-zA-Z_$][\w$]*/,
|
|
212
218
|
{
|
|
@@ -216,16 +222,20 @@ var e = {
|
|
|
216
222
|
}
|
|
217
223
|
}
|
|
218
224
|
],
|
|
225
|
+
// delimiters and operators
|
|
219
226
|
[/[{}()\[\]]/, "@brackets"],
|
|
220
227
|
[/@symbols/, "delimiter"],
|
|
228
|
+
// numbers
|
|
221
229
|
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
222
230
|
[/\d+/, "number"],
|
|
231
|
+
// strings:
|
|
223
232
|
[/"/, "string", '@string."'],
|
|
224
233
|
[/'/, "string", "@string.'"]
|
|
225
234
|
],
|
|
226
235
|
tag: [
|
|
227
236
|
[/(\.)(\s*$)/, [{ token: "delimiter", next: "@blockText.$S2." }, ""]],
|
|
228
237
|
[/\s+/, { token: "", next: "@simpleText" }],
|
|
238
|
+
// id
|
|
229
239
|
[
|
|
230
240
|
/#[a-zA-Z_-][\w-]*/,
|
|
231
241
|
{
|
|
@@ -235,6 +245,7 @@ var e = {
|
|
|
235
245
|
}
|
|
236
246
|
}
|
|
237
247
|
],
|
|
248
|
+
// class
|
|
238
249
|
[
|
|
239
250
|
/\.[a-zA-Z_-][\w-]*/,
|
|
240
251
|
{
|
|
@@ -244,11 +255,13 @@ var e = {
|
|
|
244
255
|
}
|
|
245
256
|
}
|
|
246
257
|
],
|
|
258
|
+
// attributes
|
|
247
259
|
[/\(/, { token: "delimiter.parenthesis", next: "@attributeList" }]
|
|
248
260
|
],
|
|
249
261
|
simpleText: [
|
|
250
262
|
[/[^#]+$/, { token: "", next: "@popall" }],
|
|
251
263
|
[/[^#]+/, { token: "" }],
|
|
264
|
+
// interpolation
|
|
252
265
|
[
|
|
253
266
|
/(#{)([^}]*)(})/,
|
|
254
267
|
{
|
|
@@ -344,6 +357,7 @@ var e = {
|
|
|
344
357
|
}
|
|
345
358
|
}
|
|
346
359
|
],
|
|
360
|
+
// interpolation
|
|
347
361
|
[/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]],
|
|
348
362
|
[/#/, "string"],
|
|
349
363
|
[
|
|
@@ -356,6 +370,7 @@ var e = {
|
|
|
356
370
|
}
|
|
357
371
|
]
|
|
358
372
|
],
|
|
373
|
+
// Almost identical to above, except for escapes and the output token
|
|
359
374
|
value: [
|
|
360
375
|
[
|
|
361
376
|
/[^\\"']+/,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { m as
|
|
1
|
+
import { m as o } from "./CodeEditor-Bf4L2rO_.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Version: 0.
|
|
4
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
5
5
|
* Released under the MIT license
|
|
6
6
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
7
|
*-----------------------------------------------------------------------------*/
|
|
8
|
-
var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor,
|
|
8
|
+
var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, g = (t, e, n, s) => {
|
|
9
9
|
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
-
for (let r of
|
|
11
|
-
!
|
|
10
|
+
for (let r of p(e))
|
|
11
|
+
!c.call(t, r) && r !== n && a(t, r, { get: () => e[r], enumerable: !(s = l(e, r)) || s.enumerable });
|
|
12
12
|
return t;
|
|
13
|
-
},
|
|
14
|
-
|
|
13
|
+
}, d = (t, e, n) => (g(t, e, "default"), n), i = {};
|
|
14
|
+
d(i, o);
|
|
15
15
|
var m = {
|
|
16
16
|
comments: {
|
|
17
17
|
lineComment: "#",
|
|
@@ -38,8 +38,10 @@ var m = {
|
|
|
38
38
|
],
|
|
39
39
|
onEnterRules: [
|
|
40
40
|
{
|
|
41
|
-
beforeText: new RegExp(
|
|
42
|
-
|
|
41
|
+
beforeText: new RegExp(
|
|
42
|
+
"^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"
|
|
43
|
+
),
|
|
44
|
+
action: { indentAction: i.languages.IndentAction.Indent }
|
|
43
45
|
}
|
|
44
46
|
],
|
|
45
47
|
folding: {
|
|
@@ -49,21 +51,33 @@ var m = {
|
|
|
49
51
|
end: new RegExp("^\\s*#endregion\\b")
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
|
-
},
|
|
54
|
+
}, f = {
|
|
53
55
|
defaultToken: "",
|
|
54
56
|
tokenPostfix: ".python",
|
|
55
57
|
keywords: [
|
|
58
|
+
// This section is the result of running
|
|
59
|
+
// `import keyword; for k in sorted(keyword.kwlist + keyword.softkwlist): print(" '" + k + "',")`
|
|
60
|
+
// in a Python REPL,
|
|
61
|
+
// though note that the output from Python 3 is not a strict superset of the
|
|
62
|
+
// output from Python 2.
|
|
56
63
|
"False",
|
|
64
|
+
// promoted to keyword.kwlist in Python 3
|
|
57
65
|
"None",
|
|
66
|
+
// promoted to keyword.kwlist in Python 3
|
|
58
67
|
"True",
|
|
68
|
+
// promoted to keyword.kwlist in Python 3
|
|
59
69
|
"_",
|
|
70
|
+
// new in Python 3.10
|
|
60
71
|
"and",
|
|
61
72
|
"as",
|
|
62
73
|
"assert",
|
|
63
74
|
"async",
|
|
75
|
+
// new in Python 3
|
|
64
76
|
"await",
|
|
77
|
+
// new in Python 3
|
|
65
78
|
"break",
|
|
66
79
|
"case",
|
|
80
|
+
// new in Python 3.10
|
|
67
81
|
"class",
|
|
68
82
|
"continue",
|
|
69
83
|
"def",
|
|
@@ -72,6 +86,7 @@ var m = {
|
|
|
72
86
|
"else",
|
|
73
87
|
"except",
|
|
74
88
|
"exec",
|
|
89
|
+
// Python 2, but not 3.
|
|
75
90
|
"finally",
|
|
76
91
|
"for",
|
|
77
92
|
"from",
|
|
@@ -82,14 +97,19 @@ var m = {
|
|
|
82
97
|
"is",
|
|
83
98
|
"lambda",
|
|
84
99
|
"match",
|
|
100
|
+
// new in Python 3.10
|
|
85
101
|
"nonlocal",
|
|
102
|
+
// new in Python 3
|
|
86
103
|
"not",
|
|
87
104
|
"or",
|
|
88
105
|
"pass",
|
|
89
106
|
"print",
|
|
107
|
+
// Python 2, but not 3.
|
|
90
108
|
"raise",
|
|
91
109
|
"return",
|
|
92
110
|
"try",
|
|
111
|
+
"type",
|
|
112
|
+
// new in Python 3.12
|
|
93
113
|
"while",
|
|
94
114
|
"with",
|
|
95
115
|
"yield",
|
|
@@ -209,6 +229,7 @@ var m = {
|
|
|
209
229
|
}
|
|
210
230
|
]
|
|
211
231
|
],
|
|
232
|
+
// Deal with white space, including single and multi-line comments
|
|
212
233
|
whitespace: [
|
|
213
234
|
[/\s+/, "white"],
|
|
214
235
|
[/(^#.*$)/, "comment"],
|
|
@@ -227,16 +248,28 @@ var m = {
|
|
|
227
248
|
[/"""/, "string", "@popall"],
|
|
228
249
|
[/"/, "string"]
|
|
229
250
|
],
|
|
251
|
+
// Recognize hex, negatives, decimals, imaginaries, longs, and scientific notation
|
|
230
252
|
numbers: [
|
|
231
253
|
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
|
|
232
254
|
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
|
|
233
255
|
],
|
|
256
|
+
// Recognize strings, including those broken across lines with \ (but not without)
|
|
234
257
|
strings: [
|
|
235
258
|
[/'$/, "string.escape", "@popall"],
|
|
259
|
+
[/f'{1,3}/, "string.escape", "@fStringBody"],
|
|
236
260
|
[/'/, "string.escape", "@stringBody"],
|
|
237
261
|
[/"$/, "string.escape", "@popall"],
|
|
262
|
+
[/f"{1,3}/, "string.escape", "@fDblStringBody"],
|
|
238
263
|
[/"/, "string.escape", "@dblStringBody"]
|
|
239
264
|
],
|
|
265
|
+
fStringBody: [
|
|
266
|
+
[/[^\\'\{\}]+$/, "string", "@popall"],
|
|
267
|
+
[/[^\\'\{\}]+/, "string"],
|
|
268
|
+
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
|
269
|
+
[/\\./, "string"],
|
|
270
|
+
[/'/, "string.escape", "@popall"],
|
|
271
|
+
[/\\$/, "string"]
|
|
272
|
+
],
|
|
240
273
|
stringBody: [
|
|
241
274
|
[/[^\\']+$/, "string", "@popall"],
|
|
242
275
|
[/[^\\']+/, "string"],
|
|
@@ -244,16 +277,31 @@ var m = {
|
|
|
244
277
|
[/'/, "string.escape", "@popall"],
|
|
245
278
|
[/\\$/, "string"]
|
|
246
279
|
],
|
|
280
|
+
fDblStringBody: [
|
|
281
|
+
[/[^\\"\{\}]+$/, "string", "@popall"],
|
|
282
|
+
[/[^\\"\{\}]+/, "string"],
|
|
283
|
+
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
|
284
|
+
[/\\./, "string"],
|
|
285
|
+
[/"/, "string.escape", "@popall"],
|
|
286
|
+
[/\\$/, "string"]
|
|
287
|
+
],
|
|
247
288
|
dblStringBody: [
|
|
248
289
|
[/[^\\"]+$/, "string", "@popall"],
|
|
249
290
|
[/[^\\"]+/, "string"],
|
|
250
291
|
[/\\./, "string"],
|
|
251
292
|
[/"/, "string.escape", "@popall"],
|
|
252
293
|
[/\\$/, "string"]
|
|
294
|
+
],
|
|
295
|
+
fStringDetail: [
|
|
296
|
+
[/[:][^}]+/, "string"],
|
|
297
|
+
[/[!][ars]/, "string"],
|
|
298
|
+
// only !a, !r, !s are supported by f-strings: https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
|
|
299
|
+
[/=/, "string"],
|
|
300
|
+
[/\}/, "identifier", "@pop"]
|
|
253
301
|
]
|
|
254
302
|
}
|
|
255
303
|
};
|
|
256
304
|
export {
|
|
257
305
|
m as conf,
|
|
258
|
-
|
|
306
|
+
f as language
|
|
259
307
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -26,15 +26,19 @@ var e = {
|
|
|
26
26
|
{ open: '"', close: '"' }
|
|
27
27
|
]
|
|
28
28
|
}, t = {
|
|
29
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
29
30
|
keywords: [
|
|
30
31
|
"namespace",
|
|
31
32
|
"open",
|
|
33
|
+
"import",
|
|
34
|
+
"export",
|
|
32
35
|
"as",
|
|
33
36
|
"operation",
|
|
34
37
|
"function",
|
|
35
38
|
"body",
|
|
36
39
|
"adjoint",
|
|
37
40
|
"newtype",
|
|
41
|
+
"struct",
|
|
38
42
|
"controlled",
|
|
39
43
|
"if",
|
|
40
44
|
"elif",
|
|
@@ -135,7 +139,6 @@ var e = {
|
|
|
135
139
|
"stackalloc",
|
|
136
140
|
"static",
|
|
137
141
|
"string",
|
|
138
|
-
"struct",
|
|
139
142
|
"switch",
|
|
140
143
|
"this",
|
|
141
144
|
"throw",
|
|
@@ -193,6 +196,7 @@ var e = {
|
|
|
193
196
|
"^=",
|
|
194
197
|
":",
|
|
195
198
|
"::",
|
|
199
|
+
".",
|
|
196
200
|
"..",
|
|
197
201
|
"==",
|
|
198
202
|
"...",
|
|
@@ -230,10 +234,13 @@ var e = {
|
|
|
230
234
|
"w/="
|
|
231
235
|
],
|
|
232
236
|
namespaceFollows: ["namespace", "open"],
|
|
237
|
+
importsFollows: ["import"],
|
|
233
238
|
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
|
234
239
|
escapes: /\\[\s\S]/,
|
|
240
|
+
// The main tokenizer for our languages
|
|
235
241
|
tokenizer: {
|
|
236
242
|
root: [
|
|
243
|
+
// identifiers and keywords
|
|
237
244
|
[
|
|
238
245
|
/[a-zA-Z_$][\w$]*/,
|
|
239
246
|
{
|
|
@@ -242,6 +249,10 @@ var e = {
|
|
|
242
249
|
token: "keyword.$0",
|
|
243
250
|
next: "@namespace"
|
|
244
251
|
},
|
|
252
|
+
"@importsFollows": {
|
|
253
|
+
token: "keyword.$0",
|
|
254
|
+
next: "@imports"
|
|
255
|
+
},
|
|
245
256
|
"@typeKeywords": "type",
|
|
246
257
|
"@keywords": "keyword",
|
|
247
258
|
"@constants": "constant",
|
|
@@ -251,12 +262,18 @@ var e = {
|
|
|
251
262
|
}
|
|
252
263
|
}
|
|
253
264
|
],
|
|
265
|
+
// whitespace
|
|
254
266
|
{ include: "@whitespace" },
|
|
267
|
+
// delimiters and operators
|
|
255
268
|
[/[{}()\[\]]/, "@brackets"],
|
|
256
269
|
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
|
270
|
+
// numbers
|
|
257
271
|
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
258
272
|
[/\d+/, "number"],
|
|
273
|
+
// delimiter: after number because of .\d floats
|
|
259
274
|
[/[;,.]/, "delimiter"],
|
|
275
|
+
// strings
|
|
276
|
+
//[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-terminated string
|
|
260
277
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
|
261
278
|
],
|
|
262
279
|
string: [
|
|
@@ -267,7 +284,15 @@ var e = {
|
|
|
267
284
|
namespace: [
|
|
268
285
|
{ include: "@whitespace" },
|
|
269
286
|
[/[A-Za-z]\w*/, "namespace"],
|
|
270
|
-
[/[
|
|
287
|
+
[/[\.]/, "delimiter"],
|
|
288
|
+
["", "", "@pop"]
|
|
289
|
+
],
|
|
290
|
+
imports: [
|
|
291
|
+
{ include: "@whitespace" },
|
|
292
|
+
[/[A-Za-z]\w*(?=\.)/, "namespace"],
|
|
293
|
+
[/[A-Za-z]\w*/, "identifier"],
|
|
294
|
+
[/\*/, "wildcard"],
|
|
295
|
+
[/[\.,]/, "delimiter"],
|
|
271
296
|
["", "", "@pop"]
|
|
272
297
|
],
|
|
273
298
|
whitespace: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -169,6 +169,7 @@ var e = {
|
|
|
169
169
|
}
|
|
170
170
|
]
|
|
171
171
|
],
|
|
172
|
+
// Recognize Roxygen comments
|
|
172
173
|
roxygen: [
|
|
173
174
|
[
|
|
174
175
|
/@\w+/,
|
|
@@ -191,10 +192,12 @@ var e = {
|
|
|
191
192
|
],
|
|
192
193
|
[/.*/, { token: "comment.doc", next: "@pop" }]
|
|
193
194
|
],
|
|
195
|
+
// Recognize positives, negatives, decimals, imaginaries, and scientific notation
|
|
194
196
|
numbers: [
|
|
195
197
|
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
196
198
|
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
|
|
197
199
|
],
|
|
200
|
+
// Recognize operators
|
|
198
201
|
operators: [
|
|
199
202
|
[/<{1,2}-/, "operator"],
|
|
200
203
|
[/->{1,2}/, "operator"],
|
|
@@ -207,6 +210,7 @@ var e = {
|
|
|
207
210
|
[/>>/, "operator"],
|
|
208
211
|
[/[-+=&|!<>^~*/:$]/, "operator"]
|
|
209
212
|
],
|
|
213
|
+
// Recognize strings, including those broken across lines
|
|
210
214
|
strings: [
|
|
211
215
|
[/'/, "string.escape", "@stringBody"],
|
|
212
216
|
[/"/, "string.escape", "@dblStringBody"]
|