@pinfix/plugin 1.0.0 → 1.0.1

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.
@@ -327,7 +327,8 @@ function injectHtml(html, script) {
327
327
  return html.replace("<head>", `<head>
328
328
  ${script}`);
329
329
  }
330
- var unplugin = createUnplugin((options = {}) => {
330
+ var unplugin = createUnplugin((rawOptions) => {
331
+ const options = rawOptions ?? {};
331
332
  const port = options.port ?? WS_PORT_DEFAULT;
332
333
  let root = options.root ?? process.cwd();
333
334
  const wsUrl = `ws://localhost:${port}`;
package/dist/index.cjs CHANGED
@@ -365,7 +365,8 @@ function injectHtml(html, script) {
365
365
  return html.replace("<head>", `<head>
366
366
  ${script}`);
367
367
  }
368
- var unplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
368
+ var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
369
+ const options = rawOptions ?? {};
369
370
  const port = options.port ?? WS_PORT_DEFAULT;
370
371
  let root = options.root ?? process.cwd();
371
372
  const wsUrl = `ws://localhost:${port}`;
@@ -0,0 +1,13 @@
1
+ interface PinFixOptions {
2
+ port?: number;
3
+ root?: string;
4
+ prompt?: string;
5
+ hotkey?: string;
6
+ fab?: boolean;
7
+ escapeTags?: (string | RegExp)[];
8
+ match?: RegExp;
9
+ exclude?: RegExp;
10
+ debug?: boolean;
11
+ }
12
+
13
+ export type { PinFixOptions as P };
@@ -0,0 +1,13 @@
1
+ interface PinFixOptions {
2
+ port?: number;
3
+ root?: string;
4
+ prompt?: string;
5
+ hotkey?: string;
6
+ fab?: boolean;
7
+ escapeTags?: (string | RegExp)[];
8
+ match?: RegExp;
9
+ exclude?: RegExp;
10
+ debug?: boolean;
11
+ }
12
+
13
+ export type { PinFixOptions as P };
package/dist/index.d.cts CHANGED
@@ -1,9 +1,8 @@
1
1
  import * as unplugin$1 from 'unplugin';
2
- import { PinFixOptions } from '@pinfix/shared';
3
- export { PinFixOptions } from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
4
3
 
5
- declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions, boolean>;
4
+ declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions | undefined, boolean>;
6
5
 
7
6
  // @ts-ignore
8
7
  export = unplugin;
9
- export { unplugin };
8
+ export { PinFixOptions, unplugin };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as unplugin$1 from 'unplugin';
2
- import { PinFixOptions } from '@pinfix/shared';
3
- export { PinFixOptions } from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
4
3
 
5
- declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions, boolean>;
4
+ declare const unplugin: unplugin$1.UnpluginInstance<PinFixOptions | undefined, boolean>;
6
5
 
7
- export { unplugin as default, unplugin };
6
+ export { PinFixOptions, unplugin as default, unplugin };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  src_default,
3
3
  unplugin
4
- } from "./chunk-WYYKYDGW.js";
4
+ } from "./chunk-QFRT5XZV.js";
5
5
  export {
6
6
  src_default as default,
7
7
  unplugin
package/dist/rspack.cjs CHANGED
@@ -366,7 +366,8 @@ function injectHtml(html, script) {
366
366
  return html.replace("<head>", `<head>
367
367
  ${script}`);
368
368
  }
369
- var unplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
369
+ var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
370
+ const options = rawOptions ?? {};
370
371
  const port = options.port ?? WS_PORT_DEFAULT;
371
372
  let root = options.root ?? process.cwd();
372
373
  const wsUrl = `ws://localhost:${port}`;
package/dist/rspack.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
- import * as _pinfix_shared from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
3
3
 
4
- declare const _default: (options: _pinfix_shared.PinFixOptions) => unplugin.RspackPluginInstance;
4
+ declare const _default: (options?: PinFixOptions | undefined) => unplugin.RspackPluginInstance;
5
5
 
6
6
  export = _default;
package/dist/rspack.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
- import * as _pinfix_shared from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
3
3
 
4
- declare const _default: (options: _pinfix_shared.PinFixOptions) => unplugin.RspackPluginInstance;
4
+ declare const _default: (options?: PinFixOptions | undefined) => unplugin.RspackPluginInstance;
5
5
 
6
6
  export { _default as default };
package/dist/rspack.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "./chunk-WYYKYDGW.js";
3
+ } from "./chunk-QFRT5XZV.js";
4
4
 
5
5
  // src/rspack.ts
6
6
  var rspack_default = unplugin.rspack;
package/dist/vite.cjs CHANGED
@@ -366,7 +366,8 @@ function injectHtml(html, script) {
366
366
  return html.replace("<head>", `<head>
367
367
  ${script}`);
368
368
  }
369
- var unplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
369
+ var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
370
+ const options = rawOptions ?? {};
370
371
  const port = options.port ?? WS_PORT_DEFAULT;
371
372
  let root = options.root ?? process.cwd();
372
373
  const wsUrl = `ws://localhost:${port}`;
package/dist/vite.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
- import * as _pinfix_shared from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
3
3
 
4
- declare const _default: (options: _pinfix_shared.PinFixOptions) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
4
+ declare const _default: (options?: PinFixOptions | undefined) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
5
5
 
6
6
  export = _default;
package/dist/vite.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
- import * as _pinfix_shared from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
3
3
 
4
- declare const _default: (options: _pinfix_shared.PinFixOptions) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
4
+ declare const _default: (options?: PinFixOptions | undefined) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
5
5
 
6
6
  export { _default as default };
package/dist/vite.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "./chunk-WYYKYDGW.js";
3
+ } from "./chunk-QFRT5XZV.js";
4
4
 
5
5
  // src/vite.ts
6
6
  var vite_default = unplugin.vite;
package/dist/webpack.cjs CHANGED
@@ -366,7 +366,8 @@ function injectHtml(html, script) {
366
366
  return html.replace("<head>", `<head>
367
367
  ${script}`);
368
368
  }
369
- var unplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
369
+ var unplugin = (0, import_unplugin.createUnplugin)((rawOptions) => {
370
+ const options = rawOptions ?? {};
370
371
  const port = options.port ?? WS_PORT_DEFAULT;
371
372
  let root = options.root ?? process.cwd();
372
373
  const wsUrl = `ws://localhost:${port}`;
@@ -1,6 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
- import * as _pinfix_shared from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.cjs';
3
3
 
4
- declare const _default: (options: _pinfix_shared.PinFixOptions) => unplugin.WebpackPluginInstance;
4
+ declare const _default: (options?: PinFixOptions | undefined) => unplugin.WebpackPluginInstance;
5
5
 
6
6
  export = _default;
package/dist/webpack.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as unplugin from 'unplugin';
2
- import * as _pinfix_shared from '@pinfix/shared';
2
+ import { P as PinFixOptions } from './index.d-DyaJaYjr.js';
3
3
 
4
- declare const _default: (options: _pinfix_shared.PinFixOptions) => unplugin.WebpackPluginInstance;
4
+ declare const _default: (options?: PinFixOptions | undefined) => unplugin.WebpackPluginInstance;
5
5
 
6
6
  export { _default as default };
package/dist/webpack.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "./chunk-WYYKYDGW.js";
3
+ } from "./chunk-QFRT5XZV.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  var webpack_default = unplugin.webpack;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinfix/plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Visual UI annotation overlay for Claude Code-powered source editing in dev servers.",
5
5
  "type": "module",
6
6
  "keywords": [