@eventra_dev/cli-plugin-vue 1.2.1 → 1.2.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/LICENSE +1 -1
- package/README.md +10 -2
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -128,7 +128,15 @@ import Button from './Button.vue'
|
|
|
128
128
|
|
|
129
129
|
`checkout.cta` is found. It works with `defineProps<{ ... }>()`, `defineProps([...])`, `defineProps({ ... })`, `withDefaults(...)`, a props object (`const props = defineProps(...)`) and a destructuring (`const { analyticsName } = defineProps(...)`), and also when the template reads the prop by its bare name (`@click="tracker.track(analyticsName)"`). A prop handed on to another component (`<Inner :name="props.analyticsName" />`) is followed. Props the component never tracks are not events. A prop that comes from a `v-for` variable is reported as a dynamic occurrence.
|
|
130
130
|
|
|
131
|
-
Not followed
|
|
131
|
+
**Not followed** (those components are scanned as before, so nothing is lost, but a prop that only they use is not found):
|
|
132
|
+
|
|
133
|
+
- Options API components (`props: [...]` read through `this`).
|
|
134
|
+
- `v-bind="obj"` spreads.
|
|
135
|
+
- Components registered by name instead of imported, and dynamic components (`<component :is="X">`).
|
|
136
|
+
- Nuxt auto-imported components (used with no `import`): the tag is not matched to its file.
|
|
137
|
+
- A component whose normal `<script>` has its own `export default`, an `export` other than a type in `<script setup>`, an import after other code, or a `src=` script.
|
|
138
|
+
|
|
139
|
+
A value the CLI cannot resolve to a plain string (a `v-for` variable, a prop of the page itself) is listed under "Dynamic event names" instead of becoming an event. The same list shows the tracking call inside the component itself, one line per component, because what it tracks is whatever each caller passes; the callers that pass a literal are still found.
|
|
132
140
|
|
|
133
141
|
## Nuxt
|
|
134
142
|
|
|
@@ -199,4 +207,4 @@ pnpm --filter @eventra_dev/cli-plugin-vue test:coverage
|
|
|
199
207
|
|
|
200
208
|
## License
|
|
201
209
|
|
|
202
|
-
MIT, copyright (c) 2026 [
|
|
210
|
+
MIT, copyright (c) 2026 [Yuriy Korolik](https://github.com/and-1991). See [LICENSE](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventra_dev/cli-plugin-vue",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Eventra CLI plugin — extract track() calls from Vue SFC (.vue) files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
|
-
"name": "
|
|
7
|
+
"name": "Yuriy Korolik",
|
|
8
8
|
"url": "https://github.com/and-1991"
|
|
9
9
|
},
|
|
10
10
|
"type": "commonjs",
|