@ewjdev/anyclick-react 4.0.0 → 5.0.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/README.md CHANGED
@@ -7,41 +7,95 @@
7
7
 
8
8
  ## Overview
9
9
 
10
- `@ewjdev/anyclick-react` provides a drop-in React component that adds feedback capture to your application. Right-click any element to open a customizable context menu for submitting feedback.
10
+ `@ewjdev/anyclick-react` is now headless-by-default for styling. It provides the Anyclick behavior, structure, and accessibility model, while styling is supplied through a slot-based adapter layer. Right-click any element to open a customizable context menu for submitting feedback.
11
11
 
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @ewjdev/anyclick-react
15
+ npm install @ewjdev/anyclick-core @ewjdev/anyclick-react
16
16
  # or
17
- yarn add @ewjdev/anyclick-react
17
+ yarn add @ewjdev/anyclick-core @ewjdev/anyclick-react
18
18
  # or
19
- pnpm add @ewjdev/anyclick-react
19
+ pnpm add @ewjdev/anyclick-core @ewjdev/anyclick-react
20
+ ```
21
+
22
+ ### Companion style packages
23
+
24
+ ```bash
25
+ npm install @ewjdev/anyclick-react-tailwind
26
+ # or
27
+ npm install @ewjdev/anyclick-react-shadcn
28
+ # or
29
+ npm install @ewjdev/anyclick-react-mui
20
30
  ```
21
31
 
22
32
  ## Requirements
23
33
 
24
34
  - React 19+
25
- - @ewjdev/anyclick-core (included as dependency)
35
+ - @ewjdev/anyclick-core
26
36
 
27
37
  ## Quick Start
28
38
 
29
39
  ```tsx
30
40
  "use client";
31
41
 
32
- import { createHttpAdapter } from "@ewjdev/anyclick-github";
42
+ import { createHttpAdapter } from "@ewjdev/anyclick-core";
33
43
  import { AnyclickProvider } from "@ewjdev/anyclick-react";
44
+ import {
45
+ TailwindAnyclickStyleProvider,
46
+ } from "@ewjdev/anyclick-react-tailwind";
47
+ import "@ewjdev/anyclick-react-tailwind/tailwind.css";
34
48
 
35
49
  const adapter = createHttpAdapter({
36
50
  endpoint: "/api/feedback",
37
51
  });
38
52
 
39
53
  export function Providers({ children }: { children: React.ReactNode }) {
40
- return <AnyclickProvider adapter={adapter}>{children}</AnyclickProvider>;
54
+ return (
55
+ <TailwindAnyclickStyleProvider>
56
+ <AnyclickProvider adapter={adapter}>{children}</AnyclickProvider>
57
+ </TailwindAnyclickStyleProvider>
58
+ );
41
59
  }
