viewgate-wrapper 1.3.1 → 1.3.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/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/components/ViewGateOverlay.d.ts +4 -0
- package/dist/components/ViewGateOverlay.d.ts.map +1 -0
- package/dist/components/ViewGateProvider.d.ts +66 -0
- package/dist/components/ViewGateProvider.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/plugin/next-loader.d.ts +2 -0
- package/dist/plugin/next-loader.d.ts.map +1 -0
- package/dist/plugin/transform-logic.d.ts +2 -0
- package/dist/plugin/transform-logic.d.ts.map +1 -0
- package/dist/plugin/vite-plugin-viewgate.d.ts +9 -0
- package/dist/plugin/vite-plugin-viewgate.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewGateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/ViewGateOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlE,OAAO,wBAAwB,CAAC;AA4FhC,eAAO,MAAM,eAAe,EAAE,EAiT7B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type ReactNode, type FC } from 'react';
|
|
2
|
+
import '../styles/viewgate.css';
|
|
3
|
+
export type Language = 'en' | 'es';
|
|
4
|
+
declare const translations: {
|
|
5
|
+
en: {
|
|
6
|
+
enterMode: string;
|
|
7
|
+
exitMode: string;
|
|
8
|
+
feedbackHeader: string;
|
|
9
|
+
selectedElement: string;
|
|
10
|
+
line: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
cancel: string;
|
|
13
|
+
send: string;
|
|
14
|
+
submitting: string;
|
|
15
|
+
success: string;
|
|
16
|
+
error: string;
|
|
17
|
+
successHeader: string;
|
|
18
|
+
errorHeader: string;
|
|
19
|
+
preview: string;
|
|
20
|
+
};
|
|
21
|
+
es: {
|
|
22
|
+
enterMode: string;
|
|
23
|
+
exitMode: string;
|
|
24
|
+
feedbackHeader: string;
|
|
25
|
+
selectedElement: string;
|
|
26
|
+
line: string;
|
|
27
|
+
placeholder: string;
|
|
28
|
+
cancel: string;
|
|
29
|
+
send: string;
|
|
30
|
+
submitting: string;
|
|
31
|
+
success: string;
|
|
32
|
+
error: string;
|
|
33
|
+
successHeader: string;
|
|
34
|
+
errorHeader: string;
|
|
35
|
+
preview: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export interface SemanticReference {
|
|
39
|
+
tag: string;
|
|
40
|
+
id: string;
|
|
41
|
+
classes: string;
|
|
42
|
+
text: string;
|
|
43
|
+
selector: string;
|
|
44
|
+
outerHtml: string;
|
|
45
|
+
parentContext: string;
|
|
46
|
+
componentPath?: string;
|
|
47
|
+
signature?: string;
|
|
48
|
+
source?: string;
|
|
49
|
+
}
|
|
50
|
+
interface ViewGateContextType {
|
|
51
|
+
addToast: (message: string, type: 'success' | 'error') => void;
|
|
52
|
+
language: Language;
|
|
53
|
+
t: typeof translations.en;
|
|
54
|
+
apiKey: string;
|
|
55
|
+
baseUrl?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const useViewGate: () => ViewGateContextType;
|
|
58
|
+
interface ViewGateProps {
|
|
59
|
+
children: ReactNode;
|
|
60
|
+
language?: Language;
|
|
61
|
+
apiKey: string;
|
|
62
|
+
baseUrl?: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const ViewGate: FC<ViewGateProps>;
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=ViewGateProvider.d.ts.map
|
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|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './components/ViewGateOverlay.js';
|
|
2
|
+
export * from './components/ViewGateProvider.js';
|
|
3
|
+
export { default as viewgatePlugin } from './plugin/vite-plugin-viewgate.js';
|
|
4
|
+
export { default as viewgateNextLoader } from './plugin/next-loader.js';
|
|
5
|
+
export * from './plugin/transform-logic.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,cAAc,6BAA6B,CAAC"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-loader.d.ts","sourceRoot":"","sources":["../../src/plugin/next-loader.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAUnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-logic.d.ts","sourceRoot":"","sources":["../../src/plugin/transform-logic.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAoBzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-plugin-viewgate.d.ts","sourceRoot":"","sources":["../../src/plugin/vite-plugin-viewgate.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,cAAc;;;oBAId,MAAM,MAAM,MAAM;;;;EAQzC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viewgate-wrapper",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/viewgate-wrapper.umd.cjs",
|
|
6
6
|
"module": "./dist/viewgate-wrapper.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"viewgate": "./dist/cli.js"
|
|
8
|
+
"viewgate-wrapper": "./dist/cli.js"
|
|
9
9
|
},
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|