@cosmicds/vue-toolkit 0.3.0 → 0.4.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/README.md +20 -1
- package/dist/index.common.js +737 -628
- package/dist/index.umd.js +737 -628
- package/dist/index.umd.min.js +4 -4
- package/dist/src/background.d.ts +4 -0
- package/dist/src/components/CreditLogos.vue.d.ts +14 -9
- package/dist/src/components/Gallery.vue.d.ts +2 -2
- package/dist/src/components/GeolocationButton.vue.d.ts +5 -21
- package/dist/src/components/IconButton.vue.d.ts +9 -11
- package/dist/src/components/LocationSelector.vue.d.ts +6 -6
- package/dist/src/components/WwtHud.vue.d.ts +3 -3
- package/dist/src/composables.d.ts +15 -7
- package/dist/src/geolocation.d.ts +6 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/keyboard.d.ts +35 -2
- package/dist/src/mapbox.d.ts +55 -3
- package/dist/src/stories/CreditLogos.stories.d.ts +6 -0
- package/dist/src/stories/FundingAcknowledgement.stories.d.ts +6 -0
- package/dist/src/stories/Gallery.stories.d.ts +6 -0
- package/dist/src/stories/IconButton.stories.d.ts +6 -0
- package/dist/src/stories/LocationSelector.stories.d.ts +6 -0
- package/dist/src/stories/WwtHud.stories.d.ts +6 -0
- package/dist/src/types.d.ts +123 -4
- package/dist/src/utils.d.ts +24 -2
- package/dist/src/wwt-utils.d.ts +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +29 -3
- package/src/background.ts +4 -0
- package/src/composables.ts +14 -1
- package/src/geolocation.ts +12 -0
- package/src/index.ts +2 -1
- package/src/keyboard.ts +36 -2
- package/src/mapbox.ts +74 -8
- package/src/types.ts +127 -5
- package/src/utils.ts +24 -4
- package/src/wwt-utils.ts +6 -0
package/README.md
CHANGED
|
@@ -17,8 +17,27 @@ yarn add @cosmicds/vue-toolkit
|
|
|
17
17
|
|
|
18
18
|
If you're doing development work on these components, it will likely be useful to have an external sample project that imports a development version of this one. The easiest way to do this is probably to use [`npm-link`](https://docs.npmjs.com/cli/v10/commands/npm-link). For example:
|
|
19
19
|
```
|
|
20
|
-
cd <path-where-you-keep-
|
|
20
|
+
cd <path-where-you-keep-the-toolkit-repo>
|
|
21
|
+
|
|
22
|
+
# build the package
|
|
23
|
+
yarn
|
|
24
|
+
yarn build
|
|
25
|
+
|
|
26
|
+
# set up link to local development version
|
|
21
27
|
npm link
|
|
22
28
|
cd <path-to-your-sample-repo>
|
|
23
29
|
npm link @cosmicds/vue-toolkit
|
|
30
|
+
|
|
31
|
+
# To make local changes to the toolkit active, you have to rebuild the package after every change.
|
|
32
|
+
# Tip from @johnarban: This will take you to the previous directory you were in, which makes it easier to toggle between folders
|
|
33
|
+
cd -
|
|
34
|
+
|
|
35
|
+
# to unlink when you are done (Note - order is important here)
|
|
36
|
+
|
|
37
|
+
cd <path-to-your-sample-repo> # if you're not already there
|
|
38
|
+
npm unlink --no-save @cosmicds/vue-toolkit
|
|
39
|
+
|
|
40
|
+
cd <path-where-you-keep-the-toolkit-repo>
|
|
41
|
+
npm unlink
|
|
42
|
+
|
|
24
43
|
```
|