Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat: block aliases, task pseudo block, task entity types, handling several note/task forks (#502)
Seamus7a541e54530e
diff --git a/js/app/packages/app/component/Launcher.tsx b/js/app/packages/app/component/Launcher.tsxindex c9de3254d7..ab85f45358 100644--- a/js/app/packages/app/component/Launcher.tsx+++ b/js/app/packages/app/component/Launcher.tsx@@ -1,4 +1,4 @@-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import { getIconConfig } from '@core/component/EntityIcon';import { Hotkey } from '@core/component/Hotkey';import { PcNoiseGrid } from '@core/component/PcNoiseGrid';@@ -21,7 +21,6 @@ import { createControlledOpenSignal } from '@core/util/createControlledOpenSignaimport { isErr, ok } from '@core/util/maybeResult';import { Dialog } from '@kobalte/core/dialog';import PixelArrowRight from '@macro-icons/pixel/arrow-right.svg';-import WideTask from '@macro-icons/pixel/task.svg';import WideChat from '@macro-icons/wide/chat.svg';import WideDiagram from '@macro-icons/wide/diagram.svg';import WideEmail from '@macro-icons/wide/email.svg';@@ -29,13 +28,14 @@ import WideFileCode from '@macro-icons/wide/file-code.svg';import WideFileMd from '@macro-icons/wide/file-md.svg';import WideFolder from '@macro-icons/wide/folder.svg';import WideStar from '@macro-icons/wide/star.svg';+import WideTask from '@macro-icons/wide/task.svg';import { useCreateProject } from '@service-storage/projects';import { createEffect, createSignal, For, onMount, Show } from 'solid-js';import { type FocusableElement, tabbable } from 'tabbable';import { useSplitLayout } from './split-layout/layout';const createBlock = async (spec: {- blockName: BlockName;+ blockName: BlockName | BlockAlias;createFn: () => Promise<string | undefined>;loading?: boolean;shouldInsert?: boolean;diff --git a/js/app/packages/app/component/Soup.tsx b/js/app/packages/app/component/Soup.tsxindex ff2358073d..59320c217c 100644--- a/js/app/packages/app/component/Soup.tsx+++ b/js/app/packages/app/component/Soup.tsx@@ -8,7 +8,7 @@ import { useIsAuthenticated } from '@core/auth';import { FileDropOverlay } from '@core/component/FileDropOverlay';import { Button } from '@core/component/FormControls/Button';import { ContextMenuContent, MenuItem } from '@core/component/Menu';-import { fileTypeToBlockName } from '@core/constant/allBlocks';+import { fileTypeToResolvedBlockName } from '@core/constant/allBlocks';import { fileFolderDrop } from '@core/directive/fileFolderDrop';import { TOKENS } from '@core/hotkey/tokens';import type { BlockOrchestrator } from '@core/orchestrator';@@ -111,7 +111,7 @@ const PreviewPanelContent: Component<{const blockInstance = () =>props.orchestrator.createBlockInstance(props.selectedEntity.type === 'document'- ? fileTypeToBlockName(props.selectedEntity.fileType)+ ? fileTypeToResolvedBlockName(props.selectedEntity.fileType): props.selectedEntity.type,props.selectedEntity.id);diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsxindex d3b25ac3dd..b5bd8832ff 100644--- a/js/app/packages/app/component/UnifiedListView.tsx+++ b/js/app/packages/app/component/UnifiedListView.tsx@@ -1028,7 +1028,8 @@ export function UnifiedListView(props: UnifiedListViewProps) {DocumentEntity | WithSearch<DocumentEntity>> = async (entity, event) => {const { id, fileType } = entity;- const blockName = fileTypeToBlockName(fileType);+ const blockName =+ entity.subType === 'task' ? 'task' : fileTypeToBlockName(fileType);const handle = event.altKey? insertSplit({ type: blockName, id }): replaceOrInsertSplit({ type: blockName, id });diff --git a/js/app/packages/app/component/command/KonsoleItem.tsx b/js/app/packages/app/component/command/KonsoleItem.tsxindex 373b32f86c..61bf61a42b 100644--- a/js/app/packages/app/component/command/KonsoleItem.tsx+++ b/js/app/packages/app/component/command/KonsoleItem.tsx@@ -1,7 +1,7 @@import { URL_PARAMS as CHANNEL_PARAMS } from '@block-channel/constants';import { URL_PARAMS as MD_PARAMS } from '@block-md/constants';import { URL_PARAMS as PDF_PARAMS } from '@block-pdf/signal/location';-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import { BozzyBracket } from '@core/component/BozzyBracket';import type { ChannelsContext } from '@core/component/ChannelsProvider';import { Hotkey } from '@core/component/Hotkey';@@ -25,6 +25,7 @@ import Terminal from '@phosphor-icons/core/regular/terminal.svg?component-solid'import type { Channel } from '@service-comms/generated/models/channel';import type { Attachment } from '@service-email/generated/schemas';import { useUserId } from '@service-gql/client';+import type { BasicDocumentSubType } from '@service-storage/generated/schemas';import type { BasicDocumentFileType } from '@service-storage/generated/schemas/basicDocumentFileType';import type { Item } from '@service-storage/generated/schemas/item';import { syncServiceClient } from '@service-sync/client';@@ -257,6 +258,7 @@ type ItemPreview = {id: string;name: string;fileType?: BasicDocumentFileType;+ subType?: BasicDocumentSubType;itemType: Item['type'];};@@ -431,10 +433,15 @@ export interface CommandItemProps {function getCommandItemBlockName(item: CommandItemCard,icon?: boolean-): BlockName | undefined {+): BlockName | BlockAlias | undefined {if (item.type === 'item') {- if (item.data.itemType === 'document' && item.data.fileType) {- return fileTypeToBlockName(item.data.fileType, icon);+ if (item.data.itemType === 'document') {+ if (item.data.subType === 'task') {+ return 'task';+ }+ if (item.data.fileType) {+ return fileTypeToBlockName(item.data.fileType, icon);+ }}return fileTypeToBlockName(item.data.itemType, icon) ?? 'unknown';} else if (item.type === 'channel') {diff --git a/js/app/packages/app/component/command/useCommandItems.ts b/js/app/packages/app/component/command/useCommandItems.tsindex 69234385d0..367097d4c4 100644--- a/js/app/packages/app/component/command/useCommandItems.ts+++ b/js/app/packages/app/component/command/useCommandItems.ts@@ -75,8 +75,9 @@ export function useCommandItems() {id: item.id,name: item.name,data: item,- fileType: item.type === 'document' ? item.fileType : undefined,itemType: item.type,+ fileType: item.type === 'document' ? item.fileType : undefined,+ subType: item.type === 'document' ? item.subType : undefined,},updatedAt: item.updatedAt,}));diff --git a/js/app/packages/app/component/split-layout/components/SplitLabel.tsx b/js/app/packages/app/component/split-layout/components/SplitLabel.tsxindex 6048ffb539..5fdec891e2 100644--- a/js/app/packages/app/component/split-layout/components/SplitLabel.tsx+++ b/js/app/packages/app/component/split-layout/components/SplitLabel.tsx@@ -1,4 +1,9 @@-import { isInBlock, useBlockId, useBlockName } from '@core/block';+import {+ isInBlock,+ useBlockAliasedName,+ useBlockId,+ useBlockName,+} from '@core/block';import {EntityIcon,type EntityIconSelector,@@ -135,7 +140,7 @@ export function BlockItemSplitLabel(props: {throw new Error('<BlockItemSplitLabel> must be used within a Block');const fileName = useBlockDocumentName(props.fallbackName);- const blockName = useBlockName();+ const blockName = useBlockAliasedName();const isOwner = useIsDocumentOwner();const targetType = () => {diff --git a/js/app/packages/app/component/split-layout/layoutManager.ts b/js/app/packages/app/component/split-layout/layoutManager.tsindex 342620576e..f568857915 100644--- a/js/app/packages/app/component/split-layout/layoutManager.ts+++ b/js/app/packages/app/component/split-layout/layoutManager.ts@@ -1,5 +1,6 @@-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockAliasContext, BlockName } from '@core/block';import type { ResizeZoneCtx } from '@core/component/Resize/types';+import { isBlockAlias, resolveBlockAlias } from '@core/constant/allBlocks';import type {BlockInstanceHandle,BlockOrchestrator,@@ -22,16 +23,33 @@ import { createHistory, type History } from './history';const ENABLE_DEFAULT_ALWAYS_IN_HISTORY = true;export type SplitId = string & { readonly SplitId: unique symbol };-type SplitKey = `${BlockName | 'component'}:${string}`;+type SplitKey = `${BlockName | BlockAlias | 'component'}:${string}`;export type SplitContent =- | { type: BlockName; id: string; params?: Record<string, string> }- | { type: 'component'; id: string; params?: Record<string, string> };+ | {+ type: BlockName | BlockAlias;+ id: string;+ params?: Record<string, string>;+ aliasContext?: BlockAliasContext;+ }+ | {+ type: 'component';+ id: string;+ params?: Record<string, string>;+ };++export type SplitContentType = SplitContent['type'];function sameContent(a: SplitContent, b: SplitContent): boolean {return a.type === b.type && a.id === b.id;}+function getAliasOrType(content: SplitContent): string {+ return content.type === 'component'+ ? content.type+ : content.aliasContext?.alias || content.type;+}+function keyOfSplitContent(s: SplitContent): SplitKey {return `${s.type}:${s.id}`;}@@ -46,6 +64,7 @@ type BlockMount = {id: string;handle: BlockInstanceHandle;element: ElementFn;+ aliasContext?: BlockAliasContext;};type ComponentMount = {@@ -110,6 +129,25 @@ export type SplitEventWithType =type: SplitEvent.ReturnFocus;} & SplitEventPayload[SplitEvent.ReturnFocus]);+/**+ * If a split layout helper passes and aliased block type, make sure to wrap+ * that with the alias info.+ * @param content+ * @returns+ */+function attachAliasContext(content: SplitContent): SplitContent {+ if (content.type !== 'component' && isBlockAlias(content.type)) {+ return {+ ...content,+ aliasContext: {+ alias: content.type,+ baseType: resolveBlockAlias(content.type),+ },+ };+ }+ return content;+}+export type SplitManager = {readonly splits: Accessor<ReadonlyArray<SplitState>>;readonly activeSplitId: Accessor<SplitId | undefined>;@@ -150,7 +188,7 @@ export type SplitManager = {reconcile: (splits: SplitContent[]) => void;/** Check if a split exists by its split id */- hasSplit: (type: BlockName | 'component', id: string) => boolean;+ hasSplit: (type: SplitContentType, id: string) => boolean;/** Get a potential split id by its content type and id */getSplitByContent: {@@ -158,7 +196,7 @@ export type SplitManager = {type: 'component',id: K): SplitHandle<ComponentMetaMap[K]> | undefined;- (type: BlockName | 'component', id: string): SplitHandle | undefined;+ (type: SplitContentType, id: string): SplitHandle | undefined;};/** Get a reactive string that is the display name of the active split. */@@ -229,7 +267,10 @@ function createPinnedMount(};}- const handle = orchestrator.createBlockInstance(content.type, content.id);+ const blockType = resolveBlockAlias(content.type);+ const handle = orchestrator.createBlockInstance(blockType, content.id, {+ aliasContext: content.aliasContext,+ });return {kind: 'block',@@ -237,6 +278,7 @@ function createPinnedMount(id: content.id,handle,element: handle.element,+ aliasContext: content.aliasContext,};}@@ -247,7 +289,8 @@ function sameIdentity(a: SplitContent, b: SplitContent): boolean {function sameNonComponentIdentity(a: SplitContent, b: SplitContent): boolean {if (a.type === 'component' || b.type === 'component') return false;- if (a.type !== b.type) return false;+ // check on the resolved block so you cannot open `/md/{ID}/task{ID}`+ if (resolveBlockAlias(a.type) !== resolveBlockAlias(b.type)) return false;return a.id === b.id;}@@ -311,34 +354,35 @@ export function createSplitLayout(): SplitState {const id = newSplitId();const history = createHistory<SplitContent>();+ const content = attachAliasContext(initialContent);// If enabled, we always want to be able to go back to the default splitif (!isDefault && ENABLE_DEFAULT_ALWAYS_IN_HISTORY) {history.push(DEFAULT_SPLIT_CONTENT);}- history.push(initialContent);-- const mount = createPinnedMount(orchestrator, initialContent);+ history.push(content);+ const mount = createPinnedMount(orchestrator, content);return {id,history,- content: initialContent,+ content,mount,};}function reattach(split: SplitState, next: SplitContent) {const otherSplits = state.splits.filter((s) => s.id !== split.id);+ const content = attachAliasContext(next);if (isDuplicateSplit(otherSplits, next)) return;const splitIndex = state.splits.findIndex((s) => s.id === split.id);- if (splitIndex >= 0 && !sameIdentity(split.content, next)) {+ if (splitIndex >= 0 && !sameIdentity(split.content, content)) {const payload: SplitEventPayload[SplitEvent.ContentChange] = {splitId: split.id,splitIndex,- newContent: next,+ newContent: content,previousContent: split.content,};@@ -350,20 +394,20 @@ export function createSplitLayout(}}- if (sameIdentity(split.content, next))+ if (sameIdentity(split.content, content))return setState('splits', (s) => {const i = s.findIndex((x) => x.id === split.id);if (i < 0) return s;- const target = { ...s[i], content: next };+ const target = { ...s[i], content: content };return s.with(i, target);});- const newMount = createPinnedMount(orchestrator, next);+ const newMount = createPinnedMount(orchestrator, content);setState('splits', (s) => {const i = s.findIndex((x) => x.id === split.id);if (i < 0) return s;- const target = { ...s[i], content: next, mount: newMount };+ const target = { ...s[i], content, mount: newMount };return s.with(i, target);});}@@ -422,14 +466,16 @@ export function createSplitLayout(}));+ const content = attachAliasContext(next);+const split = state.splits[i];if (mergeHistory) {- split.history.merge(next);+ split.history.merge(content);} else {- split.history.push(next);+ split.history.push(content);}- reattach(split, next);+ reattach(split, content);}function reset(id: SplitId) {@@ -443,13 +489,13 @@ export function createSplitLayout(const getUrlSegments = () => {return state.splits- .flatMap((s) => [s.content.type, s.content.id])+ .flatMap((s) => [getAliasOrType(s.content), s.content.id]).map(String);};const getUrl = () => {return (- state.splits.map((s) => s.content.type).join('/') ++ state.splits.map((s) => getAliasOrType(s.content)).join('/') +'/' +state.splits.map((s) => s.content.id).join('/'));@@ -534,8 +580,9 @@ export function createSplitLayout(removeSplit(currentSplit.id);},- getUrlSegments: () => [content().type, content().id].map(String),- getUrl: () => content().type + '/' + content().id,+ getUrlSegments: () =>+ [getAliasOrType(content()), content().id].map(String),+ getUrl: () => getAliasOrType(content()) + '/' + content().id,isFirst: () => state.splits.at(0)?.id === id,isLast: () => state.splits.at(-1)?.id === id,isActive: () => currentSplit.id === state.activeSplitId,@@ -634,14 +681,14 @@ export function createSplitLayout(}}- function hasSplit(type: BlockName | 'component', id: string): boolean {+ function hasSplit(type: SplitContentType, id: string): boolean {return !!state.splits.find((s) => s.content.type === type && s.content.id === id);}function getSplitByContent(- type: BlockName | 'component',+ type: SplitContentType,id: string): SplitHandle | undefined {const match = state.splits.find(@@ -662,7 +709,7 @@ export function createSplitLayout(const originalSplits = [...state.splits];- const lookup = (type: BlockName, id: string) =>+ const lookup = (type: BlockName | BlockAlias, id: string) =>originalSplits.find((s) => s.content.type === type && s.content.id === id);diff --git a/js/app/packages/app/component/split-layout/layoutUtils.ts b/js/app/packages/app/component/split-layout/layoutUtils.tsindex b56a3f7552..f069df2775 100644--- a/js/app/packages/app/component/split-layout/layoutUtils.ts+++ b/js/app/packages/app/component/split-layout/layoutUtils.ts@@ -1,3 +1,5 @@+import type { BlockAlias, BlockName } from '@core/block';+import { isBlockAlias, resolveBlockAlias } from '@core/constant/allBlocks';import type { ViewId } from '@core/types/view';import { createCallback } from '@solid-primitives/rootless';import { useContext } from 'solid-js';@@ -10,17 +12,36 @@ export function decodePairs(segments: string[]): SplitContent[] {const type = segments[i];const id = segments[i + 1];if (!type || !id) break;- pairs.push(- type === 'component'- ? { type: 'component', id }- : ({ type, id } as SplitContent)- );++ if (type === 'component') {+ pairs.push({ type: 'component', id });+ } else {+ const resolvedType = resolveBlockAlias(type as BlockName | BlockAlias);+ if (isBlockAlias(type)) {+ const content: SplitContent = {+ type,+ id,+ aliasContext: {+ alias: type,+ baseType: resolvedType,+ },+ };+ pairs.push(content);+ } else {+ const content: SplitContent = { type: resolvedType, id };+ pairs.push(content);+ }+ }}return pairs.length ? pairs : [{ type: 'component', id: 'unified-list' }];}export function encodePairs(splits: ReadonlyArray<SplitContent>): string[] {- return splits.flatMap((s) => [s.type, s.id]);+ return splits.flatMap((s) => [+ // Use the alias type if available, otherwise use the base type+ s.type === 'component' ? s.type : s.aliasContext?.alias || s.type,+ s.id,+ ]);}export const isInSplit = createCallback(() => {diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.cssindex 60ca4952a0..84a6b93578 100644--- a/js/app/packages/app/index.css+++ b/js/app/packages/app/index.css@@ -99,6 +99,7 @@--theme-rss: oklch(from var(--a0) l c 260deg);--theme-pdf: oklch(from var(--a0) l c 25deg);--theme-comment: oklch(from var(--a0) l c 90deg);+ --theme-task: oklch(from var(--a0) l c 330deg);--gutter-size: 8px;--transition: 0.2s;@@ -210,6 +211,9 @@--color-default: var(--color-ink-muted);--color-default-bg: color-mix(in srgb, var(--color-default), var(--color-panel) 90%);+ --color-task: var(--theme-task);+ --color-task-bg: color-mix(in srgb, var(--color-task), var(--color-panel) 90%);+/* SCUFFED We probably want to let the theme determine 3 or 4 "extra" hue offsets. Rights now these are only being *//* used as debug colors and to improve the consistency of markdown block lightness/chroma with themed css */--color-accent-30: oklch(var(--a0l) var(--a0c) calc(var(--a0h) + 30deg));diff --git a/js/app/packages/block-md/component/FrontMatterProperties.tsx b/js/app/packages/block-md/component/FrontMatterProperties.tsxindex 2cda27a8db..5686c50dc4 100644--- a/js/app/packages/block-md/component/FrontMatterProperties.tsx+++ b/js/app/packages/block-md/component/FrontMatterProperties.tsx@@ -1,4 +1,4 @@-import { useBlockId } from '@core/block';+import { useBlockAliasedName, useBlockId } from '@core/block';import {$getPinnedProperties,ADD_PINNED_PROPERTY_COMMAND,@@ -39,7 +39,11 @@ interface FrontMatterPropertiesProps {export function FrontMatterProperties(props: FrontMatterPropertiesProps) {const blockId = useBlockId();- const mdData = mdStore.get; // Access block store at component level+ const mdData = mdStore.get;++ const blockName = useBlockAliasedName();+ const entityType: EntityType = blockName === 'task' ? 'TASK' : 'DOCUMENT';+const layoutShift = () => {if (mdData.editor) {dispatchInternalLayoutShift(mdData.editor);@@ -48,7 +52,7 @@ export function FrontMatterProperties(props: FrontMatterPropertiesProps) {const { properties, isLoading, error, refetch } = useEntityProperties(blockId,- 'DOCUMENT' as EntityType,+ entityType,true // includeMetadata);diff --git a/js/app/packages/block-md/component/MarkdownPropertiesModal.tsx b/js/app/packages/block-md/component/MarkdownPropertiesModal.tsxindex 23e82237ec..6c114b88c1 100644--- a/js/app/packages/block-md/component/MarkdownPropertiesModal.tsx+++ b/js/app/packages/block-md/component/MarkdownPropertiesModal.tsx@@ -1,5 +1,6 @@import { SplitDrawer } from '@app/component/split-layout/components/SplitDrawer';import { useDrawerControl } from '@app/component/split-layout/components/SplitDrawerContext';+import { useBlockAliasedName } from '@core/block';import { IconButton } from '@core/component/IconButton';import {$getPinnedProperties,@@ -46,6 +47,9 @@ function MarkdownPropertiesContent(_props: { documentId: string }) {const documentName = useBlockDocumentName();const mdData = mdStore.get; // Access block store at component level+ const blockName = useBlockAliasedName();+ const entityType: EntityType = blockName === 'task' ? 'TASK' : 'DOCUMENT';+// Destructure block signal setter before any async operationsconst triggerRefresh = propertiesRefreshSignal.set;@@ -102,7 +106,7 @@ function MarkdownPropertiesContent(_props: { documentId: string }) {<PropertiesViewblockType="md"canEdit={canEdit()}- entityType={'DOCUMENT' as EntityType}+ entityType={entityType}documentName={documentName()}onPropertyPinned={handlePropertyPinned}onPropertyUnpinned={handlePropertyUnpinned}diff --git a/js/app/packages/block-md/component/TitleEditor.tsx b/js/app/packages/block-md/component/TitleEditor.tsxindex 2b7fbbf897..e7bce80d90 100644--- a/js/app/packages/block-md/component/TitleEditor.tsx+++ b/js/app/packages/block-md/component/TitleEditor.tsx@@ -1,4 +1,4 @@-import { createBlockSignal } from '@core/block';+import { createBlockSignal, useBlockAliasedName } from '@core/block';import { EmojiMenu } from '@core/component/LexicalMarkdown/component/menu/EmojiMenu';import { createLexicalWrapper } from '@core/component/LexicalMarkdown/context/LexicalWrapperContext';import {@@ -14,6 +14,7 @@ import {isRectFlushWith,trimWhitespace,} from '@core/component/LexicalMarkdown/utils';+import { blockNameToDefaultFile } from '@core/constant/allBlocks';import { useCanEdit } from '@core/signal/permissions';import { useBlockDocumentName } from '@core/util/currentBlockDocumentName';import { mergeRegister } from '@lexical/utils';@@ -138,6 +139,9 @@ export function TitleEditor(props: { autoFocusOnMount?: boolean } = {}) {const [showFallback, setShowFallback] = createSignal(true);const [titlePlaceholder, _setTitlePlaceholder] = TitlePlaceholderSignal;+ const blockName = useBlockAliasedName();+ const titlePlaceholderFallback = blockNameToDefaultFile(blockName);+const debouncedRename = debounce(() => {const name = state();if (canEdit()) renameMarkdownDocument(name);@@ -290,7 +294,7 @@ export function TitleEditor(props: { autoFocusOnMount?: boolean } = {}) {/><Show when={showFallback()}><div class="text-4xl font-semibold optical-32 text-ink-placeholder absolute top-0 pointer-events-none">- {titlePlaceholder() ?? 'New Note'}+ {titlePlaceholder() ?? titlePlaceholderFallback}</div></Show></div>diff --git a/js/app/packages/block-md/definition.ts b/js/app/packages/block-md/definition.tsindex f6f903524a..7a627ba7a8 100644--- a/js/app/packages/block-md/definition.ts+++ b/js/app/packages/block-md/definition.ts@@ -142,6 +142,7 @@ export const definition = defineBlock({name: 'md',description: 'write markdown notes',defaultFilename: 'New Note',+ aliases: [{ name: 'task', defaultFileName: 'New Task' }],component: MarkdownBlock,accepted: {md: 'text/markdown',diff --git a/js/app/packages/block-md/signal/markdownBlockData.ts b/js/app/packages/block-md/signal/markdownBlockData.tsindex 4775091530..61edd3697e 100644--- a/js/app/packages/block-md/signal/markdownBlockData.ts+++ b/js/app/packages/block-md/signal/markdownBlockData.ts@@ -3,6 +3,7 @@ import type {PluginManager,SelectionData,} from '@core/component/LexicalMarkdown/plugins';+import { createCallback } from '@solid-primitives/rootless';import type { LexicalEditor } from 'lexical';import type { Store } from 'solid-js/store';import type { MarkdownData } from '../definition';@@ -32,3 +33,7 @@ export type MdData = {};export const mdStore = createBlockStore<MdData>({});++export const useIsTask = createCallback(() => {+ return () => blockDataSignal()?.documentMetadata.subType === 'task';+});diff --git a/js/app/packages/core/block.ts b/js/app/packages/core/block.tsindex f91d350af9..bb0e60af88 100644--- a/js/app/packages/core/block.ts+++ b/js/app/packages/core/block.ts@@ -1,4 +1,5 @@import type { BlockCanvasProps } from '@block-canvas/component/Block';+import type { IDocumentStorageServiceFile } from '@filesystem/file';import type { AccessLevel } from '@service-storage/generated/schemas/accessLevel';import type { DocumentMetadata } from '@service-storage/generated/schemas/documentMetadata';@@ -57,7 +58,6 @@ export const BlockRegistry = ['video','email','contact',- 'task',] as const;type BlockNameKeys = keyof typeof BlockRegistry & number;@@ -67,6 +67,20 @@ type BlockNameKeys = keyof typeof BlockRegistry & number;*/export type BlockName = (typeof BlockRegistry)[BlockNameKeys];+/**+ * List of strongly-typed, valid aliases that can be used as pseudo-differentiated+ * block types.+ */+export const BlockAliasRegistry = ['task'] as const;++type BlockAliasKeys = keyof typeof BlockAliasRegistry & number;++/**+ * Represents a block-alias. Which a a valid, differentiated entity type with+ * the same behavior as a true block.+ */+export type BlockAlias = (typeof BlockAliasRegistry)[BlockAliasKeys];+/*** Represents the block types that do not correspond to a document type.*/@@ -76,7 +90,7 @@ export const NonDocumentBlockTypes = ['project','email','contact',-] as BlockName[];+] as const as (BlockName | BlockAlias)[];/*** Represents the type of a possible 2-block combination used in split layouts.@@ -125,7 +139,6 @@ export const ValidBlockCombinations: BlockCombinationRules = {unknown: allBlockNames,video: allBlockNames,contact: allBlockNames,- task: allBlockNames,} as const;// maps block name to valid parents@@ -143,7 +156,6 @@ export const ValidNestingCombinations: BlockCombinationRules = {unknown: new Set([]),video: new Set([]),contact: new Set([]),- task: new Set([]),};export const LoadErrors = {@@ -325,10 +337,20 @@ export type BlockDefinition<syncServiceEnabled?: boolean;editPermissionEnabled?: boolean;++ /** Alias block names that should route to this block type with optional custom default filenames */+ aliases?: Array<{ name: BlockAlias; defaultFileName?: string }>;};export type AnyBlockDefinition = BlockDefinition<any, any, any, any>;+export type BlockAliasContext = {+ /** The original alias used in the URL (e.g., 'task') */+ alias: BlockAlias;+ /** The resolved base block type (e.g., 'md') */+ baseType: BlockName;+};+type DocumentBlockData = {userAccessLevel: AccessLevel;documentMetadata: DocumentMetadata;@@ -389,7 +411,12 @@ export function createBlockRenderEffect(fn: BlockEffect): void {* A component that provides the scope and context for blocks, including signals, stores, and effects.*/export const Block = <Name extends BlockName>(- props: FlowProps<{ id: string; name: Name; nested?: NestedState<Name> }>+ props: FlowProps<{+ id: string;+ name: Name;+ nested?: NestedState<Name>;+ aliasContext?: BlockAliasContext;+ }>) => {const [state] = createSignal<BlockState>({entities: new Map(),@@ -398,6 +425,7 @@ export const Block = <Name extends BlockName>(name: props.name,nested: props.nested,owner: getOwner(),+ aliasContext: props.aliasContext,});onCleanup(() => {@@ -455,10 +483,10 @@ export const useBlockOwner = (): Owner | null => {};/**- * Hook to access the current block's ID.+ * Hook to access the current block's name.* This will throw if used outside a Block component.* @throws {Error} When used outside of a Block context- * @returns The current block ID+ * @returns The current block name*/export const useBlockName = (): BlockName => {const context = useContext(BlockContext);@@ -468,6 +496,21 @@ export const useBlockName = (): BlockName => {return context.name;};+/**+ * Hook to access the current block's name - will return the alias used to access+ * the block if it exists.+ * This will throw if used outside a Block component.+ * @throws {Error} When used outside of a Block context+ * @returns The current block name or alias.+ */+export const useBlockAliasedName = (): BlockName | BlockAlias => {+ const context = useContext(BlockContext);+ if (!context) {+ throw new Error('hook must be used within a Block component');+ }+ return context.aliasContext?.alias ?? context.name;+};+/*** Use the blockId hook without throwing. Must check for undefined.* Useful for testing the markdown engine outside of a block.@@ -947,6 +990,7 @@ type BlockState<Name extends BlockName = BlockName> = {name: Name;nested?: NestedState<Name>;owner: Owner | null;+ aliasContext?: BlockAliasContext;};const BlockContext = createContext<BlockState | undefined>(undefined);diff --git a/js/app/packages/core/component/AI/constant/fileType.ts b/js/app/packages/core/component/AI/constant/fileType.tsindex e0c75361ac..fceb01a084 100644--- a/js/app/packages/core/component/AI/constant/fileType.ts+++ b/js/app/packages/core/component/AI/constant/fileType.ts@@ -1,4 +1,4 @@-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import type { FileType } from '@service-cognition/generated/schemas/fileType';const codeFileExtensions: (keyof typeof FileType)[] = [@@ -320,7 +320,7 @@ export const SUPPORTED_ATTACHMENT_EXTENSIONS = [...SUPPORTED_DOCUMENT_ATTACHMENT_EXTENSIONS,];-export const SUPPORTED_CHAT_ATTACHMENT_BLOCKS: BlockName[] = [+export const SUPPORTED_CHAT_ATTACHMENT_BLOCKS: (BlockName | BlockAlias)[] = ['image','channel','write',@@ -329,4 +329,5 @@ export const SUPPORTED_CHAT_ATTACHMENT_BLOCKS: BlockName[] = ['code','canvas','email',+ 'task',];diff --git a/js/app/packages/core/component/DocumentPreview.tsx b/js/app/packages/core/component/DocumentPreview.tsxindex 8bf8144347..78a57afd64 100644--- a/js/app/packages/core/component/DocumentPreview.tsx+++ b/js/app/packages/core/component/DocumentPreview.tsx@@ -5,6 +5,7 @@ import { useOpenChatForAttachment } from '@block-chat/client';import { URL_PARAMS as URL_PARAMS_MD } from '@block-md/constants';import { URL_PARAMS as URL_PARAMS_PDF } from '@block-pdf/signal/location';import {+ type BlockAlias,type BlockName,useMaybeBlockId,useMaybeBlockName,@@ -166,7 +167,7 @@ export const getMentionsIcon = (icon: string | undefined) => {* Determines additional context information for mentions based on block type*/export const mentionsAccessories = (- blockName: BlockName,+ blockName: BlockName | BlockAlias,params: Record<string, string>): { note?: string; icon?: string } | undefined => {if (!params) return undefined;@@ -298,7 +299,7 @@ export function PopupPreview(props: {};documentInfo: {id: string;- type: BlockName;+ type: BlockName | BlockAlias;params: Record<string, string>;isOpenable?: boolean;};@@ -566,7 +567,7 @@ export function PopupPreview(props: {{/* Accessible preview */}<Match when={matches(props.item(), isAccessiblePreviewItem)}>{(accessibleItem) => {- const { type, fileType } = accessibleItem();+ const { type, fileType, subType } = accessibleItem();return (<div class="w-full h-full flex-col">{/* Header with icon and actions */}@@ -576,7 +577,11 @@ export function PopupPreview(props: {when={type === 'channel'}fallback={<EntityIcon- targetType={type === 'document' ? fileType : type}+ targetType={+ type === 'document'+ ? (subType ?? fileType)+ : type+ }size="md"/>}diff --git a/js/app/packages/core/component/EntityIcon.tsx b/js/app/packages/core/component/EntityIcon.tsxindex f6b732be9b..fa7416e509 100644--- a/js/app/packages/core/component/EntityIcon.tsx+++ b/js/app/packages/core/component/EntityIcon.tsx@@ -1,7 +1,8 @@-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import {blockAcceptedFileExtensionSet,fileTypeToBlockName,+ isBlockAlias,} from '@core/constant/allBlocks';import {USE_PIXEL_BLOCK_ICONS,@@ -26,7 +27,7 @@ import User from '@icon/duotone/user-duotone.svg';import Users from '@icon/duotone/users-duotone.svg';import Folder from '@icon/fill/folder-simple-fill.svg';import FolderUser from '@icon/fill/folder-user-fill.svg';-import Check from '@icon/regular/check-square-offset.svg';+import Check from '@icon/regular/check-fat.svg';import PixelChat from '@macro-icons/pixel/ai.svg';import PixelBuilding from '@macro-icons/pixel/building.svg';import PixelCanvas from '@macro-icons/pixel/canvas.svg';@@ -49,14 +50,17 @@ import WideBook from '@macro-icons/wide/book.svg';import WideChannel from '@macro-icons/wide/channel.svg';import WideChat from '@macro-icons/wide/chat.svg';import WideDiagram from '@macro-icons/wide/diagram.svg';+import WideDocx from '@macro-icons/wide/docx.svg';import WideEmail from '@macro-icons/wide/email.svg';import WideFileCode from '@macro-icons/wide/file-code.svg';import WideFileImage from '@macro-icons/wide/file-image.svg';import WideFileMd from '@macro-icons/wide/file-md.svg';import WideFolder from '@macro-icons/wide/folder.svg';import WideStar from '@macro-icons/wide/star.svg';+import WideTask from '@macro-icons/wide/task.svg';import WideUnknown from '@macro-icons/wide/unknown.svg';import WideUser from '@macro-icons/wide/user.svg';+import WideVideo from '@macro-icons/wide/video.svg';import { FileTypeMap } from '@service-storage/fileTypeMap';import type { FileType } from '@service-storage/generated/schemas/fileType';import type { Component, JSX } from 'solid-js';@@ -71,6 +75,7 @@ type IconConfig = {export type EntityWithValidIcon =| BlockName+ | BlockAlias| 'default'| 'sharedProject'| 'company'@@ -78,8 +83,7 @@ export type EntityWithValidIcon =| 'directMessage'| 'emailRead'| 'archive'- | 'html'- | 'task';+ | 'html';const ARCHIVE_EXTENSIONS = new Set(Object.values(FileTypeMap)@@ -216,8 +220,8 @@ export const ENTITY_ICON_CONFIGS: Record<EntityWithValidIcon, IconConfig> = {},task: {icon: Check,- foreground: 'text-default',- background: 'bg-default-bg',+ foreground: 'text-task',+ background: 'bg-task-bg',prettyName: 'Task',},};@@ -236,6 +240,8 @@ export function isArchiveType(ext: string): boolean {function validateEntity(entity: string): EntityWithValidIcon {if (entity in ENTITY_ICON_CONFIGS) {return entity as EntityWithValidIcon;+ } else if (isBlockAlias(entity)) {+ return entity as EntityWithValidIcon;} else if (isFileType(entity)) {return fileTypeToBlockName(entity, true);} else if (isArchiveType(entity)) {@@ -280,19 +286,19 @@ export const WIDE_ICONS: Record<EntityWithValidIcon, Component> = {pdf: WideBook,md: WideFileMd,image: WideFileImage,- write: WideFileMd,+ write: WideDocx,chat: WideStar,project: WideFolder,sharedProject: WideFolder,unknown: WideUnknown,archive: WideUnknown,- video: WideUnknown,+ video: WideVideo,contact: WideUser,default: WideUnknown,directMessage: WideChat,user: WideUser,emailRead: WideEmail,- task: Check,+ task: WideTask,};export const ICON_SIZES = {diff --git a/js/app/packages/core/component/FileList/constants.tsx b/js/app/packages/core/component/FileList/constants.tsxindex a36e5bb1ab..d24567e225 100644--- a/js/app/packages/core/component/FileList/constants.tsx+++ b/js/app/packages/core/component/FileList/constants.tsx@@ -1,4 +1,4 @@-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';// Standard size optionsexport const FILE_LIST_SIZE = {@@ -56,7 +56,10 @@ export const LARGE_BLOCK_ICON = 'md';// Enumerate the background styles for selected-state items.export const defaultFileColor = 'bg-hover/20 group/item';-export const fileTypeColors: Record<BlockName | 'default', string> = {+export const fileTypeColors: Record<+ BlockName | BlockAlias | 'default',+ string+> = {write: 'bg-write/20 group/item',pdf: 'bg-pdf/20 group/item',md: 'bg-note/20 group/item',diff --git a/js/app/packages/core/component/ItemPreview.tsx b/js/app/packages/core/component/ItemPreview.tsxindex f3ca00b462..bf01fcea1a 100644--- a/js/app/packages/core/component/ItemPreview.tsx+++ b/js/app/packages/core/component/ItemPreview.tsx@@ -205,6 +205,7 @@ export function ItemPreview(props: ItemPreviewProps) {{(accessibleItem) => {const itemData = accessibleItem();const fileType = itemData.fileType;+ const subType = itemData.subType;const navHandlers =useSplitNavigationHandler<HTMLButtonElement>((e) =>onPreviewClick(@@ -231,7 +232,7 @@ export function ItemPreview(props: ItemPreviewProps) {<EntityIcontargetType={itemData.type === 'document'- ? fileType+ ? subType || fileType: itemData.type}size="xs"diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsxindex 56d4066462..7e90a7379f 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsx@@ -12,7 +12,7 @@ import {} from '@core/component/Menu';import { ScopedPortal } from '@core/component/ScopedPortal';import { toast } from '@core/component/Toast/Toast';-import { verifyBlockName } from '@core/constant/allBlocks';+import { resolveBlockAlias, verifyBlockName } from '@core/constant/allBlocks';import { ENABLE_BLOCK_IN_BLOCK } from '@core/constant/featureFlags';import { canNestBlock, createBlockInstance } from '@core/orchestrator';import {@@ -165,7 +165,7 @@ export function DocumentCard(props: DocumentCardDecoratorProps) {if (!i) return false;if (isLoadingPreviewItem(i)) return false;if (!isAccessiblePreviewItem(i)) return false;- const blockName = verifyBlockName(props.blockName);+ const blockName = resolveBlockAlias(verifyBlockName(props.blockName));return canNestBlock(blockName, currentBlockName);});@@ -203,7 +203,7 @@ export function DocumentCard(props: DocumentCardDecoratorProps) {const documentId = i.id;const preview = createBlockInstance(- verifyBlockName(props.blockName),+ resolveBlockAlias(verifyBlockName(props.blockName)),documentId,{nested: {@@ -341,7 +341,7 @@ export function DocumentCard(props: DocumentCardDecoratorProps) {<EntityIcontargetType={props.item.type === 'document'- ? props.item.fileType+ ? (props.item.subType ?? props.item.fileType): props.item.type}size="sm"diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsxindex 037920a223..3dbf47c8a4 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx@@ -1,4 +1,5 @@import {+ type BlockAlias,type BlockName,useMaybeBlockId,useMaybeBlockName,@@ -9,7 +10,7 @@ import {PopupPreview,} from '@core/component/DocumentPreview';import { EntityIcon } from '@core/component/EntityIcon';-import { verifyBlockName } from '@core/constant/allBlocks';+import { resolveBlockAlias, verifyBlockName } from '@core/constant/allBlocks';import { ENABLE_BLOCK_IN_BLOCK } from '@core/constant/featureFlags';import { isTouchDevice } from '@core/mobile/isTouchDevice';import { canNestBlock } from '@core/orchestrator';@@ -109,7 +110,7 @@ function isAccessible(item: PreviewItem): item is AccessiblePreviewItem {function InlinePreview(props: {item: () => PreviewItem;- blockName: BlockName;+ blockName: BlockName | BlockAlias;blockParams: Record<string, string>;theme?: EditorThemeClasses;collapsed?: boolean;@@ -121,7 +122,7 @@ function InlinePreview(props: {</Match><Match when={matches(props.item(), isAccessible)}>{(accessibleItem) => {- const { type, fileType, channelType } = accessibleItem();+ const { type, fileType, channelType, subType } = accessibleItem();return (<MentionContainericon={@@ -129,7 +130,9 @@ function InlinePreview(props: {when={type === 'channel'}fallback={<EntityIcon- targetType={type === 'document' ? fileType : type}+ targetType={+ type === 'document' ? (subType ?? fileType) : type+ }size="fill"theme={props.theme?.['document-mention'] === 'chat-blue'@@ -223,7 +226,7 @@ export function DocumentMention(props: DocumentMentionDecoratorProps) {const isEmbeddable = createMemo(() => {if (!ENABLE_BLOCK_IN_BLOCK) return false;const blockName = verifyBlockName(props.blockName);- return canNestBlock(blockName, currentBlockName);+ return canNestBlock(resolveBlockAlias(blockName), currentBlockName);});const previewType = () =>diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsxindex dae1c93110..2f7b9afc07 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsx@@ -1,4 +1,5 @@import {+ type BlockAlias,type BlockName,useMaybeBlockId,useMaybeBlockName,@@ -129,11 +130,14 @@ const getUserSearchText = (item: IUser): string => {const getCombinedEntityBlockName = (item: CombinedEntity<'item' | 'channel' | 'email'>,icon?: boolean-): BlockName => {+): BlockName | BlockAlias => {switch (item.kind) {case 'item':if (item.data.type === 'document')- return fileTypeToBlockName(item.data.fileType, icon);+ return fileTypeToBlockName(+ item.data.subType || item.data.fileType,+ icon+ );if (item.data.type === 'chat') return 'chat';if (item.data.type === 'project') return 'project';return 'unknown';diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsxindex d5a6ae6af9..ca53a12f70 100644--- a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx+++ b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx@@ -1,4 +1,4 @@-import { useBlockName } from '@core/block';+import { useBlockAliasedName } from '@core/block';import { type Component, createMemo, For, Show } from 'solid-js';import { getBuiltinPropertyIds } from '../../constants';import { usePropertiesContext } from '../../context/PropertiesContext';@@ -11,7 +11,7 @@ interface PropertiesListProps {export const PropertyGrid: Component<PropertiesListProps> = (props) => {const { openPropertyEditor, openDatePicker } = usePropertiesContext();- const blockName = useBlockName();+ const blockName = useBlockAliasedName();const builtinPropertyIds = getBuiltinPropertyIds(blockName);// Single pass through properties array to split into metadata, builtin, and user propertiesdiff --git a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsxindex 01b0cde6c0..ee54e94601 100644--- a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx+++ b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx@@ -1,4 +1,4 @@-import { useBlockName } from '@core/block';+import { useBlockAliasedName } from '@core/block';import { IconButton } from '@core/component/IconButton';import DeleteIcon from '@icon/bold/x-bold.svg';import PinIcon from '@icon/regular/push-pin.svg';@@ -25,7 +25,7 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {onPropertyUnpinned,pinnedPropertyIds,} = usePropertiesContext();- const blockName = useBlockName();+ const blockName = useBlockAliasedName();const isBuiltin = getBuiltinPropertyIds(blockName).includes(props.property.propertyDefinitionId);diff --git a/js/app/packages/core/component/Properties/constants.ts b/js/app/packages/core/component/Properties/constants.tsindex 869f5f2c07..dc9b3b2023 100644--- a/js/app/packages/core/component/Properties/constants.ts+++ b/js/app/packages/core/component/Properties/constants.ts@@ -3,7 +3,7 @@* For styling constants, see styles/styles.ts (PROPERTY_STYLES)*/-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';export const NUMBER_DECIMAL_PLACES = 4; // Matches backend precision@@ -37,7 +37,7 @@ export const SYSTEM_PROPERTY_IDS = {* and cannot be removed. Order matches backend (display order).*/export const BUILTIN_PROPERTIES_BY_BLOCK: Partial<- Record<BlockName, readonly string[]>+ Record<BlockName | BlockAlias, readonly string[]>> = {task: [SYSTEM_PROPERTY_IDS.ASSIGNEES,@@ -57,7 +57,9 @@ export const BUILTIN_PROPERTIES_BY_BLOCK: Partial<* Get the builtin property definition IDs for a block type.* Returns empty array if block has no builtin properties.*/-export function getBuiltinPropertyIds(blockType: BlockName): readonly string[] {+export function getBuiltinPropertyIds(+ blockType: BlockName | BlockAlias+): readonly string[] {return BUILTIN_PROPERTIES_BY_BLOCK[blockType] ?? [];}diff --git a/js/app/packages/core/constant/allBlocks.ts b/js/app/packages/core/constant/allBlocks.tsindex 5115fb46aa..d67f35983e 100644--- a/js/app/packages/core/constant/allBlocks.ts+++ b/js/app/packages/core/constant/allBlocks.ts@@ -1,5 +1,6 @@import {type AnyBlockDefinition,+ type BlockAlias,type BlockName,BlockRegistry,type FileTypeString,@@ -31,6 +32,12 @@ export const blockAcceptedFileExtensionToMimeType: Record<const fileTypeToBlockName_: Record<string, BlockName> = {};+// Map from alias names to their base block names+const aliasToBlockName_: Record<string, BlockName> = {};++// Map from base block names to their aliases+export const blockNameToAliases: Partial<Record<BlockName, string[]>> = {};+export const blockAcceptedFileExtensionSet = new Set<string>();// @ts-ignore This type is built below@@ -40,12 +47,29 @@ export const blockNameToFileExtensionSet: Record<> = {};// @ts-ignore This type is built belowexport const blockNameToMimeTypeSet: Record<BlockName, Set<MimeType>> = {};-// @ts-ignore This type is built below-export const blockNameToDefaultFilename: Record<BlockName, string> = {};+export const blockNameToDefaultFilename: Partial<+ Record<BlockName | BlockAlias, string>+> = {};for (const [name, block] of Object.entries(blocks)) {blockNameToFileExtensionSet[name as BlockName] = new Set();blockNameToMimeTypeSet[name as BlockName] = new Set();++ // Process aliases+ if (block.aliases) {+ blockNameToAliases[name as BlockName] = block.aliases.map(+ (alias) => alias.name+ );+ for (const alias of block.aliases) {+ aliasToBlockName_[alias.name] = name as BlockName;+ if (alias.defaultFileName) {+ blockNameToDefaultFilename[alias.name] = alias.defaultFileName;+ }+ }+ } else {+ blockNameToAliases[name as BlockName] = [];+ }+for (const [fileExtension, mimeType] of Object.entries(block.accepted)) {fileTypeToBlockName_[fileExtension] = name as BlockName;blockAcceptedFileExtensionSet.add(fileExtension);@@ -94,6 +118,20 @@ export const blockAcceptedFileExtensions = Array.from(blockAcceptedFileExtensionSet);+/**+ * Check if a string is a block alias+ */+export function isBlockAlias(name: string): name is BlockAlias {+ return name in aliasToBlockName_;+}++/**+ * Get the base block name for an alias, or return the original name if not an alias+ */+export function resolveBlockAlias(name: BlockName | BlockAlias): BlockName {+ return aliasToBlockName_[name] || (name as BlockName);+}+/*** Get the name of a block from a its own name or a file type. Built using the* types registered in block definitions.@@ -101,6 +139,7 @@ export const blockAcceptedFileExtensions = Array.from(* getBlockName('docx') // 'write'* getBlockName('svg') // 'image'* getBlockName('chat') // 'chat'+ * getBlockName('task') // 'task'* getBlockName('junk') // undefined* @param blockOrFiletype - The block name or file type like 'py', 'md', 'chat',* 'png', etc.@@ -113,7 +152,7 @@ export function fileTypeToBlockName(blockOrFiletype?: string | null,// For docx: icon should still show as docx icon, not pdficon?: boolean-): BlockName {+): BlockName | BlockAlias {if (!blockOrFiletype) return 'unknown';if (ENABLE_DOCX_TO_PDF) {@@ -121,6 +160,11 @@ export function fileTypeToBlockName(return icon ? 'write' : 'pdf';}}++ if (isBlockAlias(blockOrFiletype)) {+ return blockOrFiletype;+ }+if (BlockRegistry.includes(blockOrFiletype as any)) {return blockOrFiletype as BlockName;}@@ -128,13 +172,32 @@ export function fileTypeToBlockName(return fileTypeToBlockName_[blockOrFiletype] ?? 'unknown';}+/**+ * Get the name of a block from a its own name, aliased name, or a file type.+ * @example+ * getBlockName('task') // 'md'+ * getBlockName('junk') // undefined+ * @param blockOrFiletype - The block name or file type like 'py', 'md', 'chat',+ * 'png', etc.+ * @return Either the name of the block or 'unknown' if there is no+ * appropriate block.+ */+export function fileTypeToResolvedBlockName(+ blockOrFiletype?: string | null+): BlockName {+ return resolveBlockAlias(fileTypeToBlockName(blockOrFiletype));+}+/*** Get the default display name for an unnamed file of a particular block.*/export function blockNameToDefaultFile(block?: BlockName | string) {if (!block) return DefaultFilename;if (block in blockNameToDefaultFilename) {- return blockNameToDefaultFilename[block as BlockName];+ return (+ blockNameToDefaultFilename[block as BlockName | BlockAlias] ||+ DefaultFilename+ );}return DefaultFilename;}@@ -142,6 +205,7 @@ export function blockNameToDefaultFile(block?: BlockName | string) {type ItemLike = {type: ItemType;fileType?: BasicDocumentFileType;+ subType?: string | null;name?: string;};@@ -150,16 +214,35 @@ type ItemLike = {* @example* itemToBlockName({ type: 'document', fileType: 'docx' }) // 'write'* itemToBlockName({ type: 'document', fileType: 'py' }) // 'code'+ * itemToBlockName({ type: 'document', fileType: 'md', subType: 'task' }) // 'task'* itemToBlockName({ type: 'chat' }) // 'chat'* @return The block name or undefined if there is no appropriate block.*/-export function itemToBlockName(item: ItemLike): BlockName | undefined {+export function itemToBlockName(+ item: ItemLike+): BlockName | BlockAlias | undefined {+ if (item.subType && isBlockAlias(item.subType)) {+ return item.subType;+ }if (item.fileType) {return fileTypeToBlockName(item.fileType);}return fileTypeToBlockName(item.type);}+/**+ * Get a flattened block name from an item-shaped object. Ignoring any block \+ * aliases.+ * @example+ * itemToBlockName({ type: 'document', fileType: 'md', subType: 'task' }) // 'md'+ * @return The block name or undefined if there is no appropriate block.+ */+export function itemToResolvedBlockName(item: ItemLike) {+ const maybeAliased = itemToBlockName(item);+ if (!maybeAliased) return;+ return resolveBlockAlias(maybeAliased);+}+/*** Get the name of an item or its block-specific fallback name if the name in storage is* the empty string.@@ -169,22 +252,25 @@ export function itemToBlockName(item: ItemLike): BlockName | undefined {* itemToBlockName({ type: 'chat' }) // 'New Chat'* @return A safe name for the item to display.*/-export function itemToSafeName(item: ItemLike): string {if (typeof item.name === 'string' && item.name.length > 0) {return item.name;}- return blockNameToDefaultFile(itemToBlockName(item));+ return blockNameToDefaultFile(itemToBlockName(item) || 'unknown');}/*** Return name as a known block name if it matches or 'unknown' if not found.* @returns*/-export function verifyBlockName(name: string | undefined): BlockName {+export function verifyBlockName(+ name: string | undefined+): BlockName | BlockAlias {+ if (!name) return 'unknown';if (ENABLE_DOCX_TO_PDF && name === 'write') {return 'pdf';}+ if (isBlockAlias(name)) return name;if (name && name in blocks) return name as BlockName;return 'unknown';}diff --git a/js/app/packages/core/orchestrator.tsx b/js/app/packages/core/orchestrator.tsxindex a8bab40b12..838005aa63 100644--- a/js/app/packages/core/orchestrator.tsx+++ b/js/app/packages/core/orchestrator.tsx@@ -11,6 +11,7 @@ import {} from 'solid-js';import { createStore } from 'solid-js/store';import {+ type BlockAliasContext,Block as BlockComponent,type BlockName,type NestedState,@@ -87,6 +88,7 @@ export type CreateBlockOptions = {location?: Location;nested?: NestedState<any>;sourceResolver?: (type: BlockName, id: string, location?: Location) => Source;+ aliasContext?: BlockAliasContext;};type UnmanagedBlockInstance = Omit<BlockInstance, 'handle'>;@@ -184,7 +186,12 @@ function createBlockElement({});return (- <BlockComponent id={id} name={type} nested={opts?.nested}>+ <BlockComponent+ id={id}+ name={type}+ nested={opts?.nested}+ aliasContext={opts?.aliasContext}+ ><BlockLoaderdefinition={definition}source={src}diff --git a/js/app/packages/core/signal/preview.ts b/js/app/packages/core/signal/preview.tsindex 41dbcae271..f3f025dc16 100644--- a/js/app/packages/core/signal/preview.ts+++ b/js/app/packages/core/signal/preview.ts@@ -6,6 +6,7 @@ import type { ChannelType } from '@service-cognition/generated/schemas/channelTyimport { commsServiceClient } from '@service-comms/client';import { emailClient } from '@service-email/client';import { type ItemType, storageServiceClient } from '@service-storage/client';+import type { DocumentSubType } from '@service-storage/generated/schemas';import type { FileType } from '@service-storage/generated/schemas/fileType';import { syncServiceClient } from '@service-sync/client';import { type Accessor, createEffect, createSignal } from 'solid-js';@@ -35,6 +36,7 @@ export type PreviewItemAccess = {loading: false;name: string;fileType?: FileType;+ subType?: DocumentSubType;channelType?: never;} & BasePreviewItem<Exclude<ItemType, 'project'>>;@@ -43,6 +45,7 @@ export type PreviewProjectAccess = {loading: false;name: string;fileType?: never;+ subType?: never;channelType?: never;} & BasePreviewItem<'project'>;@@ -51,6 +54,7 @@ export type PreviewDocumentAccess = {loading: false;name: string;fileType: FileType;+ subType?: DocumentSubType;channelType?: never;} & BasePreviewItem<'document'>;@@ -59,6 +63,7 @@ export type PreviewChannelAccess = {loading: false;name: string;fileType?: never;+ subType?: never;channelType?: ChannelType;} & BasePreviewItem<Exclude<ItemType, 'project'>>;@@ -252,6 +257,7 @@ async function fetchDocumentPreviews(ids: string[]): Promise<PreviewItem[]> {fileType: doc.file_type as FileType,owner: doc.owner,updatedAt: doc.updated_at,+ subType: doc.sub_type ?? undefined,};case 'no_access':case 'does_not_exist':diff --git a/js/app/packages/core/store/cacheChannelInput.ts b/js/app/packages/core/store/cacheChannelInput.tsindex b4be0ba67c..6c26ea3640 100644--- a/js/app/packages/core/store/cacheChannelInput.ts+++ b/js/app/packages/core/store/cacheChannelInput.ts@@ -1,4 +1,4 @@-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import { makePersisted } from '@solid-primitives/storage';import { createStore } from 'solid-js/store';@@ -16,7 +16,7 @@ export function isStaticAttachmentType(return value === STATIC_IMAGE || value === STATIC_VIDEO;}-export type AttachmentType = BlockName | StaticAttachmentType;+export type AttachmentType = BlockName | BlockAlias | StaticAttachmentType;export type InputAttachment = {id: string;diff --git a/js/app/packages/core/util/currentBlockDocumentName.ts b/js/app/packages/core/util/currentBlockDocumentName.tsindex a33389d501..0fd4fef641 100644--- a/js/app/packages/core/util/currentBlockDocumentName.ts+++ b/js/app/packages/core/util/currentBlockDocumentName.ts@@ -2,7 +2,7 @@ import {createBlockMemo,isInBlock,NonDocumentBlockTypes,- useBlockName,+ useBlockAliasedName,} from '@core/block';import { blockNameToDefaultFile } from '@core/constant/allBlocks';import { blockMetadataSignal } from '@core/signal/load';@@ -22,7 +22,7 @@ export const useBlockDocumentName = (defaultName?: string) => {if (!isInBlock()) {throw new Error('hook must be used within a block');}- const blockName = useBlockName();+ const blockName = useBlockAliasedName();const isFileBlock = !NonDocumentBlockTypes.includes(blockName);return createMemo(() => {diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsxindex fe76257b88..62030d1eaf 100644--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx@@ -35,7 +35,11 @@ import {type ProjectContainedEntity,} from '../queries/project';import { isSearchEntity } from '../queries/search';-import type { EntityData, ProjectEntity } from '../types/entity';+import {+ type EntityData,+ isTaskEntity,+ type ProjectEntity,+} from '../types/entity';import type { Notification, WithNotification } from '../types/notification';import type {ChannelContentHitData,@@ -178,7 +182,9 @@ export function EntityWithEverything(return getIconConfig('channel');}case 'document':- return getIconConfig(props.entity.fileType || 'default');+ if (isTaskEntity(props.entity)) return getIconConfig('task');+ if (props.entity.fileType) return getIconConfig(props.entity.fileType);+ return getIconConfig('default');case 'chat':return getIconConfig('chat');case 'project':diff --git a/js/app/packages/macro-entity/src/queries/dss.ts b/js/app/packages/macro-entity/src/queries/dss.tsindex 304c0f1fde..c09dc7b139 100644--- a/js/app/packages/macro-entity/src/queries/dss.ts+++ b/js/app/packages/macro-entity/src/queries/dss.ts@@ -4,11 +4,13 @@ import {moveToFolder,renameItem,} from '@core/component/FileList/itemOperations';+import { itemToSafeName } from '@core/constant/allBlocks';import type { ItemType } from '@service-storage/client';import type {PostItemsSoupParams,PostSoupRequest,SoupApiSort,+ SoupDocument,} from '@service-storage/generated/schemas';import type { GetItemsSoupParams } from '@service-storage/generated/schemas/getItemsSoupParams';import type { SoupPage } from '@service-storage/generated/schemas/soupPage';@@ -34,6 +36,17 @@ import { createApiTokenQuery } from './auth';import { queryClient } from './client';import { type DssQueryKey, dssQueryKeyHashFn, queryKeys } from './key';+const resolveDocumentEntityName = (+ entity: DocumentEntity | SoupDocument+): string => {+ return itemToSafeName({+ type: 'document',+ name: entity.name,+ fileType: entity.fileType,+ subType: entity.subType ?? undefined,+ });+};+const fetchPaginatedDocumentsGet = async ({apiToken,...params@@ -237,12 +250,13 @@ const selectData: (return {...item.data,- name: item.data.name || 'New Note',type: item.tag,frecencyScore: item.frecency_score,viewedAt: item.data.viewedAt ?? undefined,fileType: item.data.fileType ?? undefined,projectId: item.data.projectId ?? undefined,+ subType: item.data.subType ?? undefined,+ name: resolveDocumentEntityName(item.data),};})@@ -292,11 +306,12 @@ export function createDocumentsInfiniteQuery((item): DocumentEntity => ({...item.data,type: item.tag,- name: item.data.name || 'New Note',frecencyScore: item.frecency_score,viewedAt: item.data.viewedAt ?? undefined,fileType: item.data.fileType ?? undefined,projectId: item.data.projectId ?? undefined,+ subType: item.data.subType ?? undefined,+ name: resolveDocumentEntityName(item.data),}))),diff --git a/js/app/packages/macro-entity/src/types/entity.ts b/js/app/packages/macro-entity/src/types/entity.tsindex c2040f7ade..d64296df32 100644--- a/js/app/packages/macro-entity/src/types/entity.ts+++ b/js/app/packages/macro-entity/src/types/entity.ts@@ -36,12 +36,32 @@ export type ChatEntity = EntityBase & {projectId?: string;};-export type DocumentEntity = EntityBase & {+export type BaseDocumentEntity = EntityBase & {type: 'document';fileType?: string;projectId?: string;+ subType?: string;};+export type TaskEntity = EntityBase & {+ type: 'document';+ fileType: 'md';+ subType: 'task';+ projectId?: string;+};++export type MarkdownNoteEntity = EntityBase & {+ type: 'document';+ fileType: 'md';+ subType?: undefined | null;+ projectId?: string;+};++export type DocumentEntity =+ | BaseDocumentEntity+ | TaskEntity+ | MarkdownNoteEntity;+export const getEntityProjectId = (e: EntityData): string | false => {if (e.type === 'project') {return 'parentId' in e ? (e.parentId ?? false) : false;@@ -90,6 +110,22 @@ export const isEntityData = (item: unknown): item is EntityData => {return isEntityType(item.type);};+export const isTaskEntity = (entity: EntityData): entity is TaskEntity => {+ return (+ entity.type === 'document' &&+ entity.fileType === 'md' &&+ entity.subType === 'task'+ );+};++export const isMarkdownNoteEntity = (+ entity: EntityData+): entity is MarkdownNoteEntity => {+ return (+ entity.type === 'document' && entity.fileType === 'md' && !entity.subType+ );+};+export type EntityType = EntityData['type'];export type EntityOf<K extends EntityType> = Extract<EntityData, { type: K }>;diff --git a/js/app/packages/macro-icons/pixel/0195cea4-5491-77f9-9224-1291fdb8f150.html b/js/app/packages/macro-icons/pixel/0195cea4-5491-77f9-9224-1291fdb8f150.htmldeleted file mode 100644index 663c2e2f46..0000000000--- a/js/app/packages/macro-icons/pixel/0195cea4-5491-77f9-9224-1291fdb8f150.html+++ /dev/null@@ -1,41 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="utf-8" />- <meta- name="viewport"- content="width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no, interactive-widget=resizes-visual"- />- <meta name="mobile-web-app-capable" content="yes" />- <meta name="theme-color" content="#FFFFFF" />- <meta name="description" content="Macro AI Workspace" />- <link rel="shortcut icon" href="/app/icon.png" />- <link rel="apple-touch-icon" href="/app/logo192.png" />- <!--- manifest.json provides metadata used when your web app is installed on a- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/- -->- <link rel="manifest" href="/app/manifest.json" />-- <link rel="preconnect" href="https://fonts.googleapis.com" />- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />- <link- href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"- rel="stylesheet"- />- <script type="module" crossorigin src="/app/app-ChymJdT8.js"></script>- <link rel="stylesheet" crossorigin href="/app/assets/app-jldiYCcL.css">- </head>-- <body>- <noscript>You need to enable JavaScript to run this app.</noscript>- <div id="root" class="h-full"></div>- <div id="modal" class="z-modal"></div>- <!--- Entrypoint- -->- <script>- window.__START_TIME__ = performance.now();- </script>- </body>-</html>diff --git a/js/app/packages/macro-icons/pixel/New Canvas.canvas b/js/app/packages/macro-icons/pixel/New Canvas.canvasdeleted file mode 100644index 1e5d7b5e74..0000000000--- a/js/app/packages/macro-icons/pixel/New Canvas.canvas+++ /dev/null@@ -1 +0,0 @@-{"nodes":[{"type":"shape","shape":"rectangle","x":-749.16796875,"y":-638.3125,"width":431.84765625,"height":503.80859375,"edges":[],"style":{"fillColor":"#f5f5f5","strokeColor":"#404040","strokeWidth":2,"cornerRadius":0,"opacity":1,"textSize":16,"connectionStyle":0},"layer":0,"sortOrder":1,"id":"ks68NABe"},{"type":"file","file":"e00d3ede-53a6-4d8d-87cc-e2c1c0e809f8","isChat":false,"isRss":false,"isProject":false,"mentionUuid":"0198c870-3612-73b8-a669-b1c179ae745b","x":-42.64128586341596,"y":-102.94064225821657,"width":250,"height":50,"edges":[],"style":{"strokeColor":"transparent"},"layer":0,"sortOrder":2,"id":"KOhTHpg_"},{"type":"file","file":"b9fb4c49-ab2a-48b9-be07-57c6ac4e8062","isChat":false,"isRss":false,"isProject":false,"mentionUuid":"0198c879-53b7-7f6b-b378-e8ba12e606cb","x":-244.21218345905174,"y":-46.14822913860453,"width":250,"height":50,"edges":[],"style":{"strokeColor":"transparent"},"layer":0,"sortOrder":3,"id":"Tm5AuhzC"},{"type":"file","file":"34e4e56d-eb7f-4bff-916b-01a789d714ac","isChat":false,"isRss":false,"isProject":false,"mentionUuid":"0198c879-ccab-79a1-aeb5-8cce58885278","x":-136.61701070851294,"y":91.0931501717403,"width":250,"height":50,"edges":[],"style":{"strokeColor":"transparent"},"layer":0,"sortOrder":4,"id":"B3FUFFGj"},{"type":"image","status":"static","uuid":"fc453cbc-678f-4237-8f5b-1bfb04998f07","x":-205.61635172158637,"y":-225.75826469695204,"width":357.31502116813857,"height":534.0839745578731,"edges":[],"style":{"strokeColor":"transparent"},"flipX":false,"flipY":false,"layer":0,"sortOrder":5,"id":"Mu1qWj--"},{"type":"pencil","x":-2746.393229166667,"y":-3244.713541666667,"width":1442.6171875000002,"height":1982.4218750000002,"edges":[],"coords":[[868.2161458333335,335.88541666666697],[840.2473958333335,301.0677083333335],[836.3411458333335,295.234375],[830.807291666667,288.11197916666697],[805.807291666667,253.7109375],[798.385416666667,242.578125],[798.385416666667,241.80989583333348],[788.854166666667,229.1015625],[786.1328125000002,223.671875],[779.4140625000002,214.40104166666697],[774.6484375000002,206.45833333333348],[767.682291666667,197.74739583333348],[751.3411458333335,169.7265625],[747.2656250000002,165.65104166666697],[744.088541666667,157.70833333333348],[739.322916666667,151.35416666666697],[736.6015625000002,145.92447916666697],[735.2343750000002,140.49479166666697],[726.0937500000002,121.2890625],[724.1406250000002,118.37239583333348],[724.1406250000002,112.94270833333348],[719.3750000000002,106.58854166666697],[714.8958333333335,92.04427083333348],[714.8958333333335,86.2109375],[711.9661458333335,77.4609375],[711.9661458333335,58.26822916666697],[714.6484375000002,47.825520833333485],[718.424479166667,40.14322916666697],[718.424479166667,38.606770833333485],[720.3645833333335,35.69010416666697],[722.643229166667,33.38541666666697],[723.3984375000002,31.848958333333485],[724.9218750000002,31.08072916666697],[737.5781250000002,18.125],[742.0052083333335,15.403645833333485],[744.908854166667,14.427083333333485],[747.8125000000002,12.473958333333485],[755.143229166667,9.75260416666697],[758.0468750000002,7.79947916666697],[763.463541666667,7.79947916666697],[777.5911458333335,4.86979166666697],[778.346354166667,4.1015625],[794.596354166667,4.1015625],[805.4296875000002,1.3671875],[810.846354166667,1.3671875],[816.2630208333335,0],[898.4765625000002,0],[946.0286458333335,9.32291666666697],[956.4583333333335,11.0546875],[964.3880208333335,14.21875],[972.3177083333335,15.794270833333485],[1029.947916666667,34.348958333333485],[1045.4687500000002,40.169270833333485],[1055.8984375000002,45.37760416666697],[1063.8281250000002,48.54166666666697],[1074.2578125000002,52.01822916666697],[1084.6875000000002,57.2265625],[1092.6171875000002,60.390625],[1098.033854166667,63.098958333333485],[1108.463541666667,66.57552083333348],[1118.893229166667,71.78385416666697],[1126.822916666667,74.94791666666697],[1134.752604166667,79.70052083333348],[1147.7343750000002,85.26041666666697],[1195.651041666667,109.27083333333348],[1206.4843750000002,115.96354166666697],[1216.9140625000002,121.171875],[1223.2552083333335,125.92447916666697],[1231.1848958333335,130.67708333333348],[1241.6145833333335,135.88541666666697],[1250.3125000000002,142.83854166666697],[1255.729166666667,144.19270833333348],[1288.1640625000002,169.8046875],[1318.4895833333335,190.9375],[1346.2109375000002,212.1484375],[1350.2734375000002,216.2109375],[1365.3125000000002,227.91666666666697],[1371.6536458333335,234.2578125],[1377.994791666667,239.01041666666697],[1382.057291666667,243.07291666666697],[1388.3984375000002,247.82552083333348],[1390.338541666667,250.72916666666697],[1396.6796875000002,257.0703125],[1409.557291666667,271.5364583333335],[1417.682291666667,279.6614583333335],[1420.3906250000002,285.078125],[1421.9140625000002,286.6015625],[1431.6145833333335,301.11979166666697],[1434.322916666667,306.5364583333335],[1435.2864583333335,309.44010416666697],[1437.2265625000002,312.34375],[1438.580729166667,317.76041666666697],[1438.580729166667,320.6640625],[1442.6171875000002,335.546875],[1442.6171875000002,364.08854166666697],[1436.7578125000002,381.51041666666697],[1432.0833333333335,388.8411458333335],[1430.5468750000002,390.3645833333335],[1429.1796875000002,395.78125],[1426.2630208333335,397.72135416666697],[1419.9609375000002,407.109375],[1411.8098958333335,415.234375],[1409.8567708333335,418.1380208333335],[1395.7161458333335,429.67447916666697],[1391.6406250000002,433.73697916666697],[1388.7239583333335,435.6770833333335],[1383.2942708333335,438.38541666666697],[1374.0234375000002,445.078125],[1361.627604166667,451.25],[1353.6848958333335,456.00260416666697],[1337.3958333333335,464.12760416666697],[1302.486979166667,477.9817708333335],[1289.1145833333335,482.265625],[1281.1718750000002,485.4296875],[1275.7421875000002,486.78385416666697],[1257.3567708333335,490.0911458333335],[1228.111979166667,496.1067708333335],[1220.1692708333335,496.1067708333335],[1212.2265625000002,497.68229166666697],[1150.4036458333335,501.74479166666697],[1091.549479166667,501.74479166666697],[1073.1640625000002,498.4114583333335],[1067.7343750000002,497.0442708333335],[1057.291666666667,497.0442708333335],[1020.7812500000002,491.328125],[1012.838541666667,488.15104166666697],[996.9531250000002,484.9739583333335],[989.010416666667,481.796875],[975.6380208333335,478.8411458333335],[967.6953125000002,475.6640625],[962.2656250000002,474.296875],[951.822916666667,470.80729166666697],[943.8802083333335,467.6302083333335],[938.4505208333335,466.2630208333335],[933.0208333333335,463.54166666666697],[927.5911458333335,462.17447916666697],[889.0625000000002,442.65625],[883.6328125000002,441.2890625],[877.2786458333335,436.5234375],[871.8489583333335,433.8020833333335],[865.494791666667,429.0364583333335],[860.065104166667,426.31510416666697],[853.7109375000002,421.54947916666697],[848.2812500000002,418.828125],[846.744791666667,417.29166666666697],[834.0364583333335,407.76041666666697],[815.260416666667,394.24479166666697],[813.307291666667,391.328125],[795.4687500000002,373.4895833333335],[787.9036458333335,364.9609375],[777.6953125000002,349.6484375],[773.815104166667,340.53385416666697],[768.9583333333335,326.19791666666697],[768.9583333333335,320.76822916666697],[767.9817708333335,316.31510416666697],[766.4453125000002,315.546875],[766.4453125000002,286.47135416666697],[768.3723958333335,279.1015625],[769.127604166667,277.56510416666697],[769.8828125000002,273.11197916666697],[773.111979166667,265.5859375],[773.8671875000002,264.8177083333335],[778.8411458333335,255.75520833333348],[781.8750000000002,252.68229166666697],[782.6302083333335,251.14583333333348],[784.1536458333335,250.37760416666697],[787.1875000000002,247.3046875],[787.9427083333335,245.76822916666697],[791.744791666667,242.6953125],[797.8255208333335,238.85416666666697],[798.580729166667,238.85416666666697],[800.104166666667,237.31770833333348],[806.1848958333335,235.01302083333348],[808.463541666667,235.01302083333348],[808.463541666667,234.24479166666697],[812.2656250000002,232.70833333333348],[814.5442708333335,232.70833333333348],[815.299479166667,231.94010416666697],[821.354166666667,231.94010416666697],[822.1093750000002,231.171875],[829.6614583333335,231.171875],[829.6614583333335,231.92708333333348],[830.416666666667,232.68229166666697],[831.1718750000002,232.68229166666697],[832.682291666667,234.19270833333348],[832.682291666667,234.94791666666697],[833.4375000000002,235.703125],[833.4375000000002,237.21354166666697],[834.1927083333335,237.21354166666697],[834.1927083333335,239.47916666666697],[834.947916666667,240.98958333333348],[834.947916666667,250.06510416666697],[834.1796875000002,253.85416666666697],[833.4114583333335,255.37760416666697],[833.4114583333335,258.3984375],[832.643229166667,259.921875],[832.643229166667,262.2005208333335],[831.8750000000002,262.95572916666697],[830.338541666667,269.7786458333335],[828.8020833333335,272.05729166666697],[828.8020833333335,277.36979166666697],[827.2656250000002,279.6484375],[824.9609375000002,288.0078125],[822.6562500000002,291.8098958333335],[822.6562500000002,293.3333333333335],[821.8880208333335,295.61197916666697],[819.5833333333335,298.65885416666697],[819.5833333333335,300.18229166666697],[818.0468750000002,302.4609375],[818.0468750000002,303.984375],[815.7421875000002,307.03125],[810.7161458333335,318.1640625],[807.799479166667,319.12760416666697],[806.2630208333335,323.5546875],[803.541666666667,328.73697916666697],[801.236979166667,331.015625],[796.2109375000002,338.4895833333335],[790.8333333333335,344.5703125],[768.3593750000002,372.64322916666697],[764.283854166667,376.70572916666697],[760.026041666667,381.8880208333335],[756.5364583333335,386.31510416666697],[753.815104166667,390.7421875],[748.2031250000002,396.328125],[742.760416666667,404.4140625],[738.8671875000002,409.2578125],[726.0286458333335,429.3359375],[724.6614583333335,434.75260416666697],[721.1718750000002,439.1796875],[713.5677083333335,453.30729166666697],[711.6145833333335,459.1145833333335],[707.5390625000002,463.1770833333335],[705.5859375000002,468.984375],[703.6328125000002,471.8880208333335],[701.6796875000002,480.2083333333335],[696.236979166667,489.6875],[695.260416666667,492.5911458333335],[692.330729166667,498.3984375],[683.385416666667,521.588541666667],[675.9895833333335,538.229166666667],[671.901041666667,549.0625],[669.166666666667,559.8958333333335],[666.4453125,565.3125],[663.7109375,576.1458333333335],[661.7578125,579.049479166667],[654.166666666667,605.729166666667],[649.8567708333335,619.0755208333335],[640,660.6380208333335],[640,666.0546875],[631.1328125,706.09375],[629.5442708333335,719.440104166667],[624.7786458333335,735.299479166667],[622.916666666667,748.28125],[622.916666666667,761.627604166667],[619.7395833333335,777.486979166667],[618.151041666667,790.8333333333335],[616.5625,798.7630208333335],[616.5625,804.1796875],[614.9739583333335,825.455729166667],[611.796875,841.315104166667],[611.796875,849.244791666667],[609.84375,872.6953125],[608.0989583333335,891.0546875],[606.510416666667,898.984375],[606.510416666667,917.34375],[604.921875,933.203125],[604.921875,1107.265625],[610.026041666667,1146.8880208333335],[611.875,1170.299479166667],[613.4505208333335,1183.6458333333335],[615.182291666667,1194.0755208333335],[620.234375,1212.4348958333335],[623.541666666667,1230.7942708333335],[628.75,1251.6536458333335],[650.104166666667,1319.4140625000002],[658.7890625,1340.2734375000002],[672.34375,1377.0312500000002],[681.8489583333335,1392.8906250000002],[687.057291666667,1403.3203125000002],[695.4296875,1421.6796875000002],[700.182291666667,1429.6093750000002],[712.8515625000002,1453.3984375000002],[719.5442708333335,1464.2317708333335],[724.2968750000002,1470.572916666667],[731.7578125000002,1483.9192708333335],[743.463541666667,1498.9583333333335],[758.4765625000002,1521.0937500000002],[772.7343750000002,1540.1171875000002],[801.0937500000002,1579.5052083333335],[807.096354166667,1586.471354166667],[820.5598958333335,1605.1953125000002],[830.963541666667,1616.3671875000002],[837.721354166667,1624.8567708333335],[840.2083333333335,1629.283854166667],[844.7656250000002,1633.8411458333335],[848.541666666667,1640.6770833333335],[850.0520833333335,1645.221354166667],[849.283854166667,1647.486979166667],[848.5156250000002,1647.486979166667],[847.7473958333335,1648.2421875000002],[845.4427083333335,1648.2421875000002],[837.760416666667,1651.2630208333335],[834.0755208333335,1653.2031250000002],[745.104166666667,1653.2031250000002],[718.776041666667,1651.6145833333335],[697.890625,1649.869791666667],[604.4140625,1638.6848958333335],[575.885416666667,1636.822916666667],[544.8177083333335,1630.9765625000002],[474.71354166666697,1621.6796875000002],[384.32291666666697,1613.658854166667],[335.18229166666697,1607.7343750000002],[283.15104166666697,1604.4140625000002],[252.08333333333348,1600.5078125000002],[218.46354166666697,1598.4375000000002],[205.46875,1598.4375000000002],[168.99739583333348,1594.986979166667],[121.70572916666697,1589.791666666667],[95.72916666666697,1589.791666666667],[79.84375,1588.2031250000002],[61.458333333333485,1588.2031250000002],[42.65625,1586.6145833333335],[6.7578125,1586.6145833333335],[3.07291666666697,1585.6380208333335],[0,1585.6380208333335],[6.82291666666697,1584.1015625000002],[19.192708333333485,1582.3567708333335],[23.61979166666697,1580.4036458333335],[29.427083333333485,1579.4270833333335],[34.84375,1579.4270833333335],[52.6171875,1577.291666666667],[68.8671875,1574.557291666667],[82.21354166666697,1573.190104166667],[91.66666666666697,1571.6015625000002],[107.52604166666697,1571.6015625000002],[126.2890625,1567.2786458333335],[155.13020833333348,1564.1015625000002],[178.91927083333348,1562.5130208333335],[218.56770833333348,1557.7473958333335],[234.42708333333348,1554.5703125000002],[276.5755208333335,1551.393229166667],[292.4348958333335,1548.2161458333335],[310.7942708333335,1546.471354166667],[361.2630208333335,1546.471354166667],[372.09635416666697,1545.104166666667],[475.390625,1545.104166666667],[488.5286458333335,1547.7864583333335],[494.47916666666697,1548.541666666667],[499.0364583333335,1550.0520833333335],[501.31510416666697,1550.0520833333335],[504.3359375,1551.5625000000002],[504.3359375,1553.072916666667],[502.03125,1556.0937500000002],[499.7265625,1556.8489583333335],[498.19010416666697,1558.3593750000002],[495.1171875,1559.869791666667],[492.8125,1562.1484375000002],[492.0442708333335,1562.1484375000002],[486.0546875,1565.377604166667],[482.9817708333335,1566.1328125000002],[478.3723958333335,1568.4114583333335],[469.4661458333335,1571.8489583333335],[467.1614583333335,1571.8489583333335],[461.015625,1574.8828125000002],[450.41666666666697,1576.393229166667],[444.2708333333335,1578.658854166667],[440.4296875,1579.4140625000002],[438.125,1579.4140625000002],[437.3567708333335,1580.1692708333335],[436.58854166666697,1580.1692708333335],[439.609375,1577.8645833333335],[439.609375,1577.096354166667],[441.8880208333335,1575.5598958333335],[446.43229166666697,1568.6458333333335],[447.9427083333335,1565.572916666667],[450.22135416666697,1562.5000000000002],[451.7317708333335,1559.4270833333335],[458.6458333333335,1550.5208333333335],[468.4505208333335,1538.9192708333335],[487.421875,1518.268229166667],[494.3880208333335,1512.2395833333335],[504.0364583333335,1502.5520833333335],[527.7473958333335,1482.916666666667],[535.8723958333335,1474.7656250000002],[565.377604166667,1450.1171875000002],[570.963541666667,1444.5052083333335],[596.328125,1425.4427083333335],[623.2161458333335,1402.4348958333335],[658.893229166667,1377.7734375000002],[690.572916666667,1355.0911458333335],[715.2734375000002,1340.338541666667],[735.885416666667,1326.041666666667],[744.205729166667,1321.3671875000002],[748.6328125000002,1319.6223958333335],[779.1536458333335,1303.5937500000002],[795.924479166667,1293.6067708333335],[812.174479166667,1286.7968750000002],[844.4661458333335,1271.4453125000002],[867.3046875000002,1263.6328125000002],[877.5390625000002,1260.9114583333335],[886.5234375000002,1257.6302083333335],[897.1484375000002,1257.6302083333335],[905.494791666667,1260.651041666667],[912.9427083333335,1266.1718750000002],[922.4739583333335,1279.7395833333335],[935.7421875000002,1294.9348958333335],[945.143229166667,1309.596354166667],[962.057291666667,1333.3984375000002],[981.0677083333335,1358.7630208333335],[993.5286458333335,1376.9140625000002],[1005.2343750000002,1391.9531250000002],[1023.893229166667,1417.2786458333335],[1031.8098958333335,1428.8802083333335],[1089.7786458333335,1505.260416666667],[1106.7708333333335,1530.0130208333335],[1148.7630208333335,1586.432291666667],[1179.674479166667,1632.5000000000002],[1198.3333333333335,1657.8255208333335],[1207.838541666667,1673.6848958333335],[1213.5546875000002,1684.518229166667],[1228.424479166667,1709.0755208333335],[1254.869791666667,1759.127604166667],[1268.151041666667,1787.994791666667],[1276.0677083333335,1803.854166666667],[1286.588541666667,1830.9375000000002],[1287.9427083333335,1836.354166666667],[1298.776041666667,1868.854166666667],[1304.0234375000002,1893.424479166667],[1306.3411458333335,1901.744791666667],[1307.3046875000002,1912.9687500000002],[1309.6223958333335,1921.2890625000002],[1310.377604166667,1936.940104166667],[1310.377604166667,1968.8020833333335],[1308.072916666667,1976.3802083333335],[1307.3046875000002,1977.135416666667],[1305.768229166667,1980.1562500000002],[1305.0000000000002,1980.1562500000002],[1305.0000000000002,1981.666666666667],[1304.2317708333335,1981.666666666667],[1303.463541666667,1982.4218750000002],[1301.158854166667,1982.4218750000002],[1301.158854166667,1979.3489583333335],[1300.3906250000002,1977.0442708333335],[1300.3906250000002,1956.3020833333335]],"style":{"fillColor":"#ffc9c9","strokeColor":"#e7000b","strokeWidth":8,"cornerRadius":0,"opacity":1,"textSize":16,"connectionStyle":0,"importedColor":false},"wScale":1,"hScale":1,"layer":0,"sortOrder":6,"id":"ZkbVQIBp"},{"type":"pencil","x":-2225.9375,"y":-3682.1875,"width":1794.3229166666665,"height":3184.5052083333335,"edges":[],"coords":[[407.7213541666665,3180.7291666666665],[406.18489583333326,3182.9947916666665],[405.4166666666665,3182.9947916666665],[405.4166666666665,3183.75],[404.6484375,3183.75],[404.6484375,3184.5052083333335],[404.6484375,3180.6640625],[403.88020833333326,3179.8958333333335],[403.88020833333326,3176.0546875],[403.1119791666665,3174.5182291666665],[403.1119791666665,3169.9088541666665],[401.3671875,3165.4557291666665],[401.3671875,3161.0026041666665],[399.4140625,3146.263020833333],[398.64583333333326,3144.7265625],[398.64583333333326,3141.809895833333],[393.7890625,3127.473958333333],[393.7890625,3124.5572916666665],[342.03125,3006.4322916666665],[335.67708333333326,3000.078125],[325.234375,2979.192708333333],[320.46875,2971.25],[312.43489583333326,2953.177083333333],[307.2135416666665,2942.734375],[292.3697916666665,2920.46875],[287.1484375,2910.0260416666665],[279.7265625,2898.8932291666665],[271.953125,2885.2994791666665],[268.4635416666665,2874.856770833333],[260.6901041666665,2861.263020833333],[252.91666666666652,2845.7291666666665],[206.34114583333326,2757.552083333333],[198.56770833333326,2742.0182291666665],[190.79427083333326,2728.4244791666665],[180.29947916666652,2707.4609375],[170.24739583333303,2691.3932291666665],[162.47395833333303,2675.859375],[154.70052083333303,2662.265625],[146.27604166666652,2639.1015625],[138.2421875,2621.028645833333],[128.19010416666652,2604.9609375],[122.6171875,2591.966145833333],[92.09635416666652,2526.341145833333],[78.48958333333303,2495.2734375],[72.65625,2479.739583333333],[66.62760416666652,2461.6666666666665],[57.877604166666515,2440.7291666666665],[52.04427083333303,2425.1953125],[48.33333333333303,2412.200520833333],[29.7265625,2360.234375],[18.05989583333303,2323.4375],[16.315104166666515,2312.9947916666665],[9.3359375,2292.109375],[7.265625,2271.484375],[6.2890625,2268.567708333333],[6.2890625,2260.625],[2.955729166666515,2242.239583333333],[2.955729166666515,2231.796875],[1.3671875,2223.8541666666665],[1.3671875,2215.911458333333],[0,2210.481770833333],[0,2167.4479166666665],[3.1640625,2159.505208333333],[5.87239583333303,2147.8776041666665],[7.799479166666515,2142.044270833333],[7.799479166666515,2139.1276041666665],[9.73958333333303,2136.2109375],[11.45833333333303,2131.7578125],[18.203125,2121.0807291666665],[19.713541666666515,2118.0078125],[21.236979166666515,2116.4713541666665],[21.9921875,2114.934895833333],[23.515625,2114.1666666666665],[24.27083333333303,2112.630208333333],[25.79427083333303,2111.8619791666665],[27.734375,2108.9453125],[30.01302083333303,2108.177083333333],[33.05989583333303,2105.1041666666665],[41.14583333333303,2102.1744791666665],[45.572916666666515,2102.1744791666665],[47.096354166666515,2101.40625],[50,2101.40625],[50.75520833333303,2100.638020833333],[53.658854166666515,2100.638020833333],[55.182291666666515,2099.1015625],[62.799479166666515,2099.1015625],[67.36979166666652,2100.625],[72.78645833333303,2100.625],[73.54166666666652,2101.380208333333],[77.20052083333303,2101.380208333333],[78.72395833333303,2102.903645833333],[80.24739583333303,2103.6588541666665],[84.81770833333303,2104.4140625],[86.34114583333303,2105.169270833333],[87.86458333333303,2106.692708333333],[92.29166666666652,2107.65625],[93.81510416666652,2109.1796875],[101.2890625,2114.153645833333],[109.36197916666652,2120.2994791666665],[112.265625,2121.263020833333],[113.02083333333303,2122.786458333333],[115.92447916666652,2124.7265625],[121.25,2130.052083333333],[122.7734375,2130.8072916666665],[125.80729166666652,2134.609375],[126.5625,2136.1328125],[128.0859375,2137.65625],[128.84114583333303,2139.934895833333],[130.36458333333303,2141.458333333333],[130.36458333333303,2142.981770833333],[131.875,2144.4921875],[131.875,2149.0494791666665],[132.63020833333303,2149.8046875],[132.63020833333303,2154.3359375],[131.86197916666652,2155.859375],[131.09375,2155.859375],[128.02083333333303,2158.125],[126.484375,2158.125],[125.71614583333303,2158.880208333333],[123.41145833333303,2159.6354166666665],[121.875,2159.6354166666665],[120.33854166666652,2160.390625],[110.3515625,2160.390625],[108.046875,2159.622395833333],[106.51041666666652,2159.622395833333],[104.20572916666652,2158.0859375],[98.21614583333303,2155.5729166666665],[96.6796875,2154.036458333333],[93.76302083333303,2153.059895833333],[90.84635416666652,2151.106770833333],[90.078125,2151.106770833333],[87.00520833333303,2148.0338541666665],[84.08854166666652,2147.0572916666665],[82.55208333333303,2145.520833333333],[69.19270833333303,2135.8203125],[67.23958333333303,2132.903645833333],[62.63020833333303,2129.0625],[60.67708333333303,2126.145833333333],[55.065104166666515,2120.5338541666665],[53.111979166666515,2117.6171875],[47.5,2112.005208333333],[37.98177083333303,2098.046875],[36.61458333333303,2092.6171875],[35.078125,2091.0807291666665],[32.35677083333303,2085.6510416666665],[30.98958333333303,2080.2213541666665],[29.03645833333303,2077.3046875],[28.05989583333303,2074.388020833333],[25.338541666666515,2068.958333333333],[25.338541666666515,2066.0416666666665],[19.89583333333303,2055.1822916666665],[19.89583333333303,2052.265625],[18.307291666666515,2044.3229166666665],[18.307291666666515,2038.8932291666665],[16.940104166666515,2033.4635416666665],[15.572916666666515,2022.6041666666665],[15.572916666666515,2009.2317708333333],[14.205729166666515,2003.8020833333333],[14.205729166666515,1957.1223958333333],[16.2109375,1939.0494791666665],[17.78645833333303,1931.1067708333333],[17.78645833333303,1920.6640625],[20.95052083333303,1912.7213541666665],[22.682291666666515,1902.2786458333333],[25.16927083333303,1869.4140625],[28.64583333333303,1858.9713541666665],[32.34375,1845.9765625],[37.3828125,1817.1484375],[40.859375,1806.7057291666665],[48.25520833333303,1780.7161458333333],[51.73177083333303,1770.2734375],[53.580729166666515,1757.2786458333333],[58.7890625,1746.8359375],[60.63802083333303,1733.8411458333333],[81.74479166666652,1676.7447916666665],[93.125,1648.2161458333333],[104.24479166666652,1622.2265625],[110.06510416666652,1606.692708333333],[117.82552083333303,1591.1588541666665],[128.68489583333303,1565.078125],[146.9140625,1528.5807291666665],[154.67447916666652,1514.9869791666665],[160.49479166666652,1499.453125],[168.515625,1481.380208333333],[199.55729166666652,1423.177083333333],[207.31770833333326,1407.6432291666665],[215.33854166666652,1389.5703125],[222.74739583333326,1378.4375],[230.76822916666652,1360.364583333333],[240.80729166666652,1344.296875],[248.828125,1326.223958333333],[256.2369791666665,1315.091145833333],[263.99739583333326,1299.5572916666665],[285.15625,1254.9088541666665],[305.28645833333326,1220.8072916666665],[313.046875,1205.2734375],[320.8072916666665,1191.6796875],[346.6276041666665,1143.984375],[356.6666666666665,1127.9166666666665],[364.6875,1109.84375],[387.70833333333326,1068.3854166666665],[395.7291666666665,1050.3125],[406.02864583333326,1031.7447916666665],[432.109375,979.5703125],[442.1484375,963.5026041666665],[450.16927083333326,945.4296875],[462.5390625,926.8619791666665],[468.359375,911.328125],[507.0182291666665,840.052083333333],[531.0807291666665,785.833333333333],[538.8411458333333,770.2994791666665],[549.140625,751.731770833333],[565.1822916666665,715.5859375],[575.2213541666665,699.5182291666665],[591.2630208333333,663.372395833333],[599.0234375,647.8385416666665],[609.3229166666665,629.270833333333],[630.3776041666665,585.1171875],[658.7369791666665,532.4088541666665],[661.9010416666665,524.466145833333],[671.9401041666665,508.3984375],[679.7005208333333,492.86458333333303],[687.7213541666665,474.7916666666665],[705.5208333333333,443.1901041666665],[713.28125,427.65625],[722.9817708333333,414.0625],[735.9505208333333,388.0859375],[745.9895833333333,372.0182291666665],[753.75,358.4244791666665],[760.703125,349.7135416666665],[768.4635416666665,334.1796875],[797.734375,289.50520833333303],[812.9036458333333,264.77864583333303],[820.6640625,251.18489583333303],[832.3046875,239.53125],[837.0572916666665,231.58854166666652],[851.875,209.32291666666652],[887.0963541666665,166.70572916666652],[896.3671875,157.421875],[923.7109375,128.29427083333303],[939.3229166666665,112.65625],[954.3619791666665,100.92447916666652],[960.703125,94.5703125],[982.0833333333333,78.07291666666652],[988.4244791666665,71.71875],[1004.2838541666665,63.776041666666515],[1013.5286458333333,57.057291666666515],[1021.4583333333333,52.291666666666515],[1079.5052083333333,23.619791666666515],[1087.4348958333333,20.44270833333303],[1095.3645833333333,18.854166666666515],[1108.7109375,14.54427083333303],[1114.1276041666665,13.17708333333303],[1129.9869791666665,10],[1135.4036458333333,7.27864583333303],[1143.3333333333333,5.690104166666515],[1151.2630208333333,5.690104166666515],[1167.5130208333333,4.322916666666515],[1180.859375,1.3671875],[1186.2760416666665,1.3671875],[1191.6927083333333,0],[1251.6666666666665,0],[1259.9869791666665,0.9635416666665151],[1268.3072916666665,2.90364583333303],[1273.7239583333333,2.90364583333303],[1279.140625,4.2578125],[1287.4609375,5.611979166666515],[1298.2942708333333,9.674479166666515],[1303.7109375,9.674479166666515],[1312.03125,12.96875],[1317.4479166666665,15.67708333333303],[1336.2109375,23.13802083333303],[1366.1979166666665,37.330729166666515],[1382.4479166666665,44.166666666666515],[1394.2057291666665,51.627604166666515],[1399.6223958333333,54.3359375],[1407.5520833333333,59.088541666666515],[1415.4817708333333,62.252604166666515],[1439.1927083333333,73.9453125],[1465.2213541666665,90.91145833333303],[1470.6380208333333,93.61979166666652],[1483.3203125,103.125],[1491.25,106.2890625],[1503.0078125,115.33854166666652],[1516.5885416666665,123.09895833333303],[1522.9296875,129.44010416666652],[1551.3151041666665,148.60677083333303],[1559.2447916666665,151.77083333333303],[1571.0026041666665,159.23177083333303],[1577.34375,165.57291666666652],[1633.0598958333333,203.359375],[1638.4765625,206.06770833333303],[1681.2369791666665,238.984375],[1695.5078125,248.48958333333303],[1701.8489583333333,253.2421875],[1719.3489583333333,268.3984375],[1725.6901041666665,273.1510416666665],[1737.4479166666665,280.6119791666665],[1755.0520833333333,295.5078125],[1771.2630208333333,307.2265625],[1775.3255208333333,311.2890625],[1782.421875,316.796875],[1785.3255208333333,317.7604166666665],[1792.7994791666665,323.5026041666665],[1794.3229166666665,324.2578125]],"style":{"fillColor":"#ffc9c9","strokeColor":"#e7000b","strokeWidth":8,"cornerRadius":0,"opacity":1,"textSize":16,"connectionStyle":0,"importedColor":false},"wScale":1,"hScale":1,"layer":0,"sortOrder":6,"id":"PtrSQ8NA"},{"type":"pencil","x":-1608.4505208333335,"y":-2614.5442708333335,"width":2741.744791666667,"height":2185.7942708333335,"edges":[],"coords":[[606.7708333333335,2185.7942708333335],[556.6796875,2151.901041666667],[539.2578125,2137.96875],[517.8385416666667,2119.8828125],[509.8958333333335,2115.1171875],[500.61197916666674,2105.8333333333335],[489.47916666666674,2098.4114583333335],[478.34635416666674,2089.127604166667],[476.8098958333335,2088.359375],[467.52604166666674,2079.0755208333335],[456.39322916666674,2071.6536458333335],[447.68229166666674,2064.6875],[441.328125,2058.3333333333335],[422.36979166666674,2043.59375],[415.4036458333335,2034.8828125],[397.9817708333335,2020.9505208333335],[357.421875,1981.9791666666667],[346.2890625,1972.6953125],[330.65104166666674,1957.0572916666667],[323.6848958333335,1948.3463541666667],[305.1171875,1929.7786458333335],[286.54947916666674,1907.5130208333335],[277.265625,1898.2291666666667],[270.29947916666674,1889.5182291666667],[262.87760416666674,1878.3854166666667],[216.10677083333348,1820.4947916666667],[211.34114583333348,1812.5520833333335],[202.05729166666674,1803.2682291666667],[186.51041666666674,1776.0807291666667],[174.12760416666674,1759.5833333333335],[166.70572916666674,1748.4505208333335],[158.93229166666674,1734.8567708333335],[151.51041666666674,1723.7239583333335],[138.64583333333348,1700.15625],[133.07291666666674,1687.1614583333335],[125.65104166666674,1676.0286458333335],[120.078125,1663.0338541666667],[98.45052083333348,1619.8828125],[91.02864583333348,1608.75],[85.45572916666674,1595.7552083333335],[77.51302083333348,1579.8828125],[71.6796875,1564.3489583333335],[66.10677083333348,1551.3541666666667],[59.12760416666674,1530.46875],[55.41666666666674,1517.4739583333335],[50.1953125,1507.03125],[40.15625,1470.8723958333335],[25.755208333333485,1423.9973958333335],[18.333333333333485,1398.0078125],[18.333333333333485,1382.4739583333335],[14.622395833333485,1369.4791666666667],[11.1328125,1359.0364583333335],[11.1328125,1353.6067708333335],[9.1796875,1338.0729166666667],[5.46875,1325.078125],[5.46875,1309.5442708333335],[3.723958333333485,1299.1015625],[3.723958333333485,1286.1067708333335],[1.8619791666667425,1273.1119791666667],[1.8619791666667425,1257.578125],[0,1210.9635416666667],[0,1171.9921875],[3.7890625,1093.9973958333335],[5.1432291666667425,1088.5677083333335],[10.690104166666742,1049.5833333333335],[17.200520833333485,1021.328125],[28.4765625,979.8046875],[31.953125,969.3619791666667],[33.528645833333485,961.4192708333335],[37.2265625,948.4244791666667],[46.5234375,922.4479166666667],[50.22135416666674,909.453125],[56.23697916666674,891.3802083333335],[72.91666666666674,852.3958333333335],[78.73697916666674,836.8619791666667],[85.05208333333348,822.3307291666667],[118.68489583333348,756.5625],[125.63802083333348,747.8515625],[133.3984375,732.3177083333335],[140.80729166666674,721.1848958333335],[143.515625,715.7552083333335],[150.92447916666674,704.6223958333335],[158.68489583333348,691.0286458333335],[166.09375,679.8958333333335],[182.76041666666674,658.0208333333335],[192.03125,646.8880208333335],[199.79166666666674,633.2942708333335],[209.0625,622.1614583333335],[221.43229166666674,605.6640625],[252.01822916666674,571.1848958333335],[269.40104166666674,547.2786458333335],[280.5208333333335,537.9947916666665],[292.56510416666674,523.9322916666665],[314.8046875,505.3645833333335],[344.3880208333335,475.7682291666665],[355.5078125,466.484375],[359.5703125,462.4088541666665],[373.15104166666674,452.6953125],[384.79166666666674,441.0416666666665],[398.3723958333335,431.328125],[410.0130208333335,419.6744791666665],[423.59375,411.9010416666665],[483.7630208333335,367.7083333333335],[499.28385416666674,359.9348958333335],[515.3385416666667,349.8828125],[519.4010416666667,345.8072916666665],[532.9817708333335,338.0338541666665],[580.4296875,307.7864583333335],[595.9505208333335,300.0130208333335],[612.0052083333335,289.9609375],[627.5260416666667,282.1875],[630.4296875000001,281.2109375],[646.4843750000001,271.1588541666665],[664.5442708333335,263.125],[755.7031250000001,218.38541666666652],[773.7630208333335,210.3515625],[789.2838541666667,202.578125],[812.7604166666667,191.82291666666652],[848.8932291666667,177.734375],[887.3177083333335,166.41927083333348],[902.8385416666667,158.64583333333348],[920.8984375000001,150.61197916666652],[936.4192708333335,142.83854166666652],[944.3489583333335,141.25],[962.4088541666667,133.21614583333348],[1042.2916666666667,104.6875],[1060.3515625,100.6640625],[1070.78125,95.44270833333348],[1088.8411458333335,91.41927083333348],[1148.125,71.18489583333348],[1166.1848958333335,69.16666666666652],[1181.7057291666667,63.333333333333485],[1194.6875,59.622395833333485],[1228.2682291666667,51.705729166666515],[1249.2317708333335,44.700520833333485],[1298.3333333333335,32.890625],[1313.8541666666667,30.9375],[1329.375,27.044270833333485],[1344.8958333333335,25.091145833333485],[1373.1380208333335,18.567708333333485],[1388.6588541666667,16.614583333333485],[1401.6406250000002,12.903645833333485],[1417.1614583333335,12.903645833333485],[1430.1432291666667,9.192708333333485],[1435.5598958333335,9.192708333333485],[1487.4869791666667,1.744791666666515],[1536.8489583333335,0],[1605.2604166666667,0],[1634.1276041666667,3.515625],[1661.2109375000002,10.286458333333485],[1667.0182291666667,12.2265625],[1669.9218750000002,14.166666666666515],[1675.3385416666667,15.520833333333485],[1681.1458333333335,19.401041666666515],[1687.0963541666667,24.388020833333485],[1693.1901041666667,30.481770833333485],[1695.1302083333335,33.385416666666515],[1701.2760416666667,45.143229166666515],[1702.2395833333335,48.046875],[1704.9479166666667,53.463541666666515],[1705.9114583333335,56.3671875],[1705.9114583333335,59.270833333333485],[1706.6666666666667,60.794270833333485],[1710.7291666666667,77.04427083333348],[1710.7291666666667,79.94791666666652],[1712.0833333333335,85.36458333333348],[1712.0833333333335,90.78125],[1715.0130208333335,109.54427083333348],[1716.3671875000002,122.890625],[1716.3671875000002,128.30729166666652],[1717.9427083333335,136.23697916666652],[1717.9427083333335,149.58333333333348],[1719.5182291666667,157.51302083333348],[1719.5182291666667,210.48177083333348],[1717.9296875000002,236.77083333333348],[1714.7526041666667,252.63020833333348],[1714.7526041666667,263.0598958333335],[1713.0078125000002,273.4895833333335],[1713.0078125000002,283.9192708333335],[1709.8307291666667,291.8489583333335],[1708.0859375000002,302.2786458333335],[1708.0859375000002,312.7083333333335],[1702.2135416666667,343.75],[1698.7239583333335,354.1796875],[1698.7239583333335,364.609375],[1695.2343750000002,375.0390625],[1691.5234375000002,388.0208333333335],[1684.3229166666667,416.8489583333335],[1682.7343750000002,424.7786458333335],[1679.0234375000002,437.7604166666665],[1675.0000000000002,455.8203125],[1669.4270833333335,468.8020833333335],[1662.4479166666667,489.6614583333335],[1653.6979166666667,510.5729166666665],[1651.9531250000002,521.0026041666665],[1646.7317708333335,531.4322916666665],[1639.7526041666667,552.2916666666665],[1613.1250000000002,604.84375],[1609.6354166666667,615.2734375],[1594.5572916666667,641.7578125],[1580.1692708333335,661.5755208333335],[1563.9192708333335,688.2682291666667],[1556.9531250000002,696.9661458333335],[1545.2213541666667,713.59375],[1528.7239583333335,734.9739583333335],[1515.4036458333335,750.0130208333335],[1503.6718750000002,765.0520833333335],[1484.6093750000002,784.0755208333335],[1478.2552083333335,788.828125],[1471.9010416666667,795.1692708333335],[1441.1067708333335,819.1015625],[1428.3984375000002,831.7838541666667],[1389.8697916666667,852.8776041666667],[1383.5156250000002,857.6302083333335],[1375.5729166666667,860.7942708333335],[1370.1432291666667,863.5026041666667],[1351.7578125,870.2864583333335],[1338.3854166666667,873.2161458333335],[1330.4427083333335,876.3802083333335],[1306.6145833333335,881.1067708333335],[1274.84375,885.8333333333335],[1269.4140625,887.1875],[1182.0833333333335,887.1875],[1144.8958333333335,882.265625],[1136.953125,882.265625],[1126.09375,879.53125],[1104.7786458333335,874.9869791666667],[1096.8359375,873.3984375],[1090.6380208333335,872.6302083333335],[1074.3489583333335,867.1744791666667],[1060.5729166666667,863.4635416666667],[1038.671875,855.2864583333335],[1035.7552083333335,853.3333333333335],[1029.765625,850.8203125],[1026.8489583333335,848.8671875],[1022.3958333333335,847.1223958333335],[1016.0416666666667,842.3567708333335],[1011.1979166666667,837.5130208333335],[1006.7447916666667,835],[1005.2083333333335,833.4635416666667],[1000.5989583333335,830.390625],[999.6223958333335,827.4739583333335],[997.1093750000001,823.7890625],[992.6562500000001,821.0677083333335],[991.1197916666667,819.53125],[989.1666666666667,816.6145833333335],[980.5078125000001,806.7838541666667],[977.7864583333335,802.3307291666667],[976.2500000000001,800.7942708333335],[975.4817708333335,799.2578125],[969.1796875000001,791.3671875],[968.2031250000001,788.4505208333335],[962.7604166666667,779.5442708333335],[960.4557291666667,773.5546875],[957.3828125000001,767.4088541666667],[957.3828125000001,764.4921875],[956.6145833333335,762.9557291666667],[955.6380208333335,758.5026041666667],[954.8697916666667,757.734375],[954.8697916666667,754.8177083333335],[953.3333333333335,742.6822916666667],[953.3333333333335,734.5442708333335],[955.2604166666667,727.9427083333335],[955.2604166666667,725.6380208333335],[956.7838541666667,723.3333333333335],[962.0703125000001,712.578125],[963.5937500000001,710.2734375],[968.1510416666667,707.2005208333335],[969.6744791666667,705.6640625],[979.5572916666667,700.2864583333335],[981.0807291666667,700.2864583333335],[984.1276041666667,699.5182291666667],[988.5546875000001,697.9817708333335],[1015.1953125000001,697.9817708333335],[1026.4192708333335,701.6536458333335],[1029.3229166666667,701.6536458333335],[1040.15625,703.0078125],[1078.0729166666667,712.4869791666667],[1088.90625,716.6145833333335],[1098.359375,718.1901041666667],[1103.7760416666667,720.8984375],[1117.1223958333335,725.1822916666667],[1122.5390625,726.5364583333335],[1140.9375,734.8046875],[1154.2838541666667,739.0885416666667],[1162.2135416666667,742.2526041666667],[1193.125,757.4479166666667],[1203.9583333333335,761.5104166666667],[1209.375,764.21875],[1221.1328125,771.6796875],[1226.5494791666667,774.3880208333335],[1233.515625,780.390625],[1238.9322916666667,783.0989583333335],[1249.3359375,791.9140625],[1252.2395833333335,793.8541666666667],[1264.7916666666667,804.6744791666667],[1269.609375,809.4921875],[1271.5494791666667,812.3958333333335],[1278.6588541666667,819.5052083333335],[1285.5859375,828.359375],[1286.5494791666667,831.2630208333335],[1288.4895833333335,834.1666666666667],[1294.0625,854.7786458333335],[1294.0625,878.75],[1289.2057291666667,895.9244791666667],[1281.8098958333335,913.7109375],[1273.9973958333335,925.3255208333335],[1254.9739583333335,947.1484375],[1249.3619791666667,952.734375],[1237.6953125,960.4947916666667],[1233.2421875,963.9583333333335],[1227.8125,965.3125],[1223.7369791666667,969.375],[1211.9010416666667,974.9869791666667],[1202.3958333333335,980.4036458333335],[1197.9427083333335,983.8671875],[1186.6796875,987.1484375],[1178.3333333333335,991.796875],[1169.9869791666667,994.1145833333335],[1164.5572916666667,996.8229166666667],[1155.8463541666667,998.3984375],[1139.1536458333335,1003.0338541666667],[1126.7578125,1005.1432291666667],[1118.4114583333335,1007.4609375],[1112.9817708333335,1007.4609375],[1103.0989583333335,1008.8151041666667],[1095.7291666666667,1008.8151041666667],[1086.6666666666667,1009.7786458333335],[1079.9088541666667,1009.7786458333335],[1078.3723958333335,1009.0104166666667],[1076.8359375,1009.0104166666667],[1075.2994791666667,1007.4739583333335],[1073.7630208333335,1007.4739583333335],[1073.7630208333335,1006.7057291666667],[1070.6901041666667,1005.1692708333335],[1069.921875,1004.4010416666667],[1069.921875,1002.8645833333335],[1069.1536458333335,1002.0963541666667],[1069.1536458333335,999.0234375],[1068.3854166666667,993.6458333333335],[1069.140625,992.109375],[1069.140625,985.9635416666667],[1069.8958333333335,983.6588541666667],[1070.6510416666667,976.7447916666667],[1071.40625,975.2083333333335],[1072.9166666666667,969.0625],[1072.9166666666667,966.7578125],[1074.4270833333335,965.2213541666667],[1077.4479166666667,959.0755208333335],[1078.9583333333335,957.5390625],[1079.7135416666667,956.0026041666667],[1081.9921875,955.234375],[1081.9921875,953.6979166666667],[1095.5338541666667,948.3203125],[1116.0026041666667,948.3203125],[1135.15625,949.6744791666667],[1164.0494791666667,954.3880208333335],[1177.3958333333335,957.5520833333335],[1195.7552083333335,960.859375],[1214.1145833333335,965.9114583333335],[1253.3723958333335,974.7135416666667],[1300.1953125,987.2135416666667],[1353.6197916666667,1002.6822916666667],[1394.8437500000002,1012.890625],[1418.2552083333335,1020.0651041666667],[1446.7578125000002,1029.5052083333335],[1462.6432291666667,1033.203125],[1527.2916666666667,1052.578125],[1555.7942708333335,1062.0182291666667],[1589.3880208333335,1071.6927083333335],[1638.7500000000002,1084.5703125],[1662.1614583333335,1093.4765625],[1729.9348958333335,1113.0989583333335],[1750.7942708333335,1120.0520833333335],[1774.2057291666667,1128.9583333333335],[1828.6588541666667,1145.7942708333335],[1860.6901041666667,1159.8046875],[1881.6015625000002,1165.3645833333335],[1923.7239583333335,1181.6536458333335],[1934.1536458333335,1186.8619791666667],[1962.9427083333335,1196.9791666666667],[1991.8098958333335,1208.3203125],[2012.6692708333335,1217.0052083333335],[2026.940104166667,1224.921875],[2037.369791666667,1226.6536458333335],[2084.908854166667,1246.484375],[2100.768229166667,1251.2239583333335],[2114.1145833333335,1257.0963541666667],[2132.4739583333335,1263.7369791666667],[2148.3333333333335,1270.0651041666667],[2161.6796875,1272.9947916666667],[2211.744791666667,1290.7942708333335],[2235.533854166667,1297.109375],[2273.0598958333335,1305.5078125],[2288.9192708333335,1308.6588541666667],[2326.0546875,1313.3854166666667],[2339.401041666667,1316.3151041666667],[2358.1640625,1316.3151041666667],[2379.440104166667,1317.6692708333335],[2408.6458333333335,1317.6692708333335],[2435.338541666667,1313.125],[2453.736979166667,1311.2630208333335],[2467.0833333333335,1306.953125],[2480.4296875,1305.3645833333335],[2491.2630208333335,1301.2760416666667],[2507.5130208333335,1295.8203125],[2512.9296875,1294.453125],[2541.861979166667,1280.8203125],[2557.447916666667,1269.3359375],[2565.768229166667,1264.6614583333335],[2579.3098958333335,1253.7890625],[2588.5546875,1247.0703125],[2612.5,1227.3567708333335],[2618.502604166667,1220.3645833333335],[2629.596354166667,1209.2447916666667],[2662.5390625,1172.0703125],[2670,1160.2864583333335],[2674.752604166667,1153.9322916666667],[2681.3411458333335,1142.6692708333335],[2688.8020833333335,1128.5286458333335],[2699.1927083333335,1103.3723958333335],[2704.609375,1092.5130208333335],[2710.4817708333335,1073.7109375],[2713.6458333333335,1065.7682291666667],[2722.877604166667,1020.625],[2727.3177083333335,1004.7526041666667],[2731.822916666667,962.5],[2735.1302083333335,936.171875],[2736.861979166667,925.7291666666667],[2738.4375,909.4401041666667],[2738.4375,885.6119791666667],[2741.744791666667,867.2265625],[2741.744791666667,774.3489583333335],[2738.7890625,755.546875],[2738.7890625,742.1744791666667],[2727.578125,693.7109375],[2710.78125,652.6692708333335],[2699.8046875,630.4427083333335],[2693.4505208333335,614.5572916666667],[2657.8255208333335,562.3958333333335],[2636.328125,536.1328125],[2625.2083333333335,523.4244791666665],[2613.4765625,508.359375],[2591.484375,486.3671875],[2573.9973958333335,470.7291666666665],[2571.080729166667,468.7760416666665],[2499.8567708333335,411.1979166666665],[2474.3489583333335,392.65625],[2459.283854166667,380.9244791666665],[2442.486979166667,370.9375],[2409.765625,349.1536458333335],[2385.9375,336.4453125],[2370.0520833333335,328.5026041666665],[2354.166666666667,318.9713541666665],[2306.5234375,300.0520833333335],[2285.2083333333335,290.9765625]],"style":{"fillColor":"#f5f5f5","strokeColor":"#404040","strokeWidth":2,"cornerRadius":0,"opacity":1,"textSize":16,"connectionStyle":0},"wScale":1,"hScale":1,"layer":0,"sortOrder":7,"id":"YhZwtEWR"},{"type":"text","x":-1323.8151041666667,"y":-2473.111979166667,"width":168.984375,"height":36,"edges":[],"style":{"fillColor":"#f5f5f5","strokeColor":"#404040","strokeWidth":2,"cornerRadius":0,"opacity":1,"textSize":16,"connectionStyle":1},"text":"sdfsdfsdfsdfsdfsdfsdf","layer":0,"sortOrder":7,"followTextWidth":false,"id":"Zgzi5LHG"}],"edges":[{"from":{"type":"free","x":279.4140625,"y":-1900.2994791666667},"to":{"type":"free","x":-2477.2265625,"y":-745.4296875},"style":{"fillColor":"#f5f5f5","strokeColor":"#404040","strokeWidth":2,"cornerRadius":0,"opacity":1,"textSize":16,"connectionStyle":1},"layer":0,"sortOrder":7,"id":"SFDcQrMg"}],"groups":[]}\ No newline at end of filediff --git a/js/app/packages/macro-icons/pixel/New Code File (1).py b/js/app/packages/macro-icons/pixel/New Code File (1).pydeleted file mode 100644index e6c18765e5..0000000000--- a/js/app/packages/macro-icons/pixel/New Code File (1).py+++ /dev/null@@ -1,4 +0,0 @@-print("Hello, World!")-print("PISS ON MY GRAVE")--for lasjkdalskdjaslkdjaslkdjasl asldkjasdlkjasdlk aslkdj alkdjasd\ No newline at end of filediff --git a/js/app/packages/macro-icons/pixel/New Code File.py b/js/app/packages/macro-icons/pixel/New Code File.pydeleted file mode 100644index 4648e70184..0000000000--- a/js/app/packages/macro-icons/pixel/New Code File.py+++ /dev/null@@ -1 +0,0 @@-print("Hello, World!")\ No newline at end of filediff --git a/js/app/packages/macro-icons/wide/docx.svg b/js/app/packages/macro-icons/wide/docx.svgnew file mode 100644index 0000000000..f923a53e75--- /dev/null+++ b/js/app/packages/macro-icons/wide/docx.svg@@ -0,0 +1,8 @@+<svg width="100%" height="100%" viewBox="0 0 18 13" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">+<path d="M17.26 0H1.51V1.5H16.51V10.5H18.01V0.75C18.01 0.34 17.67 0 17.26 0Z"/>+<path d="M1.51 1.5H0.01V6H1.51V1.5Z"/>+<path d="M0.05 11.99C0.05 11.99 0 11.97 0 11.94L0.02 9.81L0 7.7C0 7.7 0.02 7.65 0.05 7.65H1.43C1.83 7.65 2.18 7.73 2.48 7.89C2.78 8.05 3 8.29 3.16 8.61C3.32 8.93 3.4 9.34 3.4 9.82C3.4 10.3 3.32 10.71 3.16 11.03C3 11.35 2.77 11.59 2.48 11.74C2.18 11.9 1.84 11.98 1.44 11.98H0.05V11.99ZM1.4 11.16C1.59 11.16 1.74 11.12 1.86 11.03C1.98 10.94 2.08 10.8 2.14 10.61C2.2 10.42 2.23 10.16 2.23 9.83C2.23 9.5 2.2 9.25 2.14 9.05C2.08 8.85 1.99 8.71 1.86 8.62C1.73 8.53 1.58 8.48 1.39 8.48H1.15V11.16H1.4Z"/>+<path d="M5.55 12.1C5.18 12.1 4.86 12.01 4.6 11.83C4.34 11.65 4.14 11.39 4 11.05C3.86 10.71 3.79 10.3 3.79 9.83C3.79 9.09 3.94 8.53 4.25 8.14C4.56 7.75 4.99 7.55 5.55 7.55C5.92 7.55 6.24 7.64 6.5 7.81C6.76 7.98 6.96 8.24 7.1 8.58C7.24 8.92 7.31 9.34 7.31 9.83C7.31 10.55 7.16 11.1 6.85 11.5C6.54 11.9 6.11 12.1 5.55 12.1ZM5.56 11.24C5.76 11.24 5.91 11.13 6 10.9C6.1 10.67 6.14 10.32 6.14 9.83C6.14 9.51 6.12 9.24 6.08 9.03C6.04 8.82 5.97 8.66 5.88 8.56C5.79 8.46 5.68 8.41 5.55 8.41C5.35 8.41 5.2 8.52 5.1 8.75C5 8.98 4.95 9.34 4.95 9.83C4.95 10.15 4.97 10.42 5.02 10.63C5.07 10.84 5.13 10.99 5.22 11.09C5.31 11.19 5.42 11.24 5.55 11.24H5.56Z"/>+<path d="M9.54 12.1C9.14 12.1 8.81 12.01 8.54 11.84C8.27 11.66 8.06 11.41 7.92 11.07C7.78 10.73 7.71 10.32 7.71 9.83C7.71 9.11 7.87 8.55 8.18 8.15C8.49 7.75 8.94 7.56 9.54 7.56C9.86 7.56 10.14 7.62 10.38 7.74C10.62 7.86 10.81 8.04 10.96 8.28C11.1 8.52 11.2 8.82 11.24 9.18C11.24 9.22 11.23 9.23 11.19 9.23H10.17C10.17 9.23 10.12 9.21 10.12 9.18C10.09 8.91 10.03 8.72 9.93 8.6C9.83 8.48 9.7 8.42 9.54 8.42C9.32 8.42 9.15 8.53 9.04 8.76C8.93 8.99 8.88 9.34 8.88 9.83C8.88 10.32 8.93 10.69 9.04 10.91C9.15 11.13 9.32 11.24 9.54 11.24C9.72 11.24 9.85 11.18 9.95 11.05C10.05 10.92 10.1 10.73 10.12 10.48C10.12 10.45 10.14 10.43 10.17 10.43H11.21C11.21 10.43 11.26 10.45 11.26 10.49C11.18 11.02 10.99 11.42 10.7 11.69C10.41 11.96 10.02 12.1 9.53 12.1H9.54Z"/>+<path d="M11.53 11.99C11.53 11.99 11.5 11.99 11.49 11.97C11.49 11.96 11.49 11.94 11.49 11.93L12.68 9.73L11.56 7.71C11.56 7.71 11.56 7.65 11.6 7.65H12.76C12.76 7.65 12.8 7.66 12.82 7.69L13.4 8.85L13.99 7.69C13.99 7.69 14.02 7.65 14.05 7.65H15.16C15.16 7.65 15.19 7.65 15.2 7.67C15.2 7.68 15.2 7.7 15.2 7.71L14.08 9.73L15.29 11.94C15.29 11.94 15.29 12 15.26 12H14.09C14.09 12 14.05 11.99 14.03 11.96L13.37 10.63L12.7 11.96C12.7 11.96 12.67 12 12.64 12H11.53V11.99Z"/>+</svg>diff --git a/js/app/packages/macro-icons/wide/task.svg b/js/app/packages/macro-icons/wide/task.svgnew file mode 100644index 0000000000..baf7c5bb4f--- /dev/null+++ b/js/app/packages/macro-icons/wide/task.svg@@ -0,0 +1,6 @@+<svg width="100%" height="100%" viewBox="0 0 18 12" stroke="none" fill="currentColor" xmlns="http://www.w3.org/2000/svg">+<path d="M1.5 0V1.5H4.5V4.5H1.5V1.5H0V6H6V0H1.5Z"/>+<path d="M3.01 12L0 9L1.07 7.93L3.01 9.88L6.02 6.87L7.08 7.93L3.01 12Z"/>+<path d="M18 2.25H8V3.75H18V2.25Z"/>+<path d="M18 8.37H8V9.87H18V8.37Z"/>+</svg>diff --git a/js/app/packages/macro-icons/wide/video.svg b/js/app/packages/macro-icons/wide/video.svgnew file mode 100644index 0000000000..38c9a36814--- /dev/null+++ b/js/app/packages/macro-icons/wide/video.svg@@ -0,0 +1,3 @@+<svg width="100%" height="100%" viewBox="0 0 18 12" fill="currentColor" stroke="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13.8701 0V3.02832L16.8096 0.893555C17.0377 0.72785 17.3396 0.703997 17.5908 0.832031C17.8419 0.960136 18 1.21811 18 1.5V10.5C18 10.7819 17.8419 11.0399 17.5908 11.168C17.3396 11.296 17.0377 11.2721 16.8096 11.1064L13.8701 8.9707V10.5H13.8799V12H0.75C0.335786 12 0 11.6642 0 11.25V1.5H1.5V10.5H12.3701V1.5H1.5V0H13.8701ZM13.8701 4.88086V7.11816L16.5 9.02832V2.9707L13.8701 4.88086Z"/>+</svg>diff --git a/js/app/packages/notifications/notification-navigation.ts b/js/app/packages/notifications/notification-navigation.tsindex 969102dc30..40e1085733 100644--- a/js/app/packages/notifications/notification-navigation.ts+++ b/js/app/packages/notifications/notification-navigation.ts@@ -1,5 +1,5 @@import type { SplitManager } from '@app/component/split-layout/layoutManager';-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import { fileTypeToBlockName } from '@core/constant/allBlocks';import { NotificationType } from '@core/types';import type { TypedNotification } from '@notifications';@@ -34,7 +34,7 @@ const CHANNEL_EVENT_TYPES = Object.values(ChannelNotificationType) as [*/function openSplitIfNotOpen(layoutManager: SplitManager,- type: BlockName | 'component',+ type: BlockName | BlockAlias | 'component',id: string) {const isSplitOpen = layoutManager.hasSplit(type, id);diff --git a/js/app/packages/notifications/notification-resolvers.ts b/js/app/packages/notifications/notification-resolvers.tsindex 56990679e8..37a7c898e4 100644--- a/js/app/packages/notifications/notification-resolvers.ts+++ b/js/app/packages/notifications/notification-resolvers.ts@@ -1,5 +1,5 @@import type { BlockName } from '@core/block';-import { itemToBlockName } from '@core/constant/allBlocks';+import { itemToResolvedBlockName } from '@core/constant/allBlocks';import { isAccessiblePreviewItem, useItemPreview } from '@core/signal/preview';import type { EntityType } from '@core/types';import { useDisplayName } from '@core/user/displayName';@@ -45,7 +45,7 @@ export const DefaultNotificationBlockNameResolver: NotificationBlockNameResolverconst preview = await getPreview(entityId, entityType);if (!isAccessiblePreviewItem(preview)) return undefined;- return itemToBlockName({+ return itemToResolvedBlockName({type: preview.type,fileType: preview.fileType,name: preview.name,diff --git a/js/app/packages/service-clients/service-storage/client.ts b/js/app/packages/service-clients/service-storage/client.tsindex 6b44bcc834..02c330ab6f 100644--- a/js/app/packages/service-clients/service-storage/client.ts+++ b/js/app/packages/service-clients/service-storage/client.ts@@ -6,7 +6,7 @@ import {type TSegment,} from '@block-pdf/type/coParse';import { modificationDataReplacer } from '@block-pdf/util/buildModificationData';-import type { BlockName } from '@core/block';+import type { BlockAlias, BlockName } from '@core/block';import { ENABLE_DOCX_TO_PDF } from '@core/constant/featureFlags';import { PaywallKey, usePaywallState } from '@core/constant/PaywallState';import { SERVER_HOSTS } from '@core/constant/servers';@@ -175,7 +175,7 @@ const mapPreviewDocumentName = (preview: DocumentPreview): DocumentPreview => {};export function blockNameToItemType(- blockName: BlockName+ blockName: BlockName | BlockAlias): ItemType | undefined {switch (blockName) {case 'chat':