42
60
  ```
43
61
 
44
- That's it! Users can now right-click any element to submit feedback.
62
+ For a plain unstyled fallback, render `AnyclickProvider` without a style provider. That path is usable for development and debugging, but the intended production setup is one of the companion packages or a custom `AnyclickStyleProvider`.
63
+
64
+ ### Style adapter setup
65
+
66
+ Tailwind:
67
+
68
+ ```tsx
69
+ import { AnyclickProvider } from "@ewjdev/anyclick-react";
70
+ import {
71
+ TailwindAnyclickStyleProvider,
72
+ } from "@ewjdev/anyclick-react-tailwind";
73
+ import "@ewjdev/anyclick-react-tailwind/tailwind.css";
74
+ ```
75
+
76
+ shadcn-style classes:
77
+
78
+ ```tsx
79
+ import { AnyclickProvider } from "@ewjdev/anyclick-react";
80
+ import {
81
+ ShadcnAnyclickStyleProvider,
82
+ } from "@ewjdev/anyclick-react-shadcn";
83
+ import "@ewjdev/anyclick-react-shadcn/shadcn.css";
84
+ ```
85
+
86
+ MUI:
87
+
88
+ ```tsx
89
+ import { AnyclickProvider } from "@ewjdev/anyclick-react";
90
+ import { MuiAnyclickStyleProvider } from "@ewjdev/anyclick-react-mui";
91
+ import { ThemeProvider, createTheme } from "@mui/material/styles";
92
+ ```
93
+
94
+ ### Migration notes
95
+
96
+ - `menuClassName` and `menuStyle` still work in v5, but they are now deprecated shims that map to `menu.surface`.
97
+ - Use `slotClassNames`, `slotStyles`, `styleAdapter`, or `components` for new styling work.
98
+ - `@ewjdev/anyclick-react` no longer imports Tailwind CSS for you.
45
99
 
46
100
  ### Advanced inspector (DevTools UI)
47
101
 
@@ -0,0 +1,305 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ define_process_default,
5
+ init_define_process
6
+ } from "./chunk-TG7QFERR.mjs";
7
+
8
+ // ../../node_modules/@vercel/oidc/dist/token-error.js
9
+ var require_token_error = __commonJS({
10
+ "../../node_modules/@vercel/oidc/dist/token-error.js"(exports, module) {
11
+ "use strict";
12
+ init_define_process();
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __export = (target, all) => {
18
+ for (var name in all)
19
+ __defProp(target, name, { get: all[name], enumerable: true });
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (let key of __getOwnPropNames(from))
24
+ if (!__hasOwnProp.call(to, key) && key !== except)
25
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ }
27
+ return to;
28
+ };
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var token_error_exports = {};
31
+ __export(token_error_exports, {
32
+ VercelOidcTokenError: () => VercelOidcTokenError
33
+ });
34
+ module.exports = __toCommonJS(token_error_exports);
35
+ var VercelOidcTokenError = class extends Error {
36
+ constructor(message, cause) {
37
+ super(message);
38
+ this.name = "VercelOidcTokenError";
39
+ this.cause = cause;
40
+ }
41
+ toString() {
42
+ if (this.cause) {
43
+ return `${this.name}: ${this.message}: ${this.cause}`;
44
+ }
45
+ return `${this.name}: ${this.message}`;
46
+ }
47
+ };
48
+ }
49
+ });
50
+
51
+ // ../../node_modules/@vercel/oidc/dist/token-io.js
52
+ var require_token_io = __commonJS({
53
+ "../../node_modules/@vercel/oidc/dist/token-io.js"(exports, module) {
54
+ "use strict";
55
+ init_define_process();
56
+ var __create = Object.create;
57
+ var __defProp = Object.defineProperty;
58
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
59
+ var __getOwnPropNames = Object.getOwnPropertyNames;
60
+ var __getProtoOf = Object.getPrototypeOf;
61
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
62
+ var __export = (target, all) => {
63
+ for (var name in all)
64
+ __defProp(target, name, { get: all[name], enumerable: true });
65
+ };
66
+ var __copyProps = (to, from, except, desc) => {
67
+ if (from && typeof from === "object" || typeof from === "function") {
68
+ for (let key of __getOwnPropNames(from))
69
+ if (!__hasOwnProp.call(to, key) && key !== except)
70
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
71
+ }
72
+ return to;
73
+ };
74
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
75
+ // If the importer is in node compatibility mode or this is not an ESM
76
+ // file that has been converted to a CommonJS file using a Babel-
77
+ // compatible transform (i.e. "__esModule" has not been set), then set
78
+ // "default" to the CommonJS "module.exports" for node compatibility.
79
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
80
+ mod
81
+ ));
82
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
83
+ var token_io_exports = {};
84
+ __export(token_io_exports, {
85
+ findRootDir: () => findRootDir,
86
+ getUserDataDir: () => getUserDataDir
87
+ });
88
+ module.exports = __toCommonJS(token_io_exports);
89
+ var import_path = __toESM(__require("path"));
90
+ var import_fs = __toESM(__require("fs"));
91
+ var import_os = __toESM(__require("os"));
92
+ var import_token_error = require_token_error();
93
+ function findRootDir() {
94
+ try {
95
+ let dir = define_process_default.cwd();
96
+ while (dir !== import_path.default.dirname(dir)) {
97
+ const pkgPath = import_path.default.join(dir, ".vercel");
98
+ if (import_fs.default.existsSync(pkgPath)) {
99
+ return dir;
100
+ }
101
+ dir = import_path.default.dirname(dir);
102
+ }
103
+ } catch (e) {
104
+ throw new import_token_error.VercelOidcTokenError(
105
+ "Token refresh only supported in node server environments"
106
+ );
107
+ }
108
+ throw new import_token_error.VercelOidcTokenError("Unable to find root directory");
109
+ }
110
+ function getUserDataDir() {
111
+ if (define_process_default.env.XDG_DATA_HOME) {
112
+ return define_process_default.env.XDG_DATA_HOME;
113
+ }
114
+ switch (import_os.default.platform()) {
115
+ case "darwin":
116
+ return import_path.default.join(import_os.default.homedir(), "Library/Application Support");
117
+ case "linux":
118
+ return import_path.default.join(import_os.default.homedir(), ".local/share");
119
+ case "win32":
120
+ if (define_process_default.env.LOCALAPPDATA) {
121
+ return define_process_default.env.LOCALAPPDATA;
122
+ }
123
+ return null;
124
+ default:
125
+ return null;
126
+ }
127
+ }
128
+ }
129
+ });
130
+
131
+ // ../../node_modules/@vercel/oidc/dist/token-util.js
132
+ var require_token_util = __commonJS({
133
+ "../../node_modules/@vercel/oidc/dist/token-util.js"(exports, module) {
134
+ init_define_process();
135
+ var __create = Object.create;
136
+ var __defProp = Object.defineProperty;
137
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
138
+ var __getOwnPropNames = Object.getOwnPropertyNames;
139
+ var __getProtoOf = Object.getPrototypeOf;
140
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
141
+ var __export = (target, all) => {
142
+ for (var name in all)
143
+ __defProp(target, name, { get: all[name], enumerable: true });
144
+ };
145
+ var __copyProps = (to, from, except, desc) => {
146
+ if (from && typeof from === "object" || typeof from === "function") {
147
+ for (let key of __getOwnPropNames(from))
148
+ if (!__hasOwnProp.call(to, key) && key !== except)
149
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
150
+ }
151
+ return to;
152
+ };
153
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
154
+ // If the importer is in node compatibility mode or this is not an ESM
155
+ // file that has been converted to a CommonJS file using a Babel-
156
+ // compatible transform (i.e. "__esModule" has not been set), then set
157
+ // "default" to the CommonJS "module.exports" for node compatibility.
158
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
159
+ mod
160
+ ));
161
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
162
+ var token_util_exports = {};
163
+ __export(token_util_exports, {
164
+ assertVercelOidcTokenResponse: () => assertVercelOidcTokenResponse,
165
+ findProjectInfo: () => findProjectInfo,
166
+ getTokenPayload: () => getTokenPayload,
167
+ getVercelCliToken: () => getVercelCliToken,
168
+ getVercelDataDir: () => getVercelDataDir,
169
+ getVercelOidcToken: () => getVercelOidcToken,
170
+ isExpired: () => isExpired,
171
+ loadToken: () => loadToken,
172
+ saveToken: () => saveToken
173
+ });
174
+ module.exports = __toCommonJS(token_util_exports);
175
+ var path = __toESM(__require("path"));
176
+ var fs = __toESM(__require("fs"));
177
+ var import_token_error = require_token_error();
178
+ var import_token_io = require_token_io();
179
+ function getVercelDataDir() {
180
+ const vercelFolder = "com.vercel.cli";
181
+ const dataDir = (0, import_token_io.getUserDataDir)();
182
+ if (!dataDir) {
183
+ return null;
184
+ }
185
+ return path.join(dataDir, vercelFolder);
186
+ }
187
+ function getVercelCliToken() {
188
+ const dataDir = getVercelDataDir();
189
+ if (!dataDir) {
190
+ return null;
191
+ }
192
+ const tokenPath = path.join(dataDir, "auth.json");
193
+ if (!fs.existsSync(tokenPath)) {
194
+ return null;
195
+ }
196
+ const token = fs.readFileSync(tokenPath, "utf8");
197
+ if (!token) {
198
+ return null;
199
+ }
200
+ return JSON.parse(token).token;
201
+ }
202
+ async function getVercelOidcToken(authToken, projectId, teamId) {
203
+ try {
204
+ const url = `https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId ? `&teamId=${teamId}` : ""}`;
205
+ const res = await fetch(url, {
206
+ method: "POST",
207
+ headers: {
208
+ Authorization: `Bearer ${authToken}`
209
+ }
210
+ });
211
+ if (!res.ok) {
212
+ throw new import_token_error.VercelOidcTokenError(
213
+ `Failed to refresh OIDC token: ${res.statusText}`
214
+ );
215
+ }
216
+ const tokenRes = await res.json();
217
+ assertVercelOidcTokenResponse(tokenRes);
218
+ return tokenRes;
219
+ } catch (e) {
220
+ throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token`, e);
221
+ }
222
+ }
223
+ function assertVercelOidcTokenResponse(res) {
224
+ if (!res || typeof res !== "object") {
225
+ throw new TypeError("Expected an object");
226
+ }
227
+ if (!("token" in res) || typeof res.token !== "string") {
228
+ throw new TypeError("Expected a string-valued token property");
229
+ }
230
+ }
231
+ function findProjectInfo() {
232
+ const dir = (0, import_token_io.findRootDir)();
233
+ if (!dir) {
234
+ throw new import_token_error.VercelOidcTokenError("Unable to find root directory");
235
+ }
236
+ try {
237
+ const prjPath = path.join(dir, ".vercel", "project.json");
238
+ if (!fs.existsSync(prjPath)) {
239
+ throw new import_token_error.VercelOidcTokenError("project.json not found");
240
+ }
241
+ const prj = JSON.parse(fs.readFileSync(prjPath, "utf8"));
242
+ if (typeof prj.projectId !== "string" && typeof prj.orgId !== "string") {
243
+ throw new TypeError("Expected a string-valued projectId property");
244
+ }
245
+ return { projectId: prj.projectId, teamId: prj.orgId };
246
+ } catch (e) {
247
+ throw new import_token_error.VercelOidcTokenError(`Unable to find project ID`, e);
248
+ }
249
+ }
250
+ function saveToken(token, projectId) {
251
+ try {
252
+ const dir = (0, import_token_io.getUserDataDir)();
253
+ if (!dir) {
254
+ throw new import_token_error.VercelOidcTokenError("Unable to find user data directory");
255
+ }
256
+ const tokenPath = path.join(dir, "com.vercel.token", `${projectId}.json`);
257
+ const tokenJson = JSON.stringify(token);
258
+ fs.mkdirSync(path.dirname(tokenPath), { mode: 504, recursive: true });
259
+ fs.writeFileSync(tokenPath, tokenJson);
260
+ fs.chmodSync(tokenPath, 432);
261
+ return;
262
+ } catch (e) {
263
+ throw new import_token_error.VercelOidcTokenError(`Failed to save token`, e);
264
+ }
265
+ }
266
+ function loadToken(projectId) {
267
+ try {
268
+ const dir = (0, import_token_io.getUserDataDir)();
269
+ if (!dir) {
270
+ return null;
271
+ }
272
+ const tokenPath = path.join(dir, "com.vercel.token", `${projectId}.json`);
273
+ if (!fs.existsSync(tokenPath)) {
274
+ return null;
275
+ }
276
+ const token = JSON.parse(fs.readFileSync(tokenPath, "utf8"));
277
+ assertVercelOidcTokenResponse(token);
278
+ return token;
279
+ } catch (e) {
280
+ throw new import_token_error.VercelOidcTokenError(`Failed to load token`, e);
281
+ }
282
+ }
283
+ function getTokenPayload(token) {
284
+ const tokenParts = token.split(".");
285
+ if (tokenParts.length !== 3) {
286
+ throw new import_token_error.VercelOidcTokenError("Invalid token");
287
+ }
288
+ const base64 = tokenParts[1].replace(/-/g, "+").replace(/_/g, "/");
289
+ const padded = base64.padEnd(
290
+ base64.length + (4 - base64.length % 4) % 4,
291
+ "="
292
+ );
293
+ return JSON.parse(Buffer.from(padded, "base64").toString("utf8"));
294
+ }
295
+ function isExpired(token) {
296
+ return token.exp * 1e3 < Date.now();
297
+ }
298
+ }
299
+ });
300
+
301
+ export {
302
+ require_token_error,
303
+ require_token_util
304
+ };
305
+ //# sourceMappingURL=chunk-L4LZXN47.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/@vercel/oidc/dist/token-error.js","../../../node_modules/@vercel/oidc/dist/token-io.js","../../../node_modules/@vercel/oidc/dist/token-util.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n","\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_io_exports = {};\n__export(token_io_exports, {\n findRootDir: () => findRootDir,\n getUserDataDir: () => getUserDataDir\n});\nmodule.exports = __toCommonJS(token_io_exports);\nvar import_path = __toESM(require(\"path\"));\nvar import_fs = __toESM(require(\"fs\"));\nvar import_os = __toESM(require(\"os\"));\nvar import_token_error = require(\"./token-error\");\nfunction findRootDir() {\n try {\n let dir = process.cwd();\n while (dir !== import_path.default.dirname(dir)) {\n const pkgPath = import_path.default.join(dir, \".vercel\");\n if (import_fs.default.existsSync(pkgPath)) {\n return dir;\n }\n dir = import_path.default.dirname(dir);\n }\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(\n \"Token refresh only supported in node server environments\"\n );\n }\n throw new import_token_error.VercelOidcTokenError(\"Unable to find root directory\");\n}\nfunction getUserDataDir() {\n if (process.env.XDG_DATA_HOME) {\n return process.env.XDG_DATA_HOME;\n }\n switch (import_os.default.platform()) {\n case \"darwin\":\n return import_path.default.join(import_os.default.homedir(), \"Library/Application Support\");\n case \"linux\":\n return import_path.default.join(import_os.default.homedir(), \".local/share\");\n case \"win32\":\n if (process.env.LOCALAPPDATA) {\n return process.env.LOCALAPPDATA;\n }\n return null;\n default:\n return null;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n findRootDir,\n getUserDataDir\n});\n","\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_util_exports = {};\n__export(token_util_exports, {\n assertVercelOidcTokenResponse: () => assertVercelOidcTokenResponse,\n findProjectInfo: () => findProjectInfo,\n getTokenPayload: () => getTokenPayload,\n getVercelCliToken: () => getVercelCliToken,\n getVercelDataDir: () => getVercelDataDir,\n getVercelOidcToken: () => getVercelOidcToken,\n isExpired: () => isExpired,\n loadToken: () => loadToken,\n saveToken: () => saveToken\n});\nmodule.exports = __toCommonJS(token_util_exports);\nvar path = __toESM(require(\"path\"));\nvar fs = __toESM(require(\"fs\"));\nvar import_token_error = require(\"./token-error\");\nvar import_token_io = require(\"./token-io\");\nfunction getVercelDataDir() {\n const vercelFolder = \"com.vercel.cli\";\n const dataDir = (0, import_token_io.getUserDataDir)();\n if (!dataDir) {\n return null;\n }\n return path.join(dataDir, vercelFolder);\n}\nfunction getVercelCliToken() {\n const dataDir = getVercelDataDir();\n if (!dataDir) {\n return null;\n }\n const tokenPath = path.join(dataDir, \"auth.json\");\n if (!fs.existsSync(tokenPath)) {\n return null;\n }\n const token = fs.readFileSync(tokenPath, \"utf8\");\n if (!token) {\n return null;\n }\n return JSON.parse(token).token;\n}\nasync function getVercelOidcToken(authToken, projectId, teamId) {\n try {\n const url = `https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId ? `&teamId=${teamId}` : \"\"}`;\n const res = await fetch(url, {\n method: \"POST\",\n headers: {\n Authorization: `Bearer ${authToken}`\n }\n });\n if (!res.ok) {\n throw new import_token_error.VercelOidcTokenError(\n `Failed to refresh OIDC token: ${res.statusText}`\n );\n }\n const tokenRes = await res.json();\n assertVercelOidcTokenResponse(tokenRes);\n return tokenRes;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token`, e);\n }\n}\nfunction assertVercelOidcTokenResponse(res) {\n if (!res || typeof res !== \"object\") {\n throw new TypeError(\"Expected an object\");\n }\n if (!(\"token\" in res) || typeof res.token !== \"string\") {\n throw new TypeError(\"Expected a string-valued token property\");\n }\n}\nfunction findProjectInfo() {\n const dir = (0, import_token_io.findRootDir)();\n if (!dir) {\n throw new import_token_error.VercelOidcTokenError(\"Unable to find root directory\");\n }\n try {\n const prjPath = path.join(dir, \".vercel\", \"project.json\");\n if (!fs.existsSync(prjPath)) {\n throw new import_token_error.VercelOidcTokenError(\"project.json not found\");\n }\n const prj = JSON.parse(fs.readFileSync(prjPath, \"utf8\"));\n if (typeof prj.projectId !== \"string\" && typeof prj.orgId !== \"string\") {\n throw new TypeError(\"Expected a string-valued projectId property\");\n }\n return { projectId: prj.projectId, teamId: prj.orgId };\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Unable to find project ID`, e);\n }\n}\nfunction saveToken(token, projectId) {\n try {\n const dir = (0, import_token_io.getUserDataDir)();\n if (!dir) {\n throw new import_token_error.VercelOidcTokenError(\"Unable to find user data directory\");\n }\n const tokenPath = path.join(dir, \"com.vercel.token\", `${projectId}.json`);\n const tokenJson = JSON.stringify(token);\n fs.mkdirSync(path.dirname(tokenPath), { mode: 504, recursive: true });\n fs.writeFileSync(tokenPath, tokenJson);\n fs.chmodSync(tokenPath, 432);\n return;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to save token`, e);\n }\n}\nfunction loadToken(projectId) {\n try {\n const dir = (0, import_token_io.getUserDataDir)();\n if (!dir) {\n return null;\n }\n const tokenPath = path.join(dir, \"com.vercel.token\", `${projectId}.json`);\n if (!fs.existsSync(tokenPath)) {\n return null;\n }\n const token = JSON.parse(fs.readFileSync(tokenPath, \"utf8\"));\n assertVercelOidcTokenResponse(token);\n return token;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to load token`, e);\n }\n}\nfunction getTokenPayload(token) {\n const tokenParts = token.split(\".\");\n if (tokenParts.length !== 3) {\n throw new import_token_error.VercelOidcTokenError(\"Invalid token\");\n }\n const base64 = tokenParts[1].replace(/-/g, \"+\").replace(/_/g, \"/\");\n const padded = base64.padEnd(\n base64.length + (4 - base64.length % 4) % 4,\n \"=\"\n );\n return JSON.parse(Buffer.from(padded, \"base64\").toString(\"utf8\"));\n}\nfunction isExpired(token) {\n return token.exp * 1e3 < Date.now();\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n assertVercelOidcTokenResponse,\n findProjectInfo,\n getTokenPayload,\n getVercelCliToken,\n getVercelDataDir,\n getVercelOidcToken,\n isExpired,\n loadToken,\n saveToken\n});\n"],"mappings":";;;;;;;;AAAA;AAAA;AAAA;AAAA;AACA,QAAI,YAAY,OAAO;AACvB,QAAI,mBAAmB,OAAO;AAC9B,QAAI,oBAAoB,OAAO;AAC/B,QAAI,eAAe,OAAO,UAAU;AACpC,QAAI,WAAW,CAAC,QAAQ,QAAQ;AAC9B,eAAS,QAAQ;AACf,kBAAU,QAAQ,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,YAAY,KAAK,CAAC;AAAA,IAChE;AACA,QAAI,cAAc,CAAC,IAAI,MAAM,QAAQ,SAAS;AAC5C,UAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;AAClE,iBAAS,OAAO,kBAAkB,IAAI;AACpC,cAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ;AACzC,sBAAU,IAAI,KAAK,EAAE,KAAK,MAAM,KAAK,GAAG,GAAG,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC;AAAA,MACvH;AACA,aAAO;AAAA,IACT;AACA,QAAI,eAAe,CAAC,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,QAAI,sBAAsB,CAAC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O,MAAM,MAAM,MAAM,KAAK,IAAI;AAAA,IACpC;AAAA;AAAA;","names":[]}
@@ -0,0 +1,56 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __esm = (fn, res) => function __init() {
14
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ };
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, { get: all[name], enumerable: true });
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (let key of __getOwnPropNames(from))
26
+ if (!__hasOwnProp.call(to, key) && key !== except)
27
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
+ }
29
+ return to;
30
+ };
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
+ // If the importer is in node compatibility mode or this is not an ESM
33
+ // file that has been converted to a CommonJS file using a Babel-
34
+ // compatible transform (i.e. "__esModule" has not been set), then set
35
+ // "default" to the CommonJS "module.exports" for node compatibility.
36
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
+ mod
38
+ ));
39
+
40
+ // <define:process>
41
+ var define_process_default;
42
+ var init_define_process = __esm({
43
+ "<define:process>"() {
44
+ define_process_default = {};
45
+ }
46
+ });
47
+
48
+ export {
49
+ __require,
50
+ __commonJS,
51
+ __export,
52
+ __toESM,
53
+ init_define_process,
54
+ define_process_default
55
+ };
56
+ //# sourceMappingURL=chunk-TG7QFERR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["<define:process>"],"sourcesContent":["{}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,8BAAC;AAAA;AAAA;","names":[]}