@popgrids/embed 0.0.1 → 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.
Files changed (56) hide show
  1. package/AGENTS.md +141 -0
  2. package/LICENSE +21 -0
  3. package/README.md +60 -1
  4. package/dist/components/base-element.d.ts +33 -0
  5. package/dist/components/base-element.d.ts.map +1 -0
  6. package/dist/components/pop-auth-panel.d.ts +14 -0
  7. package/dist/components/pop-auth-panel.d.ts.map +1 -0
  8. package/dist/components/pop-comment-avatar.d.ts +16 -0
  9. package/dist/components/pop-comment-avatar.d.ts.map +1 -0
  10. package/dist/components/pop-comment-bar.d.ts +14 -0
  11. package/dist/components/pop-comment-bar.d.ts.map +1 -0
  12. package/dist/components/pop-comment-icon.d.ts +33 -0
  13. package/dist/components/pop-comment-icon.d.ts.map +1 -0
  14. package/dist/components/pop-comment-input.d.ts +19 -0
  15. package/dist/components/pop-comment-input.d.ts.map +1 -0
  16. package/dist/components/pop-comment-thread.d.ts +14 -0
  17. package/dist/components/pop-comment-thread.d.ts.map +1 -0
  18. package/dist/components/pop-comment.d.ts +32 -0
  19. package/dist/components/pop-comment.d.ts.map +1 -0
  20. package/dist/components/pop-feed.d.ts +17 -0
  21. package/dist/components/pop-feed.d.ts.map +1 -0
  22. package/dist/components/pop-grid.d.ts +12 -0
  23. package/dist/components/pop-grid.d.ts.map +1 -0
  24. package/dist/components/pop-widget.d.ts +13 -0
  25. package/dist/components/pop-widget.d.ts.map +1 -0
  26. package/dist/embed.js +2240 -0
  27. package/dist/embed.js.map +1 -0
  28. package/dist/helpers/author.d.ts +2 -0
  29. package/dist/helpers/author.d.ts.map +1 -0
  30. package/dist/helpers/color.d.ts +7 -0
  31. package/dist/helpers/color.d.ts.map +1 -0
  32. package/dist/helpers/theme.d.ts +3 -0
  33. package/dist/helpers/theme.d.ts.map +1 -0
  34. package/dist/helpers/time.d.ts +2 -0
  35. package/dist/helpers/time.d.ts.map +1 -0
  36. package/dist/index.cjs +1135 -741
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.ts +2 -989
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +1246 -1045
  41. package/dist/index.js.map +1 -1
  42. package/dist/lib/popup-auth.d.ts +22 -0
  43. package/dist/lib/popup-auth.d.ts.map +1 -0
  44. package/dist/store/auth-store.d.ts +8 -0
  45. package/dist/store/auth-store.d.ts.map +1 -0
  46. package/dist/store/grid-store.d.ts +45 -0
  47. package/dist/store/grid-store.d.ts.map +1 -0
  48. package/dist/store/registry.d.ts +5 -0
  49. package/dist/store/registry.d.ts.map +1 -0
  50. package/dist/types/models.d.ts +47 -0
  51. package/dist/types/models.d.ts.map +1 -0
  52. package/package.json +55 -45
  53. package/dist/apple-IX52EWYN.png +0 -0
  54. package/dist/google-Q3MFTU5A.png +0 -0
  55. package/dist/index.d.cts +0 -989
  56. package/dist/swirling-ovals-ZDTHSA3L.gif +0 -0
