@backstage/plugin-scaffolder-react 1.16.0-next.0 → 1.16.0-next.2

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,5 +1,40 @@
1
1
  # @backstage/plugin-scaffolder-react
2
2
 
3
+ ## 1.16.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/core-plugin-api@1.10.7-next.0
9
+ - @backstage/core-components@0.17.2-next.1
10
+ - @backstage/frontend-plugin-api@0.10.2-next.1
11
+ - @backstage/plugin-catalog-react@1.18.0-next.2
12
+ - @backstage/plugin-permission-react@0.4.34-next.1
13
+ - @backstage/catalog-client@1.10.0-next.0
14
+ - @backstage/catalog-model@1.7.3
15
+ - @backstage/theme@0.6.6-next.0
16
+ - @backstage/types@1.2.1
17
+ - @backstage/version-bridge@1.0.11
18
+ - @backstage/plugin-scaffolder-common@1.5.11-next.0
19
+
20
+ ## 1.16.0-next.1
21
+
22
+ ### Patch Changes
23
+
24
+ - 72d019d: Removed various typos
25
+ - Updated dependencies
26
+ - @backstage/theme@0.6.6-next.0
27
+ - @backstage/core-components@0.17.2-next.0
28
+ - @backstage/frontend-plugin-api@0.10.2-next.0
29
+ - @backstage/plugin-catalog-react@1.18.0-next.1
30
+ - @backstage/catalog-client@1.10.0-next.0
31
+ - @backstage/catalog-model@1.7.3
32
+ - @backstage/core-plugin-api@1.10.6
33
+ - @backstage/types@1.2.1
34
+ - @backstage/version-bridge@1.0.11
35
+ - @backstage/plugin-permission-react@0.4.34-next.0
36
+ - @backstage/plugin-scaffolder-common@1.5.11-next.0
37
+
3
38
  ## 1.16.0-next.0
4
39
 
5
40
  ### Minor Changes
package/dist/alpha.d.ts CHANGED
@@ -481,8 +481,8 @@ declare const scaffolderReactTranslationRef: _backstage_core_plugin_api_alpha.Tr
481
481
  readonly "stepper.backButtonText": "Back";
482
482
  readonly "stepper.createButtonText": "Create";
483
483
  readonly "stepper.reviewButtonText": "Review";
484
- readonly "stepper.stepIndexLabel": "Step {{index, number}}";
485
484
  readonly "stepper.nextButtonText": "Next";
485
+ readonly "stepper.stepIndexLabel": "Step {{index, number}}";
486
486
  readonly "templateCategoryPicker.title": "Categories";
487
487
  readonly "templateCard.noDescription": "No description";
488
488
  readonly "templateCard.chooseButtonText": "Choose";
