@backstage/plugin-scaffolder 1.34.2-next.1 → 1.34.2-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 +10 -0
- package/dist/alpha/extensions.esm.js +49 -1
- package/dist/alpha/extensions.esm.js.map +1 -1
- package/dist/alpha/fields/EntityNamePicker.esm.js +14 -0
- package/dist/alpha/fields/EntityNamePicker.esm.js.map +1 -0
- package/dist/alpha/fields/EntityPicker.esm.js +12 -0
- package/dist/alpha/fields/EntityPicker.esm.js.map +1 -0
- package/dist/alpha/fields/EntityTagsPicker.esm.js +12 -0
- package/dist/alpha/fields/EntityTagsPicker.esm.js.map +1 -0
- package/dist/alpha/fields/MultiEntityPicker.esm.js +12 -0
- package/dist/alpha/fields/MultiEntityPicker.esm.js.map +1 -0
- package/dist/alpha/fields/MyGroupsPicker.esm.js +12 -0
- package/dist/alpha/fields/MyGroupsPicker.esm.js.map +1 -0
- package/dist/alpha/fields/OwnedEntityPicker.esm.js +12 -0
- package/dist/alpha/fields/OwnedEntityPicker.esm.js.map +1 -0
- package/dist/alpha/fields/OwnerPicker.esm.js +12 -0
- package/dist/alpha/fields/OwnerPicker.esm.js.map +1 -0
- package/dist/alpha/fields/RepoBranchPicker.esm.js +12 -0
- package/dist/alpha/fields/RepoBranchPicker.esm.js.map +1 -0
- package/dist/alpha/fields/RepoUrlPicker.esm.js +0 -23
- package/dist/alpha/fields/RepoUrlPicker.esm.js.map +1 -1
- package/dist/alpha/plugin.esm.js +10 -2
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +88 -0
- package/dist/components/fields/EntityNamePicker/schema.esm.js +1 -1
- package/dist/components/fields/EntityNamePicker/schema.esm.js.map +1 -1
- package/dist/components/fields/EntityTagsPicker/schema.esm.js.map +1 -1
- package/dist/components/fields/MyGroupsPicker/schema.esm.js.map +1 -1
- package/dist/components/fields/OwnedEntityPicker/schema.esm.js +13 -0
- package/dist/components/fields/OwnedEntityPicker/schema.esm.js.map +1 -1
- package/dist/components/fields/OwnerPicker/schema.esm.js.map +1 -1
- package/dist/components/fields/RepoBranchPicker/schema.esm.js.map +1 -1
- package/dist/components/fields/RepoUrlPicker/validation.esm.js.map +1 -1
- package/dist/index.d.ts +68 -72
- package/dist/index.esm.js +30 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +3 -3
- package/dist/plugins/scaffolder/package.json.esm.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.34.2-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 075e064: Added missing form fields for the new frontend system.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/plugin-scaffolder-react@1.19.2-next.2
|
|
10
|
+
- @backstage/core-components@0.18.2-next.2
|
|
11
|
+
- @backstage/plugin-techdocs-react@1.3.4-next.1
|
|
12
|
+
|
|
3
13
|
## 1.34.2-next.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -42,6 +42,54 @@ const repoUrlPickerFormField = FormFieldBlueprint.make({
|
|
|
42
42
|
field: () => import('./fields/RepoUrlPicker.esm.js').then((m) => m.RepoUrlPicker)
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
+
const entityNamePickerFormField = FormFieldBlueprint.make({
|
|
46
|
+
name: "entity-name-picker",
|
|
47
|
+
params: {
|
|
48
|
+
field: () => import('./fields/EntityNamePicker.esm.js').then((m) => m.EntityNamePicker)
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const entityPickerFormField = FormFieldBlueprint.make({
|
|
52
|
+
name: "entity-picker",
|
|
53
|
+
params: {
|
|
54
|
+
field: () => import('./fields/EntityPicker.esm.js').then((m) => m.EntityPicker)
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const ownerPickerFormField = FormFieldBlueprint.make({
|
|
58
|
+
name: "owner-picker",
|
|
59
|
+
params: {
|
|
60
|
+
field: () => import('./fields/OwnerPicker.esm.js').then((m) => m.OwnerPicker)
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const entityTagsPickerFormField = FormFieldBlueprint.make({
|
|
64
|
+
name: "entity-tags-picker",
|
|
65
|
+
params: {
|
|
66
|
+
field: () => import('./fields/EntityTagsPicker.esm.js').then((m) => m.EntityTagsPicker)
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const multiEntityPickerFormField = FormFieldBlueprint.make({
|
|
70
|
+
name: "multi-entity-picker",
|
|
71
|
+
params: {
|
|
72
|
+
field: () => import('./fields/MultiEntityPicker.esm.js').then((m) => m.MultiEntityPicker)
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const myGroupsPickerFormField = FormFieldBlueprint.make({
|
|
76
|
+
name: "my-groups-picker",
|
|
77
|
+
params: {
|
|
78
|
+
field: () => import('./fields/MyGroupsPicker.esm.js').then((m) => m.MyGroupsPicker)
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const ownedEntityPickerFormField = FormFieldBlueprint.make({
|
|
82
|
+
name: "owned-entity-picker",
|
|
83
|
+
params: {
|
|
84
|
+
field: () => import('./fields/OwnedEntityPicker.esm.js').then((m) => m.OwnedEntityPicker)
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const repoBranchPickerFormField = FormFieldBlueprint.make({
|
|
88
|
+
name: "repo-branch-picker",
|
|
89
|
+
params: {
|
|
90
|
+
field: () => import('./fields/RepoBranchPicker.esm.js').then((m) => m.RepoBranchPicker)
|
|
91
|
+
}
|
|
92
|
+
});
|
|
45
93
|
const scaffolderApi = ApiBlueprint.make({
|
|
46
94
|
params: (defineParams) => defineParams({
|
|
47
95
|
api: scaffolderApiRef,
|
|
@@ -60,5 +108,5 @@ const scaffolderApi = ApiBlueprint.make({
|
|
|
60
108
|
})
|
|
61
109
|
});
|
|
62
110
|
|
|
63
|
-
export { repoUrlPickerFormField, scaffolderApi, scaffolderNavItem, scaffolderPage };
|
|
111
|
+
export { entityNamePickerFormField, entityPickerFormField, entityTagsPickerFormField, multiEntityPickerFormField, myGroupsPickerFormField, ownedEntityPickerFormField, ownerPickerFormField, repoBranchPickerFormField, repoUrlPickerFormField, scaffolderApi, scaffolderNavItem, scaffolderPage };
|
|
64
112
|
//# sourceMappingURL=extensions.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.tsx"],"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 */\n\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport {\n
|
|
1
|
+
{"version":3,"file":"extensions.esm.js","sources":["../../src/alpha/extensions.tsx"],"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 */\n\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport {\n ApiBlueprint,\n createExtensionInput,\n discoveryApiRef,\n fetchApiRef,\n identityApiRef,\n NavItemBlueprint,\n PageBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from '../routes';\nimport CreateComponentIcon from '@material-ui/icons/AddCircleOutline';\nimport { FormFieldBlueprint } from '@backstage/plugin-scaffolder-react/alpha';\nimport { scmIntegrationsApiRef } from '@backstage/integration-react';\nimport { scaffolderApiRef } from '@backstage/plugin-scaffolder-react';\nimport { ScaffolderClient } from '../api';\n\nexport const scaffolderPage = PageBlueprint.makeWithOverrides({\n inputs: {\n formFields: createExtensionInput([\n FormFieldBlueprint.dataRefs.formFieldLoader,\n ]),\n },\n factory(originalFactory, { inputs }) {\n const formFieldLoaders = inputs.formFields.map(i =>\n i.get(FormFieldBlueprint.dataRefs.formFieldLoader),\n );\n return originalFactory({\n routeRef: convertLegacyRouteRef(rootRouteRef),\n path: '/create',\n loader: () =>\n import('../components/Router/Router').then(m =>\n compatWrapper(\n <m.InternalRouter formFieldLoaders={formFieldLoaders} />,\n ),\n ),\n });\n },\n});\n\nexport const scaffolderNavItem = NavItemBlueprint.make({\n params: {\n routeRef: convertLegacyRouteRef(rootRouteRef),\n title: 'Create...',\n icon: CreateComponentIcon,\n },\n});\n\nexport const repoUrlPickerFormField = FormFieldBlueprint.make({\n name: 'repo-url-picker',\n params: {\n field: () => import('./fields/RepoUrlPicker').then(m => m.RepoUrlPicker),\n },\n});\n\nexport const entityNamePickerFormField = FormFieldBlueprint.make({\n name: 'entity-name-picker',\n params: {\n field: () =>\n import('./fields/EntityNamePicker').then(m => m.EntityNamePicker),\n },\n});\n\nexport const entityPickerFormField = FormFieldBlueprint.make({\n name: 'entity-picker',\n params: {\n field: () => import('./fields/EntityPicker').then(m => m.EntityPicker),\n },\n});\n\nexport const ownerPickerFormField = FormFieldBlueprint.make({\n name: 'owner-picker',\n params: {\n field: () => import('./fields/OwnerPicker').then(m => m.OwnerPicker),\n },\n});\n\nexport const entityTagsPickerFormField = FormFieldBlueprint.make({\n name: 'entity-tags-picker',\n params: {\n field: () =>\n import('./fields/EntityTagsPicker').then(m => m.EntityTagsPicker),\n },\n});\n\nexport const multiEntityPickerFormField = FormFieldBlueprint.make({\n name: 'multi-entity-picker',\n params: {\n field: () =>\n import('./fields/MultiEntityPicker').then(m => m.MultiEntityPicker),\n },\n});\n\nexport const myGroupsPickerFormField = FormFieldBlueprint.make({\n name: 'my-groups-picker',\n params: {\n field: () => import('./fields/MyGroupsPicker').then(m => m.MyGroupsPicker),\n },\n});\n\nexport const ownedEntityPickerFormField = FormFieldBlueprint.make({\n name: 'owned-entity-picker',\n params: {\n field: () =>\n import('./fields/OwnedEntityPicker').then(m => m.OwnedEntityPicker),\n },\n});\n\nexport const repoBranchPickerFormField = FormFieldBlueprint.make({\n name: 'repo-branch-picker',\n params: {\n field: () =>\n import('./fields/RepoBranchPicker').then(m => m.RepoBranchPicker),\n },\n});\n\nexport const scaffolderApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: scaffolderApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n scmIntegrationsApi: scmIntegrationsApiRef,\n fetchApi: fetchApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ discoveryApi, scmIntegrationsApi, fetchApi, identityApi }) =>\n new ScaffolderClient({\n discoveryApi,\n scmIntegrationsApi,\n fetchApi,\n identityApi,\n }),\n }),\n});\n"],"names":[],"mappings":";;;;;;;;;;AAoCO,MAAM,cAAA,GAAiB,cAAc,iBAAA,CAAkB;AAAA,EAC5D,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;AACA,IAAA,OAAO,eAAA,CAAgB;AAAA,MACrB,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,MAC5C,IAAA,EAAM,SAAA;AAAA,MACN,MAAA,EAAQ,MACN,OAAO,oCAA6B,CAAA,CAAE,IAAA;AAAA,QAAK,CAAA,CAAA,KACzC,aAAA;AAAA,0BACE,GAAA,CAAC,CAAA,CAAE,cAAA,EAAF,EAAiB,gBAAA,EAAoC;AAAA;AACxD;AACF,KACH,CAAA;AAAA,EACH;AACF,CAAC;AAEM,MAAM,iBAAA,GAAoB,iBAAiB,IAAA,CAAK;AAAA,EACrD,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,KAAA,EAAO,WAAA;AAAA,IACP,IAAA,EAAM;AAAA;AAEV,CAAC;AAEM,MAAM,sBAAA,GAAyB,mBAAmB,IAAA,CAAK;AAAA,EAC5D,IAAA,EAAM,iBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MAAM,OAAO,+BAAwB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,aAAa;AAAA;AAE3E,CAAC;AAEM,MAAM,yBAAA,GAA4B,mBAAmB,IAAA,CAAK;AAAA,EAC/D,IAAA,EAAM,oBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MACL,OAAO,kCAA2B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,gBAAgB;AAAA;AAEtE,CAAC;AAEM,MAAM,qBAAA,GAAwB,mBAAmB,IAAA,CAAK;AAAA,EAC3D,IAAA,EAAM,eAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MAAM,OAAO,8BAAuB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,YAAY;AAAA;AAEzE,CAAC;AAEM,MAAM,oBAAA,GAAuB,mBAAmB,IAAA,CAAK;AAAA,EAC1D,IAAA,EAAM,cAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MAAM,OAAO,6BAAsB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,WAAW;AAAA;AAEvE,CAAC;AAEM,MAAM,yBAAA,GAA4B,mBAAmB,IAAA,CAAK;AAAA,EAC/D,IAAA,EAAM,oBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MACL,OAAO,kCAA2B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,gBAAgB;AAAA;AAEtE,CAAC;AAEM,MAAM,0BAAA,GAA6B,mBAAmB,IAAA,CAAK;AAAA,EAChE,IAAA,EAAM,qBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MACL,OAAO,mCAA4B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,iBAAiB;AAAA;AAExE,CAAC;AAEM,MAAM,uBAAA,GAA0B,mBAAmB,IAAA,CAAK;AAAA,EAC7D,IAAA,EAAM,kBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MAAM,OAAO,gCAAyB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,cAAc;AAAA;AAE7E,CAAC;AAEM,MAAM,0BAAA,GAA6B,mBAAmB,IAAA,CAAK;AAAA,EAChE,IAAA,EAAM,qBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MACL,OAAO,mCAA4B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,iBAAiB;AAAA;AAExE,CAAC;AAEM,MAAM,yBAAA,GAA4B,mBAAmB,IAAA,CAAK;AAAA,EAC/D,IAAA,EAAM,oBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,MACL,OAAO,kCAA2B,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,gBAAgB;AAAA;AAEtE,CAAC;AAEM,MAAM,aAAA,GAAgB,aAAa,IAAA,CAAK;AAAA,EAC7C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,gBAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,kBAAA,EAAoB,qBAAA;AAAA,MACpB,QAAA,EAAU,WAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,oBAAoB,QAAA,EAAU,WAAA,EAAY,KAClE,IAAI,gBAAA,CAAiB;AAAA,MACnB,YAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA;AAAA,KACD;AAAA,GACJ;AACL,CAAC;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { EntityNamePicker as EntityNamePicker$1 } from '../../components/fields/EntityNamePicker/EntityNamePicker.esm.js';
|
|
3
|
+
import { entityNamePickerValidation } from '../../components/fields/EntityNamePicker/validation.esm.js';
|
|
4
|
+
import { EntityNamePickerFieldSchema } from '../../components/fields/EntityNamePicker/schema.esm.js';
|
|
5
|
+
|
|
6
|
+
const EntityNamePicker = createFormField({
|
|
7
|
+
component: EntityNamePicker$1,
|
|
8
|
+
name: "EntityNamePicker",
|
|
9
|
+
validation: entityNamePickerValidation,
|
|
10
|
+
schema: EntityNamePickerFieldSchema
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { EntityNamePicker };
|
|
14
|
+
//# sourceMappingURL=EntityNamePicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityNamePicker.esm.js","sources":["../../../src/alpha/fields/EntityNamePicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n EntityNamePicker as Component,\n EntityNamePickerFieldSchema,\n entityNamePickerValidation,\n} from '../../components/fields/EntityNamePicker';\n\nexport const EntityNamePicker = createFormField({\n component: Component,\n name: 'EntityNamePicker',\n validation: entityNamePickerValidation,\n schema: EntityNamePickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;;AAsBO,MAAM,mBAAmB,eAAA,CAAgB;AAAA,EAC9C,SAAA,EAAWA,kBAAA;AAAA,EACX,IAAA,EAAM,kBAAA;AAAA,EACN,UAAA,EAAY,0BAAA;AAAA,EACZ,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { EntityPicker as EntityPicker$1 } from '../../components/fields/EntityPicker/EntityPicker.esm.js';
|
|
3
|
+
import { EntityPickerFieldSchema } from '../../components/fields/EntityPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const EntityPicker = createFormField({
|
|
6
|
+
component: EntityPicker$1,
|
|
7
|
+
name: "EntityPicker",
|
|
8
|
+
schema: EntityPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { EntityPicker };
|
|
12
|
+
//# sourceMappingURL=EntityPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityPicker.esm.js","sources":["../../../src/alpha/fields/EntityPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n EntityPicker as Component,\n EntityPickerFieldSchema,\n} from '../../components/fields/EntityPicker';\n\nexport const EntityPicker = createFormField({\n component: Component,\n name: 'EntityPicker',\n schema: EntityPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,eAAe,eAAA,CAAgB;AAAA,EAC1C,SAAA,EAAWA,cAAA;AAAA,EACX,IAAA,EAAM,cAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { EntityTagsPicker as EntityTagsPicker$1 } from '../../components/fields/EntityTagsPicker/EntityTagsPicker.esm.js';
|
|
3
|
+
import { EntityTagsPickerFieldSchema } from '../../components/fields/EntityTagsPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const EntityTagsPicker = createFormField({
|
|
6
|
+
component: EntityTagsPicker$1,
|
|
7
|
+
name: "EntityTagsPicker",
|
|
8
|
+
schema: EntityTagsPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { EntityTagsPicker };
|
|
12
|
+
//# sourceMappingURL=EntityTagsPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityTagsPicker.esm.js","sources":["../../../src/alpha/fields/EntityTagsPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n EntityTagsPicker as Component,\n EntityTagsPickerFieldSchema,\n} from '../../components/fields/EntityTagsPicker';\n\nexport const EntityTagsPicker = createFormField({\n component: Component,\n name: 'EntityTagsPicker',\n schema: EntityTagsPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,mBAAmB,eAAA,CAAgB;AAAA,EAC9C,SAAA,EAAWA,kBAAA;AAAA,EACX,IAAA,EAAM,kBAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { MultiEntityPicker as MultiEntityPicker$1 } from '../../components/fields/MultiEntityPicker/MultiEntityPicker.esm.js';
|
|
3
|
+
import { MultiEntityPickerFieldSchema } from '../../components/fields/MultiEntityPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const MultiEntityPicker = createFormField({
|
|
6
|
+
component: MultiEntityPicker$1,
|
|
7
|
+
name: "MultiEntityPicker",
|
|
8
|
+
schema: MultiEntityPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { MultiEntityPicker };
|
|
12
|
+
//# sourceMappingURL=MultiEntityPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiEntityPicker.esm.js","sources":["../../../src/alpha/fields/MultiEntityPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n MultiEntityPicker as Component,\n MultiEntityPickerFieldSchema,\n} from '../../components/fields/MultiEntityPicker';\n\nexport const MultiEntityPicker = createFormField({\n component: Component,\n name: 'MultiEntityPicker',\n schema: MultiEntityPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,oBAAoB,eAAA,CAAgB;AAAA,EAC/C,SAAA,EAAWA,mBAAA;AAAA,EACX,IAAA,EAAM,mBAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { MyGroupsPicker as MyGroupsPicker$1 } from '../../components/fields/MyGroupsPicker/MyGroupsPicker.esm.js';
|
|
3
|
+
import { MyGroupsPickerFieldSchema } from '../../components/fields/MyGroupsPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const MyGroupsPicker = createFormField({
|
|
6
|
+
component: MyGroupsPicker$1,
|
|
7
|
+
name: "MyGroupsPicker",
|
|
8
|
+
schema: MyGroupsPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { MyGroupsPicker };
|
|
12
|
+
//# sourceMappingURL=MyGroupsPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyGroupsPicker.esm.js","sources":["../../../src/alpha/fields/MyGroupsPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n MyGroupsPicker as Component,\n MyGroupsPickerFieldSchema,\n} from '../../components/fields/MyGroupsPicker';\n\nexport const MyGroupsPicker = createFormField({\n component: Component,\n name: 'MyGroupsPicker',\n schema: MyGroupsPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,iBAAiB,eAAA,CAAgB;AAAA,EAC5C,SAAA,EAAWA,gBAAA;AAAA,EACX,IAAA,EAAM,gBAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { OwnedEntityPicker as OwnedEntityPicker$1 } from '../../components/fields/OwnedEntityPicker/OwnedEntityPicker.esm.js';
|
|
3
|
+
import { OwnedEntityPickerFieldSchema } from '../../components/fields/OwnedEntityPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const OwnedEntityPicker = createFormField({
|
|
6
|
+
component: OwnedEntityPicker$1,
|
|
7
|
+
name: "OwnedEntityPicker",
|
|
8
|
+
schema: OwnedEntityPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { OwnedEntityPicker };
|
|
12
|
+
//# sourceMappingURL=OwnedEntityPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnedEntityPicker.esm.js","sources":["../../../src/alpha/fields/OwnedEntityPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n OwnedEntityPicker as Component,\n OwnedEntityPickerFieldSchema,\n} from '../../components/fields/OwnedEntityPicker';\n\nexport const OwnedEntityPicker = createFormField({\n component: Component,\n name: 'OwnedEntityPicker',\n schema: OwnedEntityPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,oBAAoB,eAAA,CAAgB;AAAA,EAC/C,SAAA,EAAWA,mBAAA;AAAA,EACX,IAAA,EAAM,mBAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { OwnerPicker as OwnerPicker$1 } from '../../components/fields/OwnerPicker/OwnerPicker.esm.js';
|
|
3
|
+
import { OwnerPickerFieldSchema } from '../../components/fields/OwnerPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const OwnerPicker = createFormField({
|
|
6
|
+
component: OwnerPicker$1,
|
|
7
|
+
name: "OwnerPicker",
|
|
8
|
+
schema: OwnerPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { OwnerPicker };
|
|
12
|
+
//# sourceMappingURL=OwnerPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnerPicker.esm.js","sources":["../../../src/alpha/fields/OwnerPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n OwnerPicker as Component,\n OwnerPickerFieldSchema,\n} from '../../components/fields/OwnerPicker';\n\nexport const OwnerPicker = createFormField({\n component: Component,\n name: 'OwnerPicker',\n schema: OwnerPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,cAAc,eAAA,CAAgB;AAAA,EACzC,SAAA,EAAWA,aAAA;AAAA,EACX,IAAA,EAAM,aAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
|
+
import { RepoBranchPicker as RepoBranchPicker$1 } from '../../components/fields/RepoBranchPicker/RepoBranchPicker.esm.js';
|
|
3
|
+
import { RepoBranchPickerFieldSchema } from '../../components/fields/RepoBranchPicker/schema.esm.js';
|
|
4
|
+
|
|
5
|
+
const RepoBranchPicker = createFormField({
|
|
6
|
+
component: RepoBranchPicker$1,
|
|
7
|
+
name: "RepoBranchPicker",
|
|
8
|
+
schema: RepoBranchPickerFieldSchema
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { RepoBranchPicker };
|
|
12
|
+
//# sourceMappingURL=RepoBranchPicker.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepoBranchPicker.esm.js","sources":["../../../src/alpha/fields/RepoBranchPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n RepoBranchPicker as Component,\n RepoBranchPickerFieldSchema,\n} from '../../components/fields/RepoBranchPicker';\n\nexport const RepoBranchPicker = createFormField({\n component: Component,\n name: 'RepoBranchPicker',\n schema: RepoBranchPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;AAqBO,MAAM,mBAAmB,eAAA,CAAgB;AAAA,EAC9C,SAAA,EAAWA,kBAAA;AAAA,EACX,IAAA,EAAM,kBAAA;AAAA,EACN,MAAA,EAAQ;AACV,CAAC;;;;"}
|
|
@@ -1,30 +1,7 @@
|
|
|
1
1
|
import { createFormField } from '@backstage/plugin-scaffolder-react/alpha';
|
|
2
2
|
import { RepoUrlPicker as RepoUrlPicker$1 } from '../../components/fields/RepoUrlPicker/RepoUrlPicker.esm.js';
|
|
3
|
-
import '../../components/fields/EntityPicker/schema.esm.js';
|
|
4
|
-
import '../../components/fields/OwnerPicker/schema.esm.js';
|
|
5
3
|
import { RepoUrlPickerFieldSchema } from '../../components/fields/RepoUrlPicker/schema.esm.js';
|
|
6
4
|
import { repoPickerValidation } from '../../components/fields/RepoUrlPicker/validation.esm.js';
|
|
7
|
-
import '../../components/fields/OwnedEntityPicker/schema.esm.js';
|
|
8
|
-
import '../../components/fields/EntityTagsPicker/schema.esm.js';
|
|
9
|
-
import '../../components/fields/MyGroupsPicker/schema.esm.js';
|
|
10
|
-
import 'zod-to-json-schema';
|
|
11
|
-
import 'react/jsx-runtime';
|
|
12
|
-
import 'lodash/capitalize';
|
|
13
|
-
import '@backstage/core-components';
|
|
14
|
-
import '@material-ui/core/Box';
|
|
15
|
-
import '@material-ui/core/Checkbox';
|
|
16
|
-
import '@material-ui/core/FormControlLabel';
|
|
17
|
-
import '@material-ui/core/TextField';
|
|
18
|
-
import '@material-ui/core/Typography';
|
|
19
|
-
import '@material-ui/icons/CheckBox';
|
|
20
|
-
import '@material-ui/icons/CheckBoxOutlineBlank';
|
|
21
|
-
import '@material-ui/icons/ExpandMore';
|
|
22
|
-
import '@material-ui/lab/Autocomplete';
|
|
23
|
-
import '@backstage/plugin-catalog-react';
|
|
24
|
-
import '@backstage/core-plugin-api';
|
|
25
|
-
import '@backstage/core-plugin-api/alpha';
|
|
26
|
-
import '../../translation.esm.js';
|
|
27
|
-
import '../../components/OngoingTask/OngoingTask.esm.js';
|
|
28
5
|
|
|
29
6
|
const RepoUrlPicker = createFormField({
|
|
30
7
|
component: RepoUrlPicker$1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepoUrlPicker.esm.js","sources":["../../../src/alpha/fields/RepoUrlPicker.ts"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"RepoUrlPicker.esm.js","sources":["../../../src/alpha/fields/RepoUrlPicker.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createFormField } from '@backstage/plugin-scaffolder-react/alpha';\nimport {\n repoPickerValidation,\n RepoUrlPicker as Component,\n RepoUrlPickerFieldSchema,\n} from '../../components/fields/RepoUrlPicker';\n\nexport const RepoUrlPicker = createFormField({\n component: Component,\n name: 'RepoUrlPicker',\n validation: repoPickerValidation,\n schema: RepoUrlPickerFieldSchema,\n});\n"],"names":["Component"],"mappings":";;;;;AAsBO,MAAM,gBAAgB,eAAA,CAAgB;AAAA,EAC3C,SAAA,EAAWA,eAAA;AAAA,EACX,IAAA,EAAM,eAAA;AAAA,EACN,UAAA,EAAY,oBAAA;AAAA,EACZ,MAAA,EAAQ;AACV,CAAC;;;;"}
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
2
|
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { viewTechDocRouteRef, registerComponentRouteRef, templatingExtensionsRouteRef, editRouteRef, scaffolderListTaskRouteRef, actionsRouteRef, scaffolderTaskRouteRef, selectedTemplateRouteRef, rootRouteRef } from '../routes.esm.js';
|
|
4
|
-
import { scaffolderApi, scaffolderPage, scaffolderNavItem, repoUrlPickerFormField } from './extensions.esm.js';
|
|
4
|
+
import { scaffolderApi, scaffolderPage, scaffolderNavItem, repoUrlPickerFormField, entityNamePickerFormField, entityPickerFormField, ownerPickerFormField, entityTagsPickerFormField, multiEntityPickerFormField, myGroupsPickerFormField, ownedEntityPickerFormField, repoBranchPickerFormField } from './extensions.esm.js';
|
|
5
5
|
import { isTemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';
|
|
6
6
|
import { formFieldsApi } from '@backstage/plugin-scaffolder-react/alpha';
|
|
7
7
|
import './api/ref.esm.js';
|
|
@@ -39,7 +39,15 @@ var plugin = createFrontendPlugin({
|
|
|
39
39
|
scaffolderEntityIconLink,
|
|
40
40
|
formDecoratorsApi,
|
|
41
41
|
formFieldsApi,
|
|
42
|
-
repoUrlPickerFormField
|
|
42
|
+
repoUrlPickerFormField,
|
|
43
|
+
entityNamePickerFormField,
|
|
44
|
+
entityPickerFormField,
|
|
45
|
+
ownerPickerFormField,
|
|
46
|
+
entityTagsPickerFormField,
|
|
47
|
+
multiEntityPickerFormField,
|
|
48
|
+
myGroupsPickerFormField,
|
|
49
|
+
ownedEntityPickerFormField,
|
|
50
|
+
repoBranchPickerFormField
|
|
43
51
|
]
|
|
44
52
|
});
|
|
45
53
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.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 */\n\nimport { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.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 */\n\nimport { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n actionsRouteRef,\n editRouteRef,\n registerComponentRouteRef,\n rootRouteRef,\n scaffolderListTaskRouteRef,\n scaffolderTaskRouteRef,\n selectedTemplateRouteRef,\n templatingExtensionsRouteRef,\n viewTechDocRouteRef,\n} from '../routes';\nimport {\n entityNamePickerFormField,\n entityPickerFormField,\n entityTagsPickerFormField,\n multiEntityPickerFormField,\n myGroupsPickerFormField,\n ownedEntityPickerFormField,\n ownerPickerFormField,\n repoBranchPickerFormField,\n repoUrlPickerFormField,\n scaffolderApi,\n scaffolderNavItem,\n scaffolderPage,\n} from './extensions';\nimport { isTemplateEntityV1beta3 } from '@backstage/plugin-scaffolder-common';\nimport { formFieldsApi } from '@backstage/plugin-scaffolder-react/alpha';\nimport { formDecoratorsApi } from './api';\nimport { EntityIconLinkBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { useScaffolderTemplateIconLinkProps } from './hooks/useScaffolderTemplateIconLinkProps';\n\n/** @alpha */\nconst scaffolderEntityIconLink = EntityIconLinkBlueprint.make({\n name: 'launch-template',\n params: {\n filter: isTemplateEntityV1beta3,\n useProps: useScaffolderTemplateIconLinkProps,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'scaffolder',\n info: { packageJson: () => import('../../package.json') },\n routes: convertLegacyRouteRefs({\n root: rootRouteRef,\n selectedTemplate: selectedTemplateRouteRef,\n ongoingTask: scaffolderTaskRouteRef,\n actions: actionsRouteRef,\n listTasks: scaffolderListTaskRouteRef,\n edit: editRouteRef,\n templatingExtensions: templatingExtensionsRouteRef,\n }),\n externalRoutes: convertLegacyRouteRefs({\n registerComponent: registerComponentRouteRef,\n viewTechDoc: viewTechDocRouteRef,\n }),\n extensions: [\n scaffolderApi,\n scaffolderPage,\n scaffolderNavItem,\n scaffolderEntityIconLink,\n formDecoratorsApi,\n formFieldsApi,\n repoUrlPickerFormField,\n entityNamePickerFormField,\n entityPickerFormField,\n ownerPickerFormField,\n entityTagsPickerFormField,\n multiEntityPickerFormField,\n myGroupsPickerFormField,\n ownedEntityPickerFormField,\n repoBranchPickerFormField,\n ],\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAkDA,MAAM,wBAAA,GAA2B,wBAAwB,IAAA,CAAK;AAAA,EAC5D,IAAA,EAAM,iBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,MAAA,EAAQ,uBAAA;AAAA,IACR,QAAA,EAAU;AAAA;AAEd,CAAC,CAAA;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,YAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,2CAAoB,CAAA,EAAE;AAAA,EACxD,QAAQ,sBAAA,CAAuB;AAAA,IAC7B,IAAA,EAAM,YAAA;AAAA,IACN,gBAAA,EAAkB,wBAAA;AAAA,IAClB,WAAA,EAAa,sBAAA;AAAA,IACb,OAAA,EAAS,eAAA;AAAA,IACT,SAAA,EAAW,0BAAA;AAAA,IACX,IAAA,EAAM,YAAA;AAAA,IACN,oBAAA,EAAsB;AAAA,GACvB,CAAA;AAAA,EACD,gBAAgB,sBAAA,CAAuB;AAAA,IACrC,iBAAA,EAAmB,yBAAA;AAAA,IACnB,WAAA,EAAa;AAAA,GACd,CAAA;AAAA,EACD,UAAA,EAAY;AAAA,IACV,aAAA;AAAA,IACA,cAAA;AAAA,IACA,iBAAA;AAAA,IACA,wBAAA;AAAA,IACA,iBAAA;AAAA,IACA,aAAA;AAAA,IACA,sBAAA;AAAA,IACA,yBAAA;AAAA,IACA,qBAAA;AAAA,IACA,oBAAA;AAAA,IACA,yBAAA;AAAA,IACA,0BAAA;AAAA,IACA,uBAAA;AAAA,IACA,0BAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -408,6 +408,94 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
408
408
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
409
409
|
};
|
|
410
410
|
}>;
|
|
411
|
+
"scaffolder-form-field:scaffolder/entity-name-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
412
|
+
kind: "scaffolder-form-field";
|
|
413
|
+
name: "entity-name-picker";
|
|
414
|
+
config: {};
|
|
415
|
+
configInput: {};
|
|
416
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
417
|
+
inputs: {};
|
|
418
|
+
params: {
|
|
419
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
420
|
+
};
|
|
421
|
+
}>;
|
|
422
|
+
"scaffolder-form-field:scaffolder/entity-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
423
|
+
kind: "scaffolder-form-field";
|
|
424
|
+
name: "entity-picker";
|
|
425
|
+
config: {};
|
|
426
|
+
configInput: {};
|
|
427
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
428
|
+
inputs: {};
|
|
429
|
+
params: {
|
|
430
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
431
|
+
};
|
|
432
|
+
}>;
|
|
433
|
+
"scaffolder-form-field:scaffolder/entity-tags-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
434
|
+
kind: "scaffolder-form-field";
|
|
435
|
+
name: "entity-tags-picker";
|
|
436
|
+
config: {};
|
|
437
|
+
configInput: {};
|
|
438
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
439
|
+
inputs: {};
|
|
440
|
+
params: {
|
|
441
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
442
|
+
};
|
|
443
|
+
}>;
|
|
444
|
+
"scaffolder-form-field:scaffolder/multi-entity-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
445
|
+
kind: "scaffolder-form-field";
|
|
446
|
+
name: "multi-entity-picker";
|
|
447
|
+
config: {};
|
|
448
|
+
configInput: {};
|
|
449
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
450
|
+
inputs: {};
|
|
451
|
+
params: {
|
|
452
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
453
|
+
};
|
|
454
|
+
}>;
|
|
455
|
+
"scaffolder-form-field:scaffolder/my-groups-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
456
|
+
kind: "scaffolder-form-field";
|
|
457
|
+
name: "my-groups-picker";
|
|
458
|
+
config: {};
|
|
459
|
+
configInput: {};
|
|
460
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
461
|
+
inputs: {};
|
|
462
|
+
params: {
|
|
463
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
464
|
+
};
|
|
465
|
+
}>;
|
|
466
|
+
"scaffolder-form-field:scaffolder/owned-entity-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
467
|
+
kind: "scaffolder-form-field";
|
|
468
|
+
name: "owned-entity-picker";
|
|
469
|
+
config: {};
|
|
470
|
+
configInput: {};
|
|
471
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
472
|
+
inputs: {};
|
|
473
|
+
params: {
|
|
474
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
475
|
+
};
|
|
476
|
+
}>;
|
|
477
|
+
"scaffolder-form-field:scaffolder/owner-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
478
|
+
kind: "scaffolder-form-field";
|
|
479
|
+
name: "owner-picker";
|
|
480
|
+
config: {};
|
|
481
|
+
configInput: {};
|
|
482
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
483
|
+
inputs: {};
|
|
484
|
+
params: {
|
|
485
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
486
|
+
};
|
|
487
|
+
}>;
|
|
488
|
+
"scaffolder-form-field:scaffolder/repo-branch-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
489
|
+
kind: "scaffolder-form-field";
|
|
490
|
+
name: "repo-branch-picker";
|
|
491
|
+
config: {};
|
|
492
|
+
configInput: {};
|
|
493
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<() => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>, "scaffolder.form-field-loader", {}>;
|
|
494
|
+
inputs: {};
|
|
495
|
+
params: {
|
|
496
|
+
field: () => Promise<_backstage_plugin_scaffolder_react_alpha.FormField>;
|
|
497
|
+
};
|
|
498
|
+
}>;
|
|
411
499
|
"scaffolder-form-field:scaffolder/repo-url-picker": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
412
500
|
kind: "scaffolder-form-field";
|
|
413
501
|
name: "repo-url-picker";
|
|
@@ -5,5 +5,5 @@ const EntityNamePickerFieldSchema = makeFieldSchema({
|
|
|
5
5
|
});
|
|
6
6
|
const EntityNamePickerSchema = EntityNamePickerFieldSchema.schema;
|
|
7
7
|
|
|
8
|
-
export { EntityNamePickerSchema };
|
|
8
|
+
export { EntityNamePickerFieldSchema, EntityNamePickerSchema };
|
|
9
9
|
//# sourceMappingURL=schema.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/EntityNamePicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\
|
|
1
|
+
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/EntityNamePicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\nexport const EntityNamePickerFieldSchema = makeFieldSchema({\n output: z => z.string(),\n});\n\nexport const EntityNamePickerSchema = EntityNamePickerFieldSchema.schema;\n\nexport type EntityNamePickerProps = typeof EntityNamePickerFieldSchema.TProps;\n"],"names":[],"mappings":";;AAiBO,MAAM,8BAA8B,eAAA,CAAgB;AAAA,EACzD,MAAA,EAAQ,CAAA,CAAA,KAAK,CAAA,CAAE,MAAA;AACjB,CAAC;AAEM,MAAM,yBAAyB,2BAAA,CAA4B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/EntityTagsPicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\n/**\n * @public\n */\nexport const EntityTagsPickerFieldSchema = makeFieldSchema({\n output: z => z.array(z.string()),\n uiOptions: z =>\n z.object({\n kinds: z\n .array(z.string())\n .optional()\n .describe('List of kinds of entities to derive tags from'),\n showCounts: z\n .boolean()\n .optional()\n .describe('Whether to show usage counts per tag'),\n helperText: z\n .string()\n .optional()\n .describe(\n 'Helper text to display; DEPRECATED, simply use ui:description',\n ),\n }),\n});\n\nexport const EntityTagsPickerSchema = EntityTagsPickerFieldSchema.schema;\n\nexport type EntityTagsPickerProps = typeof EntityTagsPickerFieldSchema.TProps;\n\n/**\n * The input props that can be specified under `ui:options` for the\n * `EntityTagsPicker` field extension.\n
|
|
1
|
+
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/EntityTagsPicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\n/**\n * @public\n */\nexport const EntityTagsPickerFieldSchema = makeFieldSchema({\n output: z => z.array(z.string()),\n uiOptions: z =>\n z.object({\n kinds: z\n .array(z.string())\n .optional()\n .describe('List of kinds of entities to derive tags from'),\n showCounts: z\n .boolean()\n .optional()\n .describe('Whether to show usage counts per tag'),\n helperText: z\n .string()\n .optional()\n .describe(\n 'Helper text to display; DEPRECATED, simply use ui:description',\n ),\n }),\n});\n\nexport const EntityTagsPickerSchema = EntityTagsPickerFieldSchema.schema;\n\nexport type EntityTagsPickerProps = typeof EntityTagsPickerFieldSchema.TProps;\n\n/**\n * The input props that can be specified under `ui:options` for the\n * `EntityTagsPicker` field extension.\n * @public\n */\nexport type EntityTagsPickerUiOptions = NonNullable<\n (typeof EntityTagsPickerFieldSchema.TProps.uiSchema)['ui:options']\n>;\n"],"names":[],"mappings":";;AAoBO,MAAM,8BAA8B,eAAA,CAAgB;AAAA,EACzD,QAAQ,CAAA,CAAA,KAAK,CAAA,CAAE,KAAA,CAAM,CAAA,CAAE,QAAQ,CAAA;AAAA,EAC/B,SAAA,EAAW,CAAA,CAAA,KACT,CAAA,CAAE,MAAA,CAAO;AAAA,IACP,KAAA,EAAO,CAAA,CACJ,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,+CAA+C,CAAA;AAAA,IAC3D,YAAY,CAAA,CACT,OAAA,GACA,QAAA,EAAS,CACT,SAAS,sCAAsC,CAAA;AAAA,IAClD,UAAA,EAAY,CAAA,CACT,MAAA,EAAO,CACP,UAAS,CACT,QAAA;AAAA,MACC;AAAA;AACF,GACH;AACL,CAAC;AAEM,MAAM,yBAAyB,2BAAA,CAA4B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/MyGroupsPicker/schema.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 */\n\nimport { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\n/**\n * Field schema for the MyGroupsPicker.\n * @public\n */\n\nexport const MyGroupsPickerFieldSchema = makeFieldSchema({\n output: z => z.string(),\n});\n\n/**\n * UI options for the MyGroupsPicker.\n * @public\n */\n\nexport type MyGroupsPickerUiOptions = NonNullable<\n (typeof MyGroupsPickerFieldSchema.TProps.uiSchema)['ui:options']\n>;\n\n/**\n * Props for the MyGroupsPicker.\n
|
|
1
|
+
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/MyGroupsPicker/schema.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 */\n\nimport { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\n/**\n * Field schema for the MyGroupsPicker.\n * @public\n */\n\nexport const MyGroupsPickerFieldSchema = makeFieldSchema({\n output: z => z.string(),\n});\n\n/**\n * UI options for the MyGroupsPicker.\n * @public\n */\n\nexport type MyGroupsPickerUiOptions = NonNullable<\n (typeof MyGroupsPickerFieldSchema.TProps.uiSchema)['ui:options']\n>;\n\n/**\n * Props for the MyGroupsPicker.\n */\nexport type MyGroupsPickerProps = typeof MyGroupsPickerFieldSchema.TProps;\n\n/**\n * Schema for the MyGroupsPicker.\n * @public\n */\nexport const MyGroupsPickerSchema = MyGroupsPickerFieldSchema.schema;\n"],"names":[],"mappings":";;AAuBO,MAAM,4BAA4B,eAAA,CAAgB;AAAA,EACvD,MAAA,EAAQ,CAAA,CAAA,KAAK,CAAA,CAAE,MAAA;AACjB,CAAC;AAoBM,MAAM,uBAAuB,yBAAA,CAA0B;;;;"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
|
+
import '@backstage/catalog-client';
|
|
3
|
+
import '@backstage/catalog-model';
|
|
4
|
+
import '@backstage/core-plugin-api';
|
|
5
|
+
import '@backstage/plugin-catalog-react';
|
|
6
|
+
import '@material-ui/core/TextField';
|
|
7
|
+
import '@material-ui/lab/Autocomplete';
|
|
8
|
+
import 'react';
|
|
9
|
+
import 'react-use/esm/useAsync';
|
|
10
|
+
import '../VirtualizedListbox.esm.js';
|
|
11
|
+
import '@backstage/core-plugin-api/alpha';
|
|
12
|
+
import '../../../translation.esm.js';
|
|
13
|
+
import '@backstage/plugin-scaffolder-react/alpha';
|
|
1
14
|
import { EntityPickerFieldSchema } from '../EntityPicker/schema.esm.js';
|
|
2
15
|
|
|
3
16
|
const OwnedEntityPickerFieldSchema = EntityPickerFieldSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/OwnedEntityPicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { EntityPickerFieldSchema } from '../EntityPicker
|
|
1
|
+
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/OwnedEntityPicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { EntityPickerFieldSchema } from '../EntityPicker';\n\n/**\n * @public\n */\nexport const OwnedEntityPickerFieldSchema = EntityPickerFieldSchema;\n\n/**\n * The input props that can be specified under `ui:options` for the\n * `OwnedEntityPicker` field extension.\n * @public\n */\nexport type OwnedEntityPickerUiOptions = NonNullable<\n (typeof OwnedEntityPickerFieldSchema.TProps.uiSchema)['ui:options']\n>;\n\nexport type OwnedEntityPickerProps = typeof OwnedEntityPickerFieldSchema.TProps;\n\nexport const OwnedEntityPickerSchema = OwnedEntityPickerFieldSchema.schema;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAoBO,MAAM,4BAAA,GAA+B;AAarC,MAAM,0BAA0B,4BAAA,CAA6B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/OwnerPicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\nimport { createEntityQueryFilterExpressionSchema } from '../EntityPicker/schema';\n\n/**\n * @public\n */\nexport const OwnerPickerFieldSchema = makeFieldSchema({\n output: z => z.string(),\n uiOptions: z =>\n z.object({\n /**\n * @deprecated Use `catalogFilter` instead.\n */\n allowedKinds: z\n .array(z.string())\n .default(['Group', 'User'])\n .optional()\n .describe(\n 'DEPRECATED: Use `catalogFilter` instead. List of kinds of entities to derive options from. Defaults to Group and User',\n ),\n allowArbitraryValues: z\n .boolean()\n .optional()\n .describe('Whether to allow arbitrary user input. Defaults to true'),\n defaultNamespace: z\n .union([z.string(), z.literal(false)])\n .optional()\n .describe(\n 'The default namespace. Options with this namespace will not be prefixed.',\n ),\n catalogFilter: (t => t.or(t.array()))(\n createEntityQueryFilterExpressionSchema(z),\n )\n .optional()\n .describe('List of key-value filter expression for entities'),\n }),\n});\n\n/**\n * The input props that can be specified under `ui:options` for the\n * `OwnerPicker` field extension.\n
|
|
1
|
+
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/OwnerPicker/schema.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\nimport { createEntityQueryFilterExpressionSchema } from '../EntityPicker/schema';\n\n/**\n * @public\n */\nexport const OwnerPickerFieldSchema = makeFieldSchema({\n output: z => z.string(),\n uiOptions: z =>\n z.object({\n /**\n * @deprecated Use `catalogFilter` instead.\n */\n allowedKinds: z\n .array(z.string())\n .default(['Group', 'User'])\n .optional()\n .describe(\n 'DEPRECATED: Use `catalogFilter` instead. List of kinds of entities to derive options from. Defaults to Group and User',\n ),\n allowArbitraryValues: z\n .boolean()\n .optional()\n .describe('Whether to allow arbitrary user input. Defaults to true'),\n defaultNamespace: z\n .union([z.string(), z.literal(false)])\n .optional()\n .describe(\n 'The default namespace. Options with this namespace will not be prefixed.',\n ),\n catalogFilter: (t => t.or(t.array()))(\n createEntityQueryFilterExpressionSchema(z),\n )\n .optional()\n .describe('List of key-value filter expression for entities'),\n }),\n});\n\n/**\n * The input props that can be specified under `ui:options` for the\n * `OwnerPicker` field extension.\n * @public\n */\nexport type OwnerPickerUiOptions = NonNullable<\n (typeof OwnerPickerFieldSchema.TProps.uiSchema)['ui:options']\n>;\n\nexport type OwnerPickerProps = typeof OwnerPickerFieldSchema.TProps;\n\nexport const OwnerPickerSchema = OwnerPickerFieldSchema.schema;\n"],"names":[],"mappings":";;;AAqBO,MAAM,yBAAyB,eAAA,CAAgB;AAAA,EACpD,MAAA,EAAQ,CAAA,CAAA,KAAK,CAAA,CAAE,MAAA,EAAO;AAAA,EACtB,SAAA,EAAW,CAAA,CAAA,KACT,CAAA,CAAE,MAAA,CAAO;AAAA;AAAA;AAAA;AAAA,IAIP,YAAA,EAAc,CAAA,CACX,KAAA,CAAM,CAAA,CAAE,QAAQ,CAAA,CAChB,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAM,CAAC,CAAA,CACzB,UAAS,CACT,QAAA;AAAA,MACC;AAAA,KACF;AAAA,IACF,sBAAsB,CAAA,CACnB,OAAA,GACA,QAAA,EAAS,CACT,SAAS,yDAAyD,CAAA;AAAA,IACrE,gBAAA,EAAkB,CAAA,CACf,KAAA,CAAM,CAAC,EAAE,MAAA,EAAO,EAAG,CAAA,CAAE,OAAA,CAAQ,KAAK,CAAC,CAAC,CAAA,CACpC,UAAS,CACT,QAAA;AAAA,MACC;AAAA,KACF;AAAA,IACF,gBAAgB,CAAA,CAAA,KAAK,CAAA,CAAE,EAAA,CAAG,CAAA,CAAE,OAAO,CAAA;AAAA,MACjC,wCAAwC,CAAC;AAAA,KAC3C,CACG,QAAA,EAAS,CACT,QAAA,CAAS,kDAAkD;AAAA,GAC/D;AACL,CAAC;AAaM,MAAM,oBAAoB,sBAAA,CAAuB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/RepoBranchPicker/schema.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 */\nimport { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\
|
|
1
|
+
{"version":3,"file":"schema.esm.js","sources":["../../../../src/components/fields/RepoBranchPicker/schema.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 */\nimport { makeFieldSchema } from '@backstage/plugin-scaffolder-react';\n\nexport const RepoBranchPickerFieldSchema = makeFieldSchema({\n output: z => z.string(),\n uiOptions: z =>\n z.object({\n requestUserCredentials: z\n .object({\n secretsKey: z\n .string()\n .describe(\n 'Key used within the template secrets context to store the credential',\n ),\n additionalScopes: z\n .object({\n gitea: z\n .array(z.string())\n .optional()\n .describe('Additional Gitea scopes to request'),\n gerrit: z\n .array(z.string())\n .optional()\n .describe('Additional Gerrit scopes to request'),\n github: z\n .array(z.string())\n .optional()\n .describe('Additional GitHub scopes to request'),\n gitlab: z\n .array(z.string())\n .optional()\n .describe('Additional GitLab scopes to request'),\n bitbucket: z\n .array(z.string())\n .optional()\n .describe('Additional BitBucket scopes to request'),\n azure: z\n .array(z.string())\n .optional()\n .describe('Additional Azure scopes to request'),\n })\n .optional()\n .describe('Additional permission scopes to request'),\n })\n .optional()\n .describe(\n 'If defined will request user credentials to auth against the given SCM platform',\n ),\n }),\n});\n\n/**\n * The input props that can be specified under `ui:options` for the\n * `RepoBranchPicker` field extension.\n */\nexport type RepoBranchPickerUiOptions = NonNullable<\n (typeof RepoBranchPickerFieldSchema.TProps.uiSchema)['ui:options']\n>;\n\nexport type RepoBranchPickerProps = typeof RepoBranchPickerFieldSchema.TProps;\n\n// This has been duplicated from /plugins/scaffolder/src/components/fields/RepoUrlPicker/schema.ts\n// NOTE: There is a bug with this failing validation in the custom field explorer due\n// to https://github.com/rjsf-team/react-jsonschema-form/issues/675 even if\n// requestUserCredentials is not defined\nexport const RepoBranchPickerSchema = RepoBranchPickerFieldSchema.schema;\n"],"names":[],"mappings":";;AAiBO,MAAM,8BAA8B,eAAA,CAAgB;AAAA,EACzD,MAAA,EAAQ,CAAA,CAAA,KAAK,CAAA,CAAE,MAAA,EAAO;AAAA,EACtB,SAAA,EAAW,CAAA,CAAA,KACT,CAAA,CAAE,MAAA,CAAO;AAAA,IACP,sBAAA,EAAwB,EACrB,MAAA,CAAO;AAAA,MACN,UAAA,EAAY,CAAA,CACT,MAAA,EAAO,CACP,QAAA;AAAA,QACC;AAAA,OACF;AAAA,MACF,gBAAA,EAAkB,EACf,MAAA,CAAO;AAAA,QACN,KAAA,EAAO,CAAA,CACJ,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,oCAAoC,CAAA;AAAA,QAChD,MAAA,EAAQ,CAAA,CACL,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,qCAAqC,CAAA;AAAA,QACjD,MAAA,EAAQ,CAAA,CACL,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,qCAAqC,CAAA;AAAA,QACjD,MAAA,EAAQ,CAAA,CACL,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,qCAAqC,CAAA;AAAA,QACjD,SAAA,EAAW,CAAA,CACR,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,wCAAwC,CAAA;AAAA,QACpD,KAAA,EAAO,CAAA,CACJ,KAAA,CAAM,CAAA,CAAE,MAAA,EAAQ,CAAA,CAChB,QAAA,EAAS,CACT,QAAA,CAAS,oCAAoC;AAAA,OACjD,CAAA,CACA,QAAA,EAAS,CACT,SAAS,yCAAyC;AAAA,KACtD,CAAA,CACA,QAAA,EAAS,CACT,QAAA;AAAA,MACC;AAAA;AACF,GACH;AACL,CAAC;AAgBM,MAAM,yBAAyB,2BAAA,CAA4B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.esm.js","sources":["../../../../src/components/fields/RepoUrlPicker/validation.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { FieldValidation } from '@rjsf/utils';\nimport { ApiHolder } from '@backstage/core-plugin-api';\nimport { scmIntegrationsApiRef } from '@backstage/integration-react';\n\n/**\n * The validation function for the `repoUrl` that is returned from the\n * field extension. Ensures that you have all the required fields filled for\n * the different providers that exist.\n
|
|
1
|
+
{"version":3,"file":"validation.esm.js","sources":["../../../../src/components/fields/RepoUrlPicker/validation.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { FieldValidation } from '@rjsf/utils';\nimport { ApiHolder } from '@backstage/core-plugin-api';\nimport { scmIntegrationsApiRef } from '@backstage/integration-react';\n\n/**\n * The validation function for the `repoUrl` that is returned from the\n * field extension. Ensures that you have all the required fields filled for\n * the different providers that exist.\n * @public\n */\nexport const repoPickerValidation = (\n value: string,\n validation: FieldValidation,\n context: { apiHolder: ApiHolder },\n) => {\n try {\n const { host, searchParams } = new URL(`https://${value}`);\n\n const integrationApi = context.apiHolder.get(scmIntegrationsApiRef);\n\n if (!host) {\n validation.addError(\n 'Incomplete repository location provided, host not provided',\n );\n } else {\n if (integrationApi?.byHost(host)?.type === 'bitbucket') {\n // workspace is only applicable for bitbucket cloud\n if (host === 'bitbucket.org' && !searchParams.get('workspace')) {\n validation.addError(\n 'Incomplete repository location provided, workspace not provided',\n );\n }\n\n if (!searchParams.get('project')) {\n validation.addError(\n 'Incomplete repository location provided, project not provided',\n );\n }\n } else if (integrationApi?.byHost(host)?.type === 'azure') {\n if (!searchParams.get('project')) {\n validation.addError(\n 'Incomplete repository location provided, project not provided',\n );\n }\n }\n // For anything other than bitbucket, azure, and gerrit\n else if (integrationApi?.byHost(host)?.type !== 'gerrit') {\n if (!searchParams.get('owner')) {\n validation.addError(\n 'Incomplete repository location provided, owner not provided',\n );\n }\n }\n\n // Do this for all hosts\n if (!searchParams.get('repo')) {\n validation.addError(\n 'Incomplete repository location provided, repo not provided',\n );\n }\n }\n } catch {\n validation.addError('Unable to parse the Repository URL');\n }\n};\n"],"names":[],"mappings":";;AA0BO,MAAM,oBAAA,GAAuB,CAClC,KAAA,EACA,UAAA,EACA,OAAA,KACG;AACH,EAAA,IAAI;AACF,IAAA,MAAM,EAAE,MAAM,YAAA,EAAa,GAAI,IAAI,GAAA,CAAI,CAAA,QAAA,EAAW,KAAK,CAAA,CAAE,CAAA;AAEzD,IAAA,MAAM,cAAA,GAAiB,OAAA,CAAQ,SAAA,CAAU,GAAA,CAAI,qBAAqB,CAAA;AAElE,IAAA,IAAI,CAAC,IAAA,EAAM;AACT,MAAA,UAAA,CAAW,QAAA;AAAA,QACT;AAAA,OACF;AAAA,IACF,CAAA,MAAO;AACL,MAAA,IAAI,cAAA,EAAgB,MAAA,CAAO,IAAI,CAAA,EAAG,SAAS,WAAA,EAAa;AAEtD,QAAA,IAAI,SAAS,eAAA,IAAmB,CAAC,YAAA,CAAa,GAAA,CAAI,WAAW,CAAA,EAAG;AAC9D,UAAA,UAAA,CAAW,QAAA;AAAA,YACT;AAAA,WACF;AAAA,QACF;AAEA,QAAA,IAAI,CAAC,YAAA,CAAa,GAAA,CAAI,SAAS,CAAA,EAAG;AAChC,UAAA,UAAA,CAAW,QAAA;AAAA,YACT;AAAA,WACF;AAAA,QACF;AAAA,MACF,WAAW,cAAA,EAAgB,MAAA,CAAO,IAAI,CAAA,EAAG,SAAS,OAAA,EAAS;AACzD,QAAA,IAAI,CAAC,YAAA,CAAa,GAAA,CAAI,SAAS,CAAA,EAAG;AAChC,UAAA,UAAA,CAAW,QAAA;AAAA,YACT;AAAA,WACF;AAAA,QACF;AAAA,MACF,WAES,cAAA,EAAgB,MAAA,CAAO,IAAI,CAAA,EAAG,SAAS,QAAA,EAAU;AACxD,QAAA,IAAI,CAAC,YAAA,CAAa,GAAA,CAAI,OAAO,CAAA,EAAG;AAC9B,UAAA,UAAA,CAAW,QAAA;AAAA,YACT;AAAA,WACF;AAAA,QACF;AAAA,MACF;AAGA,MAAA,IAAI,CAAC,YAAA,CAAa,GAAA,CAAI,MAAM,CAAA,EAAG;AAC7B,QAAA,UAAA,CAAW,QAAA;AAAA,UACT;AAAA,SACF;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAA,CAAA,MAAQ;AACN,IAAA,UAAA,CAAW,SAAS,oCAAoC,CAAA;AAAA,EAC1D;AACF;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export { ReviewStepProps } from '@backstage/plugin-scaffolder-react';
|
|
|
8
8
|
import { TemplateListPageProps, TemplateWizardPageProps } from '@backstage/plugin-scaffolder/alpha';
|
|
9
9
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
10
10
|
import { ApiHolder } from '@backstage/core-plugin-api';
|
|
11
|
-
import { FieldValidation } from '@rjsf/utils';
|
|
12
11
|
import { z } from 'zod';
|
|
12
|
+
import { FieldValidation } from '@rjsf/utils';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* An API to interact with the scaffolder backend.
|
|
@@ -128,11 +128,11 @@ declare const MultiEntityPickerFieldExtension: _backstage_plugin_scaffolder_reac
|
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
130
|
declare const RepoUrlPickerFieldExtension: _backstage_plugin_scaffolder_react.FieldExtensionComponent<string, {
|
|
131
|
-
allowedHosts?: string[] | undefined;
|
|
132
131
|
allowedOrganizations?: string[] | undefined;
|
|
133
132
|
allowedOwners?: string[] | undefined;
|
|
134
133
|
allowedProjects?: string[] | undefined;
|
|
135
134
|
allowedRepos?: string[] | undefined;
|
|
135
|
+
allowedHosts?: string[] | undefined;
|
|
136
136
|
requestUserCredentials?: {
|
|
137
137
|
secretsKey: string;
|
|
138
138
|
additionalScopes?: {
|
|
@@ -216,6 +216,20 @@ declare const RepoBranchPickerFieldExtension: _backstage_plugin_scaffolder_react
|
|
|
216
216
|
} | undefined;
|
|
217
217
|
}>;
|
|
218
218
|
|
|
219
|
+
/**
|
|
220
|
+
* @public
|
|
221
|
+
* @deprecated - import from {@link @backstage/plugin-scaffolder-react#FieldSchema} instead
|
|
222
|
+
*/
|
|
223
|
+
interface FieldSchema<T, P> extends FieldSchema$1<T, P> {
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
* @deprecated use `makeFieldSchema` instead
|
|
228
|
+
* Utility function to convert zod return and UI options schemas to a
|
|
229
|
+
* CustomFieldExtensionSchema with FieldExtensionComponentProps type inference
|
|
230
|
+
*/
|
|
231
|
+
declare function makeFieldSchemaFromZod<TReturnSchema extends z.ZodType, TUiOptionsSchema extends z.ZodType = z.ZodType<any, any, {}>>(returnSchema: TReturnSchema, uiOptionsSchema?: TUiOptionsSchema): FieldSchema<TReturnSchema extends z.ZodType<any, any, infer IReturn> ? IReturn : never, TUiOptionsSchema extends z.ZodType<any, any, infer IUiOptions> ? IUiOptions : never>;
|
|
232
|
+
|
|
219
233
|
/**
|
|
220
234
|
* @public
|
|
221
235
|
*/
|
|
@@ -241,64 +255,33 @@ type EntityPickerUiOptions = NonNullable<(typeof EntityPickerFieldSchema.TProps.
|
|
|
241
255
|
/**
|
|
242
256
|
* @public
|
|
243
257
|
*/
|
|
244
|
-
declare const
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}> | Record<string, string | string[] | {
|
|
249
|
-
exists?: boolean | undefined;
|
|
250
|
-
}>[] | undefined;
|
|
251
|
-
allowedKinds?: string[] | undefined;
|
|
252
|
-
allowArbitraryValues?: boolean | undefined;
|
|
258
|
+
declare const EntityTagsPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string[], {
|
|
259
|
+
helperText?: string | undefined;
|
|
260
|
+
showCounts?: boolean | undefined;
|
|
261
|
+
kinds?: string[] | undefined;
|
|
253
262
|
}>;
|
|
254
263
|
/**
|
|
255
264
|
* The input props that can be specified under `ui:options` for the
|
|
256
|
-
* `
|
|
257
|
-
*
|
|
265
|
+
* `EntityTagsPicker` field extension.
|
|
258
266
|
* @public
|
|
259
267
|
*/
|
|
260
|
-
type
|
|
268
|
+
type EntityTagsPickerUiOptions = NonNullable<(typeof EntityTagsPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
261
269
|
|
|
262
270
|
/**
|
|
271
|
+
* Field schema for the MyGroupsPicker.
|
|
263
272
|
* @public
|
|
264
273
|
*/
|
|
265
|
-
declare const
|
|
266
|
-
allowedHosts?: string[] | undefined;
|
|
267
|
-
allowedOrganizations?: string[] | undefined;
|
|
268
|
-
allowedOwners?: string[] | undefined;
|
|
269
|
-
allowedProjects?: string[] | undefined;
|
|
270
|
-
allowedRepos?: string[] | undefined;
|
|
271
|
-
requestUserCredentials?: {
|
|
272
|
-
secretsKey: string;
|
|
273
|
-
additionalScopes?: {
|
|
274
|
-
azure?: string[] | undefined;
|
|
275
|
-
github?: string[] | undefined;
|
|
276
|
-
gitlab?: string[] | undefined;
|
|
277
|
-
bitbucket?: string[] | undefined;
|
|
278
|
-
gerrit?: string[] | undefined;
|
|
279
|
-
gitea?: string[] | undefined;
|
|
280
|
-
} | undefined;
|
|
281
|
-
} | undefined;
|
|
282
|
-
}>;
|
|
274
|
+
declare const MyGroupsPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, any>;
|
|
283
275
|
/**
|
|
284
|
-
*
|
|
285
|
-
* `RepoUrlPicker` field extension.
|
|
286
|
-
*
|
|
276
|
+
* UI options for the MyGroupsPicker.
|
|
287
277
|
* @public
|
|
288
|
-
* @deprecated this will be removed as it's no longer used
|
|
289
278
|
*/
|
|
290
|
-
type
|
|
291
|
-
|
|
279
|
+
type MyGroupsPickerUiOptions = NonNullable<(typeof MyGroupsPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
292
280
|
/**
|
|
293
|
-
*
|
|
294
|
-
* field extension. Ensures that you have all the required fields filled for
|
|
295
|
-
* the different providers that exist.
|
|
296
|
-
*
|
|
281
|
+
* Schema for the MyGroupsPicker.
|
|
297
282
|
* @public
|
|
298
283
|
*/
|
|
299
|
-
declare const
|
|
300
|
-
apiHolder: ApiHolder;
|
|
301
|
-
}) => void;
|
|
284
|
+
declare const MyGroupsPickerSchema: _backstage_plugin_scaffolder_react.CustomFieldExtensionSchema;
|
|
302
285
|
|
|
303
286
|
/**
|
|
304
287
|
* @public
|
|
@@ -317,7 +300,6 @@ declare const OwnedEntityPickerFieldSchema: _backstage_plugin_scaffolder_react.F
|
|
|
317
300
|
/**
|
|
318
301
|
* The input props that can be specified under `ui:options` for the
|
|
319
302
|
* `OwnedEntityPicker` field extension.
|
|
320
|
-
*
|
|
321
303
|
* @public
|
|
322
304
|
*/
|
|
323
305
|
type OwnedEntityPickerUiOptions = NonNullable<(typeof OwnedEntityPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
@@ -325,48 +307,62 @@ type OwnedEntityPickerUiOptions = NonNullable<(typeof OwnedEntityPickerFieldSche
|
|
|
325
307
|
/**
|
|
326
308
|
* @public
|
|
327
309
|
*/
|
|
328
|
-
declare const
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
310
|
+
declare const OwnerPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
311
|
+
defaultNamespace?: string | false | undefined;
|
|
312
|
+
catalogFilter?: Record<string, string | string[] | {
|
|
313
|
+
exists?: boolean | undefined;
|
|
314
|
+
}> | Record<string, string | string[] | {
|
|
315
|
+
exists?: boolean | undefined;
|
|
316
|
+
}>[] | undefined;
|
|
317
|
+
allowedKinds?: string[] | undefined;
|
|
318
|
+
allowArbitraryValues?: boolean | undefined;
|
|
332
319
|
}>;
|
|
333
320
|
/**
|
|
334
321
|
* The input props that can be specified under `ui:options` for the
|
|
335
|
-
* `
|
|
336
|
-
*
|
|
322
|
+
* `OwnerPicker` field extension.
|
|
337
323
|
* @public
|
|
338
324
|
*/
|
|
339
|
-
type
|
|
325
|
+
type OwnerPickerUiOptions = NonNullable<(typeof OwnerPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
340
326
|
|
|
341
327
|
/**
|
|
342
|
-
* Field schema for the MyGroupsPicker.
|
|
343
328
|
* @public
|
|
344
329
|
*/
|
|
345
|
-
declare const
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
330
|
+
declare const RepoUrlPickerFieldSchema: _backstage_plugin_scaffolder_react.FieldSchema<string, {
|
|
331
|
+
allowedOrganizations?: string[] | undefined;
|
|
332
|
+
allowedOwners?: string[] | undefined;
|
|
333
|
+
allowedProjects?: string[] | undefined;
|
|
334
|
+
allowedRepos?: string[] | undefined;
|
|
335
|
+
allowedHosts?: string[] | undefined;
|
|
336
|
+
requestUserCredentials?: {
|
|
337
|
+
secretsKey: string;
|
|
338
|
+
additionalScopes?: {
|
|
339
|
+
azure?: string[] | undefined;
|
|
340
|
+
github?: string[] | undefined;
|
|
341
|
+
gitlab?: string[] | undefined;
|
|
342
|
+
bitbucket?: string[] | undefined;
|
|
343
|
+
gerrit?: string[] | undefined;
|
|
344
|
+
gitea?: string[] | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
}>;
|
|
351
348
|
/**
|
|
352
|
-
*
|
|
349
|
+
* The input props that can be specified under `ui:options` for the
|
|
350
|
+
* `RepoUrlPicker` field extension.
|
|
351
|
+
*
|
|
353
352
|
* @public
|
|
353
|
+
* @deprecated this will be removed as it's no longer used
|
|
354
354
|
*/
|
|
355
|
-
|
|
355
|
+
type RepoUrlPickerUiOptions = NonNullable<(typeof RepoUrlPickerFieldSchema.TProps.uiSchema)['ui:options']>;
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
|
+
* The validation function for the `repoUrl` that is returned from the
|
|
359
|
+
* field extension. Ensures that you have all the required fields filled for
|
|
360
|
+
* the different providers that exist.
|
|
358
361
|
* @public
|
|
359
|
-
* @deprecated - import from {@link @backstage/plugin-scaffolder-react#FieldSchema} instead
|
|
360
|
-
*/
|
|
361
|
-
interface FieldSchema<T, P> extends FieldSchema$1<T, P> {
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* @public
|
|
365
|
-
* @deprecated use `makeFieldSchema` instead
|
|
366
|
-
* Utility function to convert zod return and UI options schemas to a
|
|
367
|
-
* CustomFieldExtensionSchema with FieldExtensionComponentProps type inference
|
|
368
362
|
*/
|
|
369
|
-
declare
|
|
363
|
+
declare const repoPickerValidation: (value: string, validation: FieldValidation, context: {
|
|
364
|
+
apiHolder: ApiHolder;
|
|
365
|
+
}) => void;
|
|
370
366
|
|
|
371
367
|
/**
|
|
372
368
|
* The component to select the `type` of `Template` that you will see in the table.
|
package/dist/index.esm.js
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
export { ScaffolderClient } from './api.esm.js';
|
|
2
2
|
export { EntityNamePickerFieldExtension, EntityPickerFieldExtension, EntityTagsPickerFieldExtension, MultiEntityPickerFieldExtension, MyGroupsPickerFieldExtension, OwnedEntityPickerFieldExtension, OwnerPickerFieldExtension, RepoBranchPickerFieldExtension, RepoUrlPickerFieldExtension, ScaffolderPage, scaffolderPlugin } from './plugin.esm.js';
|
|
3
|
+
export { makeFieldSchemaFromZod } from './components/fields/utils.esm.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import '@backstage/catalog-client';
|
|
6
|
+
import '@backstage/catalog-model';
|
|
7
|
+
import '@backstage/core-plugin-api';
|
|
8
|
+
import '@backstage/plugin-catalog-react';
|
|
9
|
+
import '@material-ui/core/TextField';
|
|
10
|
+
import '@material-ui/lab/Autocomplete';
|
|
11
|
+
import 'react';
|
|
12
|
+
import 'react-use/esm/useAsync';
|
|
13
|
+
import './components/fields/VirtualizedListbox.esm.js';
|
|
14
|
+
import '@backstage/core-plugin-api/alpha';
|
|
15
|
+
import './translation.esm.js';
|
|
16
|
+
import '@backstage/plugin-scaffolder-react/alpha';
|
|
3
17
|
export { EntityPickerFieldSchema } from './components/fields/EntityPicker/schema.esm.js';
|
|
18
|
+
import 'react-use/esm/useEffectOnce';
|
|
19
|
+
export { EntityTagsPickerFieldSchema } from './components/fields/EntityTagsPicker/schema.esm.js';
|
|
20
|
+
export { MyGroupsPickerFieldSchema, MyGroupsPickerSchema } from './components/fields/MyGroupsPicker/schema.esm.js';
|
|
21
|
+
import '@backstage/errors';
|
|
22
|
+
export { OwnedEntityPickerFieldSchema } from './components/fields/OwnedEntityPicker/schema.esm.js';
|
|
4
23
|
export { OwnerPickerFieldSchema } from './components/fields/OwnerPicker/schema.esm.js';
|
|
24
|
+
import '@backstage/integration-react';
|
|
25
|
+
import '@backstage/plugin-scaffolder-react';
|
|
26
|
+
import '@material-ui/core/Box';
|
|
27
|
+
import '@material-ui/core/Divider';
|
|
28
|
+
import '@material-ui/core/Typography';
|
|
29
|
+
import 'react-use/esm/useDebounce';
|
|
30
|
+
import '@material-ui/core/FormControl';
|
|
31
|
+
import '@material-ui/core/FormHelperText';
|
|
32
|
+
import '@backstage/core-components';
|
|
33
|
+
import 'lodash/uniq';
|
|
34
|
+
import 'lodash/map';
|
|
5
35
|
export { RepoUrlPickerFieldSchema } from './components/fields/RepoUrlPicker/schema.esm.js';
|
|
6
36
|
export { repoPickerValidation } from './components/fields/RepoUrlPicker/validation.esm.js';
|
|
7
|
-
export { OwnedEntityPickerFieldSchema } from './components/fields/OwnedEntityPicker/schema.esm.js';
|
|
8
|
-
export { EntityTagsPickerFieldSchema } from './components/fields/EntityTagsPicker/schema.esm.js';
|
|
9
|
-
export { MyGroupsPickerFieldSchema, MyGroupsPickerSchema } from './components/fields/MyGroupsPicker/schema.esm.js';
|
|
10
|
-
export { makeFieldSchemaFromZod } from './components/fields/utils.esm.js';
|
|
11
37
|
export { TemplateTypePicker } from './components/TemplateTypePicker/TemplateTypePicker.esm.js';
|
|
12
38
|
export { OngoingTask as TaskPage } from './components/OngoingTask/OngoingTask.esm.js';
|
|
13
39
|
export { ScaffolderFieldExtensions, ScaffolderLayouts, createScaffolderFieldExtension, createScaffolderLayout, rootRouteRef, scaffolderApiRef, useTemplateSecrets } from './deprecated.esm.js';
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/plugin.esm.js
CHANGED
|
@@ -2,13 +2,14 @@ import { scmIntegrationsApiRef } from '@backstage/integration-react';
|
|
|
2
2
|
import { scaffolderApiRef, createScaffolderFieldExtension } from '@backstage/plugin-scaffolder-react';
|
|
3
3
|
import { ScaffolderClient } from './api.esm.js';
|
|
4
4
|
import { EntityPicker } from './components/fields/EntityPicker/EntityPicker.esm.js';
|
|
5
|
-
import { entityNamePickerValidation } from './components/fields/EntityNamePicker/validation.esm.js';
|
|
6
5
|
import { EntityNamePicker } from './components/fields/EntityNamePicker/EntityNamePicker.esm.js';
|
|
6
|
+
import { entityNamePickerValidation } from './components/fields/EntityNamePicker/validation.esm.js';
|
|
7
|
+
import { EntityNamePickerSchema } from './components/fields/EntityNamePicker/schema.esm.js';
|
|
7
8
|
import { OwnerPicker } from './components/fields/OwnerPicker/OwnerPicker.esm.js';
|
|
8
9
|
import { validateMultiEntityPickerValidation, MultiEntityPicker } from './components/fields/MultiEntityPicker/MultiEntityPicker.esm.js';
|
|
10
|
+
import { RepoUrlPicker } from './components/fields/RepoUrlPicker/RepoUrlPicker.esm.js';
|
|
9
11
|
import { RepoUrlPickerSchema } from './components/fields/RepoUrlPicker/schema.esm.js';
|
|
10
12
|
import { repoPickerValidation } from './components/fields/RepoUrlPicker/validation.esm.js';
|
|
11
|
-
import { RepoUrlPicker } from './components/fields/RepoUrlPicker/RepoUrlPicker.esm.js';
|
|
12
13
|
import { createPlugin, createApiFactory, identityApiRef, fetchApiRef, discoveryApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
|
|
13
14
|
import { OwnedEntityPicker } from './components/fields/OwnedEntityPicker/OwnedEntityPicker.esm.js';
|
|
14
15
|
import { EntityTagsPicker } from './components/fields/EntityTagsPicker/EntityTagsPicker.esm.js';
|
|
@@ -20,7 +21,6 @@ import { formDecoratorsApiRef } from './alpha/api/ref.esm.js';
|
|
|
20
21
|
import { DefaultScaffolderFormDecoratorsApi } from './alpha/api/FormDecoratorsApi.esm.js';
|
|
21
22
|
import { formFieldsApiRef } from '@backstage/plugin-scaffolder-react/alpha';
|
|
22
23
|
import { EntityPickerSchema } from './components/fields/EntityPicker/schema.esm.js';
|
|
23
|
-
import { EntityNamePickerSchema } from './components/fields/EntityNamePicker/schema.esm.js';
|
|
24
24
|
import { MultiEntityPickerSchema } from './components/fields/MultiEntityPicker/schema.esm.js';
|
|
25
25
|
import { OwnerPickerSchema } from './components/fields/OwnerPicker/schema.esm.js';
|
|
26
26
|
import { MyGroupsPickerSchema } from './components/fields/MyGroupsPicker/schema.esm.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder",
|
|
3
|
-
"version": "1.34.2-next.
|
|
3
|
+
"version": "1.34.2-next.2",
|
|
4
4
|
"description": "The Backstage plugin that helps you create new things",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@backstage/catalog-client": "1.12.0",
|
|
74
74
|
"@backstage/catalog-model": "1.7.5",
|
|
75
75
|
"@backstage/core-compat-api": "0.5.3-next.1",
|
|
76
|
-
"@backstage/core-components": "0.18.2-next.
|
|
76
|
+
"@backstage/core-components": "0.18.2-next.2",
|
|
77
77
|
"@backstage/core-plugin-api": "1.11.1-next.0",
|
|
78
78
|
"@backstage/errors": "1.2.7",
|
|
79
79
|
"@backstage/frontend-plugin-api": "0.12.1-next.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@backstage/plugin-catalog-react": "1.21.2-next.1",
|
|
84
84
|
"@backstage/plugin-permission-react": "0.4.37-next.0",
|
|
85
85
|
"@backstage/plugin-scaffolder-common": "1.7.2-next.1",
|
|
86
|
-
"@backstage/plugin-scaffolder-react": "1.19.2-next.
|
|
86
|
+
"@backstage/plugin-scaffolder-react": "1.19.2-next.2",
|
|
87
87
|
"@backstage/plugin-techdocs-common": "0.1.1",
|
|
88
88
|
"@backstage/plugin-techdocs-react": "1.3.4-next.1",
|
|
89
89
|
"@backstage/types": "1.2.2",
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
"zod-to-json-schema": "^3.20.4"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@backstage/cli": "0.34.4-next.
|
|
121
|
+
"@backstage/cli": "0.34.4-next.2",
|
|
122
122
|
"@backstage/core-app-api": "1.19.1-next.0",
|
|
123
|
-
"@backstage/dev-utils": "1.1.15-next.
|
|
123
|
+
"@backstage/dev-utils": "1.1.15-next.2",
|
|
124
124
|
"@backstage/plugin-catalog": "1.31.4-next.1",
|
|
125
125
|
"@backstage/plugin-permission-common": "0.9.2-next.0",
|
|
126
|
-
"@backstage/plugin-techdocs": "1.15.1-next.
|
|
127
|
-
"@backstage/test-utils": "1.7.12-next.
|
|
126
|
+
"@backstage/plugin-techdocs": "1.15.1-next.2",
|
|
127
|
+
"@backstage/test-utils": "1.7.12-next.1",
|
|
128
128
|
"@testing-library/dom": "^10.0.0",
|
|
129
129
|
"@testing-library/jest-dom": "^6.0.0",
|
|
130
130
|
"@testing-library/react": "^16.0.0",
|