@backstage/plugin-app-module-user-settings 0.0.0-nightly-20260625032153
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 +14 -0
- package/README.md +5 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/module.esm.js +26 -0
- package/dist/module.esm.js.map +1 -0
- package/package.json +56 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# @backstage/plugin-app-module-user-settings
|
|
2
|
+
|
|
3
|
+
## 0.0.0-nightly-20260625032153
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c8a06d5: Added new frontend module that provides database-backed user settings storage. When installed, it overrides the default browser local storage with the user settings backend, enabling settings to persist across devices and sessions.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/plugin-user-settings@0.0.0-nightly-20260625032153
|
|
13
|
+
- @backstage/frontend-plugin-api@0.0.0-nightly-20260625032153
|
|
14
|
+
- @backstage/plugin-signals-react@0.0.0-nightly-20260625032153
|
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createFrontendModule, ApiBlueprint, identityApiRef, errorApiRef, fetchApiRef, discoveryApiRef, storageApiRef } from '@backstage/frontend-plugin-api';
|
|
2
|
+
import { UserSettingsStorage } from '@backstage/plugin-user-settings';
|
|
3
|
+
import { signalApiRef } from '@backstage/plugin-signals-react';
|
|
4
|
+
|
|
5
|
+
const appModuleUserSettings = createFrontendModule({
|
|
6
|
+
pluginId: "app",
|
|
7
|
+
extensions: [
|
|
8
|
+
ApiBlueprint.make({
|
|
9
|
+
name: "user-settings-storage",
|
|
10
|
+
params: (defineParams) => defineParams({
|
|
11
|
+
api: storageApiRef,
|
|
12
|
+
deps: {
|
|
13
|
+
discoveryApi: discoveryApiRef,
|
|
14
|
+
fetchApi: fetchApiRef,
|
|
15
|
+
errorApi: errorApiRef,
|
|
16
|
+
identityApi: identityApiRef,
|
|
17
|
+
signalApi: signalApiRef
|
|
18
|
+
},
|
|
19
|
+
factory: (deps) => UserSettingsStorage.create(deps)
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { appModuleUserSettings };
|
|
26
|
+
//# sourceMappingURL=module.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.esm.js","sources":["../src/module.tsx"],"sourcesContent":["/*\n * Copyright 2026 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 ApiBlueprint,\n createFrontendModule,\n discoveryApiRef,\n errorApiRef,\n fetchApiRef,\n identityApiRef,\n storageApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { UserSettingsStorage } from '@backstage/plugin-user-settings';\nimport { signalApiRef } from '@backstage/plugin-signals-react';\n\n/** @public */\nexport const appModuleUserSettings = createFrontendModule({\n pluginId: 'app',\n extensions: [\n ApiBlueprint.make({\n name: 'user-settings-storage',\n params: defineParams =>\n defineParams({\n api: storageApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n errorApi: errorApiRef,\n identityApi: identityApiRef,\n signalApi: signalApiRef,\n },\n factory: deps => UserSettingsStorage.create(deps),\n }),\n }),\n ],\n});\n"],"names":[],"mappings":";;;;AA6BO,MAAM,wBAAwB,oBAAA,CAAqB;AAAA,EACxD,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY;AAAA,IACV,aAAa,IAAA,CAAK;AAAA,MAChB,IAAA,EAAM,uBAAA;AAAA,MACN,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,QACX,GAAA,EAAK,aAAA;AAAA,QACL,IAAA,EAAM;AAAA,UACJ,YAAA,EAAc,eAAA;AAAA,UACd,QAAA,EAAU,WAAA;AAAA,UACV,QAAA,EAAU,WAAA;AAAA,UACV,WAAA,EAAa,cAAA;AAAA,UACb,SAAA,EAAW;AAAA,SACb;AAAA,QACA,OAAA,EAAS,CAAA,IAAA,KAAQ,mBAAA,CAAoB,MAAA,CAAO,IAAI;AAAA,OACjD;AAAA,KACJ;AAAA;AAEL,CAAC;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backstage/plugin-app-module-user-settings",
|
|
3
|
+
"version": "0.0.0-nightly-20260625032153",
|
|
4
|
+
"description": "Registers user-settings features into the app.",
|
|
5
|
+
"backstage": {
|
|
6
|
+
"role": "frontend-plugin-module",
|
|
7
|
+
"pluginId": "app",
|
|
8
|
+
"pluginPackage": "@backstage/plugin-app",
|
|
9
|
+
"features": {
|
|
10
|
+
".": "@backstage/FrontendModule"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"main": "dist/index.cjs.js",
|
|
16
|
+
"module": "dist/index.esm.js",
|
|
17
|
+
"types": "dist/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/backstage/backstage",
|
|
22
|
+
"directory": "plugins/app-module-user-settings"
|
|
23
|
+
},
|
|
24
|
+
"license": "Apache-2.0",
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"main": "dist/index.cjs.js",
|
|
27
|
+
"types": "dist/index.d.ts",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "backstage-cli package build",
|
|
33
|
+
"clean": "backstage-cli package clean",
|
|
34
|
+
"lint": "backstage-cli package lint",
|
|
35
|
+
"prepack": "backstage-cli package prepack",
|
|
36
|
+
"postpack": "backstage-cli package postpack",
|
|
37
|
+
"test": "backstage-cli package test"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@backstage/frontend-plugin-api": "0.0.0-nightly-20260625032153",
|
|
41
|
+
"@backstage/plugin-signals-react": "0.0.0-nightly-20260625032153",
|
|
42
|
+
"@backstage/plugin-user-settings": "0.0.0-nightly-20260625032153"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@backstage/cli": "0.0.0-nightly-20260625032153",
|
|
46
|
+
"@testing-library/jest-dom": "^6.0.0"
|
|
47
|
+
},
|
|
48
|
+
"typesVersions": {
|
|
49
|
+
"*": {
|
|
50
|
+
"package.json": [
|
|
51
|
+
"package.json"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"module": "dist/index.esm.js"
|
|
56
|
+
}
|