@backstage/plugin-scaffolder-react 1.14.5-next.3 → 1.14.6-next.0

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,37 @@
1
1
  # @backstage/plugin-scaffolder-react
2
2
 
3
+ ## 1.14.6-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - b3b7c9c: Deprecated the alpha `ScaffolderFormFieldsApi` and `formFieldsApiRef` as these are being replaced with a different solution.
8
+ - Updated dependencies
9
+ - @backstage/plugin-catalog-react@1.16.0-next.0
10
+ - @backstage/frontend-plugin-api@0.9.6-next.0
11
+
12
+ ## 1.14.5
13
+
14
+ ### Patch Changes
15
+
16
+ - 656f67b: Reverted the validation in dependencies in scaffolder
17
+ - 2003fc2: Hide text output button if only one is present
18
+ - a35118f: build(deps): bump `immer` from 8.0.4 to 9.0.6
19
+ - 1283f06: Added missing `ajv` and `immer` dependencies to `@backstage/plugin-scaffolder-react`
20
+ - 3edf7e7: Add schema output return type to the `makeFieldSchema` function return
21
+ - 58ec9e7: Removed older versions of React packages as a preparatory step for upgrading to React 19. This commit does not introduce any functional changes, but removes dependencies on previous React versions, allowing for a cleaner upgrade path in subsequent commits.
22
+ - Updated dependencies
23
+ - @backstage/core-components@0.16.4
24
+ - @backstage/plugin-catalog-react@1.15.2
25
+ - @backstage/frontend-plugin-api@0.9.5
26
+ - @backstage/core-plugin-api@1.10.4
27
+ - @backstage/plugin-permission-react@0.4.31
28
+ - @backstage/version-bridge@1.0.11
29
+ - @backstage/theme@0.6.4
30
+ - @backstage/catalog-client@1.9.1
31
+ - @backstage/catalog-model@1.7.3
32
+ - @backstage/types@1.2.1
33
+ - @backstage/plugin-scaffolder-common@1.5.9
34
+
3
35
  ## 1.14.5-next.3
4
36
 
5
37
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -144,12 +144,18 @@ declare const FormFieldBlueprint: _backstage_frontend_plugin_api.ExtensionBluepr
144
144
  */
145
145
  declare function createFormField<TReturnValue extends z.ZodType, TUiOptions extends z.ZodType>(opts: FormFieldExtensionData<TReturnValue, TUiOptions>): FormField;
146
146
 
147
- /** @alpha */
147
+ /**
148
+ * @alpha
149
+ * @deprecated This API is no longer necessary and will be removed
150
+ */
148
151
  interface ScaffolderFormFieldsApi {
149
152
  getFormFields(): Promise<FormFieldExtensionData[]>;
150
153
  }
151
154
 
152
- /** @alpha */
155
+ /**
156
+ * @alpha
157
+ * @deprecated This API is no longer necessary and will be removed
158
+ */
153
159
  declare const formFieldsApiRef: _backstage_frontend_plugin_api.ApiRef<ScaffolderFormFieldsApi>;
154
160
 
155
161
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ref.esm.js","sources":["../../../src/next/api/ref.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 { createApiRef } from '@backstage/frontend-plugin-api';\nimport { ScaffolderFormFieldsApi } from './types';\n\n/** @alpha */\nexport const formFieldsApiRef = createApiRef<ScaffolderFormFieldsApi>({\n id: 'plugin.scaffolder.form-fields',\n});\n"],"names":[],"mappings":";;AAoBO,MAAM,mBAAmB,YAAsC,CAAA;AAAA,EACpE,EAAI,EAAA;AACN,CAAC;;;;"}
1
+ {"version":3,"file":"ref.esm.js","sources":["../../../src/next/api/ref.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 { createApiRef } from '@backstage/frontend-plugin-api';\nimport { ScaffolderFormFieldsApi } from './types';\n\n/**\n * @alpha\n * @deprecated This API is no longer necessary and will be removed\n */\nexport const formFieldsApiRef = createApiRef<ScaffolderFormFieldsApi>({\n id: 'plugin.scaffolder.form-fields',\n});\n"],"names":[],"mappings":";;AAuBO,MAAM,mBAAmB,YAAsC,CAAA;AAAA,EACpE,EAAI,EAAA;AACN,CAAC;;;;"}
@@ -7,7 +7,10 @@ const formFieldExtensionDataRef = createExtensionDataRef().with({
7
7
  });
