@tumaet/prompt-shared-state 0.0.2

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,4 @@
1
+ # prompt-shared-state
2
+ This is a shared library for the AET Prompt2 system.
3
+ It enables to share state, hooks and interfaces over multiple mircofrontends.
4
+
@@ -0,0 +1,2 @@
1
+ export * from './zustand';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './useDemoStore';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/zustand/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { create } from 'zustand';
2
+ export const useDemoStore = create((set) => ({
3
+ count: 0,
4
+ increment: () => set((state) => ({ count: state.count + 1 })),
5
+ }));
6
+ //# sourceMappingURL=useDemoStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDemoStore.js","sourceRoot":"","sources":["../../../src/zustand/useDemoStore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAOhC,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC;IACR,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC;CAC9D,CAAC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './zustand';
@@ -0,0 +1 @@
1
+ export * from './useDemoStore';
@@ -0,0 +1,6 @@
1
+ type DemoStore = {
2
+ count: number;
3
+ increment: () => void;
4
+ };
5
+ export declare const useDemoStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DemoStore>>;
6
+ export {};
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@tumaet/prompt-shared-state",
3
+ "version": "0.0.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/ls1intum/prompt-lib.git"
7
+ },
8
+ "main": "./dist/esm/index.js",
9
+ "module": "./dist/esm/index.js",
10
+ "types": "./dist/types/index.d.ts",
11
+ "license": "MIT",
12
+ "exports": {
13
+ ".": "./dist/esm/index.js",
14
+ "./*": "./dist/esm/*"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build:esm": "tsc --project tsconfig.json",
21
+ "build": "yarn build:esm",
22
+ "lint": "eslint \"**/*.{js,jsx,ts,tsx}\""
23
+ },
24
+ "packageManager": "yarn@4.1.0",
25
+ "dependencies": {
26
+ "typescript": "^5.7.3",
27
+ "zustand": "^5.0.3"
28
+ },
29
+ "devDependencies": {
30
+ "@eslint/compat": "^1.2.5",
31
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
32
+ "@typescript-eslint/parser": "^8.20.0",
33
+ "eslint": "^9.18.0",
34
+ "eslint-plugin-prettier": "^5.2.2",
35
+ "eslint-plugin-react": "^7.37.4",
36
+ "eslint-plugin-react-hooks": "^5.1.0",
37
+ "prettier": "^3.4.2"
38
+ }
39
+ }