@backstage/plugin-scaffolder-react 1.14.3 → 1.14.4-next.1

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,41 @@
1
1
  # @backstage/plugin-scaffolder-react
2
2
 
3
+ ## 1.14.4-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+ - Updated dependencies
9
+ - @backstage/core-components@0.16.4-next.0
10
+ - @backstage/frontend-plugin-api@0.9.5-next.1
11
+ - @backstage/core-plugin-api@1.10.4-next.0
12
+ - @backstage/plugin-permission-react@0.4.31-next.0
13
+ - @backstage/version-bridge@1.0.11-next.0
14
+ - @backstage/plugin-catalog-react@1.15.2-next.1
15
+ - @backstage/theme@0.6.4-next.0
16
+ - @backstage/catalog-client@1.9.1
17
+ - @backstage/catalog-model@1.7.3
18
+ - @backstage/types@1.2.1
19
+ - @backstage/plugin-scaffolder-common@1.5.9
20
+
21
+ ## 1.14.4-next.0
22
+
23
+ ### Patch Changes
24
+
25
+ - 3edf7e7: Add schema output return type to the `makeFieldSchema` function return
26
+ - Updated dependencies
27
+ - @backstage/frontend-plugin-api@0.9.5-next.0
28
+ - @backstage/catalog-client@1.9.1
29
+ - @backstage/catalog-model@1.7.3
30
+ - @backstage/core-components@0.16.3
31
+ - @backstage/core-plugin-api@1.10.3
32
+ - @backstage/theme@0.6.3
33
+ - @backstage/types@1.2.1
34
+ - @backstage/version-bridge@1.0.10
35
+ - @backstage/plugin-catalog-react@1.15.2-next.0
36
+ - @backstage/plugin-permission-react@0.4.30
37
+ - @backstage/plugin-scaffolder-common@1.5.9
38
+
3
39
  ## 1.14.3
4
40
 
5
41
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -686,6 +686,7 @@ interface FieldSchema<TReturn, TUiOptions> {
686
686
  readonly uiOptionsType: TUiOptions;
687
687
  readonly schema: CustomFieldExtensionSchema;
688
688
  readonly TProps: FieldExtensionComponentProps<TReturn, TUiOptions>;
689
+ readonly TOutput: TReturn;
689
690
  }
690
691
 
691
692
  export { type Action, type ActionExample, type CustomFieldExtensionSchema, type CustomFieldValidator, type FieldExtensionComponent, type FieldExtensionComponentProps, type FieldExtensionOptions, type FieldExtensionUiSchema, type FieldSchema, type FormProps, type LayoutComponent, type LayoutOptions, type LayoutTemplate, type ListActionsResponse, type LogEvent, type ReviewStepProps, type ScaffolderApi, type ScaffolderDryRunOptions, type ScaffolderDryRunResponse, ScaffolderFieldExtensions, type ScaffolderGetIntegrationsListOptions, type ScaffolderGetIntegrationsListResponse, ScaffolderLayouts, type ScaffolderOutputLink, type ScaffolderOutputText, type ScaffolderRJSFField, type ScaffolderRJSFFieldProps, type ScaffolderRJSFFormProps, type ScaffolderRJSFRegistryFieldsType, type ScaffolderScaffoldOptions, type ScaffolderScaffoldResponse, type ScaffolderStep, type ScaffolderStreamLogsOptions, type ScaffolderTask, type ScaffolderTaskOutput, type ScaffolderTaskStatus, type ScaffolderUseTemplateSecrets, SecretsContextProvider, type TaskStream, type TemplateGroupFilter, type TemplateParameterSchema, createScaffolderFieldExtension, createScaffolderLayout, makeFieldSchema, scaffolderApiRef, useCustomFieldExtensions, useCustomLayouts, useTaskEventStream, useTemplateSecrets };