8
8
  const FormFieldBlueprint = createExtensionBlueprint({
9
9
  kind: "scaffolder-form-field",
10
- attachTo: { id: "api:scaffolder/form-fields", input: "formFields" },
10
+ attachTo: [
11
+ { id: "page:scaffolder", input: "formFields" },
12
+ { id: "api:scaffolder/form-fields", input: "formFields" }
13
+ ],
11
14
  dataRefs: {
12
15
  formFieldLoader: formFieldExtensionDataRef
13
16
  },
@@ -1 +1 @@
1
- {"version":3,"file":"FormFieldBlueprint.esm.js","sources":["../../../src/next/blueprints/FormFieldBlueprint.tsx"],"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 */\nimport {\n createExtensionBlueprint,\n createExtensionDataRef,\n} from '@backstage/frontend-plugin-api';\nimport { z } from 'zod';\n\nimport { OpaqueFormField, FormField } from '@internal/scaffolder';\nimport { FormFieldExtensionData } from './types';\n\nconst formFieldExtensionDataRef = createExtensionDataRef<\n () => Promise<FormField>\n>().with({\n id: 'scaffolder.form-field-loader',\n});\n\n/**\n * @alpha\n * Creates extensions that are Field Extensions for the Scaffolder\n * */\nexport const FormFieldBlueprint = createExtensionBlueprint({\n kind: 'scaffolder-form-field',\n attachTo: { id: 'api:scaffolder/form-fields', input: 'formFields' },\n dataRefs: {\n formFieldLoader: formFieldExtensionDataRef,\n },\n output: [formFieldExtensionDataRef],\n *factory(params: { field: () => Promise<FormField> }) {\n yield formFieldExtensionDataRef(params.field);\n },\n});\n\n/**\n * @alpha\n * Used to create a form field binding with typechecking for compliance\n */\nexport function createFormField<\n TReturnValue extends z.ZodType,\n TUiOptions extends z.ZodType,\n>(opts: FormFieldExtensionData<TReturnValue, TUiOptions>): FormField {\n return OpaqueFormField.createInstance('v1', opts);\n}\n"],"names":[],"mappings":";;;;AAwBA,MAAM,yBAAA,GAA4B,sBAEhC,EAAA,CAAE,IAAK,CAAA;AAAA,EACP,EAAI,EAAA;AACN,CAAC,CAAA;AAMM,MAAM,qBAAqB,wBAAyB,CAAA;AAAA,EACzD,IAAM,EAAA,uBAAA;AAAA,EACN,QAAU,EAAA,EAAE,EAAI,EAAA,4BAAA,EAA8B,OAAO,YAAa,EAAA;AAAA,EAClE,QAAU,EAAA;AAAA,IACR,eAAiB,EAAA;AAAA,GACnB;AAAA,EACA,MAAA,EAAQ,CAAC,yBAAyB,CAAA;AAAA,EAClC,CAAC,QAAQ,MAA6C,EAAA;AACpD,IAAM,MAAA,yBAAA,CAA0B,OAAO,KAAK,CAAA;AAAA;AAEhD,CAAC;AAMM,SAAS,gBAGd,IAAmE,EAAA;AACnE,EAAO,OAAA,eAAA,CAAgB,cAAe,CAAA,IAAA,EAAM,IAAI,CAAA;AAClD;;;;"}
1
+ {"version":3,"file":"FormFieldBlueprint.esm.js","sources":["../../../src/next/blueprints/FormFieldBlueprint.tsx"],"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 */\nimport {\n createExtensionBlueprint,\n createExtensionDataRef,\n} from '@backstage/frontend-plugin-api';\nimport { z } from 'zod';\n\nimport { OpaqueFormField, FormField } from '@internal/scaffolder';\nimport { FormFieldExtensionData } from './types';\n\nconst formFieldExtensionDataRef = createExtensionDataRef<\n () => Promise<FormField>\n>().with({\n id: 'scaffolder.form-field-loader',\n});\n\n/**\n * @alpha\n * Creates extensions that are Field Extensions for the Scaffolder\n * */\nexport const FormFieldBlueprint = createExtensionBlueprint({\n kind: 'scaffolder-form-field',\n attachTo: [\n { id: 'page:scaffolder', input: 'formFields' },\n { id: 'api:scaffolder/form-fields', input: 'formFields' },\n ],\n dataRefs: {\n formFieldLoader: formFieldExtensionDataRef,\n },\n output: [formFieldExtensionDataRef],\n *factory(params: { field: () => Promise<FormField> }) {\n yield formFieldExtensionDataRef(params.field);\n },\n});\n\n/**\n * @alpha\n * Used to create a form field binding with typechecking for compliance\n */\nexport function createFormField<\n TReturnValue extends z.ZodType,\n TUiOptions extends z.ZodType,\n>(opts: FormFieldExtensionData<TReturnValue, TUiOptions>): FormField {\n return OpaqueFormField.createInstance('v1', opts);\n}\n"],"names":[],"mappings":";;;;AAwBA,MAAM,yBAAA,GAA4B,sBAEhC,EAAA,CAAE,IAAK,CAAA;AAAA,EACP,EAAI,EAAA;AACN,CAAC,CAAA;AAMM,MAAM,qBAAqB,wBAAyB,CAAA;AAAA,EACzD,IAAM,EAAA,uBAAA;AAAA,EACN,QAAU,EAAA;AAAA,IACR,EAAE,EAAA,EAAI,iBAAmB,EAAA,KAAA,EAAO,YAAa,EAAA;AAAA,IAC7C,EAAE,EAAA,EAAI,4BAA8B,EAAA,KAAA,EAAO,YAAa;AAAA,GAC1D;AAAA,EACA,QAAU,EAAA;AAAA,IACR,eAAiB,EAAA;AAAA,GACnB;AAAA,EACA,MAAA,EAAQ,CAAC,yBAAyB,CAAA;AAAA,EAClC,CAAC,QAAQ,MAA6C,EAAA;AACpD,IAAM,MAAA,yBAAA,CAA0B,OAAO,KAAK,CAAA;AAAA;AAEhD,CAAC;AAMM,SAAS,gBAGd,IAAmE,EAAA;AACnE,EAAO,OAAA,eAAA,CAAgB,cAAe,CAAA,IAAA,EAAM,IAAI,CAAA;AAClD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-react",
3
- "version": "1.14.5-next.3",
3
+ "version": "1.14.6-next.0",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the Scaffolder",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -68,15 +68,15 @@
68
68
  "dependencies": {
69
69
  "@backstage/catalog-client": "1.9.1",
70
70
  "@backstage/catalog-model": "1.7.3",
71
- "@backstage/core-components": "0.16.4-next.1",
72
- "@backstage/core-plugin-api": "1.10.4-next.0",
73
- "@backstage/frontend-plugin-api": "0.9.5-next.3",
74
- "@backstage/plugin-catalog-react": "1.15.2-next.3",
75
- "@backstage/plugin-permission-react": "0.4.31-next.0",
71
+ "@backstage/core-components": "0.16.4",
72
+ "@backstage/core-plugin-api": "1.10.4",
73
+ "@backstage/frontend-plugin-api": "0.9.6-next.0",
74
+ "@backstage/plugin-catalog-react": "1.16.0-next.0",
75
+ "@backstage/plugin-permission-react": "0.4.31",
76
76
  "@backstage/plugin-scaffolder-common": "1.5.9",
77
- "@backstage/theme": "0.6.4-next.0",
77
+ "@backstage/theme": "0.6.4",
78
78
  "@backstage/types": "1.2.1",
79
- "@backstage/version-bridge": "1.0.11-next.0",
79
+ "@backstage/version-bridge": "1.0.11",
80
80
  "@material-ui/core": "^4.12.2",
81
81
  "@material-ui/icons": "^4.9.1",
82
82
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -104,12 +104,12 @@
104
104
  "zod-to-json-schema": "^3.20.4"
105
105
  },
106
106
  "devDependencies": {
107
- "@backstage/cli": "0.30.0-next.3",
108
- "@backstage/core-app-api": "1.15.5-next.0",
109
- "@backstage/plugin-catalog": "1.27.0-next.3",
107
+ "@backstage/cli": "0.30.0",
108
+ "@backstage/core-app-api": "1.15.5",
109
+ "@backstage/plugin-catalog": "1.28.0-next.0",
110
110
  "@backstage/plugin-catalog-common": "1.1.3",
111
111
  "@backstage/plugin-permission-common": "0.8.4",
112
- "@backstage/test-utils": "1.7.5-next.0",
112
+ "@backstage/test-utils": "1.7.5",
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",