webs-sdk 0.1.14 → 0.1.16

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.
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/libraries/content.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;;IAKjB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;CAetF;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/libraries/content.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;;IAKjB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;CActF;AAED,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/libraries/content.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA+B;AAE/B,MAAa,cAAc;IACvB;IAEA,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,MAAc,EAAE,MAA2B;QAChE,MAAM,GAAG,GAAG,GAAG,eAAO,CAAC,MAAM,CAAC,UAAU,GAAG,eAAO,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC/E,IAAI,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,eAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,kBACjD,MAAM,IACH,MAAM,EACX,CAAC;YACH,OAAO,QAAQ,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,qCAAqC,MAAM,GAAG,EAAE,KAAK,CAAC,CAAC;YACrE,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CAEJ;AApBD,wCAoBC;AAED,kBAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/libraries/content.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA+B;AAE/B,MAAa,cAAc;IACvB;IAEA,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,MAAc,EAAE,MAA2B;QAChE,MAAM,GAAG,GAAG,GAAG,eAAO,CAAC,MAAM,CAAC,UAAU,GAAG,eAAO,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC/E,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,MAAM,eAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,kBACjD,MAAM,IACH,MAAM,EACX,CAAC;YACH,OAAO,QAAQ,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,qCAAqC,MAAM,GAAG,EAAE,KAAK,CAAC,CAAC;YACrE,MAAM,KAAK,CAAC;QAChB,CAAC;IACL,CAAC;CAEJ;AAnBD,wCAmBC;AAED,kBAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webs-sdk",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,18 +18,18 @@
18
18
  "lint": "next lint"
19
19
  },
20
20
  "dependencies": {
21
- "next": "15.2.2",
21
+ "next": "^15.5.2",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@eslint/eslintrc": "^3",
27
27
  "@tailwindcss/postcss": "^4",
28
- "@types/node": "^20",
28
+ "@types/node": "^24.3.0",
29
29
  "@types/react": "^19",
30
30
  "@types/react-dom": "^19",
31
31
  "eslint": "^9",
32
- "eslint-config-next": "15.2.2",
32
+ "eslint-config-next": "^15.5.2",
33
33
  "tailwindcss": "^4",
34
34
  "typescript": "^5"
35
35
  }
package/types/index.d.ts CHANGED
@@ -4,24 +4,7 @@ declare module "webs-sdk" {
4
4
  interface JSONArray extends Array<JSONValue> {}
5
5
 
6
6
  interface ApiEndpoints {
7
- auth: {
8
- login: string;
9
- logout: string;
10
- refresh: string;
11
- register: string;
12
- };
13
- users: {
14
- profile: string;
15
- list: string;
16
- update: string;
17
- delete: string;
18
- };
19
- data: {
20
- fetch: string;
21
- create: string;
22
- update: string;
23
- delete: string;
24
- };
7
+ contents: string;
25
8
  }
26
9
 
27
10
  interface Config {
@@ -46,12 +29,34 @@ declare module "webs-sdk" {
46
29
  interface Networking {
47
30
  request(url: string, data?: object): Promise<any>;
48
31
  }
49
- interface AuthManager {}
50
- interface I18nManager {}
51
- interface Storage {}
52
- interface Utils {}
53
- interface Andromeda {}
54
- interface ContentManager {}
32
+
33
+ interface AuthManager {
34
+ // Clase vacía por ahora
35
+ }
36
+
37
+ interface I18nManager {
38
+ // Clase vacía por ahora
39
+ }
40
+
41
+ interface Storage {
42
+ get(key: string): string | null;
43
+ set(key: string, value: string): void;
44
+ remove(key: string): void;
45
+ clear(): void;
46
+ has(key: string): boolean;
47
+ }
48
+
49
+ interface Utils {
50
+ // Clase vacía por ahora
51
+ }
52
+
53
+ interface Andromeda {
54
+ // Clase vacía por ahora
55
+ }
56
+
57
+ interface ContentManager {
58
+ getContentByPreset(preset: string, params: Record<string, any>): Promise<any>;
59
+ }
55
60
 
56
61
  interface WebsSDK {
57
62
  Networking: Networking;
@@ -63,6 +68,7 @@ declare module "webs-sdk" {
63
68
  ContentManager: ContentManager;
64
69
  Config: Config;
65
70
  }
71
+
66
72
  const WebsSDK: WebsSDK;
67
73
  export default WebsSDK;
68
74
  }