@karni/impersonation-ui 0.4.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +15 -4
  2. package/package.json +6 -3
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # @karni/impersonation-ui
2
2
 
3
- React pieces for the [karni-impersonation](https://github.com/cbsshekhawat18-lab/karni/blob/main/modules/karni-impersonation/README.md) module, composing
4
- `@karni/ui`: the banner a SPA shows while a support user acts as someone
5
- else, and the hooks to start and stop.
3
+ React components for the Karni impersonation module: ImpersonationBanner and its hook.
4
+
5
+ [![npm](https://img.shields.io/npm/v/@karni/impersonation-ui)](https://www.npmjs.com/package/@karni/impersonation-ui) [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/cbsshekhawat18-lab/karni/blob/main/LICENSE) [![Docs](https://img.shields.io/badge/docs-online-FB5D08)](https://cbsshekhawat18-lab.github.io/karni/modules/#modules-in-this-repository)
6
+
7
+ It composes `@karni/ui` for the [karni-impersonation](https://pypi.org/project/karni-impersonation/) module: the banner a single-page app shows while a support user acts as someone else, and the hooks to start and stop.
6
8
 
7
9
  ```sh
8
10
  npm install @karni/impersonation-ui
@@ -31,6 +33,15 @@ start.mutate({ user: "customer@example.com", reason: "ticket #7" });
31
33
  rule and the reason, and its refusal is the mutation's error).
32
34
  - `useImpersonation()` is the query behind the banner.
33
35
 
34
- Peer dependencies: `@karni/ui ^0.1`, React 18/19, `@tanstack/react-query` 5.
36
+ Peer dependencies: `@karni/ui` at this package's version (every Karni package is released at one version), React 18/19, `@tanstack/react-query` 5.
35
37
  It uses tokens only, and registers the `impersonation-banner` role on `@karni/ui`'s role
36
38
  registry when it is present.
39
+
40
+ ## Links
41
+
42
+ - The module in the docs: <https://cbsshekhawat18-lab.github.io/karni/modules/#modules-in-this-repository>
43
+ - The Python module: <https://pypi.org/project/karni-impersonation/>
44
+ - Karni, the framework this package is part of: <https://github.com/cbsshekhawat18-lab/karni>
45
+ - Changelog: <https://github.com/cbsshekhawat18-lab/karni/blob/main/CHANGELOG.md>
46
+ - Issues: <https://github.com/cbsshekhawat18-lab/karni/issues>
47
+ - License: Apache-2.0. @karni/impersonation-ui is released with every other Karni package, at one version.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@karni/impersonation-ui",
3
- "version": "0.4.0",
4
- "description": "React components for the Karni impersonation module: ImpersonationBanner and its hook. Karni is an open-source Django + React framework for building with AI coding agents. Your agent writes only your domain. The API, admin, permissions and React screens come from a package you upgrade, not code it rewrites in each project. One rule set covers Claude Code, Cursor and Copilot. The build fails when an agent hand-writes what Karni ships.",
3
+ "version": "0.5.0",
4
+ "description": "React components for the Karni impersonation module: ImpersonationBanner and its hook. Karni is an open-source Django + React framework for building with AI coding agents. Your agent writes only your domain. The API, admin, permissions and React screens come from a package you upgrade, not code it rewrites in each project. One rule set covers every coding agent. The build fails when an agent hand-writes what Karni ships.",
5
5
  "keywords": [
6
6
  "react",
7
7
  "django",
@@ -50,7 +50,7 @@
50
50
  "format:check": "prettier --check ."
51
51
  },
52
52
  "peerDependencies": {
53
- "@karni/ui": "^0.4.0",
53
+ "@karni/ui": "^0.5.0",
54
54
  "@tanstack/react-query": "^5.0.0",
55
55
  "react": "^18.0.0 || ^19.0.0",
56
56
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -83,5 +83,8 @@
83
83
  "publishConfig": {
84
84
  "access": "public",
85
85
  "provenance": true
86
+ },
87
+ "overrides": {
88
+ "minimatch@>=7.0.0 <11.0.1": "^11.0.5"
86
89
  }
87
90
  }