@wix/cli-app 1.1.20 → 1.1.22
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/build/CreateVersionCommand-GFKZ4QO4.js +4 -0
- package/build/CreateVersionCommand-GFKZ4QO4.js.map +1 -0
- package/build/DevCommand-3X6YOCR6.js +10 -0
- package/build/DevCommand-3X6YOCR6.js.map +1 -0
- package/build/{GenerateCommand-IJSMXTIA.js → GenerateCommand-G54DEIA6.js} +26 -26
- package/build/{GenerateCommand-IJSMXTIA.js.map → GenerateCommand-G54DEIA6.js.map} +1 -1
- package/build/PreviewCommand-MS3G34SU.js +4 -0
- package/build/ServeCommand-FMBULAKF.js +4 -0
- package/build/{ServeCommand-QOKAYFJP.js.map → ServeCommand-FMBULAKF.js.map} +1 -1
- package/build/build-MRYN3JUP.js +4 -0
- package/build/build-MRYN3JUP.js.map +1 -0
- package/build/chunk-25SKF6FV.js +4 -0
- package/build/chunk-25SKF6FV.js.map +1 -0
- package/build/chunk-2TSKEJBV.js +4 -0
- package/build/{chunk-BMK5ZXHB.js → chunk-4B7ROXUZ.js} +2 -2
- package/build/chunk-5TKU7FRO.js +4 -0
- package/build/chunk-5TKU7FRO.js.map +1 -0
- package/build/chunk-6XYAO7TZ.js +4 -0
- package/build/chunk-6XYAO7TZ.js.map +1 -0
- package/build/chunk-7FABCBRF.js +4 -0
- package/build/{chunk-5OTJBADY.js.map → chunk-7FABCBRF.js.map} +1 -1
- package/build/chunk-ADKWZ4EI.js +4 -0
- package/build/chunk-ADKWZ4EI.js.map +1 -0
- package/build/{chunk-LNZPUJZM.js → chunk-AYAI5JUA.js} +2 -2
- package/build/chunk-AYAI5JUA.js.map +1 -0
- package/build/chunk-CRZ4CUP7.js +17 -0
- package/build/chunk-CRZ4CUP7.js.map +1 -0
- package/build/chunk-EJFNJ7PW.js +98 -0
- package/build/chunk-EJFNJ7PW.js.map +1 -0
- package/build/chunk-EZFGMZDY.js +4 -0
- package/build/chunk-EZFGMZDY.js.map +1 -0
- package/build/{chunk-XTLXT6QW.js → chunk-FF2EQB5V.js} +2 -2
- package/build/{chunk-CTWRW76F.js → chunk-G22H7Q33.js} +34 -34
- package/build/{chunk-CTWRW76F.js.map → chunk-G22H7Q33.js.map} +1 -1
- package/build/chunk-LQZY2KM3.js +6 -0
- package/build/chunk-LQZY2KM3.js.map +1 -0
- package/build/{chunk-RPZCQEPB.js → chunk-LWP5GALA.js} +2 -2
- package/build/{chunk-R2DHQREZ.js → chunk-LZXJDSN6.js} +2 -2
- package/build/chunk-MG53FTJX.js +87 -0
- package/build/chunk-MG53FTJX.js.map +1 -0
- package/build/chunk-SXC7QEHP.js +4 -0
- package/build/chunk-SXC7QEHP.js.map +1 -0
- package/build/{chunk-MZN364Q6.js → chunk-U7U3RJXS.js} +2 -2
- package/build/chunk-U7U3RJXS.js.map +1 -0
- package/build/{chunk-ESE4L44D.js → chunk-ZW7WK7M6.js} +2 -2
- package/build/index.js +2 -2
- package/build/preview-CLVQJW7O.js +4 -0
- package/build/preview-CLVQJW7O.js.map +1 -0
- package/build/{render-command-32GXLYY2.js → render-command-PULKFUBS.js} +2 -2
- package/package.json +6 -5
- package/build/CreateVersionCommand-SW4ZOQ6N.js +0 -4
- package/build/CreateVersionCommand-SW4ZOQ6N.js.map +0 -1
- package/build/DevCommand-5ZXJQCYA.js +0 -4
- package/build/DevCommand-5ZXJQCYA.js.map +0 -1
- package/build/PreviewCommand-2MM4267L.js +0 -4
- package/build/ServeCommand-QOKAYFJP.js +0 -4
- package/build/build-FJY4BC54.js +0 -4
- package/build/build-FJY4BC54.js.map +0 -1
- package/build/chunk-3VQX7LRS.js +0 -4
- package/build/chunk-3VQX7LRS.js.map +0 -1
- package/build/chunk-423K4EW3.js +0 -4
- package/build/chunk-5OTJBADY.js +0 -4
- package/build/chunk-ALZJFJ23.js +0 -4
- package/build/chunk-ALZJFJ23.js.map +0 -1
- package/build/chunk-C632XAQG.js +0 -23
- package/build/chunk-C632XAQG.js.map +0 -1
- package/build/chunk-F2ZEWDAK.js +0 -73
- package/build/chunk-F2ZEWDAK.js.map +0 -1
- package/build/chunk-INHSYB3J.js +0 -4
- package/build/chunk-INHSYB3J.js.map +0 -1
- package/build/chunk-LNZPUJZM.js.map +0 -1
- package/build/chunk-MZN364Q6.js.map +0 -1
- package/build/chunk-N5OCWMLI.js +0 -4
- package/build/chunk-N5OCWMLI.js.map +0 -1
- package/build/chunk-PYEFXRM2.js +0 -87
- package/build/chunk-PYEFXRM2.js.map +0 -1
- package/build/chunk-RIDNK3X3.js +0 -4
- package/build/chunk-RIDNK3X3.js.map +0 -1
- package/build/chunk-SARV44FW.js +0 -6
- package/build/chunk-SARV44FW.js.map +0 -1
- package/build/chunk-TTTQ7SZK.js +0 -4
- package/build/chunk-TTTQ7SZK.js.map +0 -1
- package/build/chunk-YKE3BZS3.js +0 -27
- package/build/chunk-YKE3BZS3.js.map +0 -1
- package/build/preview-4GL6ALWD.js +0 -4
- package/build/preview-4GL6ALWD.js.map +0 -1
- /package/build/{PreviewCommand-2MM4267L.js.map → PreviewCommand-MS3G34SU.js.map} +0 -0
- /package/build/{chunk-423K4EW3.js.map → chunk-2TSKEJBV.js.map} +0 -0
- /package/build/{chunk-BMK5ZXHB.js.map → chunk-4B7ROXUZ.js.map} +0 -0
- /package/build/{chunk-XTLXT6QW.js.map → chunk-FF2EQB5V.js.map} +0 -0
- /package/build/{chunk-RPZCQEPB.js.map → chunk-LWP5GALA.js.map} +0 -0
- /package/build/{chunk-R2DHQREZ.js.map → chunk-LZXJDSN6.js.map} +0 -0
- /package/build/{chunk-ESE4L44D.js.map → chunk-ZW7WK7M6.js.map} +0 -0
- /package/build/{render-command-32GXLYY2.js.map → render-command-PULKFUBS.js.map} +0 -0
|
@@ -6,6 +6,6 @@ This may happen because the site was deleted or your access has been revoked.
|
|
|
6
6
|
Please select another Development Site to continue`,"general.dashboard_page_text":"<0>Click here</0> to open your application in the Wix Dashboard","general.dashboard_page_click_here":"Click here","general.close_screen":"Press <0/> to close","general.write_dev_log_failure.message":"Can not write logs to <0>{path}</0>","general.write_dev_log_failure.hint":"Make sure the file has proper permissions and is accessible","general.open_page_error":"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:","general.dashboard_pages_viewer.title":"Press a number key to open a dashboard page:","general.dashboard_plugins_viewer.title":"Press a number key to open a dashboard plugin:","general.dashboard_menu_plugins_viewer.title":"Press a number key to open a dashboard menu plugin:","general.backend_api_viewer.title":"Press a number key to trigger an api:","general.backend_plugin_viewer.title":"Press a number key to trigger an plugin:","general.backend_events_viewer.title":"Press a number key to trigger an event:","general.numeric_viewer.show_more":"View more...","general.platform.site":"Site","general.platform.unpublished_site":"Site (publish the site to enable site preview)","general.platform.editor":"Editor","general.platform.dashboard":"Dashboard","general.platform.backend":"Backend","general.platform.none":`Your project doesn't seem to have any extensions.
|
|
7
7
|
|
|
8
8
|
Extensions are the building blocks of your app.
|
|
9
|
-
Make sure it is configured properly, or read our <0>documentation</0> to start developing your first extension.`,"general.dev_site.current":"Current Development Site: {name}","general.view_changes":"View your local changes: <0>(Press a key to open)</0>","general.open_preview.title_single":"Open the preview on the","general.open_preview.title_multiple":"Open the preview on:","preview_command.creating_preview":"Creating a preview...","preview_command.creating_preview_success":"Preview created successfully!","preview_command.uploading_files":"Uploading your application files...","preview_command.uploading_files_success":"Uploaded successfully!","dev_command.dev_environment.loading":"Starting dev environment...","dev_command.dev_environment.started":"Local development environment ready.","dev_command.dev_environment.url":"Application served on <0/>","dev_command.dev_environment.https_url.open_info":"Press <0/> to open & approve dev server","dev_command.dev_environment.https_url.failed_to_open":"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.","dev_command.dev_site.change":"Press <0/> to change your current Development Site","dev_command.site_selector.error":"Failed to change Development Site!","dev_command.dashboard_pages_screen.select_label":"Select a dashboard page to open","dev_command.dashboard_menu_plugin_screen.select_label":"Select a dashboard menu plugin to open","dev_command.dashboard_page_plugin_screen.select_label":"Select a dashboard plugin to open","dev_command.dashboard_modal_screen.select_label":"Select a dashboard modal to open","dev_command.backend_apis_screen.select_label":"Select api to trigger","dev_command.backend_events_screen.select_label":"Select event to trigger","dev_command.backend_plugins_screen.select_label":"Select plugin to trigger","dev_command.dev_env_logs.title":"Dev Environment Logs: <0>(full logs at {path})</0>","dev_command.dev_env_logs.empty":"No logs to show","dev_command.config_change":"Loading App Manifest changes...","dev_command.config_update":"App Manifest updated. Refresh existing browser tabs to view the latest changes.","dev_command.config_didnt_update":"No App Manifest update occurred","dev_command.tunneling.confirm":"To proceed, we'll set up a secure tunnel from your machine for development purposes, press Y to continue","dev_command.tunneling.abort_dev":"Operation aborted. Tunneling is necessary to run your application.","dev_command.new_custom_element.warning":"New site widget detected. Press <0/> to update the app in Dev Center & reinstall it on your dev site for access.","dev_command.new_custom_element.confirm_reinstall":"Press <0/> when you reinstalled app on your dev site","dev_command.new_custom_element.reinstall_error":"We had troubles with adding your new custom element. You can try to do it by yourself. Press <0/> to continue","serve_command.starting_serve_environment":"Starting serve environment...","serve_command.starting_serve_environment_success":"Serve environment started! <0/>","serve_command.production_build":"Application is using a production build","create_version_command.creating_version":"Creating a version...","create_version_command.creating_version_success":"Successfully created v{version}","create_version_command.current_version":"Your current version is: v{version}","create_version_command.confirm_version_creation":"Continue with creating the new version?","create_version_command.confirm_version_creation_aborted":"Version creation aborted","create_version_command.version_type_question":"What type of version would you like to create?","create_version_command.version_type_question_minor":"Minor (v{version})","create_version_command.version_type_question_major":"Major (v{version})","create_version_command.check_preview_before_version_release":"Before creating a new version, let's create a preview of your app","create_version_command.checking_validation_status":"Checking if this version can be submitted\u2026","create_version_command.version_validation_ok":"This version can be submitted for review in the <0>Dev Center</0>","create_version_command.version_validation_has_failures":`This version has blockers preventing it from being submitted for review.
|
|
9
|
+
Make sure it is configured properly, or read our <0>documentation</0> to start developing your first extension.`,"general.dev_site.current":"Current Development Site: {name}","general.view_changes":"View your local changes: <0>(Press a key to open)</0>","general.open_preview.title_single":"Open the preview on the","general.open_preview.title_multiple":"Open the preview on:","preview_command.creating_preview":"Creating a preview...","preview_command.creating_preview_success":"Preview created successfully!","preview_command.uploading_files":"Uploading your application files...","preview_command.uploading_files_success":"Uploaded successfully!","dev_command.dev_environment.loading":"Starting dev environment...","dev_command.dev_environment.started":"Local development environment ready.","dev_command.dev_environment.url":"Application served on <0/>","dev_command.dev_environment.backend_url":"Backend served on <0/>","dev_command.dev_environment.https_url.open_info":"Press <0/> to open & approve dev server","dev_command.dev_environment.https_url.failed_to_open":"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.","dev_command.dev_site.change":"Press <0/> to change your current Development Site","dev_command.site_selector.error":"Failed to change Development Site!","dev_command.dashboard_pages_screen.select_label":"Select a dashboard page to open","dev_command.dashboard_menu_plugin_screen.select_label":"Select a dashboard menu plugin to open","dev_command.dashboard_page_plugin_screen.select_label":"Select a dashboard plugin to open","dev_command.dashboard_modal_screen.select_label":"Select a dashboard modal to open","dev_command.backend_apis_screen.select_label":"Select api to trigger","dev_command.backend_events_screen.select_label":"Select event to trigger","dev_command.backend_plugins_screen.select_label":"Select plugin to trigger","dev_command.dev_env_logs.title":"Dev Environment Logs: <0>(full logs at {path})</0>","dev_command.dev_env_logs.empty":"No logs to show","dev_command.config_change":"Loading App Manifest changes...","dev_command.config_update":"App Manifest updated. Refresh existing browser tabs to view the latest changes.","dev_command.config_didnt_update":"No App Manifest update occurred","dev_command.tunneling.confirm":"To proceed, we'll set up a secure tunnel from your machine for development purposes, press Y to continue","dev_command.tunneling.abort_dev":"Operation aborted. Tunneling is necessary to run your application.","dev_command.new_custom_element.warning":"New site widget detected. Press <0/> to update the app in Dev Center & reinstall it on your dev site for access.","dev_command.new_custom_element.confirm_reinstall":"Press <0/> when you reinstalled app on your dev site","dev_command.new_custom_element.reinstall_error":"We had troubles with adding your new custom element. You can try to do it by yourself. Press <0/> to continue","serve_command.starting_serve_environment":"Starting serve environment...","serve_command.starting_serve_environment_success":"Serve environment started! <0/>","serve_command.production_build":"Application is using a production build","create_version_command.creating_version":"Creating a version...","create_version_command.creating_version_success":"Successfully created v{version}","create_version_command.current_version":"Your current version is: v{version}","create_version_command.confirm_version_creation":"Continue with creating the new version?","create_version_command.confirm_version_creation_aborted":"Version creation aborted","create_version_command.version_type_question":"What type of version would you like to create?","create_version_command.version_type_question_minor":"Minor (v{version})","create_version_command.version_type_question_major":"Major (v{version})","create_version_command.check_preview_before_version_release":"Before creating a new version, let's create a preview of your app","create_version_command.checking_validation_status":"Checking if this version can be submitted\u2026","create_version_command.version_validation_ok":"This version can be submitted for review in the <0>Dev Center</0>","create_version_command.version_validation_has_failures":`This version has blockers preventing it from being submitted for review.
|
|
10
10
|
Please fix them and submit your app in the <0>Dev Center</0>.`,"embedded_script.type.essential":"Essential","embedded_script.type.essential.description":"Must load regardless of policy","embedded_script.type.functional":"Functional","embedded_script.type.functional.description":"Adds optional functionality to the site","embedded_script.type.analytics":"Analytics","embedded_script.type.analytics.description":"Adds analytics abilities to the site","embedded_script.type.advertising":"Advertising","embedded_script.type.advertising.description":"Adds advertising content or advertising tracking to the site","embedded_script.placement.head":"Head","embedded_script.placement.head.description":"In the document head","embedded_script.placement.body_start":"Body Start","embedded_script.placement.body_start.description":"Prepended in the body","embedded_script.placement.body_end":"Body End","embedded_script.placement.body_end.description":"Appended in the body","generate_command.description":"Add new extensions to your application","generate_command.flow.dashboard_category":"Dashboard","generate_command.flow.site_category":"Site","generate_command.flow.dashboard_page":"Dashboard Page","generate_command.flow.sidebar_category":"Sidebar Category","generate_command.flow.dashboard_plugin":"Dashboard Plugin","generate_command.flow.dashboard_menu_plugin":"Dashboard Menu Plugin","generate_command.flow.embedded_script":"Embedded Script","generate_command.flow.dashboard_modal":"Dashboard Modal","generate_command.flow.custom_element":"Site Widget","generate_command.flow.choose_flow":"What kind of extension would you like to generate?","generate_command.generation.loading":"Generating {subject}...","generate_command.generation.done":"\u{1F680} The new {extensionName} has been generated successfully.","generate_command.generation.learn_more":"\u{1F4DA} Learn more about {extensionName}: <0/>","generate_command.dashboard_page.choose_route":"Enter the route for the new page:","generate_command.dashboard_page.route_placeholder":"my-page","generate_command.dashboard_page.choose_title":"Page title:","generate_command.dashboard_page.title_placeholder":"My Page","generate_command.dashboard_page.add_to_category":"Add to a sidebar category?","generate_command.dashboard_page.choose_category":"Sidebar category:","generate_command.sidebar_category.choose_label":"Enter the label for the new category:","generate_command.sidebar_category.label_placeholder":"My App","generate_command.custom_element.validation.element_exists":"The custome element folder must be unique, please choose a name that has not been used yet in your application.","generate_command.custom_element.validation.element_invalid":"The custom element folder must be a valid path ([a-z-/]+) and must not start with a dot.","generate_command.custom_element.choose_folder":"Element folder (relative to src/site/widgets/custom-elements):","generate_command.custom_element.folder_placeholder":"my-widget","generate_command.custom_element.choose_name":"Element name:","generate_command.custom_element.name_placeholder":"Custom Element","generate_command.embedded_script.validation.script_exists":"The script folder must be unique, please choose a name that has not been used yet in your application.","generate_command.embedded_script.validation.script_invalid":"The script folder must be a valid path ([a-z0-9-/]+) and must not start with a dot.","generate_command.embedded_script.choose_folder":"Script folder (relative to src/site/embedded-scripts):","generate_command.embedded_script.folder_placeholder":"my-script","generate_command.embedded_script.choose_name":"Script name:","generate_command.embedded_script.name_placeholder":"My Script","generate_command.embedded_script.choose_type":"Script type:","generate_command.embedded_script.type_info":"Will be used for GDPR and cookie consent purposes","generate_command.embedded_script.choose_placement":"Placement:","generate_command.embedded_script.placement_info":"Will determine where the script is embedded","generate_command.dashboard_modal.validation.folder_exists":"The modal folder must be unique, please choose a folder name that has not been used yet in your application.","generate_command.dashboard_modal.validation.folder_invalid":"The modal folder must be a valid path ([a-z0-9-/]+) and must not start with a dot.","generate_command.dashboard_modal.choose_folder":"Enter the folder name for the new modal:","generate_command.dashboard_modal.folder_placeholder":"my-modal","generate_command.dashboard_modal.choose_title":"Modal title:","generate_command.dashboard_modal.title_placeholder":"My Modal","generate_command.dashboard_plugin.what_to_extend":"What would you like to extend?","generate_command.dashboard_plugin.what_to_extend.description":"Plugins let you extend Wix apps by embedding your UI inside dedicated slots within a dashboard page (<0>read more</0>)","generate_command.dashboard_plugin.what_to_extend.item_description":"<0>read more</0>","generate_command.dashboard_plugin.choose_folder":"Plugin folder (relative to src/dashboard/plugins)","generate_command.dashboard_plugin.folder_placeholder":"my-plugin","generate_command.dashboard_plugin.choose_title":"Plugin title","generate_command.dashboard_plugin.title_placeholder":"My Plugin","generate_command.required_app":"Would you like to set {appName} as a requirement for your app?","generate_command.required_app.description":"This means sites must have {appName} installed before installing your app (<0>read more</0>)","generate_command.dashboard_menu_plugin.what_to_extend":"What would you like to extend?","generate_command.dashboard_menu_plugin.what_to_extend.description":"Menu Plugins let you extend Wix apps by adding a menu item in a pre-defined slot in a menu on a dashboard page (<0>read more</0>)","generate_command.dashboard_menu_plugin.what_to_extend.item_description":"<0>read more</0>","generate_command.dashboard_menu_plugin.what_to_do":"What action will happen after clicking on the menu item?","generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page":"Navigate to a page","generate_command.dashboard_menu_plugin.what_to_do.open_modal":"Open a modal","generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page":"Choose a page the menu item will navigate to:","generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.info":"Choose from a list of available pages in your project or manually add a page from a different app","generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other":"Use a page from a different app","generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other.choose_page_id":"What is the unique id of the page?","generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other.page_id_invalid":"Page id has to be in the format of a uuid","generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component":"Choose the modal to open:","generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.info":"Choose from a list of available modals in your project or manually add a modal from a different app","generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other":"Use a modal from a different app","generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other.choose_component_id":"What is the unique id of the modal?","generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other.component_id_invalid":"Modal id has to be in the format of a uuid","generate_command.dashboard_menu_plugin.choose_folder":"Menu Plugin folder (relative to src/dashboard/menu-plugins)","generate_command.dashboard_menu_plugin.folder_placeholder":"my-plugin","generate_command.dashboard_menu_plugin.choose_title":"Menu Plugin title","generate_command.dashboard_menu_plugin.title_placeholder":"My Plugin"};export{o as a};
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-AYAI5JUA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/messages.json"],"sourcesContent":["{\n \"create_version_command_def.option.version_type\": \"The type of version you would like to create\",\n \"create_version_command_def.option.approve_preview\": \"Approve preview automatically\",\n \"create_version_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"create_version_command_def.option.site\": \"The site id to use for Application Preview urls, defaults to the current selected development site\",\n \"dev_command_def.option.https\": \"Start local dev server on https\",\n \"app_preview_command_def.option.site\": \"The site id to use for Application Preview urls, defaults to the current selected development site\",\n \"app_preview_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"app_preview_command_def.option.no_input\": \"Disable command interactivity\",\n \"general.loading\": \"Loading...\",\n \"general.no_site_id_configured\": \"You don't have a Development Site currently configured\",\n \"general.site_id_not_found\": \"Your currently configured Development Site was not found ({id})\\nThis may happen because the site was deleted or your access has been revoked.\\n\\nPlease select another Development Site to continue\",\n \"general.dashboard_page_text\": \"<0>Click here</0> to open your application in the Wix Dashboard\",\n \"general.dashboard_page_click_here\": \"Click here\",\n \"general.close_screen\": \"Press <0/> to close\",\n \"general.write_dev_log_failure.message\": \"Can not write logs to <0>{path}</0>\",\n \"general.write_dev_log_failure.hint\": \"Make sure the file has proper permissions and is accessible\",\n \"general.open_page_error\": \"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:\",\n \"general.dashboard_pages_viewer.title\": \"Press a number key to open a dashboard page:\",\n \"general.dashboard_plugins_viewer.title\": \"Press a number key to open a dashboard plugin:\",\n \"general.dashboard_menu_plugins_viewer.title\": \"Press a number key to open a dashboard menu plugin:\",\n \"general.backend_api_viewer.title\": \"Press a number key to trigger an api:\",\n \"general.backend_plugin_viewer.title\": \"Press a number key to trigger an plugin:\",\n \"general.backend_events_viewer.title\": \"Press a number key to trigger an event:\",\n \"general.numeric_viewer.show_more\": \"View more...\",\n \"general.platform.site\": \"Site\",\n \"general.platform.unpublished_site\": \"Site (publish the site to enable site preview)\",\n \"general.platform.editor\": \"Editor\",\n \"general.platform.dashboard\": \"Dashboard\",\n \"general.platform.backend\": \"Backend\",\n \"general.platform.none\": \"Your project doesn't seem to have any extensions.\\n\\nExtensions are the building blocks of your app.\\nMake sure it is configured properly, or read our <0>documentation</0> to start developing your first extension.\",\n \"general.dev_site.current\": \"Current Development Site: {name}\",\n \"general.view_changes\": \"View your local changes: <0>(Press a key to open)</0>\",\n \"general.open_preview.title_single\": \"Open the preview on the\",\n \"general.open_preview.title_multiple\": \"Open the preview on:\",\n \"preview_command.creating_preview\": \"Creating a preview...\",\n \"preview_command.creating_preview_success\": \"Preview created successfully!\",\n \"preview_command.uploading_files\": \"Uploading your application files...\",\n \"preview_command.uploading_files_success\": \"Uploaded successfully!\",\n \"dev_command.dev_environment.loading\": \"Starting dev environment...\",\n \"dev_command.dev_environment.started\": \"Local development environment ready.\",\n \"dev_command.dev_environment.url\": \"Application served on <0/>\",\n \"dev_command.dev_environment.backend_url\": \"Backend served on <0/>\",\n \"dev_command.dev_environment.https_url.open_info\": \"Press <0/> to open & approve dev server\",\n \"dev_command.dev_environment.https_url.failed_to_open\": \"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.\",\n \"dev_command.dev_site.change\": \"Press <0/> to change your current Development Site\",\n \"dev_command.site_selector.error\": \"Failed to change Development Site!\",\n \"dev_command.dashboard_pages_screen.select_label\": \"Select a dashboard page to open\",\n \"dev_command.dashboard_menu_plugin_screen.select_label\": \"Select a dashboard menu plugin to open\",\n \"dev_command.dashboard_page_plugin_screen.select_label\": \"Select a dashboard plugin to open\",\n \"dev_command.dashboard_modal_screen.select_label\": \"Select a dashboard modal to open\",\n \"dev_command.backend_apis_screen.select_label\": \"Select api to trigger\",\n \"dev_command.backend_events_screen.select_label\": \"Select event to trigger\",\n \"dev_command.backend_plugins_screen.select_label\": \"Select plugin to trigger\",\n \"dev_command.dev_env_logs.title\": \"Dev Environment Logs: <0>(full logs at {path})</0>\",\n \"dev_command.dev_env_logs.empty\": \"No logs to show\",\n \"dev_command.config_change\": \"Loading App Manifest changes...\",\n \"dev_command.config_update\": \"App Manifest updated. Refresh existing browser tabs to view the latest changes.\",\n \"dev_command.config_didnt_update\": \"No App Manifest update occurred\",\n \"dev_command.tunneling.confirm\": \"To proceed, we'll set up a secure tunnel from your machine for development purposes, press Y to continue\",\n \"dev_command.tunneling.abort_dev\": \"Operation aborted. Tunneling is necessary to run your application.\",\n \"dev_command.new_custom_element.warning\": \"New site widget detected. Press <0/> to update the app in Dev Center & reinstall it on your dev site for access.\",\n \"dev_command.new_custom_element.confirm_reinstall\": \"Press <0/> when you reinstalled app on your dev site\",\n \"dev_command.new_custom_element.reinstall_error\": \"We had troubles with adding your new custom element. You can try to do it by yourself. Press <0/> to continue\",\n \"serve_command.starting_serve_environment\": \"Starting serve environment...\",\n \"serve_command.starting_serve_environment_success\": \"Serve environment started! <0/>\",\n \"serve_command.production_build\": \"Application is using a production build\",\n \"create_version_command.creating_version\": \"Creating a version...\",\n \"create_version_command.creating_version_success\": \"Successfully created v{version}\",\n \"create_version_command.current_version\": \"Your current version is: v{version}\",\n \"create_version_command.confirm_version_creation\": \"Continue with creating the new version?\",\n \"create_version_command.confirm_version_creation_aborted\": \"Version creation aborted\",\n \"create_version_command.version_type_question\": \"What type of version would you like to create?\",\n \"create_version_command.version_type_question_minor\": \"Minor (v{version})\",\n \"create_version_command.version_type_question_major\": \"Major (v{version})\",\n \"create_version_command.check_preview_before_version_release\": \"Before creating a new version, let's create a preview of your app\",\n \"create_version_command.checking_validation_status\": \"Checking if this version can be submitted…\",\n \"create_version_command.version_validation_ok\": \"This version can be submitted for review in the <0>Dev Center</0>\",\n \"create_version_command.version_validation_has_failures\": \"This version has blockers preventing it from being submitted for review.\\nPlease fix them and submit your app in the <0>Dev Center</0>.\",\n \"embedded_script.type.essential\": \"Essential\",\n \"embedded_script.type.essential.description\": \"Must load regardless of policy\",\n \"embedded_script.type.functional\": \"Functional\",\n \"embedded_script.type.functional.description\": \"Adds optional functionality to the site\",\n \"embedded_script.type.analytics\": \"Analytics\",\n \"embedded_script.type.analytics.description\": \"Adds analytics abilities to the site\",\n \"embedded_script.type.advertising\": \"Advertising\",\n \"embedded_script.type.advertising.description\": \"Adds advertising content or advertising tracking to the site\",\n \"embedded_script.placement.head\": \"Head\",\n \"embedded_script.placement.head.description\": \"In the document head\",\n \"embedded_script.placement.body_start\": \"Body Start\",\n \"embedded_script.placement.body_start.description\": \"Prepended in the body\",\n \"embedded_script.placement.body_end\": \"Body End\",\n \"embedded_script.placement.body_end.description\": \"Appended in the body\",\n \"generate_command.description\": \"Add new extensions to your application\",\n \"generate_command.flow.dashboard_category\": \"Dashboard\",\n \"generate_command.flow.site_category\": \"Site\",\n \"generate_command.flow.dashboard_page\": \"Dashboard Page\",\n \"generate_command.flow.sidebar_category\": \"Sidebar Category\",\n \"generate_command.flow.dashboard_plugin\": \"Dashboard Plugin\",\n \"generate_command.flow.dashboard_menu_plugin\": \"Dashboard Menu Plugin\",\n \"generate_command.flow.embedded_script\": \"Embedded Script\",\n \"generate_command.flow.dashboard_modal\": \"Dashboard Modal\",\n \"generate_command.flow.custom_element\": \"Site Widget\",\n \"generate_command.flow.choose_flow\": \"What kind of extension would you like to generate?\",\n \"generate_command.generation.loading\": \"Generating {subject}...\",\n \"generate_command.generation.done\": \"🚀 The new {extensionName} has been generated successfully.\",\n \"generate_command.generation.learn_more\": \"📚 Learn more about {extensionName}: <0/>\",\n \"generate_command.dashboard_page.choose_route\": \"Enter the route for the new page:\",\n \"generate_command.dashboard_page.route_placeholder\": \"my-page\",\n \"generate_command.dashboard_page.choose_title\": \"Page title:\",\n \"generate_command.dashboard_page.title_placeholder\": \"My Page\",\n \"generate_command.dashboard_page.add_to_category\": \"Add to a sidebar category?\",\n \"generate_command.dashboard_page.choose_category\": \"Sidebar category:\",\n \"generate_command.sidebar_category.choose_label\": \"Enter the label for the new category:\",\n \"generate_command.sidebar_category.label_placeholder\": \"My App\",\n \"generate_command.custom_element.validation.element_exists\": \"The custome element folder must be unique, please choose a name that has not been used yet in your application.\",\n \"generate_command.custom_element.validation.element_invalid\": \"The custom element folder must be a valid path ([a-z-/]+) and must not start with a dot.\",\n \"generate_command.custom_element.choose_folder\": \"Element folder (relative to src/site/widgets/custom-elements):\",\n \"generate_command.custom_element.folder_placeholder\": \"my-widget\",\n \"generate_command.custom_element.choose_name\": \"Element name:\",\n \"generate_command.custom_element.name_placeholder\": \"Custom Element\",\n \"generate_command.embedded_script.validation.script_exists\": \"The script folder must be unique, please choose a name that has not been used yet in your application.\",\n \"generate_command.embedded_script.validation.script_invalid\": \"The script folder must be a valid path ([a-z0-9-/]+) and must not start with a dot.\",\n \"generate_command.embedded_script.choose_folder\": \"Script folder (relative to src/site/embedded-scripts):\",\n \"generate_command.embedded_script.folder_placeholder\": \"my-script\",\n \"generate_command.embedded_script.choose_name\": \"Script name:\",\n \"generate_command.embedded_script.name_placeholder\": \"My Script\",\n \"generate_command.embedded_script.choose_type\": \"Script type:\",\n \"generate_command.embedded_script.type_info\": \"Will be used for GDPR and cookie consent purposes\",\n \"generate_command.embedded_script.choose_placement\": \"Placement:\",\n \"generate_command.embedded_script.placement_info\": \"Will determine where the script is embedded\",\n \"generate_command.dashboard_modal.validation.folder_exists\": \"The modal folder must be unique, please choose a folder name that has not been used yet in your application.\",\n \"generate_command.dashboard_modal.validation.folder_invalid\": \"The modal folder must be a valid path ([a-z0-9-/]+) and must not start with a dot.\",\n \"generate_command.dashboard_modal.choose_folder\": \"Enter the folder name for the new modal:\",\n \"generate_command.dashboard_modal.folder_placeholder\": \"my-modal\",\n \"generate_command.dashboard_modal.choose_title\": \"Modal title:\",\n \"generate_command.dashboard_modal.title_placeholder\": \"My Modal\",\n \"generate_command.dashboard_plugin.what_to_extend\": \"What would you like to extend?\",\n \"generate_command.dashboard_plugin.what_to_extend.description\": \"Plugins let you extend Wix apps by embedding your UI inside dedicated slots within a dashboard page (<0>read more</0>)\",\n \"generate_command.dashboard_plugin.what_to_extend.item_description\": \"<0>read more</0>\",\n \"generate_command.dashboard_plugin.choose_folder\": \"Plugin folder (relative to src/dashboard/plugins)\",\n \"generate_command.dashboard_plugin.folder_placeholder\": \"my-plugin\",\n \"generate_command.dashboard_plugin.choose_title\": \"Plugin title\",\n \"generate_command.dashboard_plugin.title_placeholder\": \"My Plugin\",\n \"generate_command.required_app\": \"Would you like to set {appName} as a requirement for your app?\",\n \"generate_command.required_app.description\": \"This means sites must have {appName} installed before installing your app (<0>read more</0>)\",\n \"generate_command.dashboard_menu_plugin.what_to_extend\": \"What would you like to extend?\",\n \"generate_command.dashboard_menu_plugin.what_to_extend.description\": \"Menu Plugins let you extend Wix apps by adding a menu item in a pre-defined slot in a menu on a dashboard page (<0>read more</0>)\",\n \"generate_command.dashboard_menu_plugin.what_to_extend.item_description\": \"<0>read more</0>\",\n \"generate_command.dashboard_menu_plugin.what_to_do\": \"What action will happen after clicking on the menu item?\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page\": \"Navigate to a page\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal\": \"Open a modal\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page\": \"Choose a page the menu item will navigate to:\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.info\": \"Choose from a list of available pages in your project or manually add a page from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other\": \"Use a page from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other.choose_page_id\": \"What is the unique id of the page?\",\n \"generate_command.dashboard_menu_plugin.what_to_do.navigate_to_page.choose_page.other.page_id_invalid\": \"Page id has to be in the format of a uuid\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component\": \"Choose the modal to open:\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.info\": \"Choose from a list of available modals in your project or manually add a modal from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other\": \"Use a modal from a different app\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other.choose_component_id\": \"What is the unique id of the modal?\",\n \"generate_command.dashboard_menu_plugin.what_to_do.open_modal.choose_component.other.component_id_invalid\": \"Modal id has to be in the format of a uuid\",\n \"generate_command.dashboard_menu_plugin.choose_folder\": \"Menu Plugin folder (relative to src/dashboard/menu-plugins)\",\n \"generate_command.dashboard_menu_plugin.folder_placeholder\": \"my-plugin\",\n \"generate_command.dashboard_menu_plugin.choose_title\": \"Menu Plugin title\",\n \"generate_command.dashboard_menu_plugin.title_placeholder\": \"My Plugin\"\n}\n"],"mappings":";;AAAA,IAAAA,EAAA,CACE,iDAAkD,+CAClD,oDAAqD,gCACrD,6CAA8C,2EAC9C,yCAA0C,qGAC1C,+BAAgC,kCAChC,sCAAuC,qGACvC,0CAA2C,2EAC3C,0CAA2C,gCAC3C,kBAAmB,aACnB,gCAAiC,yDACjC,4BAA6B;AAAA;AAAA;AAAA,oDAC7B,8BAA+B,kEAC/B,oCAAqC,aACrC,uBAAwB,sBACxB,wCAAyC,sCACzC,qCAAsC,8DACtC,0BAA2B,mGAC3B,uCAAwC,+CACxC,yCAA0C,iDAC1C,8CAA+C,sDAC/C,mCAAoC,wCACpC,sCAAuC,2CACvC,sCAAuC,0CACvC,mCAAoC,eACpC,wBAAyB,OACzB,oCAAqC,iDACrC,0BAA2B,SAC3B,6BAA8B,YAC9B,2BAA4B,UAC5B,wBAAyB;AAAA;AAAA;AAAA,iHACzB,2BAA4B,mCAC5B,uBAAwB,wDACxB,oCAAqC,0BACrC,sCAAuC,uBACvC,mCAAoC,wBACpC,2CAA4C,gCAC5C,kCAAmC,sCACnC,0CAA2C,yBAC3C,sCAAuC,8BACvC,sCAAuC,uCACvC,kCAAmC,6BACnC,0CAA2C,yBAC3C,kDAAmD,0CACnD,uDAAwD,6FACxD,8BAA+B,qDAC/B,kCAAmC,qCACnC,kDAAmD,kCACnD,wDAAyD,yCACzD,wDAAyD,oCACzD,kDAAmD,mCACnD,+CAAgD,wBAChD,iDAAkD,0BAClD,kDAAmD,2BACnD,iCAAkC,qDAClC,iCAAkC,kBAClC,4BAA6B,kCAC7B,4BAA6B,kFAC7B,kCAAmC,kCACnC,gCAAiC,2GACjC,kCAAmC,qEACnC,yCAA0C,mHAC1C,mDAAoD,uDACpD,iDAAkD,gHAClD,2CAA4C,gCAC5C,mDAAoD,kCACpD,iCAAkC,0CAClC,0CAA2C,wBAC3C,kDAAmD,kCACnD,yCAA0C,sCAC1C,kDAAmD,0CACnD,0DAA2D,2BAC3D,+CAAgD,iDAChD,qDAAsD,qBACtD,qDAAsD,qBACtD,8DAA+D,oEAC/D,oDAAqD,kDACrD,+CAAgD,oEAChD,yDAA0D;AAAA,+DAC1D,iCAAkC,YAClC,6CAA8C,iCAC9C,kCAAmC,aACnC,8CAA+C,0CAC/C,iCAAkC,YAClC,6CAA8C,uCAC9C,mCAAoC,cACpC,+CAAgD,+DAChD,iCAAkC,OAClC,6CAA8C,uBAC9C,uCAAwC,aACxC,mDAAoD,wBACpD,qCAAsC,WACtC,iDAAkD,uBAClD,+BAAgC,yCAChC,2CAA4C,YAC5C,sCAAuC,OACvC,uCAAwC,iBACxC,yCAA0C,mBAC1C,yCAA0C,mBAC1C,8CAA+C,wBAC/C,wCAAyC,kBACzC,wCAAyC,kBACzC,uCAAwC,cACxC,oCAAqC,qDACrC,sCAAuC,0BACvC,mCAAoC,qEACpC,yCAA0C,mDAC1C,+CAAgD,oCAChD,oDAAqD,UACrD,+CAAgD,cAChD,oDAAqD,UACrD,kDAAmD,6BACnD,kDAAmD,oBACnD,iDAAkD,wCAClD,sDAAuD,SACvD,4DAA6D,kHAC7D,6DAA8D,2FAC9D,gDAAiD,iEACjD,qDAAsD,YACtD,8CAA+C,gBAC/C,mDAAoD,iBACpD,4DAA6D,yGAC7D,6DAA8D,sFAC9D,iDAAkD,yDAClD,sDAAuD,YACvD,+CAAgD,eAChD,oDAAqD,YACrD,+CAAgD,eAChD,6CAA8C,oDAC9C,oDAAqD,aACrD,kDAAmD,8CACnD,4DAA6D,+GAC7D,6DAA8D,qFAC9D,iDAAkD,2CAClD,sDAAuD,WACvD,gDAAiD,eACjD,qDAAsD,WACtD,mDAAoD,iCACpD,+DAAgE,yHAChE,oEAAqE,mBACrE,kDAAmD,oDACnD,uDAAwD,YACxD,iDAAkD,eAClD,sDAAuD,YACvD,gCAAiC,iEACjC,4CAA6C,+FAC7C,wDAAyD,iCACzD,oEAAqE,oIACrE,yEAA0E,mBAC1E,oDAAqD,2DACrD,qEAAsE,qBACtE,+DAAgE,eAChE,iFAAkF,gDAClF,sFAAuF,oGACvF,uFAAwF,kCACxF,sGAAuG,qCACvG,uGAAwG,4CACxG,gFAAiF,4BACjF,qFAAsF,sGACtF,sFAAuF,mCACvF,0GAA2G,sCAC3G,2GAA4G,6CAC5G,uDAAwD,8DACxD,4DAA6D,YAC7D,sDAAuD,oBACvD,2DAA4D,WAC9D","names":["messages_default"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{C as et,b as S,c as b,d as He,e as d,j as Ye,p as ve,q as Xe,r as z,s as Q,t as Ze,v as J,w as Qe,z as U}from"./chunk-MG53FTJX.js";import{a as H,b as Y,c as X,d as C,e as Ke,f as G,g as le,j as fe,k as he,l as Z,n as Ve,o as ge}from"./chunk-EJFNJ7PW.js";import{a as P,c as y,d as A,f as Be,g as We,n as g,o as M}from"./chunk-LQZY2KM3.js";import{a as R,c as V,e as _,g as l,h as i}from"./chunk-V4TR6DCM.js";var Je=V((ea,It)=>{"use strict";i();var Nt=R("fs"),Me;function Yr(){try{return Nt.statSync("/.dockerenv"),!0}catch{return!1}}function Xr(){try{return Nt.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}It.exports=()=>(Me===void 0&&(Me=Yr()||Xr()),Me)});var Mt=V((ra,Ue)=>{"use strict";i();var Zr=R("os"),Qr=R("fs"),Et=Je(),Rt=()=>{if(process.platform!=="linux")return!1;if(Zr.release().toLowerCase().includes("microsoft"))return!Et();try{return Qr.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Et():!1}catch{return!1}};process.env.__IS_WSL_TEST__?Ue.exports=Rt:Ue.exports=Rt()});var Ut=V((na,Jt)=>{"use strict";i();Jt.exports=(r,e,t)=>{let n=s=>Object.defineProperty(r,e,{value:s,enumerable:!0,writable:!0});return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get(){let s=t();return n(s),s},set(s){n(s)}}),r}});var Wt=V((sa,Bt)=>{"use strict";i();var eo=R("path"),to=R("child_process"),{promises:ie,constants:jt}=R("fs"),se=Mt(),ro=Je(),$e=Ut(),Lt=eo.join(l,"xdg-open"),{platform:$,arch:$t}=process,oo=()=>{try{return ie.statSync("/run/.containerenv"),!0}catch{return!1}},Le;function no(){return Le===void 0&&(Le=oo()||ro()),Le}var ao=(()=>{let r="/mnt/",e;return async function(){if(e)return e;let t="/etc/wsl.conf",n=!1;try{await ie.access(t,jt.F_OK),n=!0}catch{}if(!n)return r;let s=await ie.readFile(t,{encoding:"utf8"}),c=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(s);return c?(e=c.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):r}})(),Gt=async(r,e)=>{let t;for(let n of r)try{return await e(n)}catch(s){t=s}throw t},ue=async r=>{if(r={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...r},Array.isArray(r.app))return Gt(r.app,u=>ue({...r,app:u}));let{name:e,arguments:t=[]}=r.app||{};if(t=[...t],Array.isArray(e))return Gt(e,u=>ue({...r,app:{name:u,arguments:t}}));let n,s=[],c={};if($==="darwin")n="open",r.wait&&s.push("--wait-apps"),r.background&&s.push("--background"),r.newInstance&&s.push("--new"),e&&s.push("-a",e);else if($==="win32"||se&&!no()&&!e){let u=await ao();n=se?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,s.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),se||(c.windowsVerbatimArguments=!0);let m=["Start"];r.wait&&m.push("-Wait"),e?(m.push(`"\`"${e}\`""`,"-ArgumentList"),r.target&&t.unshift(r.target)):r.target&&m.push(`"${r.target}"`),t.length>0&&(t=t.map(h=>`"\`"${h}\`""`),m.push(t.join(","))),r.target=Buffer.from(m.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let u=!l||l==="/",m=!1;try{await ie.access(Lt,jt.X_OK),m=!0}catch{}n=process.versions.electron||$==="android"||u||!m?"xdg-open":Lt}t.length>0&&s.push(...t),r.wait||(c.stdio="ignore",c.detached=!0)}r.target&&s.push(r.target),$==="darwin"&&t.length>0&&s.push("--args",...t);let p=to.spawn(n,s,c);return r.wait?new Promise((u,m)=>{p.once("error",m),p.once("close",h=>{if(!r.allowNonzeroExitCode&&h>0){m(new Error(`Exited with code ${h}`));return}u(p)})}):(p.unref(),p)},Ge=(r,e)=>{if(typeof r!="string")throw new TypeError("Expected a `target`");return ue({...e,target:r})},so=(r,e)=>{if(typeof r!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=e||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return ue({...e,app:{name:r,arguments:t}})};function zt(r){if(typeof r=="string"||Array.isArray(r))return r;let{[$t]:e}=r;if(!e)throw new Error(`${$t} is not supported`);return e}function ze({[$]:r},{wsl:e}){if(e&&se)return zt(e);if(!r)throw new Error(`${$} is not supported`);return zt(r)}var ce={};$e(ce,"chrome",()=>ze({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));$e(ce,"firefox",()=>ze({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));$e(ce,"edge",()=>ze({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Ge.apps=ce;Ge.openApp=so;Bt.exports=Ge});i();import sr,{createContext as ir,useContext as ur}from"react";var tt=ir(null),cr=function({children:r,value:e}){return sr.createElement(tt.Provider,{value:e},r)},ye=()=>{let r=ur(tt);if(r===null)throw new Error("useBiLogger() cannot be used without an <BiProvider>");return r};i();i();import dr,{createContext as pr,useContext as mr}from"react";var rt=pr(null),lr=r=>dr.createElement(rt.Provider,{...r}),xe=()=>{let r=mr(rt);if(r===null)throw new Error("useErrorReporter() cannot be used without an <ErrorReporterProvider>");return r};i();i();var ot=_(Ke(),1);var fr={backoffice:"https://manage.wix.com",editor:"https://editor.wix.com",code:"https://code.wix.com",general:"https://www.wix.com",standalone:void 0};function q(r,e){return(...t)=>e.apply(r,t).catch(n=>{throw G(n)&&!r.isCancel(n)&&!n.response?new y({code:A.NetworkError({cause:n}),cause:n,info:{code:n.code}}):n})}function ee({getAppToken:r,createHeaders:e,type:t}){let n=(0,ot.createHttpClient)({baseURL:fr[t],...t!=="standalone"?{getAppToken:r}:{},createHeaders:()=>({...e?.(),"X-XSRF-TOKEN":"nocheck",Cookie:"XSRF-TOKEN=nocheck","User-Agent":"wix-cli"})});return{...n,request:q(n,n.request),get:q(n,n.get),delete:q(n,n.delete),head:q(n,n.head),options:q(n,n.options),post:q(n,n.post),put:q(n,n.put),patch:q(n,n.patch)}}i();import{createElement as Sr,useMemo as Fr}from"react";i();var Te=_(P(),1);import o from"react";i();function te(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e]}function nt(){return typeof WeakMap<"u"?new WeakMap:hr()}function hr(){return{add:te,delete:te,get:te,set:te,has:function(r){return!1}}}var gr=Object.prototype.hasOwnProperty,we=function(r,e){return gr.call(r,e)};function Ae(r,e){for(var t in e)we(e,t)&&(r[t]=e[t]);return r}var vr=/^[ \t]*(?:\r\n|\r|\n)/,yr=/(?:\r\n|\r|\n)[ \t]*$/,xr=/^(?:[\r\n]|$)/,Ar=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,wr=/^[ \t]*[\r\n][ \t\r\n]*$/;function at(r,e,t){var n=0,s=r[0].match(Ar);s&&(n=s[1].length);var c="(\\r\\n|\\r|\\n).{0,"+n+"}",p=new RegExp(c,"g");e&&(r=r.slice(1));var u=t.newline,m=t.trimLeadingNewline,h=t.trimTrailingNewline,N=typeof u=="string",I=r.length,me=r.map(function(k,je){return k=k.replace(p,"$1"),je===0&&m&&(k=k.replace(vr,"")),je===I-1&&h&&(k=k.replace(yr,"")),N&&(k=k.replace(/\r\n|\n|\r/g,function(mo){return u})),k});return me}function Tr(r,e){for(var t="",n=0,s=r.length;n<s;n++)t+=r[n],n<s-1&&(t+=e[n]);return t}function _r(r){return we(r,"raw")&&we(r,"length")}function st(r){var e=nt(),t=nt();function n(c){for(var p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];if(_r(c)){var m=c,h=(p[0]===n||p[0]===F)&&wr.test(m[0])&&xr.test(m[1]),N=h?t:e,I=N.get(m);if(I||(I=at(m,h,r),N.set(m,I)),p.length===0)return I[0];var me=Tr(I,h?p.slice(1):p);return me}else return st(Ae(Ae({},r),c||{}))}var s=Ae(n,{string:function(c){return at([c],!1,r)[0]}});return s}var F=st({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=F,Object.defineProperty(F,"__esModule",{value:!0}),F.default=F,F.outdent=F}catch{}i();import E from"react";var a=({message:r,explanation:e,hint:t})=>E.createElement(S,{flexDirection:"column"},E.createElement(ve,{type:"error"},r),e&&E.createElement(ve,{type:"warning"},e),t&&E.createElement(S,{paddingTop:1,columnGap:1},E.createElement(Ye,null),typeof t=="string"?E.createElement(d,null,t):t)),v=({message:r,explanation:e,hint:t})=>E.createElement(a,{message:r,explanation:e,hint:t??"This is probably a temporary system error and has been logged. Try again shortly."});function ut(r){return(0,Te.match)(r,{UnknownFailure:({error:e})=>()=>o.createElement(o.Fragment,null,o.createElement(d,{skin:"error"},"Oh no, seems like the CLI encountered an unexpected error:"),e instanceof Error?o.createElement(d,{skin:"error"},e.message):o.createElement(d,null,JSON.stringify(e))),FailedToGetDeviceCode:()=>()=>o.createElement(v,{message:"An error occured while logging in: Failed to issue a login device code"}),FailedToGetAuthToken:()=>()=>o.createElement(v,{message:"An error occured while logging in: Failed to issue refresh token"}),FailedToRefreshTokenForSite:()=>()=>o.createElement(v,{message:"An error occured while logging in: Failed to issue refresh token for site"}),FailedToRenewAuthToken:()=>()=>o.createElement(v,{message:"Failed to renew access token."}),FailedToRenewAuthTokenSiteNotFound:({siteId:e})=>()=>o.createElement(a,{message:`Authenticate failed, your configured development site (${e}) could not be accessed`,hint:"Make sure the site exists and you still have access to it"}),FailedToRenewAuthTokenRefreshTokenRevoked:()=>()=>o.createElement(a,{message:"Failed to renew access token: refresh token has been revoked",hint:"Please login again to get a new refresh token"}),FailedToRevokeRefreshToken:({email:e})=>()=>o.createElement(v,{message:"An error occured while trying to logout: Failed to revoke refresh token!",explanation:`Wix CLI is still logged in to account ${e}`}),FailedToFetchPackageJson:()=>()=>o.createElement(v,{message:"Failed to fetch package data."}),LatestVersionOfCreateAppRequired:({currentVersion:e,latestVersion:t,updateCommand:n})=>()=>o.createElement(a,{message:o.createElement(o.Fragment,null,"Generating a Wix App is only supported using the latest version (",t,") of ",o.createElement(d,{bold:!0},"@wix/create-app")," (current:"," ",e,")"),hint:o.createElement(d,null,"Make sure you are using the following command:",o.createElement(b,null),o.createElement(d,{bold:!0},n),o.createElement(b,null),"If the problem persists, try clearing your package manager's cache")}),EmptyDirectoryRequiredAppGeneration:({folder:e})=>()=>o.createElement(a,{message:o.createElement(o.Fragment,null,"Generating a Wix App requires an empty directory but"," ",o.createElement(d,{bold:!0},e)," already exists and isn't empty"),hint:o.createElement(d,null,"Choose a different project name or delete the existing"," ",o.createElement(d,{bold:!0},e)," folder")}),InvalidNewPackageName:({packageName:e,validations:t})=>()=>o.createElement(a,{message:o.createElement(o.Fragment,null,"Generating a Wix App requires a valid npm package name for the generated ",o.createElement(d,{bold:!0},"package.json")," ",o.createElement(b,null),"The name ",o.createElement(d,{bold:!0},e)," failed the following validations:",o.createElement(b,null),t.map((n,s)=>o.createElement(d,{key:s},o.createElement(b,null),"- ",n))),hint:"Choose a different project name that follows the validations above"}),SiteSelectorTimedout:()=>()=>o.createElement(a,{message:"Waiting for application installation timed out."}),TypeErrorInvalidUrl:()=>()=>o.createElement(a,{message:"Invalid assets URL."}),UnsupportedPackageManager:({packageManagerName:e})=>()=>o.createElement(a,{message:"Generating a Wix App requires the usage of a supported package manager",hint:`Expected Yarn or NPM but ${e?`got ${e}`:"failed to detect a package manager"}`}),UnsupportedPackageManagerWorkspaces:({packageManagerName:e})=>()=>o.createElement(a,{message:`Generating a Wix App inside ${e} workspaces is not supported`}),FailedToGetDeveloperApps:()=>()=>o.createElement(v,{message:"Failed to get the list of your applications"}),FailedToCreateDevCenterApp:()=>()=>o.createElement(v,{message:"Failed to register your application in Wix Dev Center"}),FailedToCreateTunnel:()=>()=>o.createElement(a,{message:"Failed to create tunnel"}),FailedToDeleteTunnel:()=>()=>o.createElement(a,{message:"Failed to delete tunnel"}),SitePermissionDenied:({siteId:e})=>()=>o.createElement(a,{message:`You don't have permissions to site ${e}`}),AppPermissionDenied:({appId:e})=>()=>o.createElement(a,{message:`You don't have permissions to application ${e}`}),FailedToUpdateTelemetryConfig:()=>()=>o.createElement(a,{message:"Failed to change telemetry preferences"}),FailedToInstallPackage:({packageName:e,cause:t})=>{let n=x(t);return()=>o.createElement(a,{message:`Failed to install npm package ${e}. Cause: ${n}`})},FailedToResolveNpmDependencies:()=>()=>o.createElement(v,{message:"Failed to resolve npm dependencies"}),FailedToInstallPackages:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to install npm packages. Cause: ${t}`})},FailedMigrationToAnyNpm:()=>()=>o.createElement(a,{message:o.createElement(o.Fragment,null,"Could not start the migration process"),hint:o.createElement(d,null,"Make sure that your package.json does not have packages installed outside of dev dependencies")}),DeprecatedVersion:({currentVersion:e})=>()=>o.createElement(a,{message:o.createElement(o.Fragment,null,`Your version of the Wix CLI (${e}) is`,o.createElement(d,{bold:!0}," deprecated"),"."),hint:"Please update to the latest version to continue"}),FailedToUninstallPackage:({packageName:e,cause:t})=>{let n=x(t);return()=>o.createElement(a,{message:`Failed to uninstall npm package ${e}. Cause: ${n}`})},FailedToSyncToRevision:({revision:e})=>()=>o.createElement(a,{message:`Failed to sync the local project to revision ${e}`}),FailedToCreateVersion:()=>()=>o.createElement(a,{message:"Wix CLI failed to create version for your app"}),FailedToReadCache:({path:e})=>()=>o.createElement(a,{message:`Failed to read cache file at ${e}.`}),FailedToWriteCache:({path:e})=>()=>o.createElement(a,{message:`Failed to write cache file at ${e}.`}),UploadApplicationFailed:()=>()=>o.createElement(a,{message:"Failed to upload the application"}),BuiltProjectNeeded:()=>()=>o.createElement(a,{message:"Can not find build output, please execute `wix app build` to build your app before proceeding"}),WixUninstallMissingPackageName:()=>()=>o.createElement(a,{message:"Please specify a package name"}),FailedToReadJson:({filePath:e,cause:t})=>{let n=x(t);return()=>o.createElement(a,{message:`Failed to read ${e}. Cause: ${n}`})},InvalidJsonFile:({filePath:e,cause:t})=>{let n=x(t);return()=>o.createElement(a,{message:`Invalid JSON file located at ${e}. Cause: ${n}`})},FailedToWriteWixLock:()=>()=>o.createElement(a,{message:"Failed to write 'wix.lock'"}),InvalidVeloConfigJson:({configFilename:e,cause:t})=>{let n=x(t);return()=>o.createElement(a,{message:`Invalid ${e}, make sure it's configured correctly. Cause: ${n}`})},DashboardPageConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Dashboard page config not found at ${e}`}),EmbeddedScriptConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Embedded script config not found at ${e}`}),CustomElementConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Custom element config not found at ${e}`}),NoExtensionsFound:()=>()=>o.createElement(a,{message:"Your project doesn't seem to have any extensions.",explanation:"Extensions are the building blocks of your app.",hint:"Make sure it is configured properly, or read our documentation (\u200Bhttps://wix.to/b7o4Ml0) to start developing your first extension."}),NoPagesDirectoryFound:({srcDir:e})=>()=>o.createElement(a,{message:o.createElement(o.Fragment,null,"No ",o.createElement(d,{bold:!0},"pages")," directory was found under"," ",o.createElement(d,{bold:!0},e),"."),hint:o.createElement(d,null,"Consider re-cloning the project repository or creating a"," ",o.createElement(d,{bold:!0},"pages")," directory under ",o.createElement(d,{bold:!0},e),".")}),DashboardPluginConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Dashboard plugin config not found at ${e}`}),DashboardMenuPluginConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Dashboard menu plugin config not found at ${e}`}),ServicePluginConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Service plugin config not found at ${e}`}),DashboardModalConfigNotFound:({configPath:e})=>()=>o.createElement(a,{message:`Dashboard modal config not found at ${e}`}),InvalidConfigSchemaError:({configPath:e,zodError:t})=>()=>o.createElement(a,{message:F`
|
|
4
|
+
Invalid configuration found at \`${e}\`:
|
|
5
|
+
The following errors were found:
|
|
6
|
+
${t.errors.map(it).join(`
|
|
7
|
+
`)}`,hint:"Fix the errors above for your configurations to be applied successfully."}),InvalidParamsOverrideSchemaError:({paramsOverridePath:e,zodError:t})=>()=>o.createElement(a,{message:F`
|
|
8
|
+
Invalid params override found at \`${e}\`:
|
|
9
|
+
The following errors were found:
|
|
10
|
+
${t.errors.map(it).join(`
|
|
11
|
+
`)}`,hint:"Fix the errors above for your params override to be applied successfully."}),PermissionDenied:()=>()=>o.createElement(a,{message:"Forbidden operation. Missing permissions"}),FailedToReadProjectFiles:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to read source files: make sure you have an 'src' folder and that it's readable. Cause: ${t}`})},FailedToCreateVersionForSubmittedApp:()=>()=>o.createElement(a,{message:"Cannot create a new application version because the app has an active marketplace submission",hint:"You will be able continue creating versions when your submission is approved or retracted"}),GridAppFilesMaxLengthExcceeded:({maxSizeViolationsData:e,filePaths:t})=>{let n="Found one or more project files that are bigger than the allowed limit";return e?.files?.length&&(n+=` (${e.expectedSize}KB): ${e.files.map(s=>`${t[s.fileIndex]} (${s.receivedSize}KB)`).join(", ")}`),()=>o.createElement(a,{message:n})},GridAppFailedToUpdateFiles:()=>()=>o.createElement(a,{message:F`
|
|
12
|
+
Failed to update files.
|
|
13
|
+
Failed to sync changes from local files to the Dev Editor
|
|
14
|
+
Still watching local files and will continue to sync changes...
|
|
15
|
+
`}),FailedToWatchFiles:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to watch files. Cause: ${t}`})},FailedToCreateGridApp:({error:e})=>()=>o.createElement(a,{message:"Failed to create an isolated environment.",explanation:e}),DeviceCodeTimedOut:()=>()=>o.createElement(a,{message:"The device code has not been approved in the time allocated, please start the login process again."}),DuplicateComponentIdsError:({issues:e})=>{let t=({issue:s})=>{let c=p=>(0,Te.match)(p,{page:()=>"page",plugin:()=>"plugin","menu-plugin":()=>"menu plugin","sidebar-category":()=>"sidebar category","embedded-script":()=>"embedded script","custom-element":()=>"custom element",modal:()=>"modal",topology:()=>"topology"});return o.createElement(S,{flexDirection:"column"},o.createElement(d,null,o.createElement(d,{bold:!0},"Duplicate ID: "),s.id),o.createElement(d,{bold:!0},"Extensions:"),s.components.map(({name:p,path:u,type:m})=>o.createElement(d,{key:u},"[",c(m),"] ",p," (",u,")")),o.createElement(d,null,o.createElement(d,{bold:!0},"Possible GUID: "),s.suggestedId))},n=o.createElement(S,{flexDirection:"column",rowGap:1},o.createElement(d,null,"You can use the provided suggested GUIDs as the ID of the newly created extension."),e.map(s=>o.createElement(t,{issue:s,key:s.id})));return()=>o.createElement(a,{message:"Found multiple extensions with the same id, this might happen if you copy paste folders.",hint:n})},InvalidResponseData:()=>()=>o.createElement(v,{message:"Got unexpected response from server."}),InvalidCreateAppResponse:()=>()=>o.createElement(a,{message:"`createApp` returned an invalid response."}),InvalidDeployAppResponse:()=>()=>o.createElement(a,{message:"Got unexpected response from server. Make sure you are running a supported version of the Velo CLI."}),InvalidGetDeploymentResponse:()=>()=>o.createElement(a,{message:"Got unexpected response from server. Please try again later.."}),FailedToFetchRegisteredEvents:()=>()=>o.createElement(a,{message:"Failed to fetch registered events from backend server."}),FailedToGetPagesDiff:()=>()=>o.createElement(a,{message:"Failed to request pages diff."}),InvalidViteBuildOutput:()=>()=>o.createElement(a,{message:"Invalid vite build output"}),ViteModuleBundleNotFound:()=>()=>o.createElement(a,{message:"Could not find module bundle in vite build output"}),ViteFileNotFoundInOutput:({fileName:e})=>()=>o.createElement(a,{message:`Could not find ${e} in vite build output`}),FailedToCreatePresignedUrl:()=>()=>o.createElement(a,{message:"Failed to create a presigned upload url"}),FailedToCreateBackendDeployment:()=>()=>o.createElement(a,{message:"Failed to create backend deployment"}),FailedToUpdateBackendDeployment:()=>()=>o.createElement(a,{message:"Failed to update backend deployment"}),FailedToGetBackendDeployment:()=>()=>o.createElement(a,{message:"Failed to get backend deployment"}),FailedToDeployBackend:()=>()=>o.createElement(a,{message:"Failed to deploy backend"}),FailedToUploadApplicationFiles:()=>()=>o.createElement(a,{message:"Failed to upload the application files"}),FailedToVerifyDeployment:()=>()=>o.createElement(a,{message:"Deployment was not finished within the desired timeframe, please try again later."}),FailedToGetUserInfo:()=>()=>o.createElement(a,{message:"Failed to get user information."}),FailedToGetMyAccount:()=>()=>o.createElement(v,{message:"Failed to get account information."}),FailedToCreateDevelopmentSite:()=>()=>o.createElement(a,{message:"Failed to create a Development Site"}),FailedToGetDevelopmentSites:()=>()=>o.createElement(a,{message:"Failed to request development sites."}),FailedToGetDevelopmentSitesLimit:()=>()=>o.createElement(a,{message:"Failed to request development sites limit."}),FailedToGetRequiredApps:()=>()=>o.createElement(a,{message:"Failed to get app required apps."}),FailedToGetMarketListing:()=>()=>o.createElement(a,{message:"Failed to get market listing."}),FailedToAddRequiredApp:()=>()=>o.createElement(a,{message:"Failed to add required app."}),FailedToQuerySites:()=>()=>o.createElement(a,{message:"Failed to request sites list."}),FailedToGetSite:()=>()=>o.createElement(a,{message:"Failed to get information about your configured Development Site"}),FailedToDeploySite:()=>()=>o.createElement(a,{message:"Failed to deploy site."}),FailedToPublishDeployment:()=>()=>o.createElement(v,{message:"Failed to publish site."}),FailedToSaveDevelopmentSite:({path:e})=>()=>o.createElement(a,{message:"Failed to save the current development site.",hint:`Make sure the \`${e}\` file has proper permissions and is accessible`}),FailedToBuildApp:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:o.createElement(o.Fragment,null,"Failed to build the application.",o.createElement(b,null),t),hint:"Please check the build output for more information"})},FailedToCheckIfAppInstalled:()=>()=>o.createElement(a,{message:"Failed to fetch site installation details"}),FailedToInitializeGitRepo:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to initialize git repo. Cause: ${t}`})},FailedToInstallDependencies:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to install dependencies. Cause: ${t}`})},FailedToCommitChanges:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to commit changes. Cause: ${t}`})},FailedToDeleteAuthData:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to delete auth data: ${t}`})},FailedToDeleteLegacyAuthData:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to delete legacy auth data: ${t}`})},FailedToSaveAuthData:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to save auth data: ${t}`})},FailedToSaveApiKeyAuthData:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to save api key auth data: ${t}`})},FailedToWriteJson:({filePath:e,cause:t})=>{let n=x(t);return()=>o.createElement(a,{message:`Failed to write JSON at path: ${e}. Cause: ${n}`})},TemplatePathNotFound:({templatePath:e})=>()=>o.createElement(a,{message:`Template path not found: ${e}`,hint:"Make sure the template path exists in the remote repository"}),FailedToCloneRepo:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Failed to clone repo: ${t}`,hint:"Make sure the Git URL is correct and that your local Git is configured properly to access the remote repository"})},InvalidGitUrl:({url:e})=>()=>o.createElement(a,{message:`Invalid Git URL: ${e}`,hint:"Make sure the Git URL is in the correct format"}),AuthenticationRequired:()=>()=>o.createElement(a,{message:"You have to already be logged in to run this command."}),SiteConfiguredRequired:()=>()=>o.createElement(a,{message:"You must configure the development site before running this command, or provide a site-id in the command options."}),FailedAddingPackageToWorkspace:()=>()=>o.createElement(a,{message:"Could not add package to the workspaces configuration. Please add it as instructed by your package manager.",hint:o.createElement(d,null,"Full error can be found in ",o.createElement(d,{bold:!0},"wix-error.log"))}),FailedToGenerateSelfsignedCertificate:()=>()=>o.createElement(a,{message:"Failed to generate a Selfsigned certificate for development."}),NonInteractiveTerminal:()=>()=>o.createElement(a,{message:"This command is not supported in non-interactive terminals. Please run the command in an interactive terminal (TTY)."}),FailedToResolveViteOrigin:()=>()=>o.createElement(a,{message:"Failed to resolve the base url for CSS asset urls"}),FailedToCreateAppRelease:()=>()=>o.createElement(v,{message:"Failed to create an app configuration in dev center."}),FailedToUpdateAppRelease:()=>()=>o.createElement(v,{message:"Failed to update an app configuration in dev center."}),FailedToCreateComponents:()=>()=>o.createElement(v,{message:"Failed to create components in dev center."}),FailedToCheckDeprecatedStatus:()=>()=>o.createElement(v,{message:"Failed to check cli version deprecated status."}),FailedToGetResolveNpmDependenciesResult:()=>()=>o.createElement(v,{message:"Failed to resolve Wix's lockfile."}),CliAppVersionMismatch:({cliVersion:e,cliAppVersion:t})=>()=>o.createElement(a,{message:o.createElement(d,null,"The versions of ",o.createElement(d,{bold:!0},"@wix/cli")," (",e,") and"," ",o.createElement(d,{bold:!0},"@wix/cli-app")," (",t,") dependencies do not match"),hint:o.createElement(d,null,"Align their versions in your ",o.createElement(d,{bold:!0},"package.json")," and re-install dependencies")}),FailedToGetAppValidity:()=>()=>o.createElement(v,{message:"Failed to get validation status for app version from dev center"}),InvalidDashboardPageRoute:({route:e,errorMessage:t})=>()=>o.createElement(a,{message:`Invalid dashboard page route: ${e}`,hint:t}),InvalidEmbeddedScriptFolder:({path:e,errorMessage:t})=>()=>o.createElement(a,{message:`Invalid embedded script folder: ${e}`,hint:t}),InvalidEmbeddedScriptTemplate:({templateFilename:e,errorMessage:t})=>()=>o.createElement(a,{message:`Invalid embedded script template in ${e}`,hint:t}),InvalidCustomElementTagName:({tagName:e,errorMessage:t})=>()=>o.createElement(a,{message:o.createElement(d,null,"We use name of folder as tagName for your custom element. Unfortunately, ",o.createElement(d,{bold:!0},e)," is invalid tagName. Reason: ",t),hint:o.createElement(d,null,"You can find rules for tagName here:"," ",o.createElement(d,{bold:!0},"https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names"))}),InvalidSiteFrontendPackageVersion:({packageName:e,versionRange:t})=>()=>o.createElement(a,{message:o.createElement(d,null,"Package ",o.createElement(d,{bold:!0},e)," has an invalid version range ",o.createElement(d,{bold:!0},t)," in your"," ",o.createElement(d,{bold:!0},"package.json")," file."),hint:o.createElement(d,null,"The version range must follow"," ",o.createElement(d,{bold:!0},"semantic versioning")," rules, and it must contain a major version.",o.createElement(b,null),"Read more about it here:"," ",o.createElement(z,{url:"https://docs.npmjs.com/about-semantic-versioning"}))}),FailedToCreateSiteOverride:()=>()=>o.createElement(v,{message:"Failed to create site override configuration"}),FailedToGetPipelineErrorInfo:()=>()=>o.createElement(v,{message:"Failed to get error details"}),FailedToGetDeploymentStatus:()=>()=>o.createElement(v,{message:"Failed to get deployment status"}),NetworkError:({cause:e})=>{let t=x(e);return()=>o.createElement(a,{message:`Network error occurred. Cause: ${t}`,hint:"Make sure you have an active internet connection and try again shortly."})},FailedToGenerateAppMarketQueryParam:()=>()=>o.createElement(v,{message:"Failed to get generate appMarket query parameter"})})}function x(r){return r instanceof Error?r.message:JSON.stringify(r)}function it(r){let e=r.path.join(".");return e?`- \`${e}\`: ${r.message}`:`- ${r.message}`}var _e=({error:r,systemErrorOverride:e})=>Fr(()=>{let t=We(r);return Be(t)&&e?e:Sr(ut(t.cliCode))},[r,e]);i();import ar from"react";i();import{createContext as Cr}from"react";var re=Cr(null);i();i();var Ct=_(P(),1);i();i();var kr={dateCreated:"google.protobuf.Timestamp",dateUpdated:"google.protobuf.Timestamp"},Pr={account:"_account"};var br={};function qr(r){var e={"api._api_base_domain_":[{srcPath:"/account-server",destPath:""}],"www._base_domain_":[{srcPath:"/_api/account-server",destPath:""}],"manage._base_domain_":[{srcPath:"/_api/account-server",destPath:""},{srcPath:"/account-server",destPath:""}],"premium._base_domain_":[{srcPath:"/_api/account-server",destPath:""}],"editor._base_domain_":[{srcPath:"/_api/account-server",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/account-server",destPath:""}],"create.editorx":[{srcPath:"/_api/account-server",destPath:""}],"bo._base_domain_":[{srcPath:"/account-server",destPath:""}],"wixbo.ai":[{srcPath:"/account-server",destPath:""}],"www.wixapis.com":[{srcPath:"/accounts",destPath:""}],"users._base_domain_":[{srcPath:"/_api/account-server",destPath:""}],"*.dev.wix-code.com":[{srcPath:"/_api/account-server",destPath:""}]};return Y(Object.assign(r,{domainToMappings:e}))}function ct(r){var e=C(br,{}),t=e.toJSON,n=e.fromJSON,s=C(Pr,{_account:kr}).fromJSON;function c(p){var u=p.host,m=t(r),h={entityFqdn:"wix.identity.account.v2.account",method:"GET",methodFqn:"com.wixpress.account.api.AccountService.getMyAccount",url:qr({protoPath:"/v1/accounts/my_account",data:m,host:u}),params:X(m),transformResponse:s};return h}return c.fromReq=n,c.__isAmbassador=!0,c}i();var Dr={},Or={};var Nr={body:"BYTES"},Ir={body:"BYTES"},Er={},Rr={};function Se(r){var e={"manage._base_domain_":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"www.wixapis.com":[{srcPath:"/oauth2",destPath:"/v1/oauth"},{srcPath:"/oauth2/token_info",destPath:"/v1/token_info"}],"users._base_domain_":[{srcPath:"/v1/oauth/device/verify",destPath:"/v1/oauth/device/verify"},{srcPath:"/v1/oauth/manage/user-code",destPath:"/v1/oauth/manage/user-code"},{srcPath:"/v2/oauth/device/verify",destPath:"/v2/oauth/device/verify"}],_:[{srcPath:"/_api/oauth2",destPath:"/v1/oauth"}]};return Y(Object.assign(r,{domainToMappings:e}))}function Fe(r){var e=C(Nr,{}),t=e.toJSON,n=e.fromJSON,s=C(Ir,{}).fromJSON;function c(p){var u=p.host,m=t(r),h={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Token",url:Se({protoPath:"/v1/oauth/token",data:m,host:u}),data:m,transformResponse:s};return h}return c.fromReq=n,c.__isAmbassador=!0,c}function dt(r){var e=C(Dr,{}),t=e.toJSON,n=e.fromJSON,s=C(Or,{}).fromJSON;function c(p){var u=p.host,m=t(r),h={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",url:Se({protoPath:"/v1/oauth/device/code",data:m,host:u}),params:X(m),transformResponse:s};return h}return c.fromReq=n,c.__isAmbassador=!0,c}function pt(r){var e=C(Er,{}),t=e.toJSON,n=e.fromJSON,s=C(Rr,{}).fromJSON;function c(p){var u=p.host,m=t(r),h={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",url:Se({protoPath:"/v1/oauth/revoke",data:m,host:u}),data:m,transformResponse:s};return h}return c.fromReq=n,c.__isAmbassador=!0,c}var L=_(P(),1);i();var mt=g.object({deviceCode:g.string(),verificationUri:g.string().url(),userCode:g.string(),expiresIn:g.number()}),Ce=g.object({access_token:g.string(),refresh_token:g.string(),expires_in:g.number()}).transform(r=>({accessToken:r.access_token,refreshToken:r.refresh_token,expiresIn:r.expires_in})),ke=g.object({userId:g.string().uuid(),email:g.string().email()}),lt=g.object({account:g.object({slug:g.string(),accountId:g.string().uuid(),accountOwner:g.string().uuid()})}),ft=g.object({accessToken:g.string(),refreshToken:g.string(),expiresIn:g.number(),issuedAt:g.number()}),ht=ft.extend({userInfo:ke}),gt=g.object({token:g.string(),accountId:g.string().uuid(),userInfo:g.object({userId:g.string().uuid(),email:g.string()})});var{InvalidResponseData:Mr,FailedToGetAuthToken:Jr,FailedToGetDeviceCode:Ur,FailedToRenewAuthToken:Lr,FailedToRenewAuthTokenSiteNotFound:$r,FailedToRevokeRefreshToken:Gr}=A,Pe="6f95cec8-3e98-48b9-b4e5-1fb92fcd9973",vt=()=>Math.floor(Date.now()/1e3),j=class extends Error{},oe=(0,L.variant)({TokenRenewed:(0,L.payload)(),RefreshTokenRevoked:(0,L.fields)()}),be=class{constructor(e){this.httpClient=e;let{minRetryTimeout:t}=M();this.retryOptions={retries:3,minTimeout:t,maxTimeout:3*1e3}}retryOptions;async requestDeviceCode(e={}){try{let{data:t}=await H(()=>this.httpClient.request(dt({...e,clientId:Pe})),this.retryOptions);return mt.parse(t)}catch(t){throw new y({code:Ur(),cause:t})}}async createToken(e){try{let t={clientId:Pe,grantType:"urn:ietf:params:oauth:grant-type:device_code",scope:"offline_access",...e};return{...await H(async()=>{let{data:s,requestId:c}=await this.httpClient.request(Fe(t)),p=Ce.safeParse(s);if(p.success)return p.data;throw new y({code:Mr(),cause:p.error,info:{requestId:c,data:s}})},this.retryOptions),issuedAt:vt()}}catch(t){throw G(t)&&(t.response?.data?.message==="Device code is not yet verified"||t.response?.data?.error==="authorization_pending")?new j("Device code is not yet verified."):new y({code:Jr(),cause:t})}}async renewToken(e){try{let t={clientId:Pe,grantType:"refresh_token",...e},{data:n}=await H(()=>this.httpClient.request(Fe(t)),this.retryOptions),s=Ce.parse(n);return oe.TokenRenewed({...s,issuedAt:vt()})}catch(t){if(G(t)){if(t.response?.status===400&&t.response?.data?.error==="invalid_grant")return oe.RefreshTokenRevoked({cause:t});if(e.siteId&&t.response?.status===404&&t.response?.data?.details?.applicationError?.code==="SITE_NOT_FOUND")throw new y({code:$r({siteId:e.siteId}),cause:t})}throw new y({code:Lr(),cause:t})}}async revokeRefreshToken(e,{email:t}){try{let{data:n}=await this.httpClient.request(pt(e));return n}catch(n){throw new y({code:Gr({email:t}),info:{email:t},cause:n})}}async userInfo({accessToken:e}){try{let t=ee({type:"backoffice",getAppToken:async()=>e}),{data:n}=await t.get("/_serverless/wix-cli-userinfo/userinfo");return ke.parse(n)}catch(t){throw new y({code:A.FailedToGetUserInfo(),cause:t})}}async getMyAccount({token:e}){try{let t=ee({type:"backoffice",getAppToken:async()=>e}),{data:n}=await t.request(ct({}));return lt.parse(n).account}catch(t){throw new y({code:A.FailedToGetMyAccount(),cause:t})}}},D=new be(ee({type:"backoffice"}));i();import{unlink as zr,rm as jr}from"node:fs/promises";import{resolve as B}from"node:path";var T=_(P(),1);function xt(){return B(le(),"auth.json")}function ne(){return B(le(),"auth")}function At(){return B(ne(),"api-key.json")}function wt(){return B(ne(),"account.json")}function Br(r){return B(ne(),`${r}.json`)}var yt=(0,T.variant)({Authenticated:(0,T.payload)(),Unauthenticated:{}});async function Tt(){let r=At();if(!await Z(r))return yt.Unauthenticated();let e=await he(r),t=gt.parse(e);return yt.Authenticated(t)}async function _t(r){try{let e=At();await fe(e,r)}catch(e){throw new y({code:A.FailedToSaveApiKeyAuthData({cause:e}),cause:e})}}var qe=(0,T.variant)({Authenticated:(0,T.fields)(),Unauthenticated:{},Expired:(0,T.fields)()});async function St(){let r=wt();if(!await Z(r))return qe.Unauthenticated();let e=await he(r),t=ht.parse(e);return Ne(t)?qe.Authenticated(t):qe.Expired(t)}var Fn=(0,T.variant)({Authenticated:(0,T.fields)(),Unauthenticated:{},Expired:(0,T.fields)()});async function De(r,e){try{let t=e?Br(e):wt();await fe(t,r)}catch(t){throw new y({code:A.FailedToSaveAuthData({cause:t}),cause:t})}}async function ae(){try{await jr(ne(),{recursive:!0,force:!0})}catch(r){throw new y({code:A.FailedToDeleteAuthData({cause:r}),cause:r})}await Oe()&&await Wr()}async function Wr(){try{await zr(xt())}catch(r){throw new y({code:A.FailedToDeleteLegacyAuthData({cause:r}),cause:r})}}async function Oe(){return Z(xt())}function Ne(r){let e=Math.floor(Date.now()/1e3),t=10*60,n=r.expiresIn-t;return r.issuedAt+n>e}function Ft({authData:{token:r,accountId:e,userInfo:t},siteId:n}){return{getAccessToken:async()=>r,getRefreshToken:()=>{throw new Error("API key auth does not support refresh tokens")},getRequestHeaders:()=>({"wix-account-id":e,...n&&{"wix-site-id":n}}),userInfo:t}}var kt={async isLoggedIn({siteId:r}={}){let e=await Tt();return(0,Ct.match)(e,{Authenticated:({payload:t})=>Ft({authData:t,siteId:r}),Unauthenticated:()=>null})},async login({token:r}){let{accountId:e,accountOwner:t,slug:n}=await D.getMyAccount({token:r}),s={token:r,accountId:e,userInfo:{userId:t,email:n}};return await ae(),await _t(s),Ft({authData:s})}};i();i();i();var Ie=class{value;next;constructor(e){this.value=e}},W=class{#e;#t;#r;constructor(){this.clear()}enqueue(e){let t=new Ie(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#r++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#r--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Ee(r){if(!((Number.isInteger(r)||r===Number.POSITIVE_INFINITY)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new W,t=0,n=()=>{t--,e.size>0&&e.dequeue()()},s=async(u,m,h)=>{t++;let N=(async()=>u(...h))();m(N);try{await N}catch{}n()},c=(u,m,h)=>{e.enqueue(s.bind(void 0,u,m,h)),(async()=>(await Promise.resolve(),t<r&&e.size>0&&e.dequeue()()))()},p=(u,...m)=>new Promise(h=>{c(u,h,m)});return Object.defineProperties(p,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),p}var O=_(P(),1);var Pt=r=>1e3*r;async function Kr({deviceCode:r,expiresIn:e},{signal:t}){try{let n=await ge(async()=>{try{let p=await D.createToken({deviceCode:r});return ge.resolveWith(p)}catch(p){if(p instanceof j)return!1;throw p}},{interval:M().waitForLoginInterval??Pt(3),timeout:{milliseconds:Pt(e),signal:t}}),s=await D.userInfo({accessToken:n.accessToken}),c={...n,userInfo:s};return await ae(),await De(c),c}catch(n){throw n instanceof Ve?new y({code:A.DeviceCodeTimedOut()}):n}}async function qt({refreshToken:r,userInfo:e}){let t=await D.renewToken({refreshToken:r});return(0,O.isType)(t,oe.TokenRenewed)&&await De({...t.payload,userInfo:e}),t}async function Vr(){let r=await St();return(0,O.match)(r,{Authenticated:e=>e,Unauthenticated:()=>null,Expired:async e=>{let t=await qt(e);return(0,O.match)(t,{TokenRenewed:({payload:n})=>({...n,userInfo:e.userInfo}),RefreshTokenRevoked:(0,O.constant)(null)})}})}function bt({userInfo:r,...e}){let t=Ee(1),n={...e};return{getAccessToken:()=>t(async()=>{if(Ne(n))return n.accessToken;let s=await qt({...n,userInfo:r});return(0,O.match)(s,{TokenRenewed:({payload:c})=>(n=c,n.accessToken),RefreshTokenRevoked:({cause:c})=>{throw new y({code:A.FailedToRenewAuthTokenRefreshTokenRevoked(),cause:c})}})}),getRefreshToken:()=>n.refreshToken,userInfo:r}}var K={async isLoggedIn(){let r=await kt.isLoggedIn();if(r)return r;let e=await Vr();return e?bt(e):null},async login({deviceCode:r,signal:e}){let t=await Kr(r,{signal:e});return bt(t)}};i();var or=_(P(),1);import pe from"react";i();import Zt from"react";i();function Hn(r){return{evid:5200,src:11,endpoint:"wix-cli",params:r}}function Yn(r){return{evid:5201,src:11,endpoint:"wix-cli",params:r}}function Dt(r){return{evid:5211,src:11,endpoint:"wix-cli",params:r}}function Re(r){return{evid:5212,src:11,endpoint:"wix-cli",params:r}}var Qt=_(P(),1);var Ot={"login.instructions_title":"Authorize the CLI to access your Wix account:","login.instructions_details":`1. Copy this code to the clipboard: <0>{code}</0>
|
|
16
|
+
2. Press <1/> to connect to <2/> then paste the code`,"login.legacy_auth_notice":"We implemented a new and more secure login method. You'll need to re-login to continue using the CLI.","login.error_opening_browser":"Failed to open browser, please try opening <0/> manually."};i();import w,{useState as io}from"react";i();var Ht=_(Wt(),1);i();var Kt=_(Ke(),1);async function Vt(r,e){await(0,Kt.createHttpClient)().post(r,void 0,{params:{url:e}})}async function Yt(r){let{userBrowserTestEndpoint:e}=M();e?await Vt(e,r):await(0,Ht.default)(r,{background:!0})}var Xt=({userCode:r,verificationUri:e})=>{let{reportError:t}=xe(),[n,s]=io(null);return He((c,p)=>{p.return&&Yt(e).catch(u=>{t(u),s(u)})}),w.createElement(w.Fragment,null,w.createElement(U,{i18nKey:"login.instructions_title"}),w.createElement(S,{flexDirection:"column",marginTop:1,marginBottom:1,marginLeft:2},w.createElement(U,{i18nKey:"login.instructions_details",components:[w.createElement(d,{skin:"legacyBlue"}),w.createElement(Xe,{value:"enter"}),w.createElement(z,{url:e})],values:{code:r}})),n&&w.createElement(w.Fragment,null,w.createElement(S,{flexDirection:"column",marginBottom:1},w.createElement(_e,{error:n})),w.createElement(U,{i18nKey:"login.error_opening_browser",components:[w.createElement(z,{url:e})]})))};var er=({loginFn:r,onLogin:e,onError:t})=>{let n=ye();function s(u){n.report(Re({isSuccess:!1,...u instanceof Error?{errorType:u.name}:{errorType:"unknown",errorMessage:JSON.stringify(u)}})),t(u)}let c=Qe(async({signal:u},m)=>{try{let h=await r({deviceCode:m,signal:u});n.report(Re({isSuccess:!0})),e(h)}catch(h){s(h)}}),{status:p}=J(async()=>(n.report(Dt({})),D.requestDeviceCode()),[],{onSuccess:u=>{c.execute(u)},onError:s});return(0,Qt.match)(p,{Error:()=>null,Loading:()=>Zt.createElement(Q,null),Success:({result:{userCode:u,verificationUri:m}})=>Zt.createElement(Xt,{userCode:u,verificationUri:m})})};i();var tr=_(P(),1);import de from"react";var rr=({children:r})=>{let{status:e}=J(Oe,[],{onError:()=>{}});return(0,tr.match)(e,{Error:()=>null,Loading:()=>null,Success:({result:t})=>de.createElement(de.Fragment,null,t&&de.createElement(S,{marginBottom:1},de.createElement(U,{i18nKey:"login.legacy_auth_notice"})),r)})};var nr=({authStrategy:{login:r,isLoggedIn:e},onLogin:t,onError:n,children:s})=>{let{status:c,merge:p}=J(e,[],{onSuccess:u=>{u&&t(u)},onError:n});return(0,or.match)(c,{Loading:()=>pe.createElement(Q,null),Error:()=>null,Success:({result:u})=>u===null?pe.createElement(et,{messages:Ot},pe.createElement(rr,null,pe.createElement(er,{loginFn:r,onLogin:m=>{p({result:m}),t(m)},onError:n}))):s(u)})};var uo=({children:r,onError:e,onLogin:t})=>{let n=Ze();return ar.createElement(nr,{authStrategy:K,onLogin:({userInfo:s})=>t?.(s),onError:e??n},({getAccessToken:s,getRequestHeaders:c,userInfo:p})=>ar.createElement(re.Provider,{value:{getAccessToken:s,getRequestHeaders:c,userInfo:p}},r))};i();i();import{useContext as co}from"react";function po(){let r=co(re);if(!r)throw new Error("useAuth() cannot be used without an <AuthProvider>");return r}var{isLoggedIn:ts}=K;export{ee as a,po as b,cr as c,ye as d,Hn as e,Yn as f,Yt as g,_e as h,lr as i,xe as j,uo as k,ts as l};
|
|
17
|
+
//# sourceMappingURL=chunk-CRZ4CUP7.js.map
|