genewa-emotion-wheel 0.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.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Geneva Emotion Wheel on the web
2
+
3
+ The Geneva Emotion Wheel (GEW) is a theoretically derived and empirically tested instrument to measure emotional reactions to objects, events, and situations.
4
+
5
+ ## Svelte and custom elements
6
+
7
+ This implementation of the GEW was implemented using svelte but is exported as a
8
+ custom web componenent that should be usable almost anywhere.
9
+
10
+ ### Why Custom Elements?
11
+ While custom elements make it possible to reuse components across different frameworks, the larger benefit is reduced coupling. By separating your component library from a specific framework, you lower the cost and risk of future framework upgrades or migrations, even when the components are initially built for a single application.
12
+
13
+
14
+ ```sh
15
+ # create a new project in the current directory
16
+ npx sv create
17
+
18
+ # create a new project in my-app
19
+ npx sv create my-app
20
+ ```
21
+
22
+ ## Developing
23
+
24
+ Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
25
+
26
+ ```sh
27
+ npm run dev
28
+
29
+ # or start the server and open the app in a new browser tab
30
+ npm run dev -- --open
31
+ ```
32
+
33
+ ## Building
34
+
35
+ To create a production version of your app:
36
+
37
+ ```sh
38
+ npm run build
39
+ ```
40
+
41
+ You can preview the production build with `npm run preview`.
42
+
43
+ > To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
@@ -0,0 +1,26 @@
1
+
2
+ import type * as React from 'react';
3
+
4
+ declare global {
5
+ // Modern React (18 / 19)
6
+ namespace React.JSX {
7
+ interface IntrinsicElements {
8
+ 'ui-counter': React.DetailedHTMLProps<
9
+ React.HTMLAttributes<HTMLElement>,
10
+ HTMLElement
11
+ > & {
12
+ 'start-count'?: number;
13
+ step?: number;
14
+ };
15
+ }
16
+ }
17
+
18
+ // Fallback for tooling that still reads global JSX
19
+ namespace JSX {
20
+ interface IntrinsicElements {
21
+ 'ui-counter': any;
22
+ }
23
+ }
24
+ }
25
+
26
+ export { };