@rise-x/apps-sdk 0.20.0 → 0.20.1
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/API.md +11 -7
- package/README.md +1 -1
- package/build/connectors/assets.d.ts +5 -2
- package/build/connectors/assets.js +22 -6
- package/build/connectors/index.d.ts +1 -1
- package/build/connectors/work.d.ts +1 -0
- package/build/connectors/work.js +36 -2
- package/build/dependencies/bound.d.ts +2 -2
- package/build/query/assets.d.ts +4 -4
- package/build/query/assets.js +13 -7
- package/build/ui/demo.html +135 -135
- package/package.json +1 -1
package/API.md
CHANGED
|
@@ -18,7 +18,7 @@ hook, a connector, and only then `getShellApiV4(key)`.
|
|
|
18
18
|
|
|
19
19
|
## Shell hooks and accessors (`@rise-x/apps-sdk`)
|
|
20
20
|
|
|
21
|
-
- `useShellUser()` returns `{ id, name, email? } | null`.
|
|
21
|
+
- `useShellUser()` returns `{ id, name, email? } | null`. `id` is the user's directory id, the same value as `createdBy` and `assignedUsers.id` on a work item.
|
|
22
22
|
- `useShellEnvironment()` returns `{ id, name, slug } | null`.
|
|
23
23
|
- `useShellNavigate()` returns react-router's `navigate` function.
|
|
24
24
|
- `getShellApiV4(key)` with `key` `'apps' | 'work' | 'config' | 'attachment' | 'asset'`, and `getShellApi()`: raw axios clients, the last resort.
|
|
@@ -72,11 +72,12 @@ const rows = dedupeRows(search.data); // WorkSummary[]; key them by row.id
|
|
|
72
72
|
## Connectors (`@rise-x/apps-sdk/connectors`)
|
|
73
73
|
|
|
74
74
|
Work:
|
|
75
|
-
- `work.start({ flowId, stepName?, data? })` returns the new `WorkDetail`. `flowId` takes a flow id or a flow origin id.
|
|
75
|
+
- `work.start({ flowId, stepName?, data? })` returns the new item's `WorkDetail`, the same as `work.get`, so its `actions` are ready for `work.submit`. `flowId` takes a flow id or a flow origin id.
|
|
76
|
+
If the SDK can't read the new item back, `start` still returns it, with `actions` empty and no `status`: call `work.get(id)` before you submit.
|
|
76
77
|
- `work.get(id)` returns `WorkDetail | null` (`null` only on a 404): `status`, `state`, `flowOriginId`, `actions`, `attachments`.
|
|
77
78
|
- `work.getData(id, { path? })` returns the data document, or the subtree at `path`.
|
|
78
79
|
- `work.patchData(id, { originId, path, value, operation? })` writes one field. `operation` defaults to `'Set'`.
|
|
79
|
-
- `work.submit({ workId, actionName, stepName? })` runs an action and returns the `WorkDetail` after the flow engine ran. Leave `stepName` out: the SDK sends the name of the action set that offers the action.
|
|
80
|
+
- `work.submit({ workId, actionName, stepName? })` runs an action and returns the `WorkDetail` after the flow engine ran, the same as `work.get`. The same rule as `start` applies when the SDK can't read the item back. Leave `stepName` out: the SDK sends the name of the action set that offers the action.
|
|
80
81
|
- `work.delete(id)` soft-deletes the item.
|
|
81
82
|
- `work.search({ filter, fields?, sort?, page?, pageSize?, includeTotalCount? })` returns `{ items: WorkSummary[], page, pageSize, hasMore, totalCount? }`.
|
|
82
83
|
- `work.list({ flow, stepIds?, properties?, showCompleted?, sort?, pageSize?, skip? })` returns `{ items: WorkRow[], skip, pageSize, hasMore }`. `work.iterate({ ..., maxItems? })` yields every row.
|
|
@@ -92,9 +93,12 @@ Assets: `assets.types()` returns `AssetType[]`, with the origin id at
|
|
|
92
93
|
`type.flow.flowOriginId`. `assets.get(id)`, `assets.search({ filter, ... })` (same
|
|
93
94
|
shape as `work.search`), `assets.quickSearch({ search?, type?, typeOriginId? })`,
|
|
94
95
|
`assets.list({ type, ... })`, and `assets.iterate(...)` read. `assets.create({ type })`
|
|
95
|
-
and `assets.startEdit({ assetId, flowOriginId })` return
|
|
96
|
-
|
|
97
|
-
`
|
|
96
|
+
and `assets.startEdit({ assetId, flowOriginId })` return an `AssetDraft`: the draft
|
|
97
|
+
work item as `work.get` returns it, plus `assetId`. Its `id` is the draft's, so fill
|
|
98
|
+
it with `work.patchData(draft.id, ...)` and save it with `work.submit` and one of its
|
|
99
|
+
`actions`. If the read of the draft fails, `actions` is empty: call `work.get(draft.id)`
|
|
100
|
+
before you submit. If the answer names no draft, the call throws `PARSE_ERROR`.
|
|
101
|
+
`assets.clone(id)` and `assets.delete(id)` complete the set.
|
|
98
102
|
|
|
99
103
|
Agents: `agents.run({ agentId, message, chatId?, context?, attachments?, vectorStoreIds? })`
|
|
100
104
|
streams `AgentRunEvent`s. `agents.createChat({ agentId })` returns a session whose
|
|
@@ -138,4 +142,4 @@ await work.submit({ workId, actionName: chosen.eventName ?? chosen.name! });
|
|
|
138
142
|
## Where to look next
|
|
139
143
|
|
|
140
144
|
- README sections: "Choosing an API", "Bound connectors", "Work — items (read + write)", "Assets — typed records", "Agents — configurable AI", "Query layer (react-query)", "Live events and presence", "UI components".
|
|
141
|
-
- Types: `build/connectors/types.d.ts` (`WorkDetail`, `WorkSummary`, `WorkRow`, `AssetType`), `build/connectors/work.d.ts`, `build/connectors/search.d.ts`, `build/dependencies/bound.d.ts`, `build/query/index.d.ts`, `build/live/index.d.ts`.
|
|
145
|
+
- Types: `build/connectors/types.d.ts` (`WorkDetail`, `WorkSummary`, `WorkRow`, `AssetType`), `build/connectors/assets.d.ts` (`AssetDraft`), `build/connectors/work.d.ts`, `build/connectors/search.d.ts`, `build/dependencies/bound.d.ts`, `build/query/index.d.ts`, `build/live/index.d.ts`.
|
package/README.md
CHANGED
|
@@ -1638,7 +1638,7 @@ const devAxios = axios.create({
|
|
|
1638
1638
|
window.__DIANA_SHELL__ = createMockShell({
|
|
1639
1639
|
api: () => devAxios,
|
|
1640
1640
|
apiV4: (_name) => devAxios, // one dev backend serves every V4ApiKey
|
|
1641
|
-
ai: { baseUrl: 'http://localhost:50062', getHeaders: () => ({ Authorization: token,
|
|
1641
|
+
ai: { baseUrl: 'http://localhost:50062', getHeaders: () => ({ Authorization: token, Environment: 'dev' }) },
|
|
1642
1642
|
});
|
|
1643
1643
|
```
|
|
1644
1644
|
|
|
@@ -48,6 +48,9 @@ export interface CreateAssetArgs {
|
|
|
48
48
|
type: AssetTypeRef;
|
|
49
49
|
signal?: AbortSignal;
|
|
50
50
|
}
|
|
51
|
+
export interface AssetDraft extends WorkDetail {
|
|
52
|
+
assetId: string;
|
|
53
|
+
}
|
|
51
54
|
export interface StartEditAssetArgs {
|
|
52
55
|
assetId: string;
|
|
53
56
|
flowOriginId: string;
|
|
@@ -65,8 +68,8 @@ export interface AssetsConnector {
|
|
|
65
68
|
list(args: ListAssetRowsArgs): Promise<AssetRowPage>;
|
|
66
69
|
iterate(args: IterateAssetRowsArgs): AsyncIterable<AssetSummary>;
|
|
67
70
|
listRelated(args: ListRelatedAssetsArgs): Promise<AssetSummary[]>;
|
|
68
|
-
create(args: CreateAssetArgs): Promise<
|
|
69
|
-
startEdit(args: StartEditAssetArgs): Promise<
|
|
71
|
+
create(args: CreateAssetArgs): Promise<AssetDraft>;
|
|
72
|
+
startEdit(args: StartEditAssetArgs): Promise<AssetDraft>;
|
|
70
73
|
clone(assetId: string, opts?: {
|
|
71
74
|
signal?: AbortSignal;
|
|
72
75
|
}): Promise<AssetDetail>;
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
// Asset types are defined by entity flows; the flow's origin id is the type
|
|
6
6
|
// reference list()/create() take. Creating or editing an asset goes through a
|
|
7
7
|
// draft work item (the platform's edit model): create()/startEdit() return the
|
|
8
|
-
// draft as
|
|
9
|
-
// work.submit(), exactly like any other work
|
|
8
|
+
// draft as work.get() returns it, plus the asset's id — fill it with
|
|
9
|
+
// work.patchData() and save it with work.submit(), exactly like any other work
|
|
10
|
+
// item.
|
|
10
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
12
|
exports.assets = exports.ASSET_TARGET_DATA_TYPES = void 0;
|
|
12
13
|
exports.createAssetsConnector = createAssetsConnector;
|
|
@@ -30,6 +31,7 @@ const resolveTypeRef = (type) => {
|
|
|
30
31
|
return flowOriginId;
|
|
31
32
|
};
|
|
32
33
|
const DEFAULT_PAGE_SIZE = 50;
|
|
34
|
+
const EMPTY_GUID = "00000000-0000-0000-0000-000000000000";
|
|
33
35
|
function createAssetsConnector(deps = { shell: _internal_1.requireShell }) {
|
|
34
36
|
const api = () => deps.shell().getApi();
|
|
35
37
|
const types = async (opts = {}) => {
|
|
@@ -176,24 +178,38 @@ function createAssetsConnector(deps = { shell: _internal_1.requireShell }) {
|
|
|
176
178
|
throw (0, errors_1.toConnectorError)(e);
|
|
177
179
|
}
|
|
178
180
|
};
|
|
181
|
+
// Both v3 answers are the asset; its draft is `draftWorkId`, read from v4 as
|
|
182
|
+
// work.start() does. `workDraft` is the v3 copy, used if that read fails.
|
|
183
|
+
const toDraft = async (answer, signal) => {
|
|
184
|
+
const asset = (0, types_1.mapAssetDetail)(answer ?? {});
|
|
185
|
+
const draftWorkId = asset.draftWorkId;
|
|
186
|
+
if (!draftWorkId || draftWorkId === EMPTY_GUID) {
|
|
187
|
+
throw new errors_1.ConnectorError("PARSE_ERROR", `the answer for asset '${asset.id}' named no draft work item`);
|
|
188
|
+
}
|
|
189
|
+
const written = (0, types_1.mapWorkDetail)(answer?.workDraft);
|
|
190
|
+
const draft = await (0, work_1.readWorkBack)(deps, draftWorkId, written, signal);
|
|
191
|
+
return { ...draft, assetId: asset.id };
|
|
192
|
+
};
|
|
179
193
|
const create = async (args) => {
|
|
180
194
|
const flowOriginId = resolveTypeRef(args.type);
|
|
195
|
+
let answer;
|
|
181
196
|
try {
|
|
182
|
-
|
|
183
|
-
return (0, types_1.mapWorkDetail)(data ?? {});
|
|
197
|
+
({ data: answer } = await api().post(`/api/v3/entity/create/${flowOriginId}`, undefined, { signal: args.signal }));
|
|
184
198
|
}
|
|
185
199
|
catch (e) {
|
|
186
200
|
throw (0, errors_1.toConnectorError)(e);
|
|
187
201
|
}
|
|
202
|
+
return toDraft(answer, args.signal);
|
|
188
203
|
};
|
|
189
204
|
const startEdit = async (args) => {
|
|
205
|
+
let answer;
|
|
190
206
|
try {
|
|
191
|
-
|
|
192
|
-
return (0, types_1.mapWorkDetail)(data ?? {});
|
|
207
|
+
({ data: answer } = await api().post(`/api/v3/asset/${args.assetId}/edit`, undefined, { params: { flowOriginId: args.flowOriginId }, signal: args.signal }));
|
|
193
208
|
}
|
|
194
209
|
catch (e) {
|
|
195
210
|
throw (0, errors_1.toConnectorError)(e);
|
|
196
211
|
}
|
|
212
|
+
return toDraft(answer, args.signal);
|
|
197
213
|
};
|
|
198
214
|
const clone = async (assetId, opts = {}) => {
|
|
199
215
|
try {
|
|
@@ -5,7 +5,7 @@ export * from "./types";
|
|
|
5
5
|
export { DEFAULT_SEARCH_PAGE_SIZE, searchCacheShape, type SearchArgs, type SearchCondition, type SearchFilter, type SearchOperator, type SearchPage, } from "./search";
|
|
6
6
|
export { createFlowsConnector, findTaskIn, flattenLayoutFields, flows, type FindTaskArgs, type FindTaskResult, type FlowsConnector, type ListFlowsArgs, } from "./flows";
|
|
7
7
|
export { createWorkConnector, work, type FlowRef, type IterateWorkRowsArgs, type ListRelatedWorkArgs, type ListWorkRowsArgs, type SearchWorkArgs, type StartWorkArgs, type SubmitWorkArgs, type WorkConnector, type WorkDataPatch, type WorkPatchOperation, type WorkRowPage, type WorkSearchPage, } from "./work";
|
|
8
|
-
export { ASSET_TARGET_DATA_TYPES, assets, createAssetsConnector, type AssetRowPage, type AssetSearchPage, type AssetsConnector, type AssetTypeRef, type CreateAssetArgs, type IterateAssetRowsArgs, type ListAssetRowsArgs, type ListRelatedAssetsArgs, type QuickSearchAssetsArgs, type SearchAssetsArgs, type StartEditAssetArgs, } from "./assets";
|
|
8
|
+
export { ASSET_TARGET_DATA_TYPES, assets, createAssetsConnector, type AssetDraft, type AssetRowPage, type AssetSearchPage, type AssetsConnector, type AssetTypeRef, type CreateAssetArgs, type IterateAssetRowsArgs, type ListAssetRowsArgs, type ListRelatedAssetsArgs, type QuickSearchAssetsArgs, type SearchAssetsArgs, type StartEditAssetArgs, } from "./assets";
|
|
9
9
|
export { agentEndReason, agentErrorText, agentMessageText, agents, collectAgentReply, createAgentsConnector, streamAgentReply, type AgentChatSession, type AgentReplyState, type AgentsConnector, type CreateAgentChatArgs, type GetChatMessagesArgs, type ListAgentsArgs, type ListChatsArgs, type RunAgentArgs, type SendChatArgs, } from "./agents";
|
|
10
10
|
export { attachments, createAttachmentsConnector, type AttachmentsConnector, type GetAttachmentBlobArgs, type UploadAttachmentArgs, } from "./attachments";
|
|
11
11
|
export { createIntegrationsConnector, integrations, type IntegrationsConnector, type InvokeIntegrationEndpointArgs, } from "./integrations";
|
|
@@ -98,5 +98,6 @@ export interface WorkConnector {
|
|
|
98
98
|
}
|
|
99
99
|
export declare const resolveFlowRef: (flow: FlowRef | null | undefined) => string;
|
|
100
100
|
export declare function buildAdditionalProperties(properties?: Record<string, string>): unknown[];
|
|
101
|
+
export declare function readWorkBack(deps: ConnectorDeps, workId: string, written: WorkDetail, signal?: AbortSignal): Promise<WorkDetail>;
|
|
101
102
|
export declare function createWorkConnector(deps?: ConnectorDeps): WorkConnector;
|
|
102
103
|
export declare const work: WorkConnector;
|
package/build/connectors/work.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.work = exports.resolveFlowRef = void 0;
|
|
4
4
|
exports.buildAdditionalProperties = buildAdditionalProperties;
|
|
5
|
+
exports.readWorkBack = readWorkBack;
|
|
5
6
|
exports.createWorkConnector = createWorkConnector;
|
|
6
7
|
const _internal_1 = require("../_internal");
|
|
7
8
|
const errors_1 = require("./errors");
|
|
@@ -39,22 +40,53 @@ function buildAdditionalProperties(properties) {
|
|
|
39
40
|
isExpandedProperty: false,
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
43
|
+
// v3 answers carry actions without event names and a step state as `status`, so writes that
|
|
44
|
+
// answer from v3 read the item from v4. The write already happened: a failed read must not hide
|
|
45
|
+
// it. Network only, since a cached copy predates the write.
|
|
46
|
+
async function readWorkBack(deps, workId, written, signal) {
|
|
47
|
+
let data;
|
|
48
|
+
try {
|
|
49
|
+
({ data } = await deps
|
|
50
|
+
.shell()
|
|
51
|
+
.getApiV4("work")
|
|
52
|
+
.get(`/api/v4/work/${workId}`, {
|
|
53
|
+
signal,
|
|
54
|
+
timeout: readPolicy_1.READ_TIMEOUT_MS,
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
// A host with no v4 work client counts as a failed read, not a failed write.
|
|
59
|
+
}
|
|
60
|
+
const detail = (0, types_1.mapWorkDetail)(data ?? {});
|
|
61
|
+
return detail.id
|
|
62
|
+
? detail
|
|
63
|
+
: {
|
|
64
|
+
...written,
|
|
65
|
+
id: workId,
|
|
66
|
+
displayName: written.displayName || workId,
|
|
67
|
+
status: undefined,
|
|
68
|
+
actions: [],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
42
71
|
function createWorkConnector(deps = { shell: _internal_1.requireShell }) {
|
|
43
72
|
const workApi = () => deps.shell().getApiV4("work");
|
|
73
|
+
const readBack = (workId, written, signal) => readWorkBack(deps, workId, written, signal);
|
|
44
74
|
// start/submit go through the v3 flow engine — the same endpoints the shell
|
|
45
75
|
// uses. The v4 `work/submit/*` routes only ever existed on the unreleased
|
|
46
76
|
// flow-engine branch and 404 on deployed APIs.
|
|
47
77
|
const start = async (args) => {
|
|
78
|
+
let created;
|
|
48
79
|
try {
|
|
49
80
|
const { data } = await deps
|
|
50
81
|
.shell()
|
|
51
82
|
.getApi()
|
|
52
83
|
.post(`/api/v3/flow/${args.flowId}/startAt`, args.data ?? {}, { params: { stepName: args.stepName }, signal: args.signal });
|
|
53
|
-
|
|
84
|
+
created = (0, types_1.mapWorkDetail)(data ?? {});
|
|
54
85
|
}
|
|
55
86
|
catch (e) {
|
|
56
87
|
throw (0, errors_1.toConnectorError)(e);
|
|
57
88
|
}
|
|
89
|
+
return readBack(created.id, created, args.signal);
|
|
58
90
|
};
|
|
59
91
|
const get = (workId, opts = {}) => (0, readPolicy_1.resolveRead)({
|
|
60
92
|
shell: deps.shell,
|
|
@@ -148,17 +180,19 @@ function createWorkConnector(deps = { shell: _internal_1.requireShell }) {
|
|
|
148
180
|
}
|
|
149
181
|
};
|
|
150
182
|
const submit = async (args) => {
|
|
183
|
+
let submitted;
|
|
151
184
|
try {
|
|
152
185
|
const stepName = args.stepName ?? (await resolveStepName(args));
|
|
153
186
|
const { data } = await deps
|
|
154
187
|
.shell()
|
|
155
188
|
.getApi()
|
|
156
189
|
.post(`/api/v3/flow/submit/${args.workId}`, { stepName }, { params: { eventName: args.actionName }, signal: args.signal });
|
|
157
|
-
|
|
190
|
+
submitted = (0, types_1.mapWorkDetail)(data ?? {});
|
|
158
191
|
}
|
|
159
192
|
catch (e) {
|
|
160
193
|
throw (0, errors_1.toConnectorError)(e);
|
|
161
194
|
}
|
|
195
|
+
return readBack(args.workId, submitted, args.signal);
|
|
162
196
|
};
|
|
163
197
|
const del = async (workId, opts = {}) => {
|
|
164
198
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AgentChatSession, type AgentsConnector, type CreateAgentChatArgs, type ListChatsArgs, type RunAgentArgs } from "../connectors/agents";
|
|
2
|
-
import { type AssetRowPage, type AssetSearchPage, type AssetsConnector, type CreateAssetArgs, type IterateAssetRowsArgs, type ListAssetRowsArgs, type QuickSearchAssetsArgs } from "../connectors/assets";
|
|
2
|
+
import { type AssetDraft, type AssetRowPage, type AssetSearchPage, type AssetsConnector, type CreateAssetArgs, type IterateAssetRowsArgs, type ListAssetRowsArgs, type QuickSearchAssetsArgs } from "../connectors/assets";
|
|
3
3
|
import { type FlowsConnector } from "../connectors/flows";
|
|
4
4
|
import { type IntegrationsConnector, type InvokeIntegrationEndpointArgs } from "../connectors/integrations";
|
|
5
5
|
import type { SearchArgs } from "../connectors/search";
|
|
@@ -25,7 +25,7 @@ export interface BoundAssetsSurface {
|
|
|
25
25
|
iterate(args?: Omit<IterateAssetRowsArgs, "type">): AsyncIterable<AssetSummary>;
|
|
26
26
|
search(args?: SearchArgs): Promise<AssetSearchPage>;
|
|
27
27
|
quickSearch(args?: Omit<QuickSearchAssetsArgs, "typeOriginId">): Promise<AssetSummary[]>;
|
|
28
|
-
create(args?: Omit<CreateAssetArgs, "type">): Promise<
|
|
28
|
+
create(args?: Omit<CreateAssetArgs, "type">): Promise<AssetDraft>;
|
|
29
29
|
}
|
|
30
30
|
export interface BoundAgentSurface {
|
|
31
31
|
get(opts?: {
|
package/build/query/assets.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type InfiniteData, type UseInfiniteQueryResult, type UseQueryResult } from "@tanstack/react-query";
|
|
2
|
-
import { type AssetRowPage, type AssetSearchPage, type AssetsConnector, type CreateAssetArgs, type ListAssetRowsArgs, type ListRelatedAssetsArgs, type QuickSearchAssetsArgs, type SearchAssetsArgs, type StartEditAssetArgs } from "../connectors/assets";
|
|
2
|
+
import { type AssetDraft, type AssetRowPage, type AssetSearchPage, type AssetsConnector, type CreateAssetArgs, type ListAssetRowsArgs, type ListRelatedAssetsArgs, type QuickSearchAssetsArgs, type SearchAssetsArgs, type StartEditAssetArgs } from "../connectors/assets";
|
|
3
3
|
import type { ConnectorError } from "../connectors/errors";
|
|
4
|
-
import type { AssetDetail, AssetSummary, AssetType
|
|
4
|
+
import type { AssetDetail, AssetSummary, AssetType } from "../connectors/types";
|
|
5
5
|
import { type QueryEnvId } from "./keys";
|
|
6
6
|
import { type SdkMutationOptions, type SdkQueryOptions } from "./shared";
|
|
7
7
|
export type SearchAssetsQueryArgs = Omit<SearchAssetsArgs, "page" | "signal">;
|
|
@@ -73,9 +73,9 @@ export declare function useAssetQuickSearch(args: QuickSearchAssetsQueryArgs, op
|
|
|
73
73
|
export declare function useAssetRows(args: ListAssetRowsQueryArgs, options?: SdkQueryOptions): UseInfiniteQueryResult<InfiniteData<AssetRowPage>, ConnectorError>;
|
|
74
74
|
export declare function useRelatedAssets(args: ListRelatedAssetsQueryArgs, options?: SdkQueryOptions): UseQueryResult<AssetSummary[], ConnectorError>;
|
|
75
75
|
export type CreateAssetVariables = Omit<CreateAssetArgs, "signal">;
|
|
76
|
-
export declare function useCreateAsset(options?: SdkMutationOptions<
|
|
76
|
+
export declare function useCreateAsset(options?: SdkMutationOptions<AssetDraft, CreateAssetVariables>): import("@tanstack/react-query").UseMutationResult<AssetDraft, ConnectorError, CreateAssetVariables, unknown>;
|
|
77
77
|
export type StartEditAssetVariables = Omit<StartEditAssetArgs, "signal">;
|
|
78
|
-
export declare function useStartEditAsset(options?: SdkMutationOptions<
|
|
78
|
+
export declare function useStartEditAsset(options?: SdkMutationOptions<AssetDraft, StartEditAssetVariables>): import("@tanstack/react-query").UseMutationResult<AssetDraft, ConnectorError, StartEditAssetVariables, unknown>;
|
|
79
79
|
export interface CloneAssetVariables {
|
|
80
80
|
assetId: string;
|
|
81
81
|
}
|
package/build/query/assets.js
CHANGED
|
@@ -16,10 +16,11 @@ exports.useDeleteAsset = useDeleteAsset;
|
|
|
16
16
|
// their cache-consistency rules. Built-in invalidation runs before the
|
|
17
17
|
// caller's onSuccess — composed, never replaced.
|
|
18
18
|
//
|
|
19
|
-
// Note the platform's edit model: create/startEdit return a DRAFT WORK ITEM
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
19
|
+
// Note the platform's edit model: create/startEdit return a DRAFT WORK ITEM,
|
|
20
|
+
// saved via work.submit (useSubmitWork). Both mutations invalidate the WORK
|
|
21
|
+
// listings here. create also saves a draft asset at once and startEdit sets
|
|
22
|
+
// the asset's draftWorkId, so they invalidate asset caches too; useSubmitWork
|
|
23
|
+
// (query/work.ts) invalidates the assets scope when the draft is saved.
|
|
23
24
|
const react_query_1 = require("@tanstack/react-query");
|
|
24
25
|
const assets_1 = require("../connectors/assets");
|
|
25
26
|
const search_1 = require("../connectors/search");
|
|
@@ -126,18 +127,19 @@ function useRelatedAssets(args, options) {
|
|
|
126
127
|
function useCreateAsset(options) {
|
|
127
128
|
return (0, shared_1.useSdkMutation)((vars) => assets_1.assets.create(vars), (client) => {
|
|
128
129
|
const envId = (0, shared_1.getLiveEnvId)();
|
|
129
|
-
// CROSS-DOMAIN: the draft shows up as a WORK item
|
|
130
|
-
//
|
|
130
|
+
// CROSS-DOMAIN: the draft shows up as a WORK item, and the platform
|
|
131
|
+
// saves the asset as a draft at once, so asset listings go stale too.
|
|
131
132
|
void client.invalidateQueries({
|
|
132
133
|
queryKey: keys_1.queryKeys.work.allRows(envId),
|
|
133
134
|
});
|
|
134
135
|
void client.invalidateQueries({
|
|
135
136
|
queryKey: keys_1.queryKeys.work.searchAll(envId),
|
|
136
137
|
});
|
|
138
|
+
void client.invalidateQueries({ queryKey: keys_1.queryKeys.assets.all(envId) });
|
|
137
139
|
}, options);
|
|
138
140
|
}
|
|
139
141
|
function useStartEditAsset(options) {
|
|
140
|
-
return (0, shared_1.useSdkMutation)((vars) => assets_1.assets.startEdit(vars), (client) => {
|
|
142
|
+
return (0, shared_1.useSdkMutation)((vars) => assets_1.assets.startEdit(vars), (client, _data, vars) => {
|
|
141
143
|
const envId = (0, shared_1.getLiveEnvId)();
|
|
142
144
|
// CROSS-DOMAIN: same draft-as-work-item model as useCreateAsset.
|
|
143
145
|
void client.invalidateQueries({
|
|
@@ -146,6 +148,10 @@ function useStartEditAsset(options) {
|
|
|
146
148
|
void client.invalidateQueries({
|
|
147
149
|
queryKey: keys_1.queryKeys.work.searchAll(envId),
|
|
148
150
|
});
|
|
151
|
+
// The asset's draftWorkId now names this draft.
|
|
152
|
+
void client.invalidateQueries({
|
|
153
|
+
queryKey: keys_1.queryKeys.assets.detail(envId, vars.assetId),
|
|
154
|
+
});
|
|
149
155
|
}, options);
|
|
150
156
|
}
|
|
151
157
|
function useCloneAsset(options) {
|
package/build/ui/demo.html
CHANGED
|
@@ -9390,7 +9390,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9390
9390
|
data-slot="table-cell"
|
|
9391
9391
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
9392
9392
|
>
|
|
9393
|
-
|
|
9393
|
+
19 Nov
|
|
9394
9394
|
</td>
|
|
9395
9395
|
</tr>
|
|
9396
9396
|
<tr
|
|
@@ -9432,7 +9432,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9432
9432
|
data-slot="table-cell"
|
|
9433
9433
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
9434
9434
|
>
|
|
9435
|
-
|
|
9435
|
+
20 Nov
|
|
9436
9436
|
</td>
|
|
9437
9437
|
</tr>
|
|
9438
9438
|
<tr
|
|
@@ -9474,7 +9474,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9474
9474
|
data-slot="table-cell"
|
|
9475
9475
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
9476
9476
|
>
|
|
9477
|
-
|
|
9477
|
+
20 Nov
|
|
9478
9478
|
</td>
|
|
9479
9479
|
</tr>
|
|
9480
9480
|
<tr
|
|
@@ -9516,7 +9516,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9516
9516
|
data-slot="table-cell"
|
|
9517
9517
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
9518
9518
|
>
|
|
9519
|
-
|
|
9519
|
+
21 Nov
|
|
9520
9520
|
</td>
|
|
9521
9521
|
</tr>
|
|
9522
9522
|
<tr
|
|
@@ -9558,7 +9558,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9558
9558
|
data-slot="table-cell"
|
|
9559
9559
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
9560
9560
|
>
|
|
9561
|
-
|
|
9561
|
+
21 Nov
|
|
9562
9562
|
</td>
|
|
9563
9563
|
</tr>
|
|
9564
9564
|
</tbody>
|
|
@@ -9778,7 +9778,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9778
9778
|
<dd
|
|
9779
9779
|
class="min-w-0 truncate text-xs [&>*]:justify-start! [&>*]:text-left!"
|
|
9780
9780
|
>
|
|
9781
|
-
|
|
9781
|
+
21 Nov
|
|
9782
9782
|
</dd>
|
|
9783
9783
|
</dl>
|
|
9784
9784
|
</div>
|
|
@@ -9817,7 +9817,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9817
9817
|
<dd
|
|
9818
9818
|
class="min-w-0 truncate text-xs [&>*]:justify-start! [&>*]:text-left!"
|
|
9819
9819
|
>
|
|
9820
|
-
|
|
9820
|
+
20 Nov
|
|
9821
9821
|
</dd>
|
|
9822
9822
|
</dl>
|
|
9823
9823
|
</div>
|
|
@@ -9856,7 +9856,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9856
9856
|
<dd
|
|
9857
9857
|
class="min-w-0 truncate text-xs [&>*]:justify-start! [&>*]:text-left!"
|
|
9858
9858
|
>
|
|
9859
|
-
|
|
9859
|
+
19 Nov
|
|
9860
9860
|
</dd>
|
|
9861
9861
|
</dl>
|
|
9862
9862
|
</div>
|
|
@@ -9895,7 +9895,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9895
9895
|
<dd
|
|
9896
9896
|
class="min-w-0 truncate text-xs [&>*]:justify-start! [&>*]:text-left!"
|
|
9897
9897
|
>
|
|
9898
|
-
|
|
9898
|
+
20 Nov
|
|
9899
9899
|
</dd>
|
|
9900
9900
|
</dl>
|
|
9901
9901
|
</div>
|
|
@@ -9923,7 +9923,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
9923
9923
|
<dd
|
|
9924
9924
|
class="min-w-0 truncate text-xs [&>*]:justify-start! [&>*]:text-left!"
|
|
9925
9925
|
>
|
|
9926
|
-
|
|
9926
|
+
21 Nov
|
|
9927
9927
|
</dd>
|
|
9928
9928
|
</dl>
|
|
9929
9929
|
</div>
|
|
@@ -10204,7 +10204,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10204
10204
|
>
|
|
10205
10205
|
<span class="text-xs text-muted-foreground">Mon</span
|
|
10206
10206
|
><span
|
|
10207
|
-
class="grid size-6 place-items-center rounded-full text-ui tabular-nums
|
|
10207
|
+
class="grid size-6 place-items-center rounded-full text-ui tabular-nums text-foreground"
|
|
10208
10208
|
>16</span
|
|
10209
10209
|
>
|
|
10210
10210
|
</div>
|
|
@@ -10231,7 +10231,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10231
10231
|
>
|
|
10232
10232
|
<span class="text-xs text-muted-foreground">Thu</span
|
|
10233
10233
|
><span
|
|
10234
|
-
class="grid size-6 place-items-center rounded-full text-ui tabular-nums text-
|
|
10234
|
+
class="grid size-6 place-items-center rounded-full text-ui tabular-nums bg-foreground font-medium text-background"
|
|
10235
10235
|
>19</span
|
|
10236
10236
|
>
|
|
10237
10237
|
</div>
|
|
@@ -10274,6 +10274,15 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10274
10274
|
<div
|
|
10275
10275
|
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10276
10276
|
></div>
|
|
10277
|
+
<div
|
|
10278
|
+
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10279
|
+
></div>
|
|
10280
|
+
<div
|
|
10281
|
+
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10282
|
+
></div>
|
|
10283
|
+
<div
|
|
10284
|
+
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10285
|
+
></div>
|
|
10277
10286
|
<div
|
|
10278
10287
|
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10279
10288
|
>
|
|
@@ -10288,15 +10297,6 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10288
10297
|
<div
|
|
10289
10298
|
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10290
10299
|
></div>
|
|
10291
|
-
<div
|
|
10292
|
-
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10293
|
-
></div>
|
|
10294
|
-
<div
|
|
10295
|
-
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10296
|
-
></div>
|
|
10297
|
-
<div
|
|
10298
|
-
class="flex min-w-0 flex-col gap-1 border-l border-border-subtle p-1"
|
|
10299
|
-
></div>
|
|
10300
10300
|
</div>
|
|
10301
10301
|
<div class="max-h-[620px] overflow-y-auto">
|
|
10302
10302
|
<div
|
|
@@ -10517,32 +10517,6 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10517
10517
|
class="absolute inset-x-0 border-t border-border-subtle"
|
|
10518
10518
|
style="top: 1104px"
|
|
10519
10519
|
></div>
|
|
10520
|
-
<div
|
|
10521
|
-
data-slot="data-view-event"
|
|
10522
|
-
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
10523
|
-
style="
|
|
10524
|
-
top: 433px;
|
|
10525
|
-
height: 94px;
|
|
10526
|
-
left: calc(0% + 2px);
|
|
10527
|
-
width: calc(100% - 4px);
|
|
10528
|
-
"
|
|
10529
|
-
data-state="closed"
|
|
10530
|
-
>
|
|
10531
|
-
<span class="truncate text-xs font-medium">Acme Corp</span
|
|
10532
|
-
><span
|
|
10533
|
-
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
10534
|
-
>09:00 – 11:00</span
|
|
10535
|
-
>
|
|
10536
|
-
</div>
|
|
10537
|
-
<div
|
|
10538
|
-
aria-hidden="true"
|
|
10539
|
-
class="pointer-events-none absolute inset-x-0 z-10 h-px bg-brand"
|
|
10540
|
-
style="top: 927.2px"
|
|
10541
|
-
>
|
|
10542
|
-
<span
|
|
10543
|
-
class="absolute -top-1 -left-1 size-2 rounded-full bg-brand"
|
|
10544
|
-
></span>
|
|
10545
|
-
</div>
|
|
10546
10520
|
</div>
|
|
10547
10521
|
<div class="relative border-l border-border-subtle">
|
|
10548
10522
|
<div
|
|
@@ -10660,40 +10634,6 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10660
10634
|
class="absolute inset-x-0 border-t border-border-subtle"
|
|
10661
10635
|
style="top: 1104px"
|
|
10662
10636
|
></div>
|
|
10663
|
-
<div
|
|
10664
|
-
data-slot="data-view-event"
|
|
10665
|
-
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
10666
|
-
style="
|
|
10667
|
-
top: 481px;
|
|
10668
|
-
height: 94px;
|
|
10669
|
-
left: calc(0% + 2px);
|
|
10670
|
-
width: calc(50% - 4px);
|
|
10671
|
-
"
|
|
10672
|
-
data-state="closed"
|
|
10673
|
-
>
|
|
10674
|
-
<span class="truncate text-xs font-medium">Globex</span
|
|
10675
|
-
><span
|
|
10676
|
-
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
10677
|
-
>10:00 – 12:00</span
|
|
10678
|
-
>
|
|
10679
|
-
</div>
|
|
10680
|
-
<div
|
|
10681
|
-
data-slot="data-view-event"
|
|
10682
|
-
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
10683
|
-
style="
|
|
10684
|
-
top: 529px;
|
|
10685
|
-
height: 94px;
|
|
10686
|
-
left: calc(50% + 2px);
|
|
10687
|
-
width: calc(50% - 4px);
|
|
10688
|
-
"
|
|
10689
|
-
data-state="closed"
|
|
10690
|
-
>
|
|
10691
|
-
<span class="truncate text-xs font-medium">Initech</span
|
|
10692
|
-
><span
|
|
10693
|
-
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
10694
|
-
>11:00 – 13:00</span
|
|
10695
|
-
>
|
|
10696
|
-
</div>
|
|
10697
10637
|
</div>
|
|
10698
10638
|
<div class="relative border-l border-border-subtle">
|
|
10699
10639
|
<div
|
|
@@ -10811,23 +10751,6 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10811
10751
|
class="absolute inset-x-0 border-t border-border-subtle"
|
|
10812
10752
|
style="top: 1104px"
|
|
10813
10753
|
></div>
|
|
10814
|
-
<div
|
|
10815
|
-
data-slot="data-view-event"
|
|
10816
|
-
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
10817
|
-
style="
|
|
10818
|
-
top: 673px;
|
|
10819
|
-
height: 94px;
|
|
10820
|
-
left: calc(0% + 2px);
|
|
10821
|
-
width: calc(100% - 4px);
|
|
10822
|
-
"
|
|
10823
|
-
data-state="closed"
|
|
10824
|
-
>
|
|
10825
|
-
<span class="truncate text-xs font-medium">Umbrella Co</span
|
|
10826
|
-
><span
|
|
10827
|
-
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
10828
|
-
>14:00 – 16:00</span
|
|
10829
|
-
>
|
|
10830
|
-
</div>
|
|
10831
10754
|
</div>
|
|
10832
10755
|
<div class="relative border-l border-border-subtle">
|
|
10833
10756
|
<div
|
|
@@ -10945,6 +10868,32 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
10945
10868
|
class="absolute inset-x-0 border-t border-border-subtle"
|
|
10946
10869
|
style="top: 1104px"
|
|
10947
10870
|
></div>
|
|
10871
|
+
<div
|
|
10872
|
+
data-slot="data-view-event"
|
|
10873
|
+
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
10874
|
+
style="
|
|
10875
|
+
top: 433px;
|
|
10876
|
+
height: 94px;
|
|
10877
|
+
left: calc(0% + 2px);
|
|
10878
|
+
width: calc(100% - 4px);
|
|
10879
|
+
"
|
|
10880
|
+
data-state="closed"
|
|
10881
|
+
>
|
|
10882
|
+
<span class="truncate text-xs font-medium">Acme Corp</span
|
|
10883
|
+
><span
|
|
10884
|
+
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
10885
|
+
>09:00 – 11:00</span
|
|
10886
|
+
>
|
|
10887
|
+
</div>
|
|
10888
|
+
<div
|
|
10889
|
+
aria-hidden="true"
|
|
10890
|
+
class="pointer-events-none absolute inset-x-0 z-10 h-px bg-brand"
|
|
10891
|
+
style="top: 504.80000000000007px"
|
|
10892
|
+
>
|
|
10893
|
+
<span
|
|
10894
|
+
class="absolute -top-1 -left-1 size-2 rounded-full bg-brand"
|
|
10895
|
+
></span>
|
|
10896
|
+
</div>
|
|
10948
10897
|
</div>
|
|
10949
10898
|
<div class="relative border-l border-border-subtle">
|
|
10950
10899
|
<div
|
|
@@ -11062,6 +11011,40 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
11062
11011
|
class="absolute inset-x-0 border-t border-border-subtle"
|
|
11063
11012
|
style="top: 1104px"
|
|
11064
11013
|
></div>
|
|
11014
|
+
<div
|
|
11015
|
+
data-slot="data-view-event"
|
|
11016
|
+
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
11017
|
+
style="
|
|
11018
|
+
top: 481px;
|
|
11019
|
+
height: 94px;
|
|
11020
|
+
left: calc(0% + 2px);
|
|
11021
|
+
width: calc(50% - 4px);
|
|
11022
|
+
"
|
|
11023
|
+
data-state="closed"
|
|
11024
|
+
>
|
|
11025
|
+
<span class="truncate text-xs font-medium">Globex</span
|
|
11026
|
+
><span
|
|
11027
|
+
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
11028
|
+
>10:00 – 12:00</span
|
|
11029
|
+
>
|
|
11030
|
+
</div>
|
|
11031
|
+
<div
|
|
11032
|
+
data-slot="data-view-event"
|
|
11033
|
+
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
11034
|
+
style="
|
|
11035
|
+
top: 529px;
|
|
11036
|
+
height: 94px;
|
|
11037
|
+
left: calc(50% + 2px);
|
|
11038
|
+
width: calc(50% - 4px);
|
|
11039
|
+
"
|
|
11040
|
+
data-state="closed"
|
|
11041
|
+
>
|
|
11042
|
+
<span class="truncate text-xs font-medium">Initech</span
|
|
11043
|
+
><span
|
|
11044
|
+
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
11045
|
+
>11:00 – 13:00</span
|
|
11046
|
+
>
|
|
11047
|
+
</div>
|
|
11065
11048
|
</div>
|
|
11066
11049
|
<div class="relative border-l border-border-subtle bg-fill-1/60">
|
|
11067
11050
|
<div
|
|
@@ -11179,6 +11162,23 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
11179
11162
|
class="absolute inset-x-0 border-t border-border-subtle"
|
|
11180
11163
|
style="top: 1104px"
|
|
11181
11164
|
></div>
|
|
11165
|
+
<div
|
|
11166
|
+
data-slot="data-view-event"
|
|
11167
|
+
class="absolute flex flex-col gap-0.5 overflow-hidden rounded-md border-l-2 border-brand bg-fill-1 px-1.5 py-1 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
11168
|
+
style="
|
|
11169
|
+
top: 673px;
|
|
11170
|
+
height: 94px;
|
|
11171
|
+
left: calc(0% + 2px);
|
|
11172
|
+
width: calc(100% - 4px);
|
|
11173
|
+
"
|
|
11174
|
+
data-state="closed"
|
|
11175
|
+
>
|
|
11176
|
+
<span class="truncate text-xs font-medium">Umbrella Co</span
|
|
11177
|
+
><span
|
|
11178
|
+
class="truncate text-micro text-muted-foreground tabular-nums"
|
|
11179
|
+
>14:00 – 16:00</span
|
|
11180
|
+
>
|
|
11181
|
+
</div>
|
|
11182
11182
|
</div>
|
|
11183
11183
|
<div class="relative border-l border-border-subtle bg-fill-1/60">
|
|
11184
11184
|
<div
|
|
@@ -11764,9 +11764,33 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
11764
11764
|
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-t border-border-subtle"
|
|
11765
11765
|
>
|
|
11766
11766
|
<span
|
|
11767
|
-
class="grid size-5 place-items-center rounded-full text-xs tabular-nums
|
|
11767
|
+
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11768
11768
|
>16</span
|
|
11769
11769
|
>
|
|
11770
|
+
</div>
|
|
11771
|
+
<div
|
|
11772
|
+
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11773
|
+
>
|
|
11774
|
+
<span
|
|
11775
|
+
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11776
|
+
>17</span
|
|
11777
|
+
>
|
|
11778
|
+
</div>
|
|
11779
|
+
<div
|
|
11780
|
+
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11781
|
+
>
|
|
11782
|
+
<span
|
|
11783
|
+
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11784
|
+
>18</span
|
|
11785
|
+
>
|
|
11786
|
+
</div>
|
|
11787
|
+
<div
|
|
11788
|
+
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11789
|
+
>
|
|
11790
|
+
<span
|
|
11791
|
+
class="grid size-5 place-items-center rounded-full text-xs tabular-nums bg-foreground font-medium text-background"
|
|
11792
|
+
>19</span
|
|
11793
|
+
>
|
|
11770
11794
|
<div
|
|
11771
11795
|
data-slot="data-view-entry"
|
|
11772
11796
|
class="flex w-full min-w-0 flex-col gap-0.5 rounded-md bg-fill-1 px-1.5 py-0.5 text-left outline-none hover:bg-fill-2 focus-visible:ring-2 focus-visible:ring-ring-control/40"
|
|
@@ -11783,7 +11807,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
11783
11807
|
>
|
|
11784
11808
|
<span
|
|
11785
11809
|
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11786
|
-
>
|
|
11810
|
+
>20</span
|
|
11787
11811
|
>
|
|
11788
11812
|
<div
|
|
11789
11813
|
data-slot="data-view-entry"
|
|
@@ -11811,7 +11835,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
11811
11835
|
>
|
|
11812
11836
|
<span
|
|
11813
11837
|
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11814
|
-
>
|
|
11838
|
+
>21</span
|
|
11815
11839
|
>
|
|
11816
11840
|
<div
|
|
11817
11841
|
data-slot="data-view-entry"
|
|
@@ -11831,30 +11855,6 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
11831
11855
|
>
|
|
11832
11856
|
</div>
|
|
11833
11857
|
</div>
|
|
11834
|
-
<div
|
|
11835
|
-
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11836
|
-
>
|
|
11837
|
-
<span
|
|
11838
|
-
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11839
|
-
>19</span
|
|
11840
|
-
>
|
|
11841
|
-
</div>
|
|
11842
|
-
<div
|
|
11843
|
-
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11844
|
-
>
|
|
11845
|
-
<span
|
|
11846
|
-
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11847
|
-
>20</span
|
|
11848
|
-
>
|
|
11849
|
-
</div>
|
|
11850
|
-
<div
|
|
11851
|
-
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11852
|
-
>
|
|
11853
|
-
<span
|
|
11854
|
-
class="grid size-5 place-items-center rounded-full text-xs tabular-nums text-foreground"
|
|
11855
|
-
>21</span
|
|
11856
|
-
>
|
|
11857
|
-
</div>
|
|
11858
11858
|
<div
|
|
11859
11859
|
class="flex min-h-24 min-w-0 flex-col gap-1 p-1.5 border-l border-t border-border-subtle"
|
|
11860
11860
|
>
|
|
@@ -14037,7 +14037,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
14037
14037
|
data-slot="table-cell"
|
|
14038
14038
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
14039
14039
|
>
|
|
14040
|
-
|
|
14040
|
+
19 Nov
|
|
14041
14041
|
</td>
|
|
14042
14042
|
</tr>
|
|
14043
14043
|
<tr
|
|
@@ -14079,7 +14079,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
14079
14079
|
data-slot="table-cell"
|
|
14080
14080
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
14081
14081
|
>
|
|
14082
|
-
|
|
14082
|
+
20 Nov
|
|
14083
14083
|
</td>
|
|
14084
14084
|
</tr>
|
|
14085
14085
|
<tr
|
|
@@ -14121,7 +14121,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
14121
14121
|
data-slot="table-cell"
|
|
14122
14122
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
14123
14123
|
>
|
|
14124
|
-
|
|
14124
|
+
20 Nov
|
|
14125
14125
|
</td>
|
|
14126
14126
|
</tr>
|
|
14127
14127
|
<tr
|
|
@@ -14163,7 +14163,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
14163
14163
|
data-slot="table-cell"
|
|
14164
14164
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
14165
14165
|
>
|
|
14166
|
-
|
|
14166
|
+
21 Nov
|
|
14167
14167
|
</td>
|
|
14168
14168
|
</tr>
|
|
14169
14169
|
<tr
|
|
@@ -14205,7 +14205,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
14205
14205
|
data-slot="table-cell"
|
|
14206
14206
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
14207
14207
|
>
|
|
14208
|
-
|
|
14208
|
+
21 Nov
|
|
14209
14209
|
</td>
|
|
14210
14210
|
</tr>
|
|
14211
14211
|
</tbody>
|
|
@@ -15406,7 +15406,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
15406
15406
|
data-slot="table-cell"
|
|
15407
15407
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
15408
15408
|
>
|
|
15409
|
-
|
|
15409
|
+
19 Nov
|
|
15410
15410
|
</td>
|
|
15411
15411
|
</tr>
|
|
15412
15412
|
<tr
|
|
@@ -15463,7 +15463,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
15463
15463
|
data-slot="table-cell"
|
|
15464
15464
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
15465
15465
|
>
|
|
15466
|
-
|
|
15466
|
+
20 Nov
|
|
15467
15467
|
</td>
|
|
15468
15468
|
</tr>
|
|
15469
15469
|
<tr
|
|
@@ -15520,7 +15520,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
15520
15520
|
data-slot="table-cell"
|
|
15521
15521
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
15522
15522
|
>
|
|
15523
|
-
|
|
15523
|
+
20 Nov
|
|
15524
15524
|
</td>
|
|
15525
15525
|
</tr>
|
|
15526
15526
|
<tr
|
|
@@ -15577,7 +15577,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
15577
15577
|
data-slot="table-cell"
|
|
15578
15578
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
15579
15579
|
>
|
|
15580
|
-
|
|
15580
|
+
21 Nov
|
|
15581
15581
|
</td>
|
|
15582
15582
|
</tr>
|
|
15583
15583
|
<tr
|
|
@@ -15634,7 +15634,7 @@ node_modules/@rise-x/apps-sdk/build/ui/styles.css</code></pre>
|
|
|
15634
15634
|
data-slot="table-cell"
|
|
15635
15635
|
class="h-13 border-b border-border-subtle px-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
|
|
15636
15636
|
>
|
|
15637
|
-
|
|
15637
|
+
21 Nov
|
|
15638
15638
|
</td>
|
|
15639
15639
|
</tr>
|
|
15640
15640
|
</tbody>
|