@burdenoff/planmagnet-fe-sdk 2026.704.1 → 2026.704.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/dist/index.d.ts +7 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -992,6 +992,12 @@ interface TasksPageCoreProps {
|
|
|
992
992
|
currentActorId?: string;
|
|
993
993
|
/** Host-provided translations for every UI string (English defaults otherwise). */
|
|
994
994
|
labels?: PartialTaskLabels;
|
|
995
|
+
/**
|
|
996
|
+
* Open a specific work item's detail on mount / when this changes — e.g. a
|
|
997
|
+
* deep-link from the calendar (`/tasks?item=<id>`). Cleared internally when
|
|
998
|
+
* the user closes the drawer; pass a new value to re-open.
|
|
999
|
+
*/
|
|
1000
|
+
openItemId?: string;
|
|
995
1001
|
/**
|
|
996
1002
|
* Header/title slot rendered ABOVE the toolbar. Pass a string for the default
|
|
997
1003
|
* heading, or any node to fully own the title area. Omit for no title (e.g.
|
|
@@ -1016,7 +1022,7 @@ interface TasksPageCoreProps {
|
|
|
1016
1022
|
* BYO-Apollo: reads the ambient `<ApolloProvider>` and takes `workspaceId` from
|
|
1017
1023
|
* a prop or the PlanMagnetProvider context. Semantic tokens only, farm-free.
|
|
1018
1024
|
*/
|
|
1019
|
-
declare function TasksPageCore({ workspaceId: workspaceIdProp, projectId, boardProjectId, columns, readonly, hiddenFields, views, defaultView, resolveAssignee, linkSourceProduct, renderLinkIcon, assigneeOptions, currentActorId, labels, header, onTaskSaved, createSurface, detailSurface, className, }: TasksPageCoreProps): react.JSX.Element;
|
|
1025
|
+
declare function TasksPageCore({ workspaceId: workspaceIdProp, projectId, boardProjectId, columns, readonly, hiddenFields, views, defaultView, resolveAssignee, linkSourceProduct, renderLinkIcon, assigneeOptions, currentActorId, labels, openItemId, header, onTaskSaved, createSurface, detailSurface, className, }: TasksPageCoreProps): react.JSX.Element;
|
|
1020
1026
|
|
|
1021
1027
|
interface TasksPageProps extends TasksPageCoreProps {
|
|
1022
1028
|
/** Workspace API gateway URL (URL mode). */
|
package/dist/index.js
CHANGED
|
@@ -2818,6 +2818,7 @@ function TasksPageCore({
|
|
|
2818
2818
|
assigneeOptions,
|
|
2819
2819
|
currentActorId,
|
|
2820
2820
|
labels,
|
|
2821
|
+
openItemId,
|
|
2821
2822
|
header,
|
|
2822
2823
|
onTaskSaved,
|
|
2823
2824
|
createSurface = "modal",
|
|
@@ -2835,6 +2836,9 @@ function TasksPageCore({
|
|
|
2835
2836
|
const [mine, setMine] = useState(false);
|
|
2836
2837
|
const [creating, setCreating] = useState(false);
|
|
2837
2838
|
const [selectedId, setSelectedId] = useState(null);
|
|
2839
|
+
useEffect(() => {
|
|
2840
|
+
if (openItemId) setSelectedId(openItemId);
|
|
2841
|
+
}, [openItemId]);
|
|
2838
2842
|
const refetchBoard = useCallback(() => {
|
|
2839
2843
|
void client.refetchQueries({ include: [LIST_WORK_ITEMS] }).catch(() => {
|
|
2840
2844
|
});
|