Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@launcher/component

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@launcher/component - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

build/types/pickers/__tests__/gav-picker.spec.d.ts

20

build/esm/index.js

@@ -290,7 +290,7 @@ import React__default, { useContext, createElement, useState, useEffect, Fragment, createContext } from 'react';

var css$2 = ".maven-settings-picker.horizontal {\n display: flex; }\n .maven-settings-picker.horizontal .base-settings {\n order: 1;\n flex-grow: 1;\n padding: 0 10px;\n align-self: flex-start; }\n .maven-settings-picker.horizontal .toggle-panel {\n align-self: flex-start;\n order: 4;\n flex-grow: 1;\n padding: 0 10px; }\n .maven-settings-picker.horizontal .toggle-panel.open {\n order: 2; }\n .maven-settings-picker.horizontal .toggle-button {\n flex-shrink: 1;\n order: 3;\n align-self: flex-end;\n padding: 0 10px; }\n";
var css$2 = ".gav-picker.horizontal {\n display: flex; }\n .gav-picker.horizontal .base-settings {\n order: 1;\n flex-grow: 1;\n padding: 0 10px;\n align-self: flex-start; }\n .gav-picker.horizontal .toggle-panel {\n align-self: flex-start;\n order: 4;\n flex-grow: 1;\n padding: 0 10px; }\n .gav-picker.horizontal .toggle-panel.open {\n order: 2; }\n .gav-picker.horizontal .toggle-button {\n flex-shrink: 1;\n order: 3;\n align-self: flex-end;\n padding: 0 10px; }\n";
styleInject(css$2);
var VALUE_REGEXP = /^[a-z][a-z0-9-.]{3,63}$/;
var MavenSettingsPicker = {
var GAVPicker = {
checkCompletion: function (value) { return !!value.groupId && VALUE_REGEXP.test(value.groupId)

@@ -303,11 +303,11 @@ && !!value.artifactId && VALUE_REGEXP.test(value.artifactId) && !!value.version; },

var mode = props.mode || 'vertical';
return (React__default.createElement("div", { className: "maven-settings-picker " + mode },
return (React__default.createElement("div", { className: "gav-picker " + mode },
React__default.createElement("div", { className: "base-settings pf-c-form" },
visibleFields.has('groupId') && React__default.createElement(LaunchTextInput, { label: "Group", isRequired: true, helperTextInvalid: "Please provide a valid groupId", type: "text", id: "groupId", name: "groupId", "aria-label": "Maven groupId name", value: props.value.groupId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { groupId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.groupId) }),
visibleFields.has('artifactId') && React__default.createElement(LaunchTextInput, { label: "Artifact", isRequired: true, helperTextInvalid: "Please provide a valid artifactId", type: "text", id: "artifactId", name: "artifactId", "aria-label": "Maven artifactId name", value: props.value.artifactId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { artifactId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.artifactId) })),
optionalBool(props.showMoreOptions, true) && (React__default.createElement(TogglePanel, { id: "maven-settings-extended", mode: mode, openLabel: "Configure more options" },
visibleFields.has('groupId') && React__default.createElement(LaunchTextInput, { label: "Group", isRequired: true, helperTextInvalid: "Please provide a valid groupId", type: "text", id: "groupId", name: "groupId", "aria-label": "Edit groupId", value: props.value.groupId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { groupId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.groupId) }),
visibleFields.has('artifactId') && React__default.createElement(LaunchTextInput, { label: "Artifact", isRequired: true, helperTextInvalid: "Please provide a valid artifactId", type: "text", id: "artifactId", name: "artifactId", "aria-label": "Edit artifactId", value: props.value.artifactId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { artifactId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.artifactId) })),
optionalBool(props.showMoreOptions, true) && (React__default.createElement(TogglePanel, { id: "gav-extended", mode: mode, openLabel: "Configure more options" },
React__default.createElement("div", { className: "extended-settings pf-c-form" },
visibleFields.has('version') && React__default.createElement(LaunchTextInput, { label: "Version", helperTextInvalid: "Please provide a version number", isRequired: true, type: "text", id: "version", name: "version", "aria-label": "Maven version number", value: props.value.version || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { version: value })); }, isValid: !!props.value.version }),
visibleFields.has('description') && React__default.createElement(LaunchTextInput, { label: "Description", helperTextInvalid: "Please provide a description", isRequired: true, type: "text", id: "description", name: "description", "aria-label": "Maven description", value: props.value.description || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { description: value })); }, isValid: true }),
visibleFields.has('packageName') && React__default.createElement(LaunchTextInput, { label: "Package Name", helperTextInvalid: "Please provide a package name", isRequired: true, type: "text", id: "packageName", name: "packageName", "aria-label": "Maven package name", value: props.value.packageName || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { packageName: value })); }, isValid: true }))))));
visibleFields.has('version') && React__default.createElement(LaunchTextInput, { label: "Version", helperTextInvalid: "Please provide a version number", isRequired: true, type: "text", id: "version", name: "version", "aria-label": "Edit version", value: props.value.version || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { version: value })); }, isValid: !!props.value.version }),
visibleFields.has('description') && React__default.createElement(LaunchTextInput, { label: "Description", helperTextInvalid: "Please provide a description", isRequired: true, type: "text", id: "description", name: "description", "aria-label": "Edit description", value: props.value.description || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { description: value })); }, isValid: true }),
visibleFields.has('packageName') && React__default.createElement(LaunchTextInput, { label: "Package Name", helperTextInvalid: "Please provide a package name", isRequired: true, type: "text", id: "packageName", name: "packageName", "aria-label": "Edit package name", value: props.value.packageName || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { packageName: value })); }, isValid: true }))))));
}

