@groma/scanner-vue 0.1.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/LICENSE +21 -0
- package/README.md +67 -0
- package/dist/index.js +208819 -0
- package/dist/lib.d.ts +22 -0
- package/dist/lib.decorators.d.ts +384 -0
- package/dist/lib.decorators.legacy.d.ts +22 -0
- package/dist/lib.dom.asynciterable.d.ts +41 -0
- package/dist/lib.dom.d.ts +39429 -0
- package/dist/lib.dom.iterable.d.ts +571 -0
- package/dist/lib.es2015.collection.d.ts +147 -0
- package/dist/lib.es2015.core.d.ts +597 -0
- package/dist/lib.es2015.d.ts +28 -0
- package/dist/lib.es2015.generator.d.ts +77 -0
- package/dist/lib.es2015.iterable.d.ts +605 -0
- package/dist/lib.es2015.promise.d.ts +81 -0
- package/dist/lib.es2015.proxy.d.ts +128 -0
- package/dist/lib.es2015.reflect.d.ts +144 -0
- package/dist/lib.es2015.symbol.d.ts +46 -0
- package/dist/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/dist/lib.es2016.array.include.d.ts +116 -0
- package/dist/lib.es2016.d.ts +21 -0
- package/dist/lib.es2016.full.d.ts +23 -0
- package/dist/lib.es2016.intl.d.ts +31 -0
- package/dist/lib.es2017.arraybuffer.d.ts +21 -0
- package/dist/lib.es2017.d.ts +26 -0
- package/dist/lib.es2017.date.d.ts +31 -0
- package/dist/lib.es2017.full.d.ts +23 -0
- package/dist/lib.es2017.intl.d.ts +44 -0
- package/dist/lib.es2017.object.d.ts +49 -0
- package/dist/lib.es2017.sharedmemory.d.ts +135 -0
- package/dist/lib.es2017.string.d.ts +45 -0
- package/dist/lib.es2017.typedarrays.d.ts +53 -0
- package/dist/lib.es2018.asyncgenerator.d.ts +77 -0
- package/dist/lib.es2018.asynciterable.d.ts +53 -0
- package/dist/lib.es2018.d.ts +24 -0
- package/dist/lib.es2018.full.d.ts +24 -0
- package/dist/lib.es2018.intl.d.ts +83 -0
- package/dist/lib.es2018.promise.d.ts +30 -0
- package/dist/lib.es2018.regexp.d.ts +37 -0
- package/dist/lib.es2019.array.d.ts +79 -0
- package/dist/lib.es2019.d.ts +24 -0
- package/dist/lib.es2019.full.d.ts +24 -0
- package/dist/lib.es2019.intl.d.ts +23 -0
- package/dist/lib.es2019.object.d.ts +33 -0
- package/dist/lib.es2019.string.d.ts +37 -0
- package/dist/lib.es2019.symbol.d.ts +24 -0
- package/dist/lib.es2020.bigint.d.ts +765 -0
- package/dist/lib.es2020.d.ts +27 -0
- package/dist/lib.es2020.date.d.ts +42 -0
- package/dist/lib.es2020.full.d.ts +24 -0
- package/dist/lib.es2020.intl.d.ts +474 -0
- package/dist/lib.es2020.number.d.ts +28 -0
- package/dist/lib.es2020.promise.d.ts +47 -0
- package/dist/lib.es2020.sharedmemory.d.ts +99 -0
- package/dist/lib.es2020.string.d.ts +44 -0
- package/dist/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/dist/lib.es2021.d.ts +23 -0
- package/dist/lib.es2021.full.d.ts +24 -0
- package/dist/lib.es2021.intl.d.ts +166 -0
- package/dist/lib.es2021.promise.d.ts +48 -0
- package/dist/lib.es2021.string.d.ts +33 -0
- package/dist/lib.es2021.weakref.d.ts +78 -0
- package/dist/lib.es2022.array.d.ts +121 -0
- package/dist/lib.es2022.d.ts +25 -0
- package/dist/lib.es2022.error.d.ts +75 -0
- package/dist/lib.es2022.full.d.ts +24 -0
- package/dist/lib.es2022.intl.d.ts +145 -0
- package/dist/lib.es2022.object.d.ts +26 -0
- package/dist/lib.es2022.regexp.d.ts +39 -0
- package/dist/lib.es2022.string.d.ts +25 -0
- package/dist/lib.es2023.array.d.ts +924 -0
- package/dist/lib.es2023.collection.d.ts +21 -0
- package/dist/lib.es2023.d.ts +22 -0
- package/dist/lib.es2023.full.d.ts +24 -0
- package/dist/lib.es2023.intl.d.ts +56 -0
- package/dist/lib.es2024.arraybuffer.d.ts +65 -0
- package/dist/lib.es2024.collection.d.ts +29 -0
- package/dist/lib.es2024.d.ts +26 -0
- package/dist/lib.es2024.full.d.ts +24 -0
- package/dist/lib.es2024.object.d.ts +29 -0
- package/dist/lib.es2024.promise.d.ts +35 -0
- package/dist/lib.es2024.regexp.d.ts +25 -0
- package/dist/lib.es2024.sharedmemory.d.ts +68 -0
- package/dist/lib.es2024.string.d.ts +29 -0
- package/dist/lib.es5.d.ts +4601 -0
- package/dist/lib.es6.d.ts +23 -0
- package/dist/lib.esnext.array.d.ts +35 -0
- package/dist/lib.esnext.collection.d.ts +96 -0
- package/dist/lib.esnext.d.ts +29 -0
- package/dist/lib.esnext.decorators.d.ts +28 -0
- package/dist/lib.esnext.disposable.d.ts +193 -0
- package/dist/lib.esnext.error.d.ts +24 -0
- package/dist/lib.esnext.float16.d.ts +445 -0
- package/dist/lib.esnext.full.d.ts +24 -0
- package/dist/lib.esnext.intl.d.ts +21 -0
- package/dist/lib.esnext.iterator.d.ts +148 -0
- package/dist/lib.esnext.promise.d.ts +34 -0
- package/dist/lib.esnext.sharedmemory.d.ts +25 -0
- package/dist/lib.scripthost.d.ts +322 -0
- package/dist/lib.webworker.asynciterable.d.ts +41 -0
- package/dist/lib.webworker.d.ts +13150 -0
- package/dist/lib.webworker.importscripts.d.ts +23 -0
- package/dist/lib.webworker.iterable.d.ts +340 -0
- package/package.json +43 -0
- package/types/props-fallback.d.ts +5 -0
- package/types/template-helpers.d.ts +140 -0
- package/types/vue-3.4-shims.d.ts +6 -0
- package/validation.md +78 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alex Gavrilescu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Vue scanner
|
|
2
|
+
|
|
3
|
+
The Vue scanner adds single-file component (SFC) event bindings to Groma's
|
|
4
|
+
TypeScript scanner evidence. Install the project's dependencies using its
|
|
5
|
+
package manager and lockfile. The scanner reads the root `tsconfig.json`;
|
|
6
|
+
it does not install dependencies or execute application code.
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
bun install --frozen-lockfile --ignore-scripts
|
|
10
|
+
bun plugins/scanners/vue/build.ts
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
In the project being scanned:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
groma scanner add /absolute/path/to/groma/plugins/scanners/vue/dist/package
|
|
17
|
+
groma scan
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The package bundles Vue language-core 3.3.11, Volar TypeScript 2.4.28,
|
|
21
|
+
Vue compiler-dom 3.5.42 and its own TypeScript 5.9.3. Compiler-sfc 3.5.42
|
|
22
|
+
provides build-time declarations only. The build
|
|
23
|
+
pins compiler imports to that TypeScript installation. The separate TypeScript scanner uses its own 7.1 SDK. Compiler libraries and Vue helper declarations
|
|
24
|
+
ship in the package; no consumer build or installation script is required.
|
|
25
|
+
|
|
26
|
+
[Vue language tools](https://github.com/vuejs/language-tools) supply project
|
|
27
|
+
configuration, SFC parsing, template code generation and original-source
|
|
28
|
+
mappings. [Volar](https://github.com/volarjs/volar.js) integrates the generated
|
|
29
|
+
code with the TypeScript checker, which resolves component imports and handler
|
|
30
|
+
function identities. The scanner translates these facts into the existing
|
|
31
|
+
supplied-callback evidence contract; it has no separate name or type resolver.
|
|
32
|
+
|
|
33
|
+
## Supported interaction
|
|
34
|
+
|
|
35
|
+
The qualified example is Vue REPL's CodeMirror `change` event bound to the
|
|
36
|
+
parent's `onChange` function. A static imported SFC must use a typed
|
|
37
|
+
`defineEmits` declaration assigned to a constant. A call to that same symbol
|
|
38
|
+
must supply a declared literal event name inside a source function. The parent
|
|
39
|
+
template must bind the event directly to one source function declaration or
|
|
40
|
+
constant function expression. Imported TypeScript functions use the same rule.
|
|
41
|
+
See [Vue component events](https://vuejs.org/guide/components/events).
|
|
42
|
+
|
|
43
|
+
The observation records the emitting function, literal emit call, concrete
|
|
44
|
+
template attribute and supplied handler. All positions refer to the original
|
|
45
|
+
physical source, as zero-based UTF-16 offsets; lines are one-based. The nearest
|
|
46
|
+
function owns a nested emit call. Repeated scans are deterministic.
|
|
47
|
+
|
|
48
|
+
Unresolved, dynamic or unsupported bindings produce `unsupported-vue-binding`
|
|
49
|
+
diagnostics and no certain relationship. This revision does not support
|
|
50
|
+
Options API events, runtime `defineEmits` arrays, dynamic components, dynamic
|
|
51
|
+
event names, handler expressions or modifiers, state stores, routing, server
|
|
52
|
+
frameworks or arbitrary event mutation. Compiler syntax/template errors fail
|
|
53
|
+
the scan and preserve the previous complete map. Readiness errors explain
|
|
54
|
+
missing project dependencies or invalid configuration.
|
|
55
|
+
|
|
56
|
+
Vue contributes `vue` Code provenance for configured source files. Shared core
|
|
57
|
+
keeps one physical-file owner, interprets complementary and conflicting
|
|
58
|
+
observations, and writes readable relationship rows. `.vue` and TypeScript
|
|
59
|
+
edits participate in the existing scan watcher.
|
|
60
|
+
|
|
61
|
+
In OKF, the result is ordinary source links and relationship Markdown. An SFC
|
|
62
|
+
is source evidence; it does not automatically define a C4 responsibility or
|
|
63
|
+
add a containment level. Groma's existing ownership and relationship model
|
|
64
|
+
owns that interpretation. No new architecture metadata is added.
|
|
65
|
+
|
|
66
|
+
See [validation](validation.md) for the pinned project and executed release
|
|
67
|
+
checks. This prototype package name does not imply public publication.
|