@backstage/plugin-user-settings 0.7.11-next.2 → 0.7.12-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.d.ts +9 -1
- package/dist/alpha.esm.js +33 -2
- package/dist/alpha.esm.js.map +1 -1
- package/dist/esm/SettingsPage-70c1c7c8.esm.js +744 -0
- package/dist/esm/SettingsPage-70c1c7c8.esm.js.map +1 -0
- package/dist/esm/{index-355b96f0.esm.js → index-088c7808.esm.js} +6 -10
- package/dist/esm/index-088c7808.esm.js.map +1 -0
- package/dist/esm/translation-ecd113d9.esm.js +38 -0
- package/dist/esm/translation-ecd113d9.esm.js.map +1 -0
- package/dist/index.esm.js +23 -771
- package/dist/index.esm.js.map +1 -1
- package/package.json +17 -16
- package/dist/esm/index-355b96f0.esm.js.map +0 -1
- package/dist/esm/translation-d20c444b.esm.js +0 -20
- package/dist/esm/translation-d20c444b.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @backstage/plugin-user-settings
|
|
2
2
|
|
|
3
|
+
## 0.7.12-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 68fc9dc60e: Updated alpha exports according to routing changes in `@backstage/frontend-plugin-api`.
|
|
8
|
+
- 6c2b872153: Add official support for React 18.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/core-components@0.13.7-next.0
|
|
11
|
+
- @backstage/frontend-plugin-api@0.3.0-next.0
|
|
12
|
+
- @backstage/plugin-catalog-react@1.9.0-next.0
|
|
13
|
+
- @backstage/core-plugin-api@1.8.0-next.0
|
|
14
|
+
- @backstage/core-app-api@1.11.1-next.0
|
|
15
|
+
- @backstage/theme@0.4.4-next.0
|
|
16
|
+
- @backstage/errors@1.2.3
|
|
17
|
+
- @backstage/types@1.1.1
|
|
18
|
+
|
|
19
|
+
## 0.7.11
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 18c8dee6f5: Added experimental support for declarative integration via the `/alpha` subpath.
|
|
24
|
+
- d1b637d005: Fixed a bug where the theme icons would not be colored according to their active state.
|
|
25
|
+
- 9a1fce352e: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
|
|
26
|
+
- f95af4e540: Updated dependency `@testing-library/dom` to `^9.0.0`.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/plugin-catalog-react@1.8.5
|
|
29
|
+
- @backstage/frontend-plugin-api@0.2.0
|
|
30
|
+
- @backstage/core-app-api@1.11.0
|
|
31
|
+
- @backstage/core-plugin-api@1.7.0
|
|
32
|
+
- @backstage/core-components@0.13.6
|
|
33
|
+
- @backstage/errors@1.2.3
|
|
34
|
+
- @backstage/theme@0.4.3
|
|
35
|
+
- @backstage/types@1.1.1
|
|
36
|
+
|
|
3
37
|
## 0.7.11-next.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
1
2
|
import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
|
|
2
3
|
|
|
3
4
|
/** @alpha */
|
|
@@ -14,4 +15,11 @@ declare const userSettingsTranslationRef: _backstage_core_plugin_api_alpha.Trans
|
|
|
14
15
|
readonly select_lng: "Select language {{language}}";
|
|
15
16
|
}>;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
|
|
22
|
+
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
23
|
+
}, {}>;
|
|
24
|
+
|
|
25
|
+
export { _default as default, userSettingsTranslationRef };
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
import '@backstage/core-plugin-api/alpha';
|
|
1
|
+
import { createPageExtension, createExtensionInput, coreExtensionData, createPlugin } from '@backstage/frontend-plugin-api';
|
|
2
|
+
import { convertLegacyRouteRef } from '@backstage/core-plugin-api/alpha';
|
|
3
|
+
import { s as settingsRouteRef } from './esm/translation-ecd113d9.esm.js';
|
|
4
|
+
export { a as userSettingsTranslationRef } from './esm/translation-ecd113d9.esm.js';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import '@backstage/core-plugin-api';
|
|
7
|
+
|
|
8
|
+
const UserSettingsPage = createPageExtension({
|
|
9
|
+
id: "plugin.user-settings.page",
|
|
10
|
+
defaultPath: "/settings",
|
|
11
|
+
routeRef: convertLegacyRouteRef(settingsRouteRef),
|
|
12
|
+
inputs: {
|
|
13
|
+
providerSettings: createExtensionInput(
|
|
14
|
+
{
|
|
15
|
+
element: coreExtensionData.reactElement
|
|
16
|
+
},
|
|
17
|
+
{ singleton: true, optional: true }
|
|
18
|
+
)
|
|
19
|
+
},
|
|
20
|
+
loader: ({ inputs }) => import('./esm/index-088c7808.esm.js').then((m) => {
|
|
21
|
+
var _a;
|
|
22
|
+
return /* @__PURE__ */ React.createElement(m.SettingsPage, { providerSettings: (_a = inputs.providerSettings) == null ? void 0 : _a.element });
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
var alpha = createPlugin({
|
|
26
|
+
id: "user-settings",
|
|
27
|
+
extensions: [UserSettingsPage],
|
|
28
|
+
routes: {
|
|
29
|
+
root: convertLegacyRouteRef(settingsRouteRef)
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { alpha as default };
|
|
3
34
|
//# sourceMappingURL=alpha.esm.js.map
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 */\nimport {\n coreExtensionData,\n createExtensionInput,\n createPageExtension,\n createPlugin,\n} from '@backstage/frontend-plugin-api';\nimport { convertLegacyRouteRef } from '@backstage/core-plugin-api/alpha';\nimport { settingsRouteRef } from './plugin';\n\nimport React from 'react';\n\nexport * from './translation';\n\nconst UserSettingsPage = createPageExtension({\n id: 'plugin.user-settings.page',\n defaultPath: '/settings',\n routeRef: convertLegacyRouteRef(settingsRouteRef),\n inputs: {\n providerSettings: createExtensionInput(\n {\n element: coreExtensionData.reactElement,\n },\n { singleton: true, optional: true },\n ),\n },\n loader: ({ inputs }) =>\n import('./components/SettingsPage').then(m => (\n <m.SettingsPage providerSettings={inputs.providerSettings?.element} />\n )),\n});\n\n/**\n * @alpha\n */\nexport default createPlugin({\n id: 'user-settings',\n extensions: [UserSettingsPage],\n routes: {\n root: convertLegacyRouteRef(settingsRouteRef),\n },\n});\n"],"names":[],"mappings":";;;;;;;AA4BA,MAAM,mBAAmB,mBAAoB,CAAA;AAAA,EAC3C,EAAI,EAAA,2BAAA;AAAA,EACJ,WAAa,EAAA,WAAA;AAAA,EACb,QAAA,EAAU,sBAAsB,gBAAgB,CAAA;AAAA,EAChD,MAAQ,EAAA;AAAA,IACN,gBAAkB,EAAA,oBAAA;AAAA,MAChB;AAAA,QACE,SAAS,iBAAkB,CAAA,YAAA;AAAA,OAC7B;AAAA,MACA,EAAE,SAAA,EAAW,IAAM,EAAA,QAAA,EAAU,IAAK,EAAA;AAAA,KACpC;AAAA,GACF;AAAA,EACA,MAAA,EAAQ,CAAC,EAAE,MAAA,OACT,OAAO,6BAA2B,CAAE,CAAA,IAAA,CAAK,CAAE,CAAA,KAAA;AAzC/C,IAAA,IAAA,EAAA,CAAA;AA0CM,IAAA,uBAAA,KAAA,CAAA,aAAA,CAAC,EAAE,YAAF,EAAA,EAAe,mBAAkB,EAAO,GAAA,MAAA,CAAA,gBAAA,KAAP,mBAAyB,OAAS,EAAA,CAAA,CAAA;AAAA,GACrE,CAAA;AACL,CAAC,CAAA,CAAA;AAKD,YAAe,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,eAAA;AAAA,EACJ,UAAA,EAAY,CAAC,gBAAgB,CAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,sBAAsB,gBAAgB,CAAA;AAAA,GAC9C;AACF,CAAC,CAAA;;;;"}
|