uivisor 0.1.1 → 0.1.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/README.md +70 -119
- package/dist/next/index.cjs +3 -347
- package/dist/next/index.d.cts +1 -1
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +3 -349
- package/package.json +24 -6
package/README.md
CHANGED
|
@@ -2,69 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
<img src="./uivisor.jpg" alt="uivisor" width="100%" />
|
|
4
4
|
|
|
5
|
-
<h3>Point at any element in your running app, tweak it by hand, and copy a precise,<br/>breakpoint-aware prompt for your AI agent — without ever touching your code.</h3>
|
|
6
|
-
|
|
7
5
|
<p>
|
|
8
|
-
<img alt="
|
|
6
|
+
<img alt="npm" src="https://img.shields.io/npm/v/uivisor?style=flat-square&color=cb3837&label=npm" />
|
|
7
|
+
<img alt="dev only" src="https://img.shields.io/badge/только%20dev-в%20прод%20не%20попадает-22c55e?style=flat-square" />
|
|
9
8
|
<img alt="stack" src="https://img.shields.io/badge/React%20·%20Next.js%20·%20Vite-4f46e5?style=flat-square" />
|
|
10
|
-
<img alt="prompt only" src="https://img.shields.io/badge/prompt--only-no%20code%20mutation-06b6d4?style=flat-square" />
|
|
11
9
|
<img alt="license" src="https://img.shields.io/badge/license-MIT-3f3f46?style=flat-square" />
|
|
12
10
|
</p>
|
|
13
11
|
|
|
14
12
|
</div>
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## The problem
|
|
19
|
-
|
|
20
|
-
You spot a small UI nit in your running app — this padding's too tight, that heading wants a heavier
|
|
21
|
-
weight, those cards need more radius at `lg`. Two bad options:
|
|
22
|
-
|
|
23
|
-
1. **Dig into the code** yourself for a one-line change, or
|
|
24
|
-
2. **Burn agent tokens** describing it in prose — *"on the pricing page, the middle card's button…"* — and hope the agent finds the right element.
|
|
25
|
-
|
|
26
|
-
**uivisor** is a third option. Turn it on, **click the element, nudge it with your mouse**, and it hands you a
|
|
27
|
-
copy-paste instruction that pins the **exact file & line**, the **styling mechanism**, the **breakpoint**, and
|
|
28
|
-
**what to change** — so your agent makes the edit in one shot. uivisor itself **never writes to your source**;
|
|
29
|
-
your tweaks are throwaway inline overrides in the browser.
|
|
14
|
+
Dev-only инструмент для React / Next.js / Vite. Кликни элемент в работающем приложении, поправь его мышкой — панель показывает текущие стили, твои правки подсвечены зелёным. Нажми **Copy prompt for agent** — получишь промпт с `file:line:col`, механизмом стилей и брейкпоинтом, готовый для Claude Code / Cursor.
|
|
30
15
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Click a button, bump its padding and color, hit **Copy prompt for agent**, and you get:
|
|
34
|
-
|
|
35
|
-
```md
|
|
36
|
-
# uivisor — apply these UI tweaks (2 changes across 1 element)
|
|
37
|
-
|
|
38
|
-
## 1. <button> "Get started" — src/components/PricingCard.tsx:26:7
|
|
39
|
-
- Identify by: component <PricingCard>, data-testid="buy-pro", selector `button[data-testid="buy-pro"]`
|
|
40
|
-
- Styling: tailwind (current classes: `mt-6 w-full rounded-md px-4 py-2 bg-indigo-600 text-white`)
|
|
41
|
-
- At lg breakpoint (≥1024px):
|
|
42
|
-
- padding: 16px → 24px → `lg:p-6`
|
|
43
|
-
- background-color: rgb(79,70,229) → #16a34a → `lg:bg-[#16a34a]`
|
|
44
|
-
|
|
45
|
-
### Rules
|
|
46
|
-
- Edit the EXISTING className/styles. Do NOT add inline styles or duplicate the component.
|
|
47
|
-
- Scope each change to its breakpoint with a responsive variant (e.g. `lg:`).
|
|
48
|
-
- Confirm the element by its source location, text and data-testid before editing.
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Paste that into Claude Code / Cursor / whatever — done. No more *"page 55, that thing"*.
|
|
16
|
+
В исходники не пишет. Правки — временные inline-оверрайды в браузере, пропадают при reload.
|
|
52
17
|
|
|
53
18
|
---
|
|
54
19
|
|
|
55
|
-
##
|
|
56
|
-
|
|
57
|
-
> uivisor runs **only in dev** (`apply: 'serve'` / gated to `next dev`). It is **physically absent from your
|
|
58
|
-
> production build.**
|
|
59
|
-
|
|
60
|
-
It isn't on npm yet, so for a real project link it locally (rebuild + restart picks up changes — no reinstall):
|
|
20
|
+
## Установка
|
|
61
21
|
|
|
62
22
|
```bash
|
|
63
|
-
|
|
64
|
-
npm install && npm run build
|
|
65
|
-
|
|
66
|
-
# in YOUR project
|
|
67
|
-
npm i -D file:/absolute/path/to/uivisor
|
|
23
|
+
npm i -D uivisor
|
|
68
24
|
```
|
|
69
25
|
|
|
70
26
|
### Vite + React
|
|
@@ -76,29 +32,29 @@ import uivisor from 'uivisor/vite'
|
|
|
76
32
|
import react from '@vitejs/plugin-react'
|
|
77
33
|
|
|
78
34
|
export default defineConfig({
|
|
79
|
-
plugins: [uivisor(), react()], //
|
|
35
|
+
plugins: [uivisor(), react()], // uivisor() — до react()
|
|
80
36
|
})
|
|
81
37
|
```
|
|
82
38
|
|
|
39
|
+
Запусти dev-сервер и нажми **`Alt`+`U`**.
|
|
40
|
+
|
|
83
41
|
### Next.js (App Router, Next 13–16)
|
|
84
42
|
|
|
85
|
-
**1.
|
|
43
|
+
**1. Оберни конфиг:**
|
|
86
44
|
|
|
87
45
|
```ts
|
|
88
46
|
// next.config.ts
|
|
89
47
|
import { withUivisor } from 'uivisor/next'
|
|
90
|
-
|
|
91
|
-
const nextConfig = { reactStrictMode: true }
|
|
92
|
-
|
|
93
|
-
export default withUivisor(nextConfig)
|
|
48
|
+
export default withUivisor({ reactStrictMode: true })
|
|
94
49
|
```
|
|
50
|
+
|
|
95
51
|
```js
|
|
96
52
|
// next.config.js (CommonJS)
|
|
97
53
|
const { withUivisor } = require('uivisor/next')
|
|
98
54
|
module.exports = withUivisor({ reactStrictMode: true })
|
|
99
55
|
```
|
|
100
56
|
|
|
101
|
-
**2.
|
|
57
|
+
**2. Добавь оверлей в корневой layout:**
|
|
102
58
|
|
|
103
59
|
```tsx
|
|
104
60
|
// app/layout.tsx
|
|
@@ -109,90 +65,85 @@ export default function RootLayout({ children }) {
|
|
|
109
65
|
}
|
|
110
66
|
```
|
|
111
67
|
|
|
112
|
-
**3.
|
|
68
|
+
**3. Запусти `next dev` и нажми `Alt`+`U`.**
|
|
113
69
|
|
|
114
|
-
|
|
70
|
+
Работает под обоими бандлерами:
|
|
71
|
+
|
|
72
|
+
| Команда | Оверлей | Точный `file:line` |
|
|
115
73
|
|---|---|---|
|
|
116
|
-
| `next dev
|
|
117
|
-
| `next dev`
|
|
74
|
+
| `next dev` (Turbopack, по умолчанию в Next 15/16) | ✅ | ✅ |
|
|
75
|
+
| `next dev --webpack` | ✅ | ✅ |
|
|
118
76
|
|
|
119
|
-
>
|
|
120
|
-
>
|
|
121
|
-
> `
|
|
122
|
-
> Turbopack loader: `withUivisor(config, { turbopack: true })`. Everything is **dev-only** — nothing reaches
|
|
123
|
-
> production builds.
|
|
77
|
+
> Чтобы отключить source-mapping под Turbopack: `withUivisor(config, { turbopack: false })` — оверлей продолжит работать, `file:line` доступен через `next dev --webpack`.
|
|
78
|
+
>
|
|
79
|
+
> Под Turbopack ставь uivisor **из npm** (`npm i -D uivisor`). Локальный `file:`-линк (`file:../uivisor`) Turbopack не резолвит для сабпасов вроде `uivisor/next/overlay` — будет `Module not found`. С webpack `file:`-линк работает.
|
|
124
80
|
|
|
125
|
-
|
|
81
|
+
---
|
|
126
82
|
|
|
127
|
-
|
|
128
|
-
dev server**. No reinstall. (For Next, clear `.next/` if HMR doesn't pick it up.)
|
|
83
|
+
## Работа с панелью
|
|
129
84
|
|
|
130
|
-
|
|
85
|
+
**`Alt`+`U`** — включить/выключить · **`Esc`** — снять выделение · **◎** — кнопка справа снизу.
|
|
131
86
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
3. **
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
- **
|
|
141
|
-
|
|
142
|
-
4. **Screen / breakpoint** — click `md` / `lg` / … and the app loads in a **virtual screen at that width**
|
|
143
|
-
(real CSS media queries reflow); drag the frame edge to fine-tune. Only your project's **real breakpoints**
|
|
144
|
-
are shown. Edits are scoped to the chosen breakpoint (`lg:p-6`). `Live` = your real window.
|
|
145
|
-
5. **Apply changes to** — pick the edit target:
|
|
146
|
-
- **All N like this** — when the element is a repeated sibling (same component/source, e.g. 3 cards), the
|
|
147
|
-
change previews on *all* of them and the prompt tells the agent to edit the shared component/source.
|
|
148
|
-
- **Only this one** · an existing **`.class`** · or **a new class you name** (agent creates it, leaves the rest).
|
|
149
|
-
6. **Copy prompt for agent** (or **Copy JSON** for the machine-readable spec).
|
|
150
|
-
|
|
151
|
-
Nothing is written to disk — tweaks live in the browser and vanish on reload.
|
|
87
|
+
1. **Кликни любой элемент.** Панель подтягивает его текущие стили: значения из браузера горят белым, правки в uivisor — зелёным.
|
|
88
|
+
2. **Правь:**
|
|
89
|
+
- Padding / Margin / Radius — одно поле на все стороны; кнопка **▦** раскрывает по отдельности.
|
|
90
|
+
- Иконка слева от числа (↔) — тяни, значение меняется вживую.
|
|
91
|
+
- Line-height и letter-spacing — переключатель единиц px / % / em.
|
|
92
|
+
3. **Screen / breakpoint** — клик на `md` / `lg` / … загружает приложение в виртуальный экран этой ширины (реальные медиа-запросы перестраиваются). В баре — только брейкпоинты твоего проекта. `Live` — реальное окно.
|
|
93
|
+
4. **Apply changes to** — куда применить правку:
|
|
94
|
+
- **All N like this** — если компонент повторяется N раз, превью и промпт применяются ко всем; агент правит общий компонент, а не `nth-child`.
|
|
95
|
+
- **Only this one** / существующий `.class` / новый класс с именем.
|
|
96
|
+
5. **Copy prompt for agent** — промпт в буфер. **Copy JSON** — машиночитаемый спек.
|
|
152
97
|
|
|
153
98
|
---
|
|
154
99
|
|
|
155
|
-
##
|
|
100
|
+
## Промпт для агента
|
|
101
|
+
|
|
102
|
+
```md
|
|
103
|
+
# uivisor — apply these UI tweaks (2 changes across 1 element)
|
|
104
|
+
|
|
105
|
+
## 1. <button> "Get started" — src/components/PricingCard.tsx:26:7
|
|
106
|
+
- Identify by: component <PricingCard>, data-testid="buy-pro"
|
|
107
|
+
- Styling: tailwind (current classes: `mt-6 w-full rounded-md px-4 py-2 bg-indigo-600 text-white`)
|
|
108
|
+
- At lg breakpoint (≥1024px):
|
|
109
|
+
- padding: 16px → 24px → `lg:p-6`
|
|
110
|
+
- background-color: #4f46e5 → #16a34a → `lg:bg-[#16a34a]`
|
|
111
|
+
|
|
112
|
+
### Rules
|
|
113
|
+
- Edit the EXISTING className/styles. Do NOT add inline styles or duplicate the component.
|
|
114
|
+
- Scope each change to its breakpoint with a responsive variant (e.g. `lg:`).
|
|
115
|
+
```
|
|
156
116
|
|
|
157
|
-
|
|
158
|
-
receive a uivisor prompt:
|
|
117
|
+
Инструкции агенту:
|
|
159
118
|
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
-
|
|
164
|
-
- **Respect the target** — `All N like this` means edit the shared component/class so every instance updates;
|
|
165
|
-
`new class` means create it and leave existing classes untouched; a positional `nth-of-type` selector is a
|
|
166
|
-
last-resort locator, never the thing to hard-code against.
|
|
119
|
+
- Иди по `file:line:col` — главный якорь.
|
|
120
|
+
- Правь существующий механизм стилей (`tailwind` / `css-modules` / `styled-components` / `inline`) — не добавляй inline и не дублируй компонент.
|
|
121
|
+
- Отдавай responsive-вариант под нужный брейкпоинт.
|
|
122
|
+
- `All N like this` — правь общий компонент/класс, не `nth-child`.
|
|
167
123
|
|
|
168
124
|
---
|
|
169
125
|
|
|
170
|
-
##
|
|
126
|
+
## Как это устроено
|
|
171
127
|
|
|
172
|
-
- **Source mapping** —
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
- **Breakpoints** — detected from the `@media` rules in your CSS, so the bar shows *your* breakpoints.
|
|
178
|
-
- **Responsive preview** — the app is loaded in a resizable iframe so real media queries reflow; the inspector
|
|
179
|
-
operates inside it.
|
|
128
|
+
- **Source mapping** — dev-only Babel/loader вешает `data-uiv-src="file:line:col"` на host-JSX. Vite — плагином `enforce: 'pre'`, Next — webpack pre-loader и `turbopack.rules` (SWC сохраняется).
|
|
129
|
+
- **Идентичность** — file:line → имя компонента → `data-testid` / id / селектор / текст.
|
|
130
|
+
- **Токены** — маппит px в Tailwind-токены (`24px → p-6`, `leading-normal`); arbitrary-значения как фолбэк.
|
|
131
|
+
- **Брейкпоинты** — детектятся из `@media`-правил твоего CSS.
|
|
132
|
+
- **Responsive-превью** — приложение в ресайзимом iframe, медиа-запросы работают по-настоящему.
|
|
180
133
|
|
|
181
|
-
##
|
|
134
|
+
## Ограничения
|
|
182
135
|
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
CSS-module / styled rule to edit).
|
|
136
|
+
- Только dev-сборки — прод вырезает source-инфо.
|
|
137
|
+
- Source mapping — React. DOM/CSS/брейкпоинты — фреймворк-агностично.
|
|
138
|
+
- Tailwind — px→токены. Другие стеки — сырые px + указание на CSS-правило.
|
|
187
139
|
|
|
188
|
-
##
|
|
140
|
+
## Разработка
|
|
189
141
|
|
|
190
142
|
```bash
|
|
191
143
|
npm install
|
|
192
|
-
npm run build
|
|
193
|
-
npm test
|
|
194
|
-
npm run demo
|
|
195
|
-
# demo-next/ # Next.js (app router) playground on :5181
|
|
144
|
+
npm run build # tsup → dist/{vite,babel,overlay,next}
|
|
145
|
+
npm test # vitest
|
|
146
|
+
npm run demo # Vite + React на :5180
|
|
196
147
|
```
|
|
197
148
|
|
|
198
149
|
<div align="center"><sub>MIT · dev-only · prompt-only</sub></div>
|
package/dist/next/index.cjs
CHANGED
|
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
8
|
var __export = (target, all) => {
|
|
12
9
|
for (var name in all)
|
|
13
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -30,349 +27,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
27
|
));
|
|
31
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
29
|
|
|
33
|
-
// node_modules/next/package.json
|
|
34
|
-
var require_package = __commonJS({
|
|
35
|
-
"node_modules/next/package.json"(exports2, module2) {
|
|
36
|
-
module2.exports = {
|
|
37
|
-
name: "next",
|
|
38
|
-
version: "14.2.15",
|
|
39
|
-
description: "The React Framework",
|
|
40
|
-
main: "./dist/server/next.js",
|
|
41
|
-
license: "MIT",
|
|
42
|
-
repository: "vercel/next.js",
|
|
43
|
-
bugs: "https://github.com/vercel/next.js/issues",
|
|
44
|
-
homepage: "https://nextjs.org",
|
|
45
|
-
types: "index.d.ts",
|
|
46
|
-
files: [
|
|
47
|
-
"dist",
|
|
48
|
-
"app.js",
|
|
49
|
-
"app.d.ts",
|
|
50
|
-
"babel.js",
|
|
51
|
-
"babel.d.ts",
|
|
52
|
-
"client.js",
|
|
53
|
-
"client.d.ts",
|
|
54
|
-
"compat",
|
|
55
|
-
"cache.js",
|
|
56
|
-
"cache.d.ts",
|
|
57
|
-
"config.js",
|
|
58
|
-
"config.d.ts",
|
|
59
|
-
"constants.js",
|
|
60
|
-
"constants.d.ts",
|
|
61
|
-
"document.js",
|
|
62
|
-
"document.d.ts",
|
|
63
|
-
"dynamic.js",
|
|
64
|
-
"dynamic.d.ts",
|
|
65
|
-
"error.js",
|
|
66
|
-
"error.d.ts",
|
|
67
|
-
"future",
|
|
68
|
-
"legacy",
|
|
69
|
-
"script.js",
|
|
70
|
-
"script.d.ts",
|
|
71
|
-
"server.js",
|
|
72
|
-
"server.d.ts",
|
|
73
|
-
"head.js",
|
|
74
|
-
"head.d.ts",
|
|
75
|
-
"image.js",
|
|
76
|
-
"image.d.ts",
|
|
77
|
-
"link.js",
|
|
78
|
-
"link.d.ts",
|
|
79
|
-
"router.js",
|
|
80
|
-
"router.d.ts",
|
|
81
|
-
"jest.js",
|
|
82
|
-
"jest.d.ts",
|
|
83
|
-
"amp.js",
|
|
84
|
-
"amp.d.ts",
|
|
85
|
-
"og.js",
|
|
86
|
-
"og.d.ts",
|
|
87
|
-
"index.d.ts",
|
|
88
|
-
"types/index.d.ts",
|
|
89
|
-
"types/global.d.ts",
|
|
90
|
-
"types/compiled.d.ts",
|
|
91
|
-
"image-types/global.d.ts",
|
|
92
|
-
"navigation-types/navigation.d.ts",
|
|
93
|
-
"navigation-types/compat/navigation.d.ts",
|
|
94
|
-
"font",
|
|
95
|
-
"navigation.js",
|
|
96
|
-
"navigation.d.ts",
|
|
97
|
-
"headers.js",
|
|
98
|
-
"headers.d.ts",
|
|
99
|
-
"navigation-types",
|
|
100
|
-
"web-vitals.js",
|
|
101
|
-
"web-vitals.d.ts",
|
|
102
|
-
"experimental/testmode/playwright.js",
|
|
103
|
-
"experimental/testmode/playwright.d.ts",
|
|
104
|
-
"experimental/testmode/playwright/msw.js",
|
|
105
|
-
"experimental/testmode/playwright/msw.d.ts",
|
|
106
|
-
"experimental/testmode/proxy.js",
|
|
107
|
-
"experimental/testmode/proxy.d.ts"
|
|
108
|
-
],
|
|
109
|
-
bin: {
|
|
110
|
-
next: "./dist/bin/next"
|
|
111
|
-
},
|
|
112
|
-
scripts: {
|
|
113
|
-
dev: "taskr",
|
|
114
|
-
release: "taskr release",
|
|
115
|
-
build: "pnpm release",
|
|
116
|
-
prepublishOnly: "cd ../../ && turbo run build",
|
|
117
|
-
types: "tsc --declaration --emitDeclarationOnly --stripInternal --declarationDir dist",
|
|
118
|
-
typescript: "tsec --noEmit",
|
|
119
|
-
"ncc-compiled": "ncc cache clean && taskr ncc"
|
|
120
|
-
},
|
|
121
|
-
taskr: {
|
|
122
|
-
requires: [
|
|
123
|
-
"./taskfile-webpack.js",
|
|
124
|
-
"./taskfile-ncc.js",
|
|
125
|
-
"./taskfile-swc.js",
|
|
126
|
-
"./taskfile-watch.js"
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
dependencies: {
|
|
130
|
-
"@next/env": "14.2.15",
|
|
131
|
-
"@swc/helpers": "0.5.5",
|
|
132
|
-
busboy: "1.6.0",
|
|
133
|
-
"caniuse-lite": "^1.0.30001579",
|
|
134
|
-
"graceful-fs": "^4.2.11",
|
|
135
|
-
postcss: "8.4.31",
|
|
136
|
-
"styled-jsx": "5.1.1"
|
|
137
|
-
},
|
|
138
|
-
peerDependencies: {
|
|
139
|
-
"@opentelemetry/api": "^1.1.0",
|
|
140
|
-
"@playwright/test": "^1.41.2",
|
|
141
|
-
react: "^18.2.0",
|
|
142
|
-
"react-dom": "^18.2.0",
|
|
143
|
-
sass: "^1.3.0"
|
|
144
|
-
},
|
|
145
|
-
peerDependenciesMeta: {
|
|
146
|
-
sass: {
|
|
147
|
-
optional: true
|
|
148
|
-
},
|
|
149
|
-
"@opentelemetry/api": {
|
|
150
|
-
optional: true
|
|
151
|
-
},
|
|
152
|
-
"@playwright/test": {
|
|
153
|
-
optional: true
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
devDependencies: {
|
|
157
|
-
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
158
|
-
"@babel/code-frame": "7.22.5",
|
|
159
|
-
"@babel/core": "7.22.5",
|
|
160
|
-
"@babel/eslint-parser": "7.22.5",
|
|
161
|
-
"@babel/generator": "7.22.5",
|
|
162
|
-
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
163
|
-
"@babel/plugin-proposal-export-namespace-from": "7.18.9",
|
|
164
|
-
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
165
|
-
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
166
|
-
"@babel/plugin-syntax-bigint": "7.8.3",
|
|
167
|
-
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
168
|
-
"@babel/plugin-syntax-import-assertions": "7.22.5",
|
|
169
|
-
"@babel/plugin-syntax-jsx": "7.22.5",
|
|
170
|
-
"@babel/plugin-transform-modules-commonjs": "7.22.5",
|
|
171
|
-
"@babel/plugin-transform-runtime": "7.22.5",
|
|
172
|
-
"@babel/preset-env": "7.22.5",
|
|
173
|
-
"@babel/preset-react": "7.22.5",
|
|
174
|
-
"@babel/preset-typescript": "7.22.5",
|
|
175
|
-
"@babel/runtime": "7.22.5",
|
|
176
|
-
"@babel/traverse": "7.22.5",
|
|
177
|
-
"@babel/types": "7.22.5",
|
|
178
|
-
"@capsizecss/metrics": "2.2.0",
|
|
179
|
-
"@edge-runtime/cookies": "5.0.0",
|
|
180
|
-
"@edge-runtime/ponyfill": "3.0.0",
|
|
181
|
-
"@edge-runtime/primitives": "5.0.0",
|
|
182
|
-
"@hapi/accept": "5.0.2",
|
|
183
|
-
"@jest/transform": "29.5.0",
|
|
184
|
-
"@jest/types": "29.5.0",
|
|
185
|
-
"@mswjs/interceptors": "0.23.0",
|
|
186
|
-
"@napi-rs/triples": "1.2.0",
|
|
187
|
-
"@next/polyfill-module": "14.2.15",
|
|
188
|
-
"@next/polyfill-nomodule": "14.2.15",
|
|
189
|
-
"@next/react-refresh-utils": "14.2.15",
|
|
190
|
-
"@next/swc": "14.2.15",
|
|
191
|
-
"@opentelemetry/api": "1.6.0",
|
|
192
|
-
"@playwright/test": "1.41.2",
|
|
193
|
-
"@taskr/clear": "1.1.0",
|
|
194
|
-
"@taskr/esnext": "1.1.0",
|
|
195
|
-
"@types/amphtml-validator": "1.0.0",
|
|
196
|
-
"@types/babel__code-frame": "7.0.2",
|
|
197
|
-
"@types/babel__core": "7.1.12",
|
|
198
|
-
"@types/babel__generator": "7.6.2",
|
|
199
|
-
"@types/babel__template": "7.4.0",
|
|
200
|
-
"@types/babel__traverse": "7.11.0",
|
|
201
|
-
"@types/bytes": "3.1.1",
|
|
202
|
-
"@types/ci-info": "2.0.0",
|
|
203
|
-
"@types/compression": "0.0.36",
|
|
204
|
-
"@types/content-disposition": "0.5.4",
|
|
205
|
-
"@types/content-type": "1.1.3",
|
|
206
|
-
"@types/cookie": "0.3.3",
|
|
207
|
-
"@types/cross-spawn": "6.0.0",
|
|
208
|
-
"@types/debug": "4.1.5",
|
|
209
|
-
"@types/express-serve-static-core": "4.17.33",
|
|
210
|
-
"@types/fresh": "0.5.0",
|
|
211
|
-
"@types/glob": "7.1.1",
|
|
212
|
-
"@types/graceful-fs": "4.1.9",
|
|
213
|
-
"@types/jsonwebtoken": "9.0.0",
|
|
214
|
-
"@types/lodash": "4.14.198",
|
|
215
|
-
"@types/lodash.curry": "4.1.6",
|
|
216
|
-
"@types/lru-cache": "5.1.0",
|
|
217
|
-
"@types/path-to-regexp": "1.7.0",
|
|
218
|
-
"@types/picomatch": "2.3.3",
|
|
219
|
-
"@types/platform": "1.3.4",
|
|
220
|
-
"@types/react": "18.2.37",
|
|
221
|
-
"@types/react-dom": "18.2.15",
|
|
222
|
-
"@types/react-is": "17.0.3",
|
|
223
|
-
"@types/semver": "7.3.1",
|
|
224
|
-
"@types/send": "0.14.4",
|
|
225
|
-
"@types/shell-quote": "1.7.1",
|
|
226
|
-
"@types/tar": "6.1.5",
|
|
227
|
-
"@types/text-table": "0.2.1",
|
|
228
|
-
"@types/ua-parser-js": "0.7.36",
|
|
229
|
-
"@types/uuid": "8.3.1",
|
|
230
|
-
"@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5",
|
|
231
|
-
"@types/ws": "8.2.0",
|
|
232
|
-
"@vercel/ncc": "0.34.0",
|
|
233
|
-
"@vercel/nft": "0.26.4",
|
|
234
|
-
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240417.2",
|
|
235
|
-
acorn: "8.11.3",
|
|
236
|
-
"amphtml-validator": "1.0.35",
|
|
237
|
-
anser: "1.4.9",
|
|
238
|
-
arg: "4.1.0",
|
|
239
|
-
assert: "2.0.0",
|
|
240
|
-
"async-retry": "1.2.3",
|
|
241
|
-
"async-sema": "3.0.0",
|
|
242
|
-
"babel-plugin-transform-define": "2.0.0",
|
|
243
|
-
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
244
|
-
"browserify-zlib": "0.2.0",
|
|
245
|
-
browserslist: "4.22.2",
|
|
246
|
-
buffer: "5.6.0",
|
|
247
|
-
bytes: "3.1.1",
|
|
248
|
-
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
|
|
249
|
-
"cli-select": "1.1.2",
|
|
250
|
-
"client-only": "0.0.1",
|
|
251
|
-
commander: "12.0.0",
|
|
252
|
-
"comment-json": "3.0.3",
|
|
253
|
-
compression: "1.7.4",
|
|
254
|
-
conf: "5.0.0",
|
|
255
|
-
"constants-browserify": "1.0.0",
|
|
256
|
-
"content-disposition": "0.5.3",
|
|
257
|
-
"content-type": "1.0.4",
|
|
258
|
-
cookie: "0.4.1",
|
|
259
|
-
"cross-spawn": "7.0.3",
|
|
260
|
-
"crypto-browserify": "3.12.0",
|
|
261
|
-
"css.escape": "1.5.1",
|
|
262
|
-
"cssnano-preset-default": "5.2.14",
|
|
263
|
-
"data-uri-to-buffer": "3.0.1",
|
|
264
|
-
debug: "4.1.1",
|
|
265
|
-
devalue: "2.0.1",
|
|
266
|
-
"domain-browser": "4.19.0",
|
|
267
|
-
"edge-runtime": "3.0.0",
|
|
268
|
-
events: "3.3.0",
|
|
269
|
-
"find-up": "4.1.0",
|
|
270
|
-
fresh: "0.5.2",
|
|
271
|
-
"get-orientation": "1.1.2",
|
|
272
|
-
glob: "7.1.7",
|
|
273
|
-
"gzip-size": "5.1.1",
|
|
274
|
-
"http-proxy": "1.18.1",
|
|
275
|
-
"http-proxy-agent": "5.0.0",
|
|
276
|
-
"https-browserify": "1.0.0",
|
|
277
|
-
"https-proxy-agent": "5.0.1",
|
|
278
|
-
"icss-utils": "5.1.0",
|
|
279
|
-
"ignore-loader": "0.1.2",
|
|
280
|
-
"image-size": "1.0.0",
|
|
281
|
-
"is-docker": "2.0.0",
|
|
282
|
-
"is-wsl": "2.2.0",
|
|
283
|
-
"jest-worker": "27.5.1",
|
|
284
|
-
json5: "2.2.3",
|
|
285
|
-
jsonwebtoken: "9.0.0",
|
|
286
|
-
"loader-runner": "4.3.0",
|
|
287
|
-
"loader-utils2": "npm:loader-utils@2.0.0",
|
|
288
|
-
"loader-utils3": "npm:loader-utils@3.1.3",
|
|
289
|
-
"lodash.curry": "4.1.1",
|
|
290
|
-
"lru-cache": "5.1.1",
|
|
291
|
-
"mini-css-extract-plugin": "2.4.4",
|
|
292
|
-
msw: "1.3.0",
|
|
293
|
-
nanoid: "3.1.32",
|
|
294
|
-
"native-url": "0.3.4",
|
|
295
|
-
"neo-async": "2.6.1",
|
|
296
|
-
"node-html-parser": "5.3.3",
|
|
297
|
-
ora: "4.0.4",
|
|
298
|
-
"os-browserify": "0.3.0",
|
|
299
|
-
"p-limit": "3.1.0",
|
|
300
|
-
"path-browserify": "1.0.1",
|
|
301
|
-
"path-to-regexp": "6.1.0",
|
|
302
|
-
picomatch: "4.0.1",
|
|
303
|
-
platform: "1.3.6",
|
|
304
|
-
"postcss-flexbugs-fixes": "5.0.2",
|
|
305
|
-
"postcss-modules-extract-imports": "3.0.0",
|
|
306
|
-
"postcss-modules-local-by-default": "4.0.4",
|
|
307
|
-
"postcss-modules-scope": "3.0.0",
|
|
308
|
-
"postcss-modules-values": "4.0.0",
|
|
309
|
-
"postcss-preset-env": "7.4.3",
|
|
310
|
-
"postcss-safe-parser": "6.0.0",
|
|
311
|
-
"postcss-scss": "4.0.3",
|
|
312
|
-
"postcss-value-parser": "4.2.0",
|
|
313
|
-
process: "0.11.10",
|
|
314
|
-
punycode: "2.1.1",
|
|
315
|
-
"querystring-es3": "0.2.1",
|
|
316
|
-
"raw-body": "2.4.1",
|
|
317
|
-
"react-is": "18.2.0",
|
|
318
|
-
"react-refresh": "0.12.0",
|
|
319
|
-
"regenerator-runtime": "0.13.4",
|
|
320
|
-
"sass-loader": "12.4.0",
|
|
321
|
-
"schema-utils2": "npm:schema-utils@2.7.1",
|
|
322
|
-
"schema-utils3": "npm:schema-utils@3.0.0",
|
|
323
|
-
semver: "7.3.2",
|
|
324
|
-
send: "0.17.1",
|
|
325
|
-
"server-only": "0.0.1",
|
|
326
|
-
setimmediate: "1.0.5",
|
|
327
|
-
"shell-quote": "1.7.3",
|
|
328
|
-
"source-map": "0.6.1",
|
|
329
|
-
"source-map08": "npm:source-map@0.8.0-beta.0",
|
|
330
|
-
"stacktrace-parser": "0.1.10",
|
|
331
|
-
"stream-browserify": "3.0.0",
|
|
332
|
-
"stream-http": "3.1.1",
|
|
333
|
-
"strict-event-emitter": "0.5.0",
|
|
334
|
-
"string-hash": "1.1.3",
|
|
335
|
-
string_decoder: "1.3.0",
|
|
336
|
-
"strip-ansi": "6.0.0",
|
|
337
|
-
superstruct: "1.0.3",
|
|
338
|
-
tar: "6.1.15",
|
|
339
|
-
taskr: "1.1.0",
|
|
340
|
-
terser: "5.27.0",
|
|
341
|
-
"terser-webpack-plugin": "5.3.9",
|
|
342
|
-
"text-table": "0.2.0",
|
|
343
|
-
"timers-browserify": "2.0.12",
|
|
344
|
-
"tty-browserify": "0.0.1",
|
|
345
|
-
"ua-parser-js": "1.0.35",
|
|
346
|
-
unistore: "3.4.1",
|
|
347
|
-
util: "0.12.4",
|
|
348
|
-
uuid: "8.3.2",
|
|
349
|
-
"vm-browserify": "1.1.2",
|
|
350
|
-
watchpack: "2.4.0",
|
|
351
|
-
"web-vitals": "3.0.0",
|
|
352
|
-
webpack: "5.90.0",
|
|
353
|
-
"webpack-sources1": "npm:webpack-sources@1.4.3",
|
|
354
|
-
"webpack-sources3": "npm:webpack-sources@3.2.3",
|
|
355
|
-
ws: "8.2.3",
|
|
356
|
-
zod: "3.22.3"
|
|
357
|
-
},
|
|
358
|
-
engines: {
|
|
359
|
-
node: ">=18.17.0"
|
|
360
|
-
},
|
|
361
|
-
optionalDependencies: {
|
|
362
|
-
"@next/swc-darwin-arm64": "14.2.15",
|
|
363
|
-
"@next/swc-darwin-x64": "14.2.15",
|
|
364
|
-
"@next/swc-linux-arm64-gnu": "14.2.15",
|
|
365
|
-
"@next/swc-linux-arm64-musl": "14.2.15",
|
|
366
|
-
"@next/swc-linux-x64-gnu": "14.2.15",
|
|
367
|
-
"@next/swc-linux-x64-musl": "14.2.15",
|
|
368
|
-
"@next/swc-win32-arm64-msvc": "14.2.15",
|
|
369
|
-
"@next/swc-win32-ia32-msvc": "14.2.15",
|
|
370
|
-
"@next/swc-win32-x64-msvc": "14.2.15"
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
|
|
376
30
|
// src/next/index.ts
|
|
377
31
|
var next_exports = {};
|
|
378
32
|
__export(next_exports, {
|
|
@@ -381,11 +35,13 @@ __export(next_exports, {
|
|
|
381
35
|
});
|
|
382
36
|
module.exports = __toCommonJS(next_exports);
|
|
383
37
|
var path = __toESM(require("path"), 1);
|
|
38
|
+
var import_node_module = require("module");
|
|
384
39
|
var isProd = () => process.env.NODE_ENV === "production";
|
|
385
40
|
var isTurbopack = () => !!process.env.TURBOPACK || !!process.env.TURBOPACK_DEV;
|
|
386
41
|
function nextMajor() {
|
|
387
42
|
try {
|
|
388
|
-
|
|
43
|
+
const req = (0, import_node_module.createRequire)(path.join(process.cwd(), "package.json"));
|
|
44
|
+
return parseInt(req("next/package.json").version, 10) || 0;
|
|
389
45
|
} catch {
|
|
390
46
|
return 0;
|
|
391
47
|
}
|
package/dist/next/index.d.cts
CHANGED
package/dist/next/index.d.ts
CHANGED
package/dist/next/index.js
CHANGED
|
@@ -1,351 +1,3 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
// node_modules/next/package.json
|
|
7
|
-
var require_package = __commonJS({
|
|
8
|
-
"node_modules/next/package.json"(exports, module) {
|
|
9
|
-
module.exports = {
|
|
10
|
-
name: "next",
|
|
11
|
-
version: "14.2.15",
|
|
12
|
-
description: "The React Framework",
|
|
13
|
-
main: "./dist/server/next.js",
|
|
14
|
-
license: "MIT",
|
|
15
|
-
repository: "vercel/next.js",
|
|
16
|
-
bugs: "https://github.com/vercel/next.js/issues",
|
|
17
|
-
homepage: "https://nextjs.org",
|
|
18
|
-
types: "index.d.ts",
|
|
19
|
-
files: [
|
|
20
|
-
"dist",
|
|
21
|
-
"app.js",
|
|
22
|
-
"app.d.ts",
|
|
23
|
-
"babel.js",
|
|
24
|
-
"babel.d.ts",
|
|
25
|
-
"client.js",
|
|
26
|
-
"client.d.ts",
|
|
27
|
-
"compat",
|
|
28
|
-
"cache.js",
|
|
29
|
-
"cache.d.ts",
|
|
30
|
-
"config.js",
|
|
31
|
-
"config.d.ts",
|
|
32
|
-
"constants.js",
|
|
33
|
-
"constants.d.ts",
|
|
34
|
-
"document.js",
|
|
35
|
-
"document.d.ts",
|
|
36
|
-
"dynamic.js",
|
|
37
|
-
"dynamic.d.ts",
|
|
38
|
-
"error.js",
|
|
39
|
-
"error.d.ts",
|
|
40
|
-
"future",
|
|
41
|
-
"legacy",
|
|
42
|
-
"script.js",
|
|
43
|
-
"script.d.ts",
|
|
44
|
-
"server.js",
|
|
45
|
-
"server.d.ts",
|
|
46
|
-
"head.js",
|
|
47
|
-
"head.d.ts",
|
|
48
|
-
"image.js",
|
|
49
|
-
"image.d.ts",
|
|
50
|
-
"link.js",
|
|
51
|
-
"link.d.ts",
|
|
52
|
-
"router.js",
|
|
53
|
-
"router.d.ts",
|
|
54
|
-
"jest.js",
|
|
55
|
-
"jest.d.ts",
|
|
56
|
-
"amp.js",
|
|
57
|
-
"amp.d.ts",
|
|
58
|
-
"og.js",
|
|
59
|
-
"og.d.ts",
|
|
60
|
-
"index.d.ts",
|
|
61
|
-
"types/index.d.ts",
|
|
62
|
-
"types/global.d.ts",
|
|
63
|
-
"types/compiled.d.ts",
|
|
64
|
-
"image-types/global.d.ts",
|
|
65
|
-
"navigation-types/navigation.d.ts",
|
|
66
|
-
"navigation-types/compat/navigation.d.ts",
|
|
67
|
-
"font",
|
|
68
|
-
"navigation.js",
|
|
69
|
-
"navigation.d.ts",
|
|
70
|
-
"headers.js",
|
|
71
|
-
"headers.d.ts",
|
|
72
|
-
"navigation-types",
|
|
73
|
-
"web-vitals.js",
|
|
74
|
-
"web-vitals.d.ts",
|
|
75
|
-
"experimental/testmode/playwright.js",
|
|
76
|
-
"experimental/testmode/playwright.d.ts",
|
|
77
|
-
"experimental/testmode/playwright/msw.js",
|
|
78
|
-
"experimental/testmode/playwright/msw.d.ts",
|
|
79
|
-
"experimental/testmode/proxy.js",
|
|
80
|
-
"experimental/testmode/proxy.d.ts"
|
|
81
|
-
],
|
|
82
|
-
bin: {
|
|
83
|
-
next: "./dist/bin/next"
|
|
84
|
-
},
|
|
85
|
-
scripts: {
|
|
86
|
-
dev: "taskr",
|
|
87
|
-
release: "taskr release",
|
|
88
|
-
build: "pnpm release",
|
|
89
|
-
prepublishOnly: "cd ../../ && turbo run build",
|
|
90
|
-
types: "tsc --declaration --emitDeclarationOnly --stripInternal --declarationDir dist",
|
|
91
|
-
typescript: "tsec --noEmit",
|
|
92
|
-
"ncc-compiled": "ncc cache clean && taskr ncc"
|
|
93
|
-
},
|
|
94
|
-
taskr: {
|
|
95
|
-
requires: [
|
|
96
|
-
"./taskfile-webpack.js",
|
|
97
|
-
"./taskfile-ncc.js",
|
|
98
|
-
"./taskfile-swc.js",
|
|
99
|
-
"./taskfile-watch.js"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
dependencies: {
|
|
103
|
-
"@next/env": "14.2.15",
|
|
104
|
-
"@swc/helpers": "0.5.5",
|
|
105
|
-
busboy: "1.6.0",
|
|
106
|
-
"caniuse-lite": "^1.0.30001579",
|
|
107
|
-
"graceful-fs": "^4.2.11",
|
|
108
|
-
postcss: "8.4.31",
|
|
109
|
-
"styled-jsx": "5.1.1"
|
|
110
|
-
},
|
|
111
|
-
peerDependencies: {
|
|
112
|
-
"@opentelemetry/api": "^1.1.0",
|
|
113
|
-
"@playwright/test": "^1.41.2",
|
|
114
|
-
react: "^18.2.0",
|
|
115
|
-
"react-dom": "^18.2.0",
|
|
116
|
-
sass: "^1.3.0"
|
|
117
|
-
},
|
|
118
|
-
peerDependenciesMeta: {
|
|
119
|
-
sass: {
|
|
120
|
-
optional: true
|
|
121
|
-
},
|
|
122
|
-
"@opentelemetry/api": {
|
|
123
|
-
optional: true
|
|
124
|
-
},
|
|
125
|
-
"@playwright/test": {
|
|
126
|
-
optional: true
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
devDependencies: {
|
|
130
|
-
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
131
|
-
"@babel/code-frame": "7.22.5",
|
|
132
|
-
"@babel/core": "7.22.5",
|
|
133
|
-
"@babel/eslint-parser": "7.22.5",
|
|
134
|
-
"@babel/generator": "7.22.5",
|
|
135
|
-
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
136
|
-
"@babel/plugin-proposal-export-namespace-from": "7.18.9",
|
|
137
|
-
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
138
|
-
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
139
|
-
"@babel/plugin-syntax-bigint": "7.8.3",
|
|
140
|
-
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
141
|
-
"@babel/plugin-syntax-import-assertions": "7.22.5",
|
|
142
|
-
"@babel/plugin-syntax-jsx": "7.22.5",
|
|
143
|
-
"@babel/plugin-transform-modules-commonjs": "7.22.5",
|
|
144
|
-
"@babel/plugin-transform-runtime": "7.22.5",
|
|
145
|
-
"@babel/preset-env": "7.22.5",
|
|
146
|
-
"@babel/preset-react": "7.22.5",
|
|
147
|
-
"@babel/preset-typescript": "7.22.5",
|
|
148
|
-
"@babel/runtime": "7.22.5",
|
|
149
|
-
"@babel/traverse": "7.22.5",
|
|
150
|
-
"@babel/types": "7.22.5",
|
|
151
|
-
"@capsizecss/metrics": "2.2.0",
|
|
152
|
-
"@edge-runtime/cookies": "5.0.0",
|
|
153
|
-
"@edge-runtime/ponyfill": "3.0.0",
|
|
154
|
-
"@edge-runtime/primitives": "5.0.0",
|
|
155
|
-
"@hapi/accept": "5.0.2",
|
|
156
|
-
"@jest/transform": "29.5.0",
|
|
157
|
-
"@jest/types": "29.5.0",
|
|
158
|
-
"@mswjs/interceptors": "0.23.0",
|
|
159
|
-
"@napi-rs/triples": "1.2.0",
|
|
160
|
-
"@next/polyfill-module": "14.2.15",
|
|
161
|
-
"@next/polyfill-nomodule": "14.2.15",
|
|
162
|
-
"@next/react-refresh-utils": "14.2.15",
|
|
163
|
-
"@next/swc": "14.2.15",
|
|
164
|
-
"@opentelemetry/api": "1.6.0",
|
|
165
|
-
"@playwright/test": "1.41.2",
|
|
166
|
-
"@taskr/clear": "1.1.0",
|
|
167
|
-
"@taskr/esnext": "1.1.0",
|
|
168
|
-
"@types/amphtml-validator": "1.0.0",
|
|
169
|
-
"@types/babel__code-frame": "7.0.2",
|
|
170
|
-
"@types/babel__core": "7.1.12",
|
|
171
|
-
"@types/babel__generator": "7.6.2",
|
|
172
|
-
"@types/babel__template": "7.4.0",
|
|
173
|
-
"@types/babel__traverse": "7.11.0",
|
|
174
|
-
"@types/bytes": "3.1.1",
|
|
175
|
-
"@types/ci-info": "2.0.0",
|
|
176
|
-
"@types/compression": "0.0.36",
|
|
177
|
-
"@types/content-disposition": "0.5.4",
|
|
178
|
-
"@types/content-type": "1.1.3",
|
|
179
|
-
"@types/cookie": "0.3.3",
|
|
180
|
-
"@types/cross-spawn": "6.0.0",
|
|
181
|
-
"@types/debug": "4.1.5",
|
|
182
|
-
"@types/express-serve-static-core": "4.17.33",
|
|
183
|
-
"@types/fresh": "0.5.0",
|
|
184
|
-
"@types/glob": "7.1.1",
|
|
185
|
-
"@types/graceful-fs": "4.1.9",
|
|
186
|
-
"@types/jsonwebtoken": "9.0.0",
|
|
187
|
-
"@types/lodash": "4.14.198",
|
|
188
|
-
"@types/lodash.curry": "4.1.6",
|
|
189
|
-
"@types/lru-cache": "5.1.0",
|
|
190
|
-
"@types/path-to-regexp": "1.7.0",
|
|
191
|
-
"@types/picomatch": "2.3.3",
|
|
192
|
-
"@types/platform": "1.3.4",
|
|
193
|
-
"@types/react": "18.2.37",
|
|
194
|
-
"@types/react-dom": "18.2.15",
|
|
195
|
-
"@types/react-is": "17.0.3",
|
|
196
|
-
"@types/semver": "7.3.1",
|
|
197
|
-
"@types/send": "0.14.4",
|
|
198
|
-
"@types/shell-quote": "1.7.1",
|
|
199
|
-
"@types/tar": "6.1.5",
|
|
200
|
-
"@types/text-table": "0.2.1",
|
|
201
|
-
"@types/ua-parser-js": "0.7.36",
|
|
202
|
-
"@types/uuid": "8.3.1",
|
|
203
|
-
"@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5",
|
|
204
|
-
"@types/ws": "8.2.0",
|
|
205
|
-
"@vercel/ncc": "0.34.0",
|
|
206
|
-
"@vercel/nft": "0.26.4",
|
|
207
|
-
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240417.2",
|
|
208
|
-
acorn: "8.11.3",
|
|
209
|
-
"amphtml-validator": "1.0.35",
|
|
210
|
-
anser: "1.4.9",
|
|
211
|
-
arg: "4.1.0",
|
|
212
|
-
assert: "2.0.0",
|
|
213
|
-
"async-retry": "1.2.3",
|
|
214
|
-
"async-sema": "3.0.0",
|
|
215
|
-
"babel-plugin-transform-define": "2.0.0",
|
|
216
|
-
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
217
|
-
"browserify-zlib": "0.2.0",
|
|
218
|
-
browserslist: "4.22.2",
|
|
219
|
-
buffer: "5.6.0",
|
|
220
|
-
bytes: "3.1.1",
|
|
221
|
-
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
|
|
222
|
-
"cli-select": "1.1.2",
|
|
223
|
-
"client-only": "0.0.1",
|
|
224
|
-
commander: "12.0.0",
|
|
225
|
-
"comment-json": "3.0.3",
|
|
226
|
-
compression: "1.7.4",
|
|
227
|
-
conf: "5.0.0",
|
|
228
|
-
"constants-browserify": "1.0.0",
|
|
229
|
-
"content-disposition": "0.5.3",
|
|
230
|
-
"content-type": "1.0.4",
|
|
231
|
-
cookie: "0.4.1",
|
|
232
|
-
"cross-spawn": "7.0.3",
|
|
233
|
-
"crypto-browserify": "3.12.0",
|
|
234
|
-
"css.escape": "1.5.1",
|
|
235
|
-
"cssnano-preset-default": "5.2.14",
|
|
236
|
-
"data-uri-to-buffer": "3.0.1",
|
|
237
|
-
debug: "4.1.1",
|
|
238
|
-
devalue: "2.0.1",
|
|
239
|
-
"domain-browser": "4.19.0",
|
|
240
|
-
"edge-runtime": "3.0.0",
|
|
241
|
-
events: "3.3.0",
|
|
242
|
-
"find-up": "4.1.0",
|
|
243
|
-
fresh: "0.5.2",
|
|
244
|
-
"get-orientation": "1.1.2",
|
|
245
|
-
glob: "7.1.7",
|
|
246
|
-
"gzip-size": "5.1.1",
|
|
247
|
-
"http-proxy": "1.18.1",
|
|
248
|
-
"http-proxy-agent": "5.0.0",
|
|
249
|
-
"https-browserify": "1.0.0",
|
|
250
|
-
"https-proxy-agent": "5.0.1",
|
|
251
|
-
"icss-utils": "5.1.0",
|
|
252
|
-
"ignore-loader": "0.1.2",
|
|
253
|
-
"image-size": "1.0.0",
|
|
254
|
-
"is-docker": "2.0.0",
|
|
255
|
-
"is-wsl": "2.2.0",
|
|
256
|
-
"jest-worker": "27.5.1",
|
|
257
|
-
json5: "2.2.3",
|
|
258
|
-
jsonwebtoken: "9.0.0",
|
|
259
|
-
"loader-runner": "4.3.0",
|
|
260
|
-
"loader-utils2": "npm:loader-utils@2.0.0",
|
|
261
|
-
"loader-utils3": "npm:loader-utils@3.1.3",
|
|
262
|
-
"lodash.curry": "4.1.1",
|
|
263
|
-
"lru-cache": "5.1.1",
|
|
264
|
-
"mini-css-extract-plugin": "2.4.4",
|
|
265
|
-
msw: "1.3.0",
|
|
266
|
-
nanoid: "3.1.32",
|
|
267
|
-
"native-url": "0.3.4",
|
|
268
|
-
"neo-async": "2.6.1",
|
|
269
|
-
"node-html-parser": "5.3.3",
|
|
270
|
-
ora: "4.0.4",
|
|
271
|
-
"os-browserify": "0.3.0",
|
|
272
|
-
"p-limit": "3.1.0",
|
|
273
|
-
"path-browserify": "1.0.1",
|
|
274
|
-
"path-to-regexp": "6.1.0",
|
|
275
|
-
picomatch: "4.0.1",
|
|
276
|
-
platform: "1.3.6",
|
|
277
|
-
"postcss-flexbugs-fixes": "5.0.2",
|
|
278
|
-
"postcss-modules-extract-imports": "3.0.0",
|
|
279
|
-
"postcss-modules-local-by-default": "4.0.4",
|
|
280
|
-
"postcss-modules-scope": "3.0.0",
|
|
281
|
-
"postcss-modules-values": "4.0.0",
|
|
282
|
-
"postcss-preset-env": "7.4.3",
|
|
283
|
-
"postcss-safe-parser": "6.0.0",
|
|
284
|
-
"postcss-scss": "4.0.3",
|
|
285
|
-
"postcss-value-parser": "4.2.0",
|
|
286
|
-
process: "0.11.10",
|
|
287
|
-
punycode: "2.1.1",
|
|
288
|
-
"querystring-es3": "0.2.1",
|
|
289
|
-
"raw-body": "2.4.1",
|
|
290
|
-
"react-is": "18.2.0",
|
|
291
|
-
"react-refresh": "0.12.0",
|
|
292
|
-
"regenerator-runtime": "0.13.4",
|
|
293
|
-
"sass-loader": "12.4.0",
|
|
294
|
-
"schema-utils2": "npm:schema-utils@2.7.1",
|
|
295
|
-
"schema-utils3": "npm:schema-utils@3.0.0",
|
|
296
|
-
semver: "7.3.2",
|
|
297
|
-
send: "0.17.1",
|
|
298
|
-
"server-only": "0.0.1",
|
|
299
|
-
setimmediate: "1.0.5",
|
|
300
|
-
"shell-quote": "1.7.3",
|
|
301
|
-
"source-map": "0.6.1",
|
|
302
|
-
"source-map08": "npm:source-map@0.8.0-beta.0",
|
|
303
|
-
"stacktrace-parser": "0.1.10",
|
|
304
|
-
"stream-browserify": "3.0.0",
|
|
305
|
-
"stream-http": "3.1.1",
|
|
306
|
-
"strict-event-emitter": "0.5.0",
|
|
307
|
-
"string-hash": "1.1.3",
|
|
308
|
-
string_decoder: "1.3.0",
|
|
309
|
-
"strip-ansi": "6.0.0",
|
|
310
|
-
superstruct: "1.0.3",
|
|
311
|
-
tar: "6.1.15",
|
|
312
|
-
taskr: "1.1.0",
|
|
313
|
-
terser: "5.27.0",
|
|
314
|
-
"terser-webpack-plugin": "5.3.9",
|
|
315
|
-
"text-table": "0.2.0",
|
|
316
|
-
"timers-browserify": "2.0.12",
|
|
317
|
-
"tty-browserify": "0.0.1",
|
|
318
|
-
"ua-parser-js": "1.0.35",
|
|
319
|
-
unistore: "3.4.1",
|
|
320
|
-
util: "0.12.4",
|
|
321
|
-
uuid: "8.3.2",
|
|
322
|
-
"vm-browserify": "1.1.2",
|
|
323
|
-
watchpack: "2.4.0",
|
|
324
|
-
"web-vitals": "3.0.0",
|
|
325
|
-
webpack: "5.90.0",
|
|
326
|
-
"webpack-sources1": "npm:webpack-sources@1.4.3",
|
|
327
|
-
"webpack-sources3": "npm:webpack-sources@3.2.3",
|
|
328
|
-
ws: "8.2.3",
|
|
329
|
-
zod: "3.22.3"
|
|
330
|
-
},
|
|
331
|
-
engines: {
|
|
332
|
-
node: ">=18.17.0"
|
|
333
|
-
},
|
|
334
|
-
optionalDependencies: {
|
|
335
|
-
"@next/swc-darwin-arm64": "14.2.15",
|
|
336
|
-
"@next/swc-darwin-x64": "14.2.15",
|
|
337
|
-
"@next/swc-linux-arm64-gnu": "14.2.15",
|
|
338
|
-
"@next/swc-linux-arm64-musl": "14.2.15",
|
|
339
|
-
"@next/swc-linux-x64-gnu": "14.2.15",
|
|
340
|
-
"@next/swc-linux-x64-musl": "14.2.15",
|
|
341
|
-
"@next/swc-win32-arm64-msvc": "14.2.15",
|
|
342
|
-
"@next/swc-win32-ia32-msvc": "14.2.15",
|
|
343
|
-
"@next/swc-win32-x64-msvc": "14.2.15"
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
|
|
349
1
|
// node_modules/tsup/assets/esm_shims.js
|
|
350
2
|
import path from "path";
|
|
351
3
|
import { fileURLToPath } from "url";
|
|
@@ -355,11 +7,13 @@ var __dirname = /* @__PURE__ */ getDirname();
|
|
|
355
7
|
|
|
356
8
|
// src/next/index.ts
|
|
357
9
|
import * as path2 from "path";
|
|
10
|
+
import { createRequire } from "module";
|
|
358
11
|
var isProd = () => process.env.NODE_ENV === "production";
|
|
359
12
|
var isTurbopack = () => !!process.env.TURBOPACK || !!process.env.TURBOPACK_DEV;
|
|
360
13
|
function nextMajor() {
|
|
361
14
|
try {
|
|
362
|
-
|
|
15
|
+
const req = createRequire(path2.join(process.cwd(), "package.json"));
|
|
16
|
+
return parseInt(req("next/package.json").version, 10) || 0;
|
|
363
17
|
} catch {
|
|
364
18
|
return 0;
|
|
365
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uivisor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dev-only visual UI tweaker that turns mouse edits into a precise, breakpoint-aware prompt for your AI coding agent — without touching your source.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,7 +13,16 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/kabdulov/uivisor/issues"
|
|
15
15
|
},
|
|
16
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"vite-plugin",
|
|
18
|
+
"next",
|
|
19
|
+
"turbopack",
|
|
20
|
+
"react",
|
|
21
|
+
"devtools",
|
|
22
|
+
"ai",
|
|
23
|
+
"visual-editing",
|
|
24
|
+
"tailwind"
|
|
25
|
+
],
|
|
17
26
|
"exports": {
|
|
18
27
|
"./vite": {
|
|
19
28
|
"types": "./dist/vite/index.d.ts",
|
|
@@ -47,14 +56,19 @@
|
|
|
47
56
|
},
|
|
48
57
|
"./package.json": "./package.json"
|
|
49
58
|
},
|
|
50
|
-
"files": [
|
|
59
|
+
"files": [
|
|
60
|
+
"dist"
|
|
61
|
+
],
|
|
51
62
|
"publishConfig": {
|
|
52
63
|
"access": "public"
|
|
53
64
|
},
|
|
54
65
|
"engines": {
|
|
55
66
|
"node": ">=18"
|
|
56
67
|
},
|
|
57
|
-
"workspaces": [
|
|
68
|
+
"workspaces": [
|
|
69
|
+
"demo",
|
|
70
|
+
"demo-next"
|
|
71
|
+
],
|
|
58
72
|
"scripts": {
|
|
59
73
|
"build": "rm -rf dist && tsup",
|
|
60
74
|
"dev": "tsup --watch",
|
|
@@ -68,8 +82,12 @@
|
|
|
68
82
|
"react": ">=18"
|
|
69
83
|
},
|
|
70
84
|
"peerDependenciesMeta": {
|
|
71
|
-
"vite": {
|
|
72
|
-
|
|
85
|
+
"vite": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"react": {
|
|
89
|
+
"optional": true
|
|
90
|
+
}
|
|
73
91
|
},
|
|
74
92
|
"dependencies": {
|
|
75
93
|
"@babel/core": "^7.24.0"
|