@@ -501,2 +501,2 @@ };

export { AlertError, AnalyticsContext, ButtonLink, DataLoader, DependenciesPicker, DescriptiveHeader, ExternalLink, FormPanel, GoogleAnalytics, Hint, HubContext, HubNSpoke, HubOverviewCard, InlineTextInput, LaunchTextInput, Loader, MavenSettingsPicker, OverviewComplete, OverviewEmpty, Separator, SpecialValue, Spin, TogglePanel, effectSafety, optionalBool, useAnalytics };
export { AlertError, AnalyticsContext, ButtonLink, DataLoader, DependenciesPicker, DescriptiveHeader, ExternalLink, FormPanel, GAVPicker, GoogleAnalytics, Hint, HubContext, HubNSpoke, HubOverviewCard, InlineTextInput, LaunchTextInput, Loader, OverviewComplete, OverviewEmpty, Separator, SpecialValue, Spin, TogglePanel, effectSafety, optionalBool, useAnalytics };

@@ -297,7 +297,7 @@ 'use strict';

var css$2 = ".maven-settings-picker.horizontal {\n display: flex; }\n .maven-settings-picker.horizontal .base-settings {\n order: 1;\n flex-grow: 1;\n padding: 0 10px;\n align-self: flex-start; }\n .maven-settings-picker.horizontal .toggle-panel {\n align-self: flex-start;\n order: 4;\n flex-grow: 1;\n padding: 0 10px; }\n .maven-settings-picker.horizontal .toggle-panel.open {\n order: 2; }\n .maven-settings-picker.horizontal .toggle-button {\n flex-shrink: 1;\n order: 3;\n align-self: flex-end;\n padding: 0 10px; }\n";
var css$2 = ".gav-picker.horizontal {\n display: flex; }\n .gav-picker.horizontal .base-settings {\n order: 1;\n flex-grow: 1;\n padding: 0 10px;\n align-self: flex-start; }\n .gav-picker.horizontal .toggle-panel {\n align-self: flex-start;\n order: 4;\n flex-grow: 1;\n padding: 0 10px; }\n .gav-picker.horizontal .toggle-panel.open {\n order: 2; }\n .gav-picker.horizontal .toggle-button {\n flex-shrink: 1;\n order: 3;\n align-self: flex-end;\n padding: 0 10px; }\n";
styleInject(css$2);
var VALUE_REGEXP = /^[a-z][a-z0-9-.]{3,63}$/;
var MavenSettingsPicker = {
var GAVPicker = {
checkCompletion: function (value) { return !!value.groupId && VALUE_REGEXP.test(value.groupId)

@@ -310,11 +310,11 @@ && !!value.artifactId && VALUE_REGEXP.test(value.artifactId) && !!value.version; },

var mode = props.mode || 'vertical';
return (React__default.createElement("div", { className: "maven-settings-picker " + mode },
return (React__default.createElement("div", { className: "gav-picker " + mode },
React__default.createElement("div", { className: "base-settings pf-c-form" },
visibleFields.has('groupId') && React__default.createElement(LaunchTextInput, { label: "Group", isRequired: true, helperTextInvalid: "Please provide a valid groupId", type: "text", id: "groupId", name: "groupId", "aria-label": "Maven groupId name", value: props.value.groupId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { groupId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.groupId) }),
visibleFields.has('artifactId') && React__default.createElement(LaunchTextInput, { label: "Artifact", isRequired: true, helperTextInvalid: "Please provide a valid artifactId", type: "text", id: "artifactId", name: "artifactId", "aria-label": "Maven artifactId name", value: props.value.artifactId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { artifactId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.artifactId) })),
optionalBool(props.showMoreOptions, true) && (React__default.createElement(TogglePanel, { id: "maven-settings-extended", mode: mode, openLabel: "Configure more options" },
visibleFields.has('groupId') && React__default.createElement(LaunchTextInput, { label: "Group", isRequired: true, helperTextInvalid: "Please provide a valid groupId", type: "text", id: "groupId", name: "groupId", "aria-label": "Edit groupId", value: props.value.groupId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { groupId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.groupId) }),
visibleFields.has('artifactId') && React__default.createElement(LaunchTextInput, { label: "Artifact", isRequired: true, helperTextInvalid: "Please provide a valid artifactId", type: "text", id: "artifactId", name: "artifactId", "aria-label": "Edit artifactId", value: props.value.artifactId || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { artifactId: value })); }, pattern: VALUE_REGEXP.source, isValid: isValid(props.value.artifactId) })),
optionalBool(props.showMoreOptions, true) && (React__default.createElement(TogglePanel, { id: "gav-extended", mode: mode, openLabel: "Configure more options" },
React__default.createElement("div", { className: "extended-settings pf-c-form" },
visibleFields.has('version') && React__default.createElement(LaunchTextInput, { label: "Version", helperTextInvalid: "Please provide a version number", isRequired: true, type: "text", id: "version", name: "version", "aria-label": "Maven version number", value: props.value.version || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { version: value })); }, isValid: !!props.value.version }),
visibleFields.has('description') && React__default.createElement(LaunchTextInput, { label: "Description", helperTextInvalid: "Please provide a description", isRequired: true, type: "text", id: "description", name: "description", "aria-label": "Maven description", value: props.value.description || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { description: value })); }, isValid: true }),
visibleFields.has('packageName') && React__default.createElement(LaunchTextInput, { label: "Package Name", helperTextInvalid: "Please provide a package name", isRequired: true, type: "text", id: "packageName", name: "packageName", "aria-label": "Maven package name", value: props.value.packageName || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { packageName: value })); }, isValid: true }))))));
visibleFields.has('version') && React__default.createElement(LaunchTextInput, { label: "Version", helperTextInvalid: "Please provide a version number", isRequired: true, type: "text", id: "version", name: "version", "aria-label": "Edit version", value: props.value.version || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { version: value })); }, isValid: !!props.value.version }),
visibleFields.has('description') && React__default.createElement(LaunchTextInput, { label: "Description", helperTextInvalid: "Please provide a description", isRequired: true, type: "text", id: "description", name: "description", "aria-label": "Edit description", value: props.value.description || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { description: value })); }, isValid: true }),
visibleFields.has('packageName') && React__default.createElement(LaunchTextInput, { label: "Package Name", helperTextInvalid: "Please provide a package name", isRequired: true, type: "text", id: "packageName", name: "packageName", "aria-label": "Edit package name", value: props.value.packageName || '', onChange: function (value) { return props.onChange(__assign({}, props.value, { packageName: value })); }, isValid: true }))))));
}

@@ -516,2 +516,3 @@ };

exports.FormPanel = FormPanel;
exports.GAVPicker = GAVPicker;
exports.GoogleAnalytics = GoogleAnalytics;

@@ -525,3 +526,2 @@ exports.Hint = Hint;

exports.Loader = Loader;
exports.MavenSettingsPicker = MavenSettingsPicker;
exports.OverviewComplete = OverviewComplete;

@@ -528,0 +528,0 @@ exports.OverviewEmpty = OverviewEmpty;

export * from './analytics';
export * from './core/data-loader/data-loader';
export * from './pickers/maven-settings-picker';
export * from './pickers/gav-picker';
export * from './pickers/dependencies-picker';

@@ -5,0 +5,0 @@ export * from './core/stuff';

{
"name": "@launcher/component",
"version": "2.0.4",
"version": "2.0.5",
"license": "Apache-2.0",

@@ -50,3 +50,3 @@ "main": "build/index.js",

},
"gitHead": "65a0d9543f6b127a546d902e0717f160c75b62e6"
"gitHead": "795cd966325c53823de33ed3f97f4f865c16e3f3"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc