@stefan.inc/feedback-engine 1.6.2 → 1.6.3
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 +1 -1
- package/package.json +1 -1
- package/src/core/annotations.ts +15 -2
- package/src/react/public.d.ts +1 -1
package/README.md
CHANGED
|
@@ -263,7 +263,7 @@ The token is the switch. With `PROCRASTIMATE_TOKEN` set, **ProcrastiMate** shows
|
|
|
263
263
|
|
|
264
264
|
## Drive it from a script
|
|
265
265
|
|
|
266
|
-
`setupFeedbackEngine()` also puts the engine on `globalThis.__feedbackEngine`. `__feedbackEngine.present()` opens the editor without the click, and `__feedbackEngine.lastExport` holds the files of the last export as `{ name, blob }`, written when a Share menu entry is chosen. `
|
|
266
|
+
`setupFeedbackEngine()` also puts the engine on `globalThis.__feedbackEngine`. `__feedbackEngine.present()` opens the editor without the click, and `__feedbackEngine.lastExport` holds the files of the last export as `{ name, blob }`, written when a Share menu entry is chosen. `scripts/readme-images.ts` in the repository does both with Playwright.
|
|
267
267
|
|
|
268
268
|
## Webhooks
|
|
269
269
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stefan.inc/feedback-engine",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "In-app feedback for Svelte and React: point at a component, write what should change, and export its name, file:line, and data for an agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
package/src/core/annotations.ts
CHANGED
|
@@ -107,7 +107,20 @@ export class Annotations {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
/** The colors items and references take, in order.
|
|
111
|
-
export const palette = [
|
|
110
|
+
/** The colors items and references take, in order. iOS has the same list, so both platforms' exports match. Each pair is at least 18 apart in CIEDE2000, and none is too dark to see on a dark page. */
|
|
111
|
+
export const palette = [
|
|
112
|
+
'#E6194B',
|
|
113
|
+
'#1F6FEB',
|
|
114
|
+
'#2E9E44',
|
|
115
|
+
'#F58231',
|
|
116
|
+
'#8E44D9',
|
|
117
|
+
'#0EA5B7',
|
|
118
|
+
'#E040B0',
|
|
119
|
+
'#8B5A2B',
|
|
120
|
+
'#307060',
|
|
121
|
+
'#9AB500',
|
|
122
|
+
'#D4A000',
|
|
123
|
+
'#6B7280',
|
|
124
|
+
];
|
|
112
125
|
|
|
113
126
|
export const paletteColor = (index: number) => palette[index % palette.length]!;
|
package/src/react/public.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The types of `@stefan.inc/feedback-engine/react`, written out so an app's compiler never reads the package's source
|
|
3
|
-
* under the app's own options. `public.
|
|
3
|
+
* under the app's own options. `packages/web/public-types.check.ts` fails the type check when they drift from `index.ts`.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export type FeedbackOptions = {
|