@backstage/plugin-scaffolder 1.35.3 → 1.35.4
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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formFieldsApi.esm.js","sources":["../../src/alpha/formFieldsApi.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ApiBlueprint,\n createApiRef,\n createExtensionInput,\n} from '@backstage/frontend-plugin-api';\nimport {
|
|
1
|
+
{"version":3,"file":"formFieldsApi.esm.js","sources":["../../src/alpha/formFieldsApi.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ApiBlueprint,\n createApiRef,\n createExtensionInput,\n} from '@backstage/frontend-plugin-api';\nimport {\n FormFieldBlueprint,\n type FormField,\n} from '@backstage/plugin-scaffolder-react/alpha';\nimport { OpaqueFormField } from '@internal/scaffolder';\n\n/** @alpha */\nexport interface ScaffolderFormFieldsApi {\n loadFormFields(): Promise<FormField[]>;\n}\n\n/** @alpha */\nconst formFieldsApiRef = createApiRef<ScaffolderFormFieldsApi>({\n id: 'plugin.scaffolder.form-fields-loader',\n});\n\nexport const formFieldsApi = ApiBlueprint.makeWithOverrides({\n name: 'form-fields',\n inputs: {\n formFields: createExtensionInput([\n FormFieldBlueprint.dataRefs.formFieldLoader,\n ]),\n },\n factory(originalFactory, { inputs }) {\n const formFieldLoaders = inputs.formFields.map(e =>\n e.get(FormFieldBlueprint.dataRefs.formFieldLoader),\n );\n\n return originalFactory(defineParams =>\n defineParams({\n api: formFieldsApiRef,\n deps: {},\n factory: () => ({\n async loadFormFields() {\n const formFields = await Promise.all(\n formFieldLoaders.map(loader => loader()),\n );\n\n const internalFormFields = formFields.map(\n OpaqueFormField.toInternal,\n );\n\n return internalFormFields;\n },\n }),\n }),\n );\n },\n});\n\nexport { formFieldsApiRef };\n"],"names":[],"mappings":";;;;;AAiCA,MAAM,mBAAmB,YAAA,CAAsC;AAAA,EAC7D,EAAA,EAAI;AACN,CAAC;AAEM,MAAM,aAAA,GAAgB,aAAa,iBAAA,CAAkB;AAAA,EAC1D,IAAA,EAAM,aAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,YAAY,oBAAA,CAAqB;AAAA,MAC/B,mBAAmB,QAAA,CAAS;AAAA,KAC7B;AAAA,GACH;AAAA,EACA,OAAA,CAAQ,eAAA,EAAiB,EAAE,MAAA,EAAO,EAAG;AACnC,IAAA,MAAM,gBAAA,GAAmB,OAAO,UAAA,CAAW,GAAA;AAAA,MAAI,CAAA,CAAA,KAC7C,CAAA,CAAE,GAAA,CAAI,kBAAA,CAAmB,SAAS,eAAe;AAAA,KACnD;AAEA,IAAA,OAAO,eAAA;AAAA,MAAgB,kBACrB,YAAA,CAAa;AAAA,QACX,GAAA,EAAK,gBAAA;AAAA,QACL,MAAM,EAAC;AAAA,QACP,SAAS,OAAO;AAAA,UACd,MAAM,cAAA,GAAiB;AACrB,YAAA,MAAM,UAAA,GAAa,MAAM,OAAA,CAAQ,GAAA;AAAA,cAC/B,gBAAA,CAAiB,GAAA,CAAI,CAAA,MAAA,KAAU,MAAA,EAAQ;AAAA,aACzC;AAEA,YAAA,MAAM,qBAAqB,UAAA,CAAW,GAAA;AAAA,cACpC,eAAA,CAAgB;AAAA,aAClB;AAEA,YAAA,OAAO,kBAAA;AAAA,UACT;AAAA,SACF;AAAA,OACD;AAAA,KACH;AAAA,EACF;AACF,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { TemplateGroupFilter, FieldExtensionOptions, ReviewStepProps, LayoutOpti
|
|
|
5
5
|
import { FormProps as FormProps$2 } from '@rjsf/core';
|
|
6
6
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
7
7
|
import * as _backstage_plugin_scaffolder_react_alpha from '@backstage/plugin-scaffolder-react/alpha';
|
|
8
|
-
import { ScaffolderFormDecorator } from '@backstage/plugin-scaffolder-react/alpha';
|
|
8
|
+
import { ScaffolderFormDecorator, FormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
9
9
|
import * as _backstage_core_components from '@backstage/core-components';
|
|
10
10
|
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
11
11
|
import * as _backstage_filter_predicates from '@backstage/filter-predicates';
|
|
@@ -290,6 +290,13 @@ declare const formDecoratorsApi: _backstage_frontend_plugin_api.OverridableExten
|
|
|
290
290
|
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
291
291
|
}>;
|
|
292
292
|
|
|
293
|
+
/** @alpha */
|
|
294
|
+
interface ScaffolderFormFieldsApi {
|
|
295
|
+
loadFormFields(): Promise<FormField[]>;
|
|
296
|
+
}
|
|
297
|
+
/** @alpha */
|
|
298
|
+
declare const formFieldsApiRef: _backstage_frontend_plugin_api.ApiRef<ScaffolderFormFieldsApi>;
|
|
299
|
+
|
|
293
300
|
/** @alpha */
|
|
294
301
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
295
302
|
root: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
@@ -545,5 +552,5 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
545
552
|
}>;
|
|
546
553
|
}>;
|
|
547
554
|
|
|
548
|
-
export { DefaultScaffolderFormDecoratorsApi, _default as default, formDecoratorsApi, formDecoratorsApiRef, scaffolderTranslationRef };
|
|
549
|
-
export type { FormProps, ScaffolderCustomFieldExplorerClassKey, ScaffolderFormDecoratorsApi, ScaffolderTemplateEditorClassKey, ScaffolderTemplateFormPreviewerClassKey, TemplateListPageProps, TemplateWizardPageProps };
|
|
555
|
+
export { DefaultScaffolderFormDecoratorsApi, _default as default, formDecoratorsApi, formDecoratorsApiRef, formFieldsApiRef, scaffolderTranslationRef };
|
|
556
|
+
export type { FormProps, ScaffolderCustomFieldExplorerClassKey, ScaffolderFormDecoratorsApi, ScaffolderFormFieldsApi, ScaffolderTemplateEditorClassKey, ScaffolderTemplateFormPreviewerClassKey, TemplateListPageProps, TemplateWizardPageProps };
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { scaffolderTranslationRef } from './translation.esm.js';
|
|
2
2
|
export { formDecoratorsApiRef } from './alpha/api/ref.esm.js';
|
|
3
3
|
export { DefaultScaffolderFormDecoratorsApi, formDecoratorsApi } from './alpha/api/FormDecoratorsApi.esm.js';
|
|
4
|
+
export { formFieldsApiRef } from './alpha/formFieldsApi.esm.js';
|
|
4
5
|
export { default } from './alpha/plugin.esm.js';
|
|
5
6
|
//# sourceMappingURL=alpha.esm.js.map
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.4",
|
|
4
4
|
"description": "The Backstage plugin that helps you create new things",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@backstage/core-components": "^0.18.7",
|
|
76
76
|
"@backstage/core-plugin-api": "^1.12.3",
|
|
77
77
|
"@backstage/errors": "^1.2.7",
|
|
78
|
-
"@backstage/frontend-plugin-api": "^0.14.
|
|
78
|
+
"@backstage/frontend-plugin-api": "^0.14.1",
|
|
79
79
|
"@backstage/integration": "^1.20.0",
|
|
80
80
|
"@backstage/integration-react": "^1.2.15",
|
|
81
81
|
"@backstage/plugin-catalog-common": "^1.1.8",
|