package/dist/utils.esm.js CHANGED
@@ -5,6 +5,7 @@ function makeFieldSchema(options) {
5
5
  const { output, uiOptions } = options;
6
6
  return {
7
7
  TProps: void 0,
8
+ TOutput: void 0,
8
9
  schema: {
9
10
  returnValue: zodToJsonSchema(output(z)),
10
11
  uiOptions: uiOptions && zodToJsonSchema(uiOptions(z))
@@ -1 +1 @@
1
- {"version":3,"file":"utils.esm.js","sources":["../src/utils.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 zodToJsonSchema from 'zod-to-json-schema';\nimport { JSONSchema7 } from 'json-schema';\nimport { z } from 'zod';\nimport {\n CustomFieldExtensionSchema,\n FieldExtensionComponentProps,\n} from './extensions';\n\n/** @public */\nexport function makeFieldSchema<\n TReturnType extends z.ZodType,\n TUiOptions extends z.ZodType,\n>(options: {\n output: (zImpl: typeof z) => TReturnType;\n uiOptions?: (zImpl: typeof z) => TUiOptions;\n}): FieldSchema<z.output<TReturnType>, z.output<TUiOptions>> {\n const { output, uiOptions } = options;\n return {\n TProps: undefined as any,\n schema: {\n returnValue: zodToJsonSchema(output(z)) as JSONSchema7,\n uiOptions: uiOptions && (zodToJsonSchema(uiOptions(z)) as JSONSchema7),\n },\n\n // These will be removed - just here for backwards compat whilst we're moving across\n type: undefined as any,\n uiOptionsType: undefined as any,\n };\n}\n\n/**\n * @public\n * FieldSchema encapsulates a JSONSchema7 along with the\n * matching FieldExtensionComponentProps type for a field extension.\n */\nexport interface FieldSchema<TReturn, TUiOptions> {\n /** @deprecated use TProps instead */\n readonly type: FieldExtensionComponentProps<TReturn, TUiOptions>;\n /** @deprecated will be removed */\n readonly uiOptionsType: TUiOptions;\n\n readonly schema: CustomFieldExtensionSchema;\n readonly TProps: FieldExtensionComponentProps<TReturn, TUiOptions>;\n}\n"],"names":[],"mappings":";;;AAyBO,SAAS,gBAGd,OAG2D,EAAA;AAC3D,EAAM,MAAA,EAAE,MAAQ,EAAA,SAAA,EAAc,GAAA,OAAA;AAC9B,EAAO,OAAA;AAAA,IACL,MAAQ,EAAA,KAAA,CAAA;AAAA,IACR,MAAQ,EAAA;AAAA,MACN,WAAa,EAAA,eAAA,CAAgB,MAAO,CAAA,CAAC,CAAC,CAAA;AAAA,MACtC,SAAW,EAAA,SAAA,IAAc,eAAgB,CAAA,SAAA,CAAU,CAAC,CAAC;AAAA,KACvD;AAAA;AAAA,IAGA,IAAM,EAAA,KAAA,CAAA;AAAA,IACN,aAAe,EAAA,KAAA;AAAA,GACjB;AACF;;;;"}
1
+ {"version":3,"file":"utils.esm.js","sources":["../src/utils.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 zodToJsonSchema from 'zod-to-json-schema';\nimport { JSONSchema7 } from 'json-schema';\nimport { z } from 'zod';\nimport {\n CustomFieldExtensionSchema,\n FieldExtensionComponentProps,\n} from './extensions';\n\n/** @public */\nexport function makeFieldSchema<\n TReturnType extends z.ZodType,\n TUiOptions extends z.ZodType,\n>(options: {\n output: (zImpl: typeof z) => TReturnType;\n uiOptions?: (zImpl: typeof z) => TUiOptions;\n}): FieldSchema<z.output<TReturnType>, z.output<TUiOptions>> {\n const { output, uiOptions } = options;\n return {\n TProps: undefined as any,\n TOutput: undefined as any,\n schema: {\n returnValue: zodToJsonSchema(output(z)) as JSONSchema7,\n uiOptions: uiOptions && (zodToJsonSchema(uiOptions(z)) as JSONSchema7),\n },\n\n // These will be removed - just here for backwards compat whilst we're moving across\n type: undefined as any,\n uiOptionsType: undefined as any,\n };\n}\n\n/**\n * @public\n * FieldSchema encapsulates a JSONSchema7 along with the\n * matching FieldExtensionComponentProps type for a field extension.\n */\nexport interface FieldSchema<TReturn, TUiOptions> {\n /** @deprecated use TProps instead */\n readonly type: FieldExtensionComponentProps<TReturn, TUiOptions>;\n /** @deprecated will be removed */\n readonly uiOptionsType: TUiOptions;\n\n readonly schema: CustomFieldExtensionSchema;\n readonly TProps: FieldExtensionComponentProps<TReturn, TUiOptions>;\n readonly TOutput: TReturn;\n}\n"],"names":[],"mappings":";;;AAyBO,SAAS,gBAGd,OAG2D,EAAA;AAC3D,EAAM,MAAA,EAAE,MAAQ,EAAA,SAAA,EAAc,GAAA,OAAA;AAC9B,EAAO,OAAA;AAAA,IACL,MAAQ,EAAA,KAAA,CAAA;AAAA,IACR,OAAS,EAAA,KAAA,CAAA;AAAA,IACT,MAAQ,EAAA;AAAA,MACN,WAAa,EAAA,eAAA,CAAgB,MAAO,CAAA,CAAC,CAAC,CAAA;AAAA,MACtC,SAAW,EAAA,SAAA,IAAc,eAAgB,CAAA,SAAA,CAAU,CAAC,CAAC;AAAA,KACvD;AAAA;AAAA,IAGA,IAAM,EAAA,KAAA,CAAA;AAAA,IACN,aAAe,EAAA,KAAA;AAAA,GACjB;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-react",
3
- "version": "1.14.3",
3
+ "version": "1.14.4-next.1",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the Scaffolder",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -66,17 +66,17 @@
66
66
  "test": "backstage-cli package test"
67
67
  },
68
68
  "dependencies": {
69
- "@backstage/catalog-client": "^1.9.1",
70
- "@backstage/catalog-model": "^1.7.3",
71
- "@backstage/core-components": "^0.16.3",
72
- "@backstage/core-plugin-api": "^1.10.3",
73
- "@backstage/frontend-plugin-api": "^0.9.4",
74
- "@backstage/plugin-catalog-react": "^1.15.1",
75
- "@backstage/plugin-permission-react": "^0.4.30",
76
- "@backstage/plugin-scaffolder-common": "^1.5.9",
77
- "@backstage/theme": "^0.6.3",
78
- "@backstage/types": "^1.2.1",
79
- "@backstage/version-bridge": "^1.0.10",
69
+ "@backstage/catalog-client": "1.9.1",
70
+ "@backstage/catalog-model": "1.7.3",
71
+ "@backstage/core-components": "0.16.4-next.0",
72
+ "@backstage/core-plugin-api": "1.10.4-next.0",
73
+ "@backstage/frontend-plugin-api": "0.9.5-next.1",
74
+ "@backstage/plugin-catalog-react": "1.15.2-next.1",
75
+ "@backstage/plugin-permission-react": "0.4.31-next.0",
76
+ "@backstage/plugin-scaffolder-common": "1.5.9",
77
+ "@backstage/theme": "0.6.4-next.0",
78
+ "@backstage/types": "1.2.1",
79
+ "@backstage/version-bridge": "1.0.11-next.0",
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",
@@ -102,12 +102,12 @@
102
102
  "zod-to-json-schema": "^3.20.4"
103
103
  },
104
104
  "devDependencies": {
105
- "@backstage/cli": "^0.29.5",
106
- "@backstage/core-app-api": "^1.15.4",
107
- "@backstage/plugin-catalog": "^1.26.1",
108
- "@backstage/plugin-catalog-common": "^1.1.3",
109
- "@backstage/plugin-permission-common": "^0.8.4",
110
- "@backstage/test-utils": "^1.7.4",
105
+ "@backstage/cli": "0.30.0-next.1",
106
+ "@backstage/core-app-api": "1.15.5-next.0",
107
+ "@backstage/plugin-catalog": "1.26.2-next.1",
108
+ "@backstage/plugin-catalog-common": "1.1.3",
109
+ "@backstage/plugin-permission-common": "0.8.4",
110
+ "@backstage/test-utils": "1.7.5-next.0",
111
111
  "@testing-library/dom": "^10.0.0",
112
112
  "@testing-library/jest-dom": "^6.0.0",
113
113
  "@testing-library/react": "^16.0.0",
@@ -121,10 +121,10 @@
121
121
  "swr": "^2.0.0"
122
122
  },
123
123
  "peerDependencies": {
124
- "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
125
- "react": "^16.13.1 || ^17.0.0 || ^18.0.0",
126
- "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
127
- "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
124
+ "@types/react": "^17.0.0 || ^18.0.0",
125
+ "react": "^17.0.0 || ^18.0.0",
126
+ "react-dom": "^17.0.0 || ^18.0.0",
127
+ "react-router-dom": "^6.3.0"
128
128
  },
129
129
  "peerDependenciesMeta": {
130
130
  "@types/react": {