@collabkit/react
Advanced tools
Comparing version 0.8.17-alpha-4 to 0.8.17-alpha-5
@@ -675,2 +675,38 @@ /// <reference types="react" /> | ||
savePin(params: { | ||
appId: string; | ||
workspaceId: string; | ||
objectId: string; | ||
pin: { | ||
x: number; | ||
y: number; | ||
threadId: string; | ||
eventId: 'default' | string; | ||
}; | ||
}): Promise<string>; | ||
deletePin(params: { | ||
appId: string; | ||
workspaceId: string; | ||
objectId: string; | ||
pinId: string; | ||
}): Promise<void>; | ||
subscribeOpenPins(params: { | ||
appId: string; | ||
workspaceId: string; | ||
subs: Subscriptions; | ||
onGet: (pins: { [objectId: string]: { [pinId: string]: { x: number; y: number } } }) => void; | ||
onObjectChange: (objectId: string, pins: { [pinId: string]: { x: number; y: number } }) => void; | ||
onObjectRemove: (objectId: string) => void; | ||
}): Promise<void>; | ||
movePin(params: { | ||
appId: string; | ||
workspaceId: string; | ||
pinId: string; | ||
x: number; | ||
y: number; | ||
}): Promise<void>; | ||
saveProfile(params: { | ||
@@ -776,2 +812,3 @@ appId: string; | ||
}) => void; | ||
type InboxChangeEventHandler = (props: { event: WithID<Event>; threadId: string }) => void; | ||
@@ -1134,4 +1171,18 @@ | ||
fetchedProfiles: { [threadId: string]: { [userId: string]: boolean } }; | ||
openPins: { [objectId: string]: { [pinId: string]: Pin } }; | ||
pendingPin: PendingPin | null; | ||
} | ||
// get all pins for the workspace that have an open thread attached to them (we don't want resolved ones) | ||
// get all threads for these pins in one query (comment sidebar speed) | ||
type PendingPin = Pin & { objectId: string }; | ||
type Pin = { | ||
threadId: string; | ||
eventId: string; | ||
x: number; | ||
y: number; | ||
}; | ||
interface UnconfiguredStore { | ||
@@ -1923,2 +1974,3 @@ sync: null | SyncAdapter; | ||
body?: string; | ||
['data-testid']?: string; | ||
}): JSX.Element; | ||
@@ -1963,3 +2015,3 @@ declare function ComposerContentEditable(props: { | ||
declare function CommentList(props: React$1.ComponentProps<'div'> & { | ||
declare function CommentList(props: ComponentProps<'div'> & { | ||
renderComment?: (props: CommentProps) => ReactNode; | ||
@@ -1978,2 +2030,3 @@ hideResolveButton?: boolean; | ||
className?: string; | ||
['data-testid']?: string; | ||
}): JSX.Element; | ||
@@ -1980,0 +2033,0 @@ |
{ | ||
"name": "@collabkit/react", | ||
"version": "0.8.17-alpha-4", | ||
"version": "0.8.17-alpha-5", | ||
"type": "module", | ||
@@ -25,3 +25,4 @@ "files": [ | ||
"dev": "ladle serve", | ||
"build": "yarn clean && tsc && vite build && rollup --config rollup.config.js", | ||
"build": "yarn clean && tsc && vite build && rollup --config rollup.config.js && yarn check-build", | ||
"check-build": "yarn tsc --noEmit --esModuleInterop dist/collabkit-react.d.ts", | ||
"clean": "rimraf dist types *.tsbuildinfo", | ||
@@ -28,0 +29,0 @@ "preview": "vite preview", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2020511
38661