@@ -0,0 +1,22 @@
1
+ import { AuthUser } from '../types/models.js';
2
+ export declare const EMBED_AUTH_SOURCE = "popgrids-embed";
3
+ export declare const EMBED_AUTH_SUCCESS = "popgrids:auth:success";
4
+ export declare const EMBED_AUTH_ERROR = "popgrids:auth:error";
5
+ export declare const EMBED_AUTH_LOGIN_PATH = "/embed/auth/login";
6
+ export declare const POPUP_NAME = "popgrids-auth";
7
+ export declare const POPUP_FEATURES = "popup,width=480,height=640";
8
+ export declare const AUTH_TIMEOUT_MS: number;
9
+ export declare class PopupAuthError extends Error {
10
+ constructor(message: string);
11
+ }
12
+ export declare const buildEmbedLoginUrl: (apiUrl: string, publicKey: string, returnOrigin: string) => string;
13
+ export declare const openPopgridsLoginPopup: (apiUrl: string, publicKey: string) => Window;
14
+ export declare const waitForPopgridsAuth: (apiUrl: string, popup: Window, options?: {
15
+ onAuthUser?: (user: AuthUser) => void;
16
+ verifySignedIn?: () => Promise<boolean>;
17
+ }) => Promise<void>;
18
+ export declare const signInWithPopup: (apiUrl: string, publicKey: string, options?: {
19
+ onAuthUser?: (user: AuthUser) => void;
20
+ verifySignedIn?: () => Promise<boolean>;
21
+ }) => Promise<void>;
22
+ //# sourceMappingURL=popup-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popup-auth.d.ts","sourceRoot":"","sources":["../../src/lib/popup-auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAClD,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AACzD,eAAO,MAAM,UAAU,kBAAkB,CAAC;AAC1C,eAAO,MAAM,cAAc,+BAA+B,CAAC;AAC3D,eAAO,MAAM,eAAe,QAAgB,CAAC;AAI7C,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;CAI5B;AAED,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,cAAc,MAAM,WAMrB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,WAYvE,CAAC;AAuCF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,MAAM,EACd,OAAO,MAAM,EACb,UAAU;IACR,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC,kBA4FC,CAAC;AAEL,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,UAAU;IACR,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC,kBAIF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { AuthUser } from '../types/models.js';
2
+ export declare const currentUser: import('@preact/signals-core').Signal<AuthUser | null>;
3
+ export declare const authError: import('@preact/signals-core').Signal<string | null>;
4
+ export declare const authPending: import('@preact/signals-core').Signal<boolean>;
5
+ export declare function checkSession(apiUrl: string, publicKey: string, delays?: number[]): Promise<boolean>;
6
+ export declare function requestSignIn(apiUrl: string, publicKey: string): Promise<boolean>;
7
+ export declare function clearAuthError(): void;
8
+ //# sourceMappingURL=auth-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-store.d.ts","sourceRoot":"","sources":["../../src/store/auth-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,WAAW,wDAAgC,CAAC;AACzD,eAAO,MAAM,SAAS,sDAA8B,CAAC;AACrD,eAAO,MAAM,WAAW,gDAAgB,CAAC;AAKzC,wBAAsB,YAAY,CAChC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,MAAM,EAA4B,GACzC,OAAO,CAAC,OAAO,CAAC,CAsClB;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,OAAO,CAAC,CAwBlB;AAED,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
@@ -0,0 +1,45 @@
1
+ import { Comment, CommentAuthor, Grid } from '../types/models.js';
2
+ export declare class GridStore {
3
+ readonly apiUrl: string;
4
+ readonly publicKey: string;
5
+ readonly pageUrl: string;
6
+ readonly externalId: string | null;
7
+ readonly previewCount = 3;
8
+ grid: import('@preact/signals-core').Signal<Grid | null>;
9
+ comments: import('@preact/signals-core').Signal<Comment[]>;
10
+ loading: import('@preact/signals-core').Signal<boolean>;
11
+ error: import('@preact/signals-core').Signal<string | null>;
12
+ open: import('@preact/signals-core').Signal<boolean>;
13
+ replyingTo: import('@preact/signals-core').Signal<string | null>;
14
+ editingCommentId: import('@preact/signals-core').Signal<string | null>;
15
+ scrollingCommentId: import('@preact/signals-core').Signal<string | null>;
16
+ private socket;
17
+ private reconnectAttempt;
18
+ private reconnectTimer;
19
+ private disposed;
20
+ topLevelComments: import('@preact/signals-core').ReadonlySignal<Comment[]>;
21
+ replyingToComment: import('@preact/signals-core').ReadonlySignal<Comment | null>;
22
+ editingComment: import('@preact/signals-core').ReadonlySignal<Comment | null>;
23
+ previewComments: import('@preact/signals-core').ReadonlySignal<Comment[]>;
24
+ previewAvatars: import('@preact/signals-core').ReadonlySignal<CommentAuthor[]>;
25
+ constructor(opts: {
26
+ apiUrl: string;
27
+ publicKey: string;
28
+ pageUrl: string;
29
+ externalId?: string | null;
30
+ });
31
+ /** pageUrl + optional externalId — the params that identify the discussion. */
32
+ private identityParams;
33
+ repliesFor(parentId: string): Comment[];
34
+ load(): Promise<boolean>;
35
+ postComment(body: string, parentCommentId?: string): Promise<Comment | null>;
36
+ destroy(): void;
37
+ private connectRealtime;
38
+ private scheduleReconnect;
39
+ private upsertComment;
40
+ editComment(commentId: string, body: string): Promise<Comment | null>;
41
+ deleteComment(commentId: string): Promise<Comment | null>;
42
+ flagComment(commentId: string): Promise<boolean>;
43
+ private updateCommentInList;
44
+ }
45
+ //# sourceMappingURL=grid-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-store.d.ts","sourceRoot":"","sources":["../../src/store/grid-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAqBvE,qBAAa,SAAS;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,YAAY,KAAyB;IAE9C,IAAI,qDAA6B;IACjC,QAAQ,mDAAyB;IACjC,OAAO,iDAAgB;IACvB,KAAK,uDAA+B;IACpC,IAAI,iDAAiB;IACrB,UAAU,uDAA+B;IACzC,gBAAgB,uDAA+B;IAC/C,kBAAkB,uDAA+B;IAEjD,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,cAAc,CAA8C;IACpE,OAAO,CAAC,QAAQ,CAAS;IAEzB,gBAAgB,2DAId;IAEF,iBAAiB,gEAId;IAEH,cAAc,gEAIX;IAEH,eAAe,2DAEb;IAEF,cAAc,iEAuBX;gBAES,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;IAOD,+EAA+E;IAC/E,OAAO,CAAC,cAAc;IAQtB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,EAAE;IAYjC,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAqCxB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IA2ClF,OAAO,IAAI,IAAI;IAkBf,OAAO,CAAC,eAAe;IA4DvB,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,aAAa;IAUf,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAgCrE,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IA6BzD,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAuBtD,OAAO,CAAC,mBAAmB;CAG5B"}
@@ -0,0 +1,5 @@
1
+ export declare const registerStore: (el: Element, store: any, key?: any) => void;
2
+ export declare const unregisterStore: (el: Element) => void;
3
+ export declare const resolveStore: <T>(el: Element, key: any) => T | null;
4
+ export declare function consume(storeKey: any): (target: any, propertyKey: string) => void;
5
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/store/registry.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,IAAI,OAAO,EAAE,OAAO,GAAG,EAAE,MAAK,GAAuB,KAAG,IAOrF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,KAAG,IAE7C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,IAAI,OAAO,EAAE,KAAK,GAAG,KAAG,CAAC,GAAG,IAY3D,CAAC;AAEF,wBAAgB,OAAO,CAAC,QAAQ,EAAE,GAAG,IAClB,QAAQ,GAAG,EAAE,aAAa,MAAM,UAmBlD"}
@@ -0,0 +1,47 @@
1
+ export interface CommentAuthor {
2
+ id: string;
3
+ image: string | null;
4
+ name: string | null;
5
+ }
6
+ export interface Comment {
7
+ id: string;
8
+ discussionId: string;
9
+ parentCommentId: string | null;
10
+ authorId: string | null;
11
+ authorDeleted?: boolean;
12
+ author: CommentAuthor | null;
13
+ body: string;
14
+ bodyFormat: string;
15
+ status: string;
16
+ depth: number;
17
+ sortKey: string;
18
+ deletedAt: string | number | null;
19
+ createdAt: string | number;
20
+ updatedAt: string | number;
21
+ }
22
+ export interface Grid {
23
+ id: string;
24
+ organizationId: string;
25
+ name: string;
26
+ slug: string;
27
+ publicKey: string;
28
+ origin: string;
29
+ align: "left" | "center" | "right" | null;
30
+ appearance: "light" | "dark" | "auto" | null;
31
+ icon: string | null;
32
+ layout: "sm" | "md" | "lg" | null;
33
+ position: "up" | "down" | "auto" | null;
34
+ previewCount: number | null;
35
+ rowSize: number | null;
36
+ status: string;
37
+ createdAt: string | number;
38
+ updatedAt: string | number;
39
+ connectUrl?: string;
40
+ }
41
+ export interface AuthUser {
42
+ id: string;
43
+ name: string;
44
+ email: string;
45
+ image: string | null;
46
+ }
47
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/types/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,CAAC;IAC1C,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC7C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,64 +1,74 @@
1
1
  {
2
2
  "name": "@popgrids/embed",
3
- "description": "PopGrids Embeddable Objects",
4
- "version": "0.0.1",
5
- "private": false,
3
+ "description": "PopGrids embeddable discussion widget",
4
+ "version": "0.0.2",
6
5
  "type": "module",
7
- "main": "./dist/index.cjs",
8
- "module": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
6
+ "license": "MIT",
7
+ "author": "PopGrids",
8
+ "homepage": "https://github.com/popgrids/popgrids-embed#readme",
10
9
  "repository": {
11
10
  "type": "git",
12
- "url": "git+https://github.com/popgrids/popgrids-turborepo.git"
11
+ "url": "git+https://github.com/popgrids/popgrids-embed.git"
13
12
  },
14
- "author": "Popgrids",
15
- "license": "UNLICENSED",
16
- "publishConfig": {
17
- "access": "public"
13
+ "bugs": {
14
+ "url": "https://github.com/popgrids/popgrids-embed/issues"
18
15
  },
16
+ "keywords": [
17
+ "popgrids",
18
+ "comments",
19
+ "discussion",
20
+ "widget",
21
+ "web-components",
22
+ "custom-elements",
23
+ "embed",
24
+ "typescript"
25
+ ],
26
+ "main": "./dist/index.cjs",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "unpkg": "./dist/embed.js",
30
+ "jsdelivr": "./dist/embed.js",
19
31
  "exports": {
20
32
  ".": {
33
+ "types": "./dist/index.d.ts",
21
34
  "import": "./dist/index.js",
22
- "types": "./dist/index.d.ts"
23
- }
35
+ "require": "./dist/index.cjs"
36
+ },
37
+ "./embed": "./dist/embed.js",
38
+ "./package.json": "./package.json"
24
39
  },
25
40
  "files": [
26
- "dist"
41
+ "dist",
42
+ "AGENTS.md"
27
43
  ],
28
- "scripts": {
29
- "build": "tsup",
30
- "dev": "tsup --watch",
31
- "clean": "rm -rf .turbo node_modules dist",
32
- "lint": "eslint . --max-warnings 0",
33
- "test": "web-test-runner src/**/*.test.ts --node-resolve",
34
- "prepublishOnly": "npm run build"
44
+ "publishConfig": {
45
+ "access": "public"
35
46
  },
36
47
  "dependencies": {
37
48
  "@floating-ui/dom": "^1.6.13",
38
- "@lit/context": "^1.1.4",
39
- "@popgrids/theme": "*",
40
- "@popgrids/ui": "*",
41
- "@tiptap/core": "^2.11.7",
42
- "@tiptap/extension-document": "^2.11.7",
43
- "@tiptap/extension-mention": "^2.11.7",
44
- "@tiptap/extension-paragraph": "^2.11.7",
45
- "@tiptap/extension-placeholder": "^2.11.7",
46
- "@tiptap/extension-text": "^2.11.7",
47
- "@tiptap/extension-typography": "^2.11.7",
48
- "@tiptap/pm": "^2.11.7",
49
- "@tiptap/suggestion": "^2.11.7",
50
- "lit": "^3.2.1",
51
- "openapi-fetch": "^0.13.5"
49
+ "@preact/signals-core": "^1.8.0",
50
+ "composed-offset-position": "^0.0.6"
52
51
  },
53
52
  "devDependencies": {
54
- "@open-wc/testing": "^4.0.0",
55
- "@popgrids/eslint-config": "*",
56
- "@popgrids/prettier-config": "*",
57
- "@types/mocha": "^10.0.10",
58
- "@web/dev-server-esbuild": "^1.0.4",
59
- "@web/test-runner": "^0.20.0",
60
- "composed-offset-position": "^0.0.6",
61
- "openapi-typescript": "^7.6.1",
62
- "tsup": "^8.4.0"
53
+ "@changesets/cli": "^2.31.0",
54
+ "concurrently": "^10.0.3",
55
+ "live-server": "^1.2.2",
56
+ "prettier": "^3.8.4",
57
+ "prettier-plugin-embed": "^0.5.1",
58
+ "typescript": "^5.7.0",
59
+ "vite": "^8.0.16",
60
+ "vite-plugin-dts": "^5.0.2"
61
+ },
62
+ "scripts": {
63
+ "build:lib": "vite build",
64
+ "build:embed": "vite build --config vite.embed.config.ts",
65
+ "build": "rm -rf dist && pnpm run build:lib && pnpm run build:embed",
66
+ "typecheck": "tsc --noEmit",
67
+ "dev": "concurrently -k \"vite build --watch\" \"vite build --config vite.embed.config.ts --watch\"",
68
+ "demo": "pnpm run build && npx serve . -p 5500 --cors",
69
+ "demo:dev": "concurrently -k \"pnpm run dev\" \"live-server --port=5500 --open=demo --watch=dist,demo\"",
70
+ "changeset": "changeset",
71
+ "changeset:version": "changeset version",
72
+ "clean": "rm -rf node_modules dist"
63
73
  }
64
- }
74
+ }
Binary file
Binary file