@@ -1 +1 @@
1
- {"version":3,"file":"useCustomFieldExtensions.esm.js","sources":["../../src/hooks/useCustomFieldExtensions.ts"],"sourcesContent":["/*\n * Copyright 2023 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 */\nimport { useAsync, useMountEffect } from '@react-hookz/web';\nimport { useApi, useElementFilter } from '@backstage/core-plugin-api';\nimport { formFieldsApiRef } from '../next';\nimport { FieldExtensionOptions } from '../extensions';\nimport {\n FIELD_EXTENSION_KEY,\n FIELD_EXTENSION_WRAPPER_KEY,\n} from '../extensions/keys';\n\n/**\n * Hook that returns all custom field extensions from the current outlet.\n * @public\n */\nexport const useCustomFieldExtensions = <\n // todo(blam): this shouldn't be here, should remove this, but this is a breaking change to remove the generic.\n TComponentDataType = FieldExtensionOptions,\n>(\n outlet: React.ReactNode,\n) => {\n // Get custom fields created with FormFieldBlueprint\n const formFieldsApi = useApi(formFieldsApiRef);\n const [{ result: blueprintFields }, { execute }] = useAsync(\n () => formFieldsApi.getFormFields(),\n [],\n );\n useMountEffect(execute);\n\n // Get custom fields created with ScaffolderFieldExtensions\n const outletFields = useElementFilter(outlet, elements =>\n elements\n .selectByComponentData({\n key: FIELD_EXTENSION_WRAPPER_KEY,\n })\n .findComponentData<TComponentDataType>({\n key: FIELD_EXTENSION_KEY,\n }),\n );\n\n // This should really be a different type moving foward, but we do this to keep type compatibility.\n // should probably also move the defaults into the API eventually too, but that will come with the move\n // to the new frontend system.\n const blueprintsToLegacy: FieldExtensionOptions[] = blueprintFields?.map(\n field => ({\n component: field.component,\n name: field.name,\n validation: field.validation,\n schema: field.schema?.schema,\n }),\n );\n\n return [...blueprintsToLegacy, ...outletFields] as TComponentDataType[];\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4Ba,MAAA,wBAAA,GAA2B,CAItC,MACG,KAAA;AAEH,EAAM,MAAA,aAAA,GAAgB,OAAO,gBAAgB,CAAA;AAC7C,EAAM,MAAA,CAAC,EAAE,MAAQ,EAAA,eAAA,IAAmB,EAAE,OAAA,EAAS,CAAI,GAAA,QAAA;AAAA,IACjD,MAAM,cAAc,aAAc,EAAA;AAAA,IAClC;AAAC,GACH;AACA,EAAA,cAAA,CAAe,OAAO,CAAA;AAGtB,EAAA,MAAM,YAAe,GAAA,gBAAA;AAAA,IAAiB,MAAA;AAAA,IAAQ,CAAA,QAAA,KAC5C,SACG,qBAAsB,CAAA;AAAA,MACrB,GAAK,EAAA;AAAA,KACN,EACA,iBAAsC,CAAA;AAAA,MACrC,GAAK,EAAA;AAAA,KACN;AAAA,GACL;AAKA,EAAA,MAAM,qBAA8C,eAAiB,EAAA,GAAA;AAAA,IACnE,CAAU,KAAA,MAAA;AAAA,MACR,WAAW,KAAM,CAAA,SAAA;AAAA,MACjB,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAA,EAAQ,MAAM,MAAQ,EAAA;AAAA,KACxB;AAAA,GACF;AAEA,EAAA,OAAO,CAAC,GAAG,kBAAoB,EAAA,GAAG,YAAY,CAAA;AAChD;;;;"}
1
+ {"version":3,"file":"useCustomFieldExtensions.esm.js","sources":["../../src/hooks/useCustomFieldExtensions.ts"],"sourcesContent":["/*\n * Copyright 2023 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 */\nimport { useAsync, useMountEffect } from '@react-hookz/web';\nimport { useApi, useElementFilter } from '@backstage/core-plugin-api';\nimport { formFieldsApiRef } from '../next';\nimport { FieldExtensionOptions } from '../extensions';\nimport {\n FIELD_EXTENSION_KEY,\n FIELD_EXTENSION_WRAPPER_KEY,\n} from '../extensions/keys';\n\n/**\n * Hook that returns all custom field extensions from the current outlet.\n * @public\n */\nexport const useCustomFieldExtensions = <\n // todo(blam): this shouldn't be here, should remove this, but this is a breaking change to remove the generic.\n TComponentDataType = FieldExtensionOptions,\n>(\n outlet: React.ReactNode,\n) => {\n // Get custom fields created with FormFieldBlueprint\n const formFieldsApi = useApi(formFieldsApiRef);\n const [{ result: blueprintFields }, { execute }] = useAsync(\n () => formFieldsApi.getFormFields(),\n [],\n );\n useMountEffect(execute);\n\n // Get custom fields created with ScaffolderFieldExtensions\n const outletFields = useElementFilter(outlet, elements =>\n elements\n .selectByComponentData({\n key: FIELD_EXTENSION_WRAPPER_KEY,\n })\n .findComponentData<TComponentDataType>({\n key: FIELD_EXTENSION_KEY,\n }),\n );\n\n // This should really be a different type moving forward, but we do this to keep type compatibility.\n // should probably also move the defaults into the API eventually too, but that will come with the move\n // to the new frontend system.\n const blueprintsToLegacy: FieldExtensionOptions[] = blueprintFields?.map(\n field => ({\n component: field.component,\n name: field.name,\n validation: field.validation,\n schema: field.schema?.schema,\n }),\n );\n\n return [...blueprintsToLegacy, ...outletFields] as TComponentDataType[];\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4Ba,MAAA,wBAAA,GAA2B,CAItC,MACG,KAAA;AAEH,EAAM,MAAA,aAAA,GAAgB,OAAO,gBAAgB,CAAA;AAC7C,EAAM,MAAA,CAAC,EAAE,MAAQ,EAAA,eAAA,IAAmB,EAAE,OAAA,EAAS,CAAI,GAAA,QAAA;AAAA,IACjD,MAAM,cAAc,aAAc,EAAA;AAAA,IAClC;AAAC,GACH;AACA,EAAA,cAAA,CAAe,OAAO,CAAA;AAGtB,EAAA,MAAM,YAAe,GAAA,gBAAA;AAAA,IAAiB,MAAA;AAAA,IAAQ,CAAA,QAAA,KAC5C,SACG,qBAAsB,CAAA;AAAA,MACrB,GAAK,EAAA;AAAA,KACN,EACA,iBAAsC,CAAA;AAAA,MACrC,GAAK,EAAA;AAAA,KACN;AAAA,GACL;AAKA,EAAA,MAAM,qBAA8C,eAAiB,EAAA,GAAA;AAAA,IACnE,CAAU,KAAA,MAAA;AAAA,MACR,WAAW,KAAM,CAAA,SAAA;AAAA,MACjB,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAA,EAAQ,MAAM,MAAQ,EAAA;AAAA,KACxB;AAAA,GACF;AAEA,EAAA,OAAO,CAAC,GAAG,kBAAoB,EAAA,GAAG,YAAY,CAAA;AAChD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-react",
3
- "version": "1.16.0-next.0",
3
+ "version": "1.16.0-next.2",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the Scaffolder",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -68,13 +68,13 @@
68
68
  "dependencies": {
69
69
  "@backstage/catalog-client": "1.10.0-next.0",
70
70
  "@backstage/catalog-model": "1.7.3",
71
- "@backstage/core-components": "0.17.1",
72
- "@backstage/core-plugin-api": "1.10.6",
73
- "@backstage/frontend-plugin-api": "0.10.1",
74
- "@backstage/plugin-catalog-react": "1.18.0-next.0",
75
- "@backstage/plugin-permission-react": "0.4.33",
76
- "@backstage/plugin-scaffolder-common": "1.5.10",
77
- "@backstage/theme": "0.6.5",
71
+ "@backstage/core-components": "0.17.2-next.1",
72
+ "@backstage/core-plugin-api": "1.10.7-next.0",
73
+ "@backstage/frontend-plugin-api": "0.10.2-next.1",
74
+ "@backstage/plugin-catalog-react": "1.18.0-next.2",
75
+ "@backstage/plugin-permission-react": "0.4.34-next.1",
76
+ "@backstage/plugin-scaffolder-common": "1.5.11-next.0",
77
+ "@backstage/theme": "0.6.6-next.0",
78
78
  "@backstage/types": "1.2.1",
79
79
  "@backstage/version-bridge": "1.0.11",
80
80
  "@material-ui/core": "^4.12.2",
@@ -104,12 +104,12 @@
104
104
  "zod-to-json-schema": "^3.20.4"
105
105
  },
106
106
  "devDependencies": {
107
- "@backstage/cli": "0.32.1-next.0",
108
- "@backstage/core-app-api": "1.16.1",
109
- "@backstage/plugin-catalog": "1.29.1-next.0",
110
- "@backstage/plugin-catalog-common": "1.1.3",
111
- "@backstage/plugin-permission-common": "0.8.4",
112
- "@backstage/test-utils": "1.7.7",
107
+ "@backstage/cli": "0.32.1-next.2",
108
+ "@backstage/core-app-api": "1.16.2-next.0",
109
+ "@backstage/plugin-catalog": "1.29.1-next.2",
110
+ "@backstage/plugin-catalog-common": "1.1.4-next.0",
111
+ "@backstage/plugin-permission-common": "0.9.0-next.0",
112
+ "@backstage/test-utils": "1.7.8-next.1",
113
113
  "@testing-library/dom": "^10.0.0",
114
114
  "@testing-library/jest-dom": "^6.0.0",
115
115
  "@testing-library/react": "^16.0.0",