@dxos/plugin-markdown 0.7.4 → 0.7.5-feature-compute.4d9d99a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{MarkdownContainer-6OPC5MKP.mjs → MarkdownContainer-ARRY4I6S.mjs} +175 -126
- package/dist/lib/browser/MarkdownContainer-ARRY4I6S.mjs.map +7 -0
- package/dist/lib/browser/app-graph-serializer-HHWSLYIW.mjs +51 -0
- package/dist/lib/browser/app-graph-serializer-HHWSLYIW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TZN5FGB2.mjs → chunk-ADAYSA5G.mjs} +24 -13
- package/dist/lib/browser/chunk-ADAYSA5G.mjs.map +7 -0
- package/dist/lib/browser/chunk-EMIIXXVX.mjs +66 -0
- package/dist/lib/browser/chunk-EMIIXXVX.mjs.map +7 -0
- package/dist/lib/browser/chunk-FSAYVXSE.mjs +16 -0
- package/dist/lib/browser/chunk-FSAYVXSE.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4X6YX3KU.mjs → chunk-YB2TJFNH.mjs} +3 -3
- package/dist/lib/browser/chunk-YB2TJFNH.mjs.map +7 -0
- package/dist/lib/browser/chunk-YPDWX3WI.mjs +47 -0
- package/dist/lib/browser/chunk-YPDWX3WI.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +99 -452
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-4KWMUMND.mjs +37 -0
- package/dist/lib/browser/intent-resolver-4KWMUMND.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-RL4CISJZ.mjs +152 -0
- package/dist/lib/browser/react-surface-RL4CISJZ.mjs.map +7 -0
- package/dist/lib/browser/settings-PTF73JDL.mjs +28 -0
- package/dist/lib/browser/settings-PTF73JDL.mjs.map +7 -0
- package/dist/lib/browser/state-DOVZP7XJ.mjs +37 -0
- package/dist/lib/browser/state-DOVZP7XJ.mjs.map +7 -0
- package/dist/lib/browser/thread-G4RS7NBZ.mjs +36 -0
- package/dist/lib/browser/thread-G4RS7NBZ.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -4
- package/dist/lib/node/{MarkdownContainer-6OKJOHTZ.cjs → MarkdownContainer-TV6W64EN.cjs} +167 -120
- package/dist/lib/node/MarkdownContainer-TV6W64EN.cjs.map +7 -0
- package/dist/lib/node/app-graph-serializer-PJRST43Q.cjs +62 -0
- package/dist/lib/node/app-graph-serializer-PJRST43Q.cjs.map +7 -0
- package/dist/lib/node/chunk-34WFGSZU.cjs +86 -0
- package/dist/lib/node/chunk-34WFGSZU.cjs.map +7 -0
- package/dist/lib/node/chunk-7WZANRNS.cjs +64 -0
- package/dist/lib/node/chunk-7WZANRNS.cjs.map +7 -0
- package/dist/lib/node/{meta.cjs → chunk-G7WKHUGU.cjs} +13 -8
- package/dist/lib/node/chunk-G7WKHUGU.cjs.map +7 -0
- package/dist/lib/node/{chunk-PHHIPRJC.cjs → chunk-HTWAAR54.cjs} +7 -7
- package/dist/lib/node/chunk-HTWAAR54.cjs.map +7 -0
- package/dist/lib/node/{chunk-KEPAM4JP.cjs → chunk-UFFFUC6W.cjs} +39 -14
- package/dist/lib/node/chunk-UFFFUC6W.cjs.map +7 -0
- package/dist/lib/node/index.cjs +90 -450
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-resolver-QN25AFOP.cjs +50 -0
- package/dist/lib/node/intent-resolver-QN25AFOP.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-RZ2XV56V.cjs +165 -0
- package/dist/lib/node/react-surface-RZ2XV56V.cjs.map +7 -0
- package/dist/lib/node/settings-BO5P5R4I.cjs +42 -0
- package/dist/lib/node/settings-BO5P5R4I.cjs.map +7 -0
- package/dist/lib/node/state-F26NQP7F.cjs +51 -0
- package/dist/lib/node/state-F26NQP7F.cjs.map +7 -0
- package/dist/lib/node/thread-THWQ67WS.cjs +52 -0
- package/dist/lib/node/thread-THWQ67WS.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +7 -7
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{MarkdownContainer-GBNSGROQ.mjs → MarkdownContainer-3ZHQTTMQ.mjs} +175 -126
- package/dist/lib/node-esm/MarkdownContainer-3ZHQTTMQ.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-serializer-JTHJUUS2.mjs +52 -0
- package/dist/lib/node-esm/app-graph-serializer-JTHJUUS2.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2GHK262V.mjs +17 -0
- package/dist/lib/node-esm/chunk-2GHK262V.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-BABK7FMW.mjs → chunk-AOKWCL3O.mjs} +3 -3
- package/dist/lib/node-esm/chunk-AOKWCL3O.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CDFNMFGT.mjs +67 -0
- package/dist/lib/node-esm/chunk-CDFNMFGT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HLP536EW.mjs +48 -0
- package/dist/lib/node-esm/chunk-HLP536EW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-NUMUUCYF.mjs → chunk-Y5RSQVGH.mjs} +24 -13
- package/dist/lib/node-esm/chunk-Y5RSQVGH.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +99 -452
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-F7MQOTG7.mjs +38 -0
- package/dist/lib/node-esm/intent-resolver-F7MQOTG7.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-RRXHEW4R.mjs +153 -0
- package/dist/lib/node-esm/react-surface-RRXHEW4R.mjs.map +7 -0
- package/dist/lib/node-esm/settings-E7P5FQ3F.mjs +29 -0
- package/dist/lib/node-esm/settings-E7P5FQ3F.mjs.map +7 -0
- package/dist/lib/node-esm/state-HXSOQNOV.mjs +38 -0
- package/dist/lib/node-esm/state-HXSOQNOV.mjs.map +7 -0
- package/dist/lib/node-esm/thread-CYEXBXTW.mjs +37 -0
- package/dist/lib/node-esm/thread-CYEXBXTW.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -4
- package/dist/types/src/MarkdownPlugin.d.ts +1 -3
- package/dist/types/src/MarkdownPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-serializer.d.ts +4 -0
- package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +1 -0
- package/dist/types/src/capabilities/capabilities.d.ts +12 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +16 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +4 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state.d.ts +11 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/thread.d.ts +6 -0
- package/dist/types/src/capabilities/thread.d.ts.map +1 -0
- package/dist/types/src/components/MarkdownContainer.d.ts +1 -1
- package/dist/types/src/components/MarkdownContainer.d.ts.map +1 -1
- package/dist/types/src/components/MarkdownEditor.d.ts +15 -0
- package/dist/types/src/components/MarkdownEditor.d.ts.map +1 -1
- package/dist/types/src/components/MarkdownEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar.stories.d.ts +2 -2
- package/dist/types/src/components/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/extensions.d.ts +4 -4
- package/dist/types/src/extensions.d.ts.map +1 -1
- package/dist/types/src/hooks/useSelectCurrentThread.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +75 -0
- package/dist/types/src/types/schema.d.ts.map +1 -0
- package/dist/types/src/types/types.d.ts +40 -35
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +1 -5
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +33 -37
- package/src/MarkdownPlugin.tsx +84 -283
- package/src/capabilities/app-graph-serializer.ts +50 -0
- package/src/capabilities/capabilities.ts +20 -0
- package/src/capabilities/index.ts +14 -0
- package/src/capabilities/intent-resolver.ts +27 -0
- package/src/capabilities/react-surface.tsx +73 -0
- package/src/capabilities/settings.ts +25 -0
- package/src/capabilities/state.ts +31 -0
- package/src/capabilities/thread.ts +34 -0
- package/src/components/MarkdownContainer.tsx +14 -10
- package/src/components/MarkdownEditor.stories.tsx +16 -5
- package/src/components/MarkdownEditor.tsx +87 -61
- package/src/components/Toolbar.stories.tsx +16 -22
- package/src/extensions.tsx +21 -19
- package/src/hooks/useSelectCurrentThread.tsx +17 -14
- package/src/index.ts +2 -5
- package/src/meta.ts +1 -1
- package/src/translations.ts +1 -0
- package/src/types/index.ts +1 -1
- package/src/types/{document.ts → schema.ts} +4 -7
- package/src/types/types.ts +36 -58
- package/src/util.tsx +5 -11
- package/dist/lib/browser/MarkdownContainer-6OPC5MKP.mjs.map +0 -7
- package/dist/lib/browser/chunk-4X6YX3KU.mjs.map +0 -7
- package/dist/lib/browser/chunk-CMSUKMPM.mjs +0 -41
- package/dist/lib/browser/chunk-CMSUKMPM.mjs.map +0 -7
- package/dist/lib/browser/chunk-TZN5FGB2.mjs.map +0 -7
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/browser/meta.mjs.map +0 -7
- package/dist/lib/node/MarkdownContainer-6OKJOHTZ.cjs.map +0 -7
- package/dist/lib/node/chunk-KEPAM4JP.cjs.map +0 -7
- package/dist/lib/node/chunk-PHHIPRJC.cjs.map +0 -7
- package/dist/lib/node/chunk-YGMWZIIJ.cjs +0 -61
- package/dist/lib/node/chunk-YGMWZIIJ.cjs.map +0 -7
- package/dist/lib/node/meta.cjs.map +0 -7
- package/dist/lib/node-esm/MarkdownContainer-GBNSGROQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BABK7FMW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ERJ52KN2.mjs +0 -42
- package/dist/lib/node-esm/chunk-ERJ52KN2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NUMUUCYF.mjs.map +0 -7
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/lib/node-esm/meta.mjs.map +0 -7
- package/dist/types/src/types/document.d.ts +0 -106
- package/dist/types/src/types/document.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/MarkdownPlugin.tsx"
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { TextAa } from '@phosphor-icons/react';\nimport React from 'react';\n\nimport { parseIntentPlugin, resolvePlugin, NavigationAction, type PluginDefinition } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\nimport { LocalStorageStore } from '@dxos/local-storage';\nimport { parseClientPlugin } from '@dxos/plugin-client';\nimport { type ActionGroup, createExtension, isActionGroup } from '@dxos/plugin-graph';\nimport { SpaceAction } from '@dxos/plugin-space';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport {\n createDocAccessor,\n fullyQualifiedId,\n getRangeFromCursor,\n isSpace,\n loadObjectReferences,\n} from '@dxos/react-client/echo';\nimport {\n type EditorInputMode,\n type EditorViewMode,\n EditorViewModes,\n translations as editorTranslations,\n createEditorStateStore,\n} from '@dxos/react-ui-editor';\n\nimport { MarkdownContainer, MarkdownSettings } from './components';\nimport meta, { MARKDOWN_PLUGIN } from './meta';\nimport translations from './translations';\nimport { DocumentType, isEditorModel, TextType } from './types';\nimport {\n type MarkdownPluginProvides,\n type MarkdownSettingsProps,\n MarkdownAction,\n type MarkdownPluginState,\n} from './types';\nimport { markdownExtensionPlugins, serializer } from './util';\n\n// TODO(burdon): Normalize active/object.\nconst getDoc = (object: any) => (object instanceof DocumentType ? object : undefined);\n\nexport const MarkdownPlugin = (): PluginDefinition<MarkdownPluginProvides> => {\n const settings = new LocalStorageStore<MarkdownSettingsProps>(MARKDOWN_PLUGIN, {\n defaultViewMode: 'preview',\n toolbar: true,\n numberedHeadings: true,\n folding: true,\n experimental: false,\n });\n\n const editorStateStore = createEditorStateStore(`${MARKDOWN_PLUGIN}/editor`);\n\n const state = new LocalStorageStore<MarkdownPluginState>(MARKDOWN_PLUGIN, { extensionProviders: [], viewMode: {} });\n\n const getViewMode = (id: string) => (id && state.values.viewMode[id]) || settings.values.defaultViewMode;\n const setViewMode = (id: string, viewMode: EditorViewMode) => (state.values.viewMode[id] = viewMode);\n\n return {\n meta,\n ready: async (plugins) => {\n settings\n .prop({ key: 'defaultViewMode', type: LocalStorageStore.enum<EditorViewMode>() })\n .prop({ key: 'editorInputMode', type: LocalStorageStore.enum<EditorInputMode>({ allowUndefined: true }) })\n .prop({ key: 'toolbar', type: LocalStorageStore.bool({ allowUndefined: true }) })\n .prop({ key: 'experimental', type: LocalStorageStore.bool({ allowUndefined: true }) })\n .prop({ key: 'debug', type: LocalStorageStore.bool({ allowUndefined: true }) })\n .prop({ key: 'typewriter', type: LocalStorageStore.string({ allowUndefined: true }) })\n .prop({ key: 'numberedHeadings', type: LocalStorageStore.bool({ allowUndefined: true }) })\n .prop({ key: 'folding', type: LocalStorageStore.bool({ allowUndefined: true }) });\n\n state.prop({ key: 'viewMode', type: LocalStorageStore.json<{ [key: string]: EditorViewMode }>() });\n\n markdownExtensionPlugins(plugins).forEach((plugin) => {\n const { extensions } = plugin.provides.markdown;\n state.values.extensionProviders?.push(extensions);\n });\n },\n provides: {\n settings: settings.values,\n metadata: {\n records: {\n [DocumentType.typename]: {\n createObject: MarkdownAction.CREATE,\n label: (object: any) => (object instanceof DocumentType ? object.name || object.fallbackName : undefined),\n placeholder: ['document title placeholder', { ns: MARKDOWN_PLUGIN }],\n icon: 'ph--text-aa--regular',\n graphProps: {\n managesAutofocus: true,\n },\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: (doc: DocumentType) => loadObjectReferences(doc, (doc) => [doc.content, ...doc.threads]),\n serializer,\n },\n },\n },\n translations: [...translations, ...editorTranslations],\n echo: {\n schema: [DocumentType],\n system: [TextType],\n },\n graph: {\n builder: (plugins) => {\n const client = resolvePlugin(plugins, parseClientPlugin)?.provides.client;\n const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatch;\n if (!client || !dispatch) {\n return [];\n }\n\n return createExtension({\n id: MarkdownAction.CREATE,\n filter: (node): node is ActionGroup => isActionGroup(node) && node.id.startsWith(SpaceAction.ADD_OBJECT),\n actions: ({ node }) => {\n const id = node.id.split('/').at(-1);\n const [spaceId, objectId] = id?.split(':') ?? [];\n const space = client.spaces.get().find((space) => space.id === spaceId);\n const object = objectId && space?.db.getObjectById(objectId);\n const target = objectId ? object : space;\n if (!target) {\n return;\n }\n\n return [\n {\n id: `${MARKDOWN_PLUGIN}/create/${node.id}`,\n data: async () => {\n await dispatch([\n { plugin: MARKDOWN_PLUGIN, action: MarkdownAction.CREATE },\n { action: SpaceAction.ADD_OBJECT, data: { target } },\n { action: NavigationAction.OPEN },\n ]);\n },\n properties: {\n label: ['create document label', { ns: MARKDOWN_PLUGIN }],\n icon: 'ph--text-aa--regular',\n testId: 'markdownPlugin.createObject',\n },\n },\n ];\n },\n });\n },\n serializer: (plugins) => {\n const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatch;\n if (!dispatch) {\n return [];\n }\n\n return [\n {\n inputType: DocumentType.typename,\n outputType: 'text/markdown',\n // Reconcile with metadata serializers.\n serialize: async (node) => {\n const doc = node.data;\n const content = await loadObjectReferences(doc, (doc) => doc.content);\n return {\n name:\n doc.name ||\n doc.fallbackName ||\n translations[0]['en-US'][MARKDOWN_PLUGIN]['document title placeholder'],\n data: content.content,\n type: 'text/markdown',\n };\n },\n deserialize: async (data, ancestors) => {\n const space = ancestors.find(isSpace);\n const target =\n ancestors.findLast((ancestor) => ancestor instanceof CollectionType) ??\n space?.properties[CollectionType.typename];\n if (!space || !target) {\n return;\n }\n\n const result = await dispatch([\n {\n plugin: MARKDOWN_PLUGIN,\n action: MarkdownAction.CREATE,\n data: { name: data.name, content: data.data },\n },\n {\n action: SpaceAction.ADD_OBJECT,\n data: { target },\n },\n ]);\n\n return result?.data.object;\n },\n },\n ];\n },\n },\n stack: {\n creators: [\n {\n id: 'create-stack-section-doc',\n testId: 'markdownPlugin.createSection',\n type: ['plugin name', { ns: MARKDOWN_PLUGIN }],\n label: ['create stack section label', { ns: MARKDOWN_PLUGIN }],\n icon: (props: any) => <TextAa {...props} />,\n intent: {\n plugin: MARKDOWN_PLUGIN,\n action: MarkdownAction.CREATE,\n },\n },\n ],\n },\n thread: {\n predicate: (obj) => obj instanceof DocumentType,\n createSort: (doc: DocumentType) => {\n const accessor = doc.content ? createDocAccessor(doc.content, ['content']) : undefined;\n if (!accessor) {\n return (_) => 0;\n }\n\n const getStartPosition = (cursor: string | undefined) => {\n const range = cursor ? getRangeFromCursor(accessor, cursor) : undefined;\n return range?.start ?? Number.MAX_SAFE_INTEGER;\n };\n\n return (anchorA: string | undefined, anchorB: string | undefined): number => {\n if (anchorA === undefined || anchorB === undefined) {\n return 0;\n }\n const posA = getStartPosition(anchorA);\n const posB = getStartPosition(anchorB);\n return posA - posB;\n };\n },\n },\n surface: {\n component: ({ data, role }) => {\n switch (role) {\n case 'section':\n case 'article': {\n const doc = getDoc(data.object);\n const { id, object } = isEditorModel(data.object)\n ? { id: data.object.id, object: data.object }\n : doc\n ? { id: fullyQualifiedId(doc), object: doc }\n : {};\n\n if (!id || !object) {\n return null;\n }\n\n return (\n <MarkdownContainer\n id={id}\n object={object}\n role={role}\n settings={settings.values}\n extensionProviders={state.values.extensionProviders}\n viewMode={getViewMode(id)}\n editorStateStore={editorStateStore}\n onViewModeChange={setViewMode}\n />\n );\n }\n\n case 'settings': {\n return data.plugin === meta.id ? <MarkdownSettings settings={settings.values} /> : null;\n }\n }\n\n return null;\n },\n },\n intent: {\n resolver: ({ action, data }) => {\n switch (action) {\n case MarkdownAction.CREATE: {\n const doc = create(DocumentType, {\n name: data?.name,\n content: create(TextType, { content: data?.content ?? '' }),\n threads: [],\n });\n\n return { data: doc };\n }\n\n case MarkdownAction.SET_VIEW_MODE: {\n const { id, viewMode } = data ?? {};\n if (typeof id === 'string' && EditorViewModes.includes(viewMode)) {\n state.values.viewMode[id] = viewMode;\n return { data: true };\n }\n\n break;\n }\n }\n },\n },\n },\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport * from './MarkdownSettings';\n\nexport const MarkdownContainer = lazy(() => import('./MarkdownContainer'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Input, Select, useTranslation } from '@dxos/react-ui';\nimport { type EditorInputMode, EditorInputModes, type EditorViewMode, EditorViewModes } from '@dxos/react-ui-editor';\nimport { DeprecatedFormInput } from '@dxos/react-ui-form';\n\nimport { MARKDOWN_PLUGIN } from '../meta';\nimport { type MarkdownSettingsProps } from '../types';\n\nexport const MarkdownSettings = ({ settings }: { settings: MarkdownSettingsProps }) => {\n const { t } = useTranslation(MARKDOWN_PLUGIN);\n\n // TODO(wittjosiah): Add skill test confirmation for entering vim mode.\n return (\n <>\n <DeprecatedFormInput label={t('default view mode label')}>\n <Select.Root\n value={settings.defaultViewMode}\n onValueChange={(value) => {\n settings.defaultViewMode = value as EditorViewMode;\n }}\n >\n <Select.TriggerButton />\n <Select.Portal>\n <Select.Content>\n <Select.Viewport>\n {EditorViewModes.map((mode) => (\n <Select.Option key={mode} value={mode}>\n {t(`${mode} mode label`, { ns: 'react-ui-editor' })}\n </Select.Option>\n ))}\n </Select.Viewport>\n </Select.Content>\n </Select.Portal>\n </Select.Root>\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('editor input mode label')}>\n <Select.Root\n value={settings.editorInputMode ?? 'default'}\n onValueChange={(value) => {\n settings.editorInputMode = value as EditorInputMode;\n }}\n >\n <Select.TriggerButton placeholder={t('select editor input mode placeholder')} />\n <Select.Portal>\n <Select.Content>\n <Select.Viewport>\n {EditorInputModes.map((mode) => (\n <Select.Option key={mode} value={mode}>\n {t(`settings editor input mode ${mode} label`)}\n </Select.Option>\n ))}\n </Select.Viewport>\n </Select.Content>\n </Select.Portal>\n </Select.Root>\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings toolbar label')}>\n <Input.Switch checked={settings.toolbar} onCheckedChange={(checked) => (settings.toolbar = !!checked)} />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings numbered headings label')}>\n <Input.Switch\n checked={settings.numberedHeadings}\n onCheckedChange={(checked) => (settings.numberedHeadings = !!checked)}\n />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings folding label')}>\n <Input.Switch checked={settings.folding} onCheckedChange={(checked) => (settings.folding = !!checked)} />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings experimental label')}>\n <Input.Switch\n checked={settings.experimental}\n onCheckedChange={(checked) => (settings.experimental = !!checked)}\n />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput\n label={t('settings debug label')}\n secondary={\n settings.debug ? (\n <Input.Root>\n <Input.TextArea\n rows={5}\n value={settings.typewriter}\n onChange={({ target: { value } }) => (settings.typewriter = value)}\n placeholder={t('settings debug placeholder')}\n />\n </Input.Root>\n ) : undefined\n }\n >\n <Input.Switch checked={settings.debug} onCheckedChange={(checked) => (settings.debug = !!checked)} />\n </DeprecatedFormInput>\n </>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { MARKDOWN_PLUGIN } from './meta';\nimport { DocumentType } from './types';\n\nexport default [\n {\n 'en-US': {\n [DocumentType.typename]: {\n 'typename label': 'Document',\n },\n [MARKDOWN_PLUGIN]: {\n 'plugin name': 'Editor',\n 'create stack section label': 'Create document',\n 'document title placeholder': 'New document',\n 'choose markdown from space dialog title': 'Choose one or more documents to add',\n // TODO(burdon): Style-guide for user-facing text (e.g., hints, questions, capitalization, etc.)\n 'empty choose markdown from space message': 'None available; try creating a new one instead?',\n 'chooser done label': 'Add selected',\n 'create document label': 'Create document',\n 'editor placeholder': '',\n 'editor input mode label': 'Editor input mode',\n 'select editor input mode placeholder': 'Select editor input mode…',\n 'settings editor input mode default label': 'Default',\n 'settings editor input mode vim label': 'Vim',\n 'settings editor input mode vscode label': 'VS Code',\n 'settings toolbar label': 'Show toolbar',\n 'settings numbered headings label': 'Numbered headings',\n 'settings folding label': 'Folding',\n 'settings experimental label': 'Enable experimental features',\n 'settings debug label': 'Enable debugging features',\n 'settings debug placeholder': 'Typewriter script...',\n 'toggle view mode label': 'Toggle read-only',\n 'default view mode label': 'Default view mode',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { MarkdownPlugin } from './MarkdownPlugin';\n\nexport default MarkdownPlugin;\n\nexport * from './MarkdownPlugin';\nexport * from './types';\nexport * from './util';\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/MarkdownPlugin.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n Capabilities,\n contributes,\n createIntent,\n defineModule,\n definePlugin,\n Events,\n oneOf,\n} from '@dxos/app-framework';\nimport { type BaseObject } from '@dxos/echo-schema';\nimport { RefArray } from '@dxos/live-object';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { translations as editorTranslations } from '@dxos/react-ui-editor';\nimport { TextType } from '@dxos/schema';\n\nimport {\n MarkdownState,\n MarkdownSettings,\n ReactSurface,\n IntentResolver,\n AppGraphSerializer,\n Thread,\n} from './capabilities';\nimport { MARKDOWN_PLUGIN, meta } from './meta';\nimport translations from './translations';\nimport { DocumentType, MarkdownAction } from './types';\nimport { serializer } from './util';\n\nexport const MarkdownPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/settings`,\n activatesOn: Events.SetupSettings,\n activate: MarkdownSettings,\n }),\n defineModule({\n id: `${meta.id}/module/state`,\n activatesOn: Events.Startup,\n activate: MarkdownState,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, [...translations, ...editorTranslations]),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: oneOf(Events.Startup, Events.SetupAppGraph),\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: DocumentType.typename,\n metadata: {\n createObject: (props: { name?: string }) => createIntent(MarkdownAction.Create, props),\n label: (object: any) => (object instanceof DocumentType ? object.name || object.fallbackName : undefined),\n placeholder: ['document title placeholder', { ns: MARKDOWN_PLUGIN }],\n icon: 'ph--text-aa--regular',\n graphProps: {\n managesAutofocus: true,\n },\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: async (doc: DocumentType) =>\n await RefArray.loadAll<BaseObject>([doc.content, ...doc.threads]),\n serializer,\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupClient,\n activate: () => [\n contributes(ClientCapabilities.SystemSchema, [TextType]),\n contributes(ClientCapabilities.Schema, [DocumentType]),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.Startup,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntents,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-serializer`,\n activatesOn: Events.Startup,\n activate: AppGraphSerializer,\n }),\n defineModule({\n id: `${meta.id}/module/thread`,\n activatesOn: Events.Startup,\n activate: Thread,\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SACEA,cACAC,aACAC,cACAC,cACAC,cACAC,QACAC,aACK;AAEP,SAASC,gBAAgB;AACzB,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,gBAAgBC,0BAA0B;AACnD,SAASC,gBAAgB;AAelB,IAAMC,iBAAiB,MAC5BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAUC;EACZ,CAAA;EACAN,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOI;IACpBF,UAAUG;EACZ,CAAA;EACAR,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOM;IACpBJ,UAAU,MAAMK,YAAYC,aAAaC,cAAc;SAAIC;SAAiBC;KAAmB;EACjG,CAAA;EACAd,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaa,MAAMZ,OAAOI,SAASJ,OAAOa,aAAa;IACvDX,UAAU,MACRK,YAAYC,aAAaM,UAAU;MACjChB,IAAIiB,aAAaC;MACjBC,UAAU;QACRC,cAAc,CAACC,UAA6BC,aAAaC,eAAeC,QAAQH,KAAAA;QAChFI,OAAO,CAACC,WAAiBA,kBAAkBT,eAAeS,OAAOC,QAAQD,OAAOE,eAAeC;QAC/FC,aAAa;UAAC;UAA8B;YAAEC,IAAIC;UAAgB;;QAClEC,MAAM;QACNC,YAAY;UACVC,kBAAkB;QACpB;;QAEAC,gBAAgB,OAAOC,QACrB,MAAMC,SAASC,QAAoB;UAACF,IAAIG;aAAYH,IAAII;SAAQ;QAClEC;MACF;IACF,CAAA;EACJ,CAAA;EACA3C,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAa0C,aAAaC;IAC1BxC,UAAU,MAAM;MACdK,YAAYoC,mBAAmBC,cAAc;QAACC;OAAS;MACvDtC,YAAYoC,mBAAmBG,QAAQ;QAAC/B;OAAa;;EAEzD,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOI;IACpBF,UAAU6C;EACZ,CAAA;EACAlD,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOgD;IACpB9C,UAAU+C;EACZ,CAAA;EACApD,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOI;IACpBF,UAAUgD;EACZ,CAAA;EACArD,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOI;IACpBF,UAAUiD;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "oneOf", "RefArray", "ClientCapabilities", "ClientEvents", "translations", "editorTranslations", "TextType", "MarkdownPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupSettings", "activate", "MarkdownSettings", "Startup", "MarkdownState", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "editorTranslations", "oneOf", "SetupAppGraph", "Metadata", "DocumentType", "typename", "metadata", "createObject", "props", "createIntent", "MarkdownAction", "Create", "label", "object", "name", "fallbackName", "undefined", "placeholder", "ns", "MARKDOWN_PLUGIN", "icon", "graphProps", "managesAutofocus", "loadReferences", "doc", "RefArray", "loadAll", "content", "threads", "serializer", "ClientEvents", "SetupClient", "ClientCapabilities", "SystemSchema", "TextType", "Schema", "ReactSurface", "SetupIntents", "IntentResolver", "AppGraphSerializer", "Thread"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DocumentType,
|
|
4
|
+
MarkdownAction
|
|
5
|
+
} from "./chunk-CDFNMFGT.mjs";
|
|
6
|
+
import {
|
|
7
|
+
MarkdownCapabilities
|
|
8
|
+
} from "./chunk-2GHK262V.mjs";
|
|
9
|
+
import "./chunk-AOKWCL3O.mjs";
|
|
10
|
+
|
|
11
|
+
// packages/plugins/plugin-markdown/src/capabilities/intent-resolver.ts
|
|
12
|
+
import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
|
|
13
|
+
import { makeRef, create } from "@dxos/live-object";
|
|
14
|
+
import { TextType } from "@dxos/schema";
|
|
15
|
+
var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, [
|
|
16
|
+
createResolver(MarkdownAction.Create, ({ name, content }) => {
|
|
17
|
+
const doc = create(DocumentType, {
|
|
18
|
+
name,
|
|
19
|
+
content: makeRef(create(TextType, {
|
|
20
|
+
content: content ?? ""
|
|
21
|
+
})),
|
|
22
|
+
threads: []
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
data: {
|
|
26
|
+
object: doc
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}),
|
|
30
|
+
createResolver(MarkdownAction.SetViewMode, ({ id, viewMode }) => {
|
|
31
|
+
const { state } = context.requestCapability(MarkdownCapabilities.State);
|
|
32
|
+
state.viewMode[id] = viewMode;
|
|
33
|
+
})
|
|
34
|
+
]);
|
|
35
|
+
export {
|
|
36
|
+
intent_resolver_default as default
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=intent-resolver-F7MQOTG7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createResolver, type PluginsContext } from '@dxos/app-framework';\nimport { makeRef, create } from '@dxos/live-object';\nimport { TextType } from '@dxos/schema';\n\nimport { MarkdownCapabilities } from './capabilities';\nimport { DocumentType, MarkdownAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver(MarkdownAction.Create, ({ name, content }) => {\n const doc = create(DocumentType, {\n name,\n content: makeRef(create(TextType, { content: content ?? '' })),\n threads: [],\n });\n\n return { data: { object: doc } };\n }),\n createResolver(MarkdownAction.SetViewMode, ({ id, viewMode }) => {\n const { state } = context.requestCapability(MarkdownCapabilities.State);\n state.viewMode[id] = viewMode;\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,sBAA2C;AAC/E,SAASC,SAASC,cAAc;AAChC,SAASC,gBAAgB;AAKzB,IAAA,0BAAe,CAACC,YACdC,YAAYC,aAAaC,gBAAgB;EACvCC,eAAeC,eAAeC,QAAQ,CAAC,EAAEC,MAAMC,QAAO,MAAE;AACtD,UAAMC,MAAMC,OAAOC,cAAc;MAC/BJ;MACAC,SAASI,QAAQF,OAAOG,UAAU;QAAEL,SAASA,WAAW;MAAG,CAAA,CAAA;MAC3DM,SAAS,CAAA;IACX,CAAA;AAEA,WAAO;MAAEC,MAAM;QAAEC,QAAQP;MAAI;IAAE;EACjC,CAAA;EACAL,eAAeC,eAAeY,aAAa,CAAC,EAAEC,IAAIC,SAAQ,MAAE;AAC1D,UAAM,EAAEC,MAAK,IAAKpB,QAAQqB,kBAAkBC,qBAAqBC,KAAK;AACtEH,UAAMD,SAASD,EAAAA,IAAMC;EACvB,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createResolver", "makeRef", "create", "TextType", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "MarkdownAction", "Create", "name", "content", "doc", "create", "DocumentType", "makeRef", "TextType", "threads", "data", "object", "SetViewMode", "id", "viewMode", "state", "requestCapability", "MarkdownCapabilities", "State"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-markdown/src/meta.ts":{"bytes":1471,"imports":[],"format":"esm"},"packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx":{"bytes":12696,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/hooks/useSelectCurrentThread.tsx":{"bytes":6662,"imports":[{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/hooks/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-markdown/src/hooks/useSelectCurrentThread.tsx","kind":"import-statement","original":"./useSelectCurrentThread"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/MarkdownEditor.tsx":{"bytes":23740,"imports":[{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/types/document.ts":{"bytes":3473,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-markdown/src/types/types.ts":{"bytes":4337,"imports":[{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/types/index.ts":{"bytes":591,"imports":[{"path":"packages/plugins/plugin-markdown/src/types/document.ts","kind":"import-statement","original":"./document"},{"path":"packages/plugins/plugin-markdown/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/util.tsx":{"bytes":6544,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/extensions.tsx":{"bytes":24298,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx":{"bytes":10663,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/components/MarkdownEditor.tsx","kind":"import-statement","original":"./MarkdownEditor"},{"path":"packages/plugins/plugin-markdown/src/extensions.tsx","kind":"import-statement","original":"../extensions"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/index.ts":{"bytes":931,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx","kind":"import-statement","original":"./MarkdownSettings"},{"path":"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx","kind":"dynamic-import","original":"./MarkdownContainer"}],"format":"esm"},"packages/plugins/plugin-markdown/src/translations.ts":{"bytes":5184,"imports":[{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx":{"bytes":42692,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-markdown/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-markdown/src/index.ts":{"bytes":969,"imports":[{"path":"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx","kind":"import-statement","original":"./MarkdownPlugin"},{"path":"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx","kind":"import-statement","original":"./MarkdownPlugin"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-markdown/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":28935},"packages/plugins/plugin-markdown/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-NUMUUCYF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-ERJ52KN2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/MarkdownContainer-GBNSGROQ.mjs","kind":"dynamic-import"}],"exports":["DocumentType","MarkdownAction","MarkdownPlugin","TextType","default","getFallbackName","isEditorModel","isMarkdownProperties","markdownExtensionPlugins","serializer","setFallbackName"],"entryPoint":"packages/plugins/plugin-markdown/src/index.ts","inputs":{"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx":{"bytesInOutput":11102},"packages/plugins/plugin-markdown/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx":{"bytesInOutput":3494},"packages/plugins/plugin-markdown/src/translations.ts":{"bytesInOutput":1530},"packages/plugins/plugin-markdown/src/index.ts":{"bytesInOutput":34}},"bytes":17360},"packages/plugins/plugin-markdown/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-markdown/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs","kind":"import-statement"}],"exports":["MARKDOWN_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-markdown/src/meta.ts","inputs":{},"bytes":257},"packages/plugins/plugin-markdown/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-markdown/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-ERJ52KN2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs","kind":"import-statement"}],"exports":["DocumentType","MarkdownAction","TextType","isEditorModel"],"entryPoint":"packages/plugins/plugin-markdown/src/types/index.ts","inputs":{},"bytes":336},"packages/plugins/plugin-markdown/dist/lib/node-esm/MarkdownContainer-GBNSGROQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33205},"packages/plugins/plugin-markdown/dist/lib/node-esm/MarkdownContainer-GBNSGROQ.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-NUMUUCYF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-ERJ52KN2.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["DocumentEditor","default"],"entryPoint":"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx","inputs":{"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx":{"bytesInOutput":2139},"packages/plugins/plugin-markdown/src/components/MarkdownEditor.tsx":{"bytesInOutput":5500},"packages/plugins/plugin-markdown/src/hooks/useSelectCurrentThread.tsx":{"bytesInOutput":1411},"packages/plugins/plugin-markdown/src/hooks/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-markdown/src/extensions.tsx":{"bytesInOutput":5605}},"bytes":15482},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-NUMUUCYF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3587},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-NUMUUCYF.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-ERJ52KN2.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["getFallbackName","isMarkdownProperties","markdownExtensionPlugins","serializer","setFallbackName"],"inputs":{"packages/plugins/plugin-markdown/src/util.tsx":{"bytesInOutput":1313}},"bytes":1682},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-ERJ52KN2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4514},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-ERJ52KN2.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["DocumentType","MarkdownAction","TextType","isEditorModel"],"inputs":{"packages/plugins/plugin-markdown/src/types/document.ts":{"bytesInOutput":661},"packages/plugins/plugin-markdown/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-markdown/src/types/types.ts":{"bytesInOutput":340}},"bytes":1385},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":705},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-BABK7FMW.mjs":{"imports":[],"exports":["MARKDOWN_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-markdown/src/meta.ts":{"bytesInOutput":293}},"bytes":525}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-markdown/src/meta.ts":{"bytes":1508,"imports":[],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/capabilities.ts":{"bytes":2177,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/types/schema.ts":{"bytes":3157,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-markdown/src/types/types.ts":{"bytes":6360,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/types/index.ts":{"bytes":589,"imports":[{"path":"packages/plugins/plugin-markdown/src/types/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/plugins/plugin-markdown/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/translations.ts":{"bytes":5322,"imports":[{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/app-graph-serializer.ts":{"bytes":6787,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-markdown/src/translations.ts","kind":"import-statement","original":"../translations"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/intent-resolver.ts":{"bytes":3917,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx":{"bytes":12696,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/hooks/useSelectCurrentThread.tsx":{"bytes":7005,"imports":[{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/hooks/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-markdown/src/hooks/useSelectCurrentThread.tsx","kind":"import-statement","original":"./useSelectCurrentThread"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/MarkdownEditor.tsx":{"bytes":26770,"imports":[{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/util.tsx":{"bytes":5888,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/extensions.tsx":{"bytes":24828,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx":{"bytes":10666,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/components/MarkdownEditor.tsx","kind":"import-statement","original":"./MarkdownEditor"},{"path":"packages/plugins/plugin-markdown/src/extensions.tsx","kind":"import-statement","original":"../extensions"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-markdown/src/components/index.ts":{"bytes":931,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx","kind":"import-statement","original":"./MarkdownSettings"},{"path":"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx","kind":"dynamic-import","original":"./MarkdownContainer"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/react-surface.tsx":{"bytes":10344,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/settings.ts":{"bytes":2518,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/state.ts":{"bytes":4785,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/thread.ts":{"bytes":4373,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-markdown/src/capabilities/index.ts":{"bytes":2151,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/capabilities/app-graph-serializer.ts","kind":"dynamic-import","original":"./app-graph-serializer"},{"path":"packages/plugins/plugin-markdown/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-markdown/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-markdown/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"},{"path":"packages/plugins/plugin-markdown/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"},{"path":"packages/plugins/plugin-markdown/src/capabilities/thread.ts","kind":"dynamic-import","original":"./thread"}],"format":"esm"},"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx":{"bytes":12203,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-markdown/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-markdown/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-markdown/src/index.ts":{"bytes":881,"imports":[{"path":"packages/plugins/plugin-markdown/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx","kind":"import-statement","original":"./MarkdownPlugin"},{"path":"packages/plugins/plugin-markdown/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-markdown/src/util.tsx","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-markdown/dist/lib/node-esm/thread-CYEXBXTW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2272},"packages/plugins/plugin-markdown/dist/lib/node-esm/thread-CYEXBXTW.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-markdown/src/capabilities/thread.ts","inputs":{"packages/plugins/plugin-markdown/src/capabilities/thread.ts":{"bytesInOutput":926}},"bytes":1253},"packages/plugins/plugin-markdown/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5768},"packages/plugins/plugin-markdown/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-HLP536EW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-Y5RSQVGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["MARKDOWN_PLUGIN","MarkdownCapabilities","MarkdownPlugin","getFallbackName","isMarkdownProperties","meta","serializer","setFallbackName"],"entryPoint":"packages/plugins/plugin-markdown/src/index.ts","inputs":{"packages/plugins/plugin-markdown/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-markdown/src/MarkdownPlugin.tsx":{"bytesInOutput":2549}},"bytes":3375},"packages/plugins/plugin-markdown/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-markdown/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"}],"exports":["DocumentType","MarkdownAction","MarkdownSettingsSchema","isEditorModel"],"entryPoint":"packages/plugins/plugin-markdown/src/types/index.ts","inputs":{},"bytes":364},"packages/plugins/plugin-markdown/dist/lib/node-esm/app-graph-serializer-JTHJUUS2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3435},"packages/plugins/plugin-markdown/dist/lib/node-esm/app-graph-serializer-JTHJUUS2.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-HLP536EW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-markdown/src/capabilities/app-graph-serializer.ts","inputs":{"packages/plugins/plugin-markdown/src/capabilities/app-graph-serializer.ts":{"bytesInOutput":1423}},"bytes":1900},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-HLP536EW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2304},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-HLP536EW.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"}],"exports":["translations_default"],"inputs":{"packages/plugins/plugin-markdown/src/translations.ts":{"bytesInOutput":1576}},"bytes":1918},"packages/plugins/plugin-markdown/dist/lib/node-esm/intent-resolver-F7MQOTG7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1976},"packages/plugins/plugin-markdown/dist/lib/node-esm/intent-resolver-F7MQOTG7.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-markdown/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-markdown/src/capabilities/intent-resolver.ts":{"bytesInOutput":745}},"bytes":1180},"packages/plugins/plugin-markdown/dist/lib/node-esm/MarkdownContainer-3ZHQTTMQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":35205},"packages/plugins/plugin-markdown/dist/lib/node-esm/MarkdownContainer-3ZHQTTMQ.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-Y5RSQVGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dropzone","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-dom/client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["DocumentEditor","default"],"entryPoint":"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx","inputs":{"packages/plugins/plugin-markdown/src/components/MarkdownContainer.tsx":{"bytesInOutput":2150},"packages/plugins/plugin-markdown/src/components/MarkdownEditor.tsx":{"bytesInOutput":6002},"packages/plugins/plugin-markdown/src/hooks/useSelectCurrentThread.tsx":{"bytesInOutput":1656},"packages/plugins/plugin-markdown/src/hooks/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-markdown/src/extensions.tsx":{"bytesInOutput":5729}},"bytes":16427},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-Y5RSQVGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4154},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-Y5RSQVGH.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/app-graph-serializer-JTHJUUS2.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/intent-resolver-F7MQOTG7.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/react-surface-RRXHEW4R.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/settings-E7P5FQ3F.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/state-HXSOQNOV.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/thread-CYEXBXTW.mjs","kind":"dynamic-import"}],"exports":["AppGraphSerializer","IntentResolver","MarkdownSettings","MarkdownState","ReactSurface","Thread","getFallbackName","isMarkdownProperties","serializer","setFallbackName"],"inputs":{"packages/plugins/plugin-markdown/src/util.tsx":{"bytesInOutput":1258},"packages/plugins/plugin-markdown/src/capabilities/index.ts":{"bytesInOutput":466}},"bytes":2219},"packages/plugins/plugin-markdown/dist/lib/node-esm/react-surface-RRXHEW4R.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11917},"packages/plugins/plugin-markdown/dist/lib/node-esm/react-surface-RRXHEW4R.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/MarkdownContainer-3ZHQTTMQ.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-markdown/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-markdown/src/capabilities/react-surface.tsx":{"bytesInOutput":2320},"packages/plugins/plugin-markdown/src/components/index.ts":{"bytesInOutput":110},"packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx":{"bytesInOutput":3494}},"bytes":6647},"packages/plugins/plugin-markdown/dist/lib/node-esm/settings-E7P5FQ3F.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1274},"packages/plugins/plugin-markdown/dist/lib/node-esm/settings-E7P5FQ3F.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-markdown/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-markdown/src/capabilities/settings.ts":{"bytesInOutput":436}},"bytes":806},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5017},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-CDFNMFGT.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true}],"exports":["DocumentType","MarkdownAction","MarkdownSettingsSchema","isEditorModel"],"inputs":{"packages/plugins/plugin-markdown/src/types/schema.ts":{"bytesInOutput":573},"packages/plugins/plugin-markdown/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-markdown/src/types/types.ts":{"bytesInOutput":1185}},"bytes":2154},"packages/plugins/plugin-markdown/dist/lib/node-esm/state-HXSOQNOV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2528},"packages/plugins/plugin-markdown/dist/lib/node-esm/state-HXSOQNOV.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-markdown/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-markdown/src/capabilities/state.ts":{"bytesInOutput":925}},"bytes":1284},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1153},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-2GHK262V.mjs":{"imports":[{"path":"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["MarkdownCapabilities"],"inputs":{"packages/plugins/plugin-markdown/src/capabilities/capabilities.ts":{"bytesInOutput":362}},"bytes":662},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":720},"packages/plugins/plugin-markdown/dist/lib/node-esm/chunk-AOKWCL3O.mjs":{"imports":[],"exports":["MARKDOWN_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-markdown/src/meta.ts":{"bytesInOutput":285}},"bytes":509}}}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DocumentType,
|
|
4
|
+
isEditorModel
|
|
5
|
+
} from "./chunk-CDFNMFGT.mjs";
|
|
6
|
+
import {
|
|
7
|
+
MarkdownCapabilities
|
|
8
|
+
} from "./chunk-2GHK262V.mjs";
|
|
9
|
+
import {
|
|
10
|
+
MARKDOWN_PLUGIN
|
|
11
|
+
} from "./chunk-AOKWCL3O.mjs";
|
|
12
|
+
|
|
13
|
+
// packages/plugins/plugin-markdown/src/capabilities/react-surface.tsx
|
|
14
|
+
import React2 from "react";
|
|
15
|
+
import { createSurface, contributes, Capabilities, useCapability } from "@dxos/app-framework";
|
|
16
|
+
import { fullyQualifiedId } from "@dxos/react-client/echo";
|
|
17
|
+
|
|
18
|
+
// packages/plugins/plugin-markdown/src/components/index.ts
|
|
19
|
+
import { lazy } from "react";
|
|
20
|
+
|
|
21
|
+
// packages/plugins/plugin-markdown/src/components/MarkdownSettings.tsx
|
|
22
|
+
import React from "react";
|
|
23
|
+
import { Input, Select, useTranslation } from "@dxos/react-ui";
|
|
24
|
+
import { EditorInputModes, EditorViewModes } from "@dxos/react-ui-editor";
|
|
25
|
+
import { DeprecatedFormInput } from "@dxos/react-ui-form";
|
|
26
|
+
var MarkdownSettings = ({ settings }) => {
|
|
27
|
+
const { t } = useTranslation(MARKDOWN_PLUGIN);
|
|
28
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
29
|
+
label: t("default view mode label")
|
|
30
|
+
}, /* @__PURE__ */ React.createElement(Select.Root, {
|
|
31
|
+
value: settings.defaultViewMode,
|
|
32
|
+
onValueChange: (value) => {
|
|
33
|
+
settings.defaultViewMode = value;
|
|
34
|
+
}
|
|
35
|
+
}, /* @__PURE__ */ React.createElement(Select.TriggerButton, null), /* @__PURE__ */ React.createElement(Select.Portal, null, /* @__PURE__ */ React.createElement(Select.Content, null, /* @__PURE__ */ React.createElement(Select.Viewport, null, EditorViewModes.map((mode) => /* @__PURE__ */ React.createElement(Select.Option, {
|
|
36
|
+
key: mode,
|
|
37
|
+
value: mode
|
|
38
|
+
}, t(`${mode} mode label`, {
|
|
39
|
+
ns: "react-ui-editor"
|
|
40
|
+
})))))))), /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
41
|
+
label: t("editor input mode label")
|
|
42
|
+
}, /* @__PURE__ */ React.createElement(Select.Root, {
|
|
43
|
+
value: settings.editorInputMode ?? "default",
|
|
44
|
+
onValueChange: (value) => {
|
|
45
|
+
settings.editorInputMode = value;
|
|
46
|
+
}
|
|
47
|
+
}, /* @__PURE__ */ React.createElement(Select.TriggerButton, {
|
|
48
|
+
placeholder: t("select editor input mode placeholder")
|
|
49
|
+
}), /* @__PURE__ */ React.createElement(Select.Portal, null, /* @__PURE__ */ React.createElement(Select.Content, null, /* @__PURE__ */ React.createElement(Select.Viewport, null, EditorInputModes.map((mode) => /* @__PURE__ */ React.createElement(Select.Option, {
|
|
50
|
+
key: mode,
|
|
51
|
+
value: mode
|
|
52
|
+
}, t(`settings editor input mode ${mode} label`)))))))), /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
53
|
+
label: t("settings toolbar label")
|
|
54
|
+
}, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
55
|
+
checked: settings.toolbar,
|
|
56
|
+
onCheckedChange: (checked) => settings.toolbar = !!checked
|
|
57
|
+
})), /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
58
|
+
label: t("settings numbered headings label")
|
|
59
|
+
}, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
60
|
+
checked: settings.numberedHeadings,
|
|
61
|
+
onCheckedChange: (checked) => settings.numberedHeadings = !!checked
|
|
62
|
+
})), /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
63
|
+
label: t("settings folding label")
|
|
64
|
+
}, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
65
|
+
checked: settings.folding,
|
|
66
|
+
onCheckedChange: (checked) => settings.folding = !!checked
|
|
67
|
+
})), /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
68
|
+
label: t("settings experimental label")
|
|
69
|
+
}, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
70
|
+
checked: settings.experimental,
|
|
71
|
+
onCheckedChange: (checked) => settings.experimental = !!checked
|
|
72
|
+
})), /* @__PURE__ */ React.createElement(DeprecatedFormInput, {
|
|
73
|
+
label: t("settings debug label"),
|
|
74
|
+
secondary: settings.debug ? /* @__PURE__ */ React.createElement(Input.Root, null, /* @__PURE__ */ React.createElement(Input.TextArea, {
|
|
75
|
+
rows: 5,
|
|
76
|
+
value: settings.typewriter,
|
|
77
|
+
onChange: ({ target: { value } }) => settings.typewriter = value,
|
|
78
|
+
placeholder: t("settings debug placeholder")
|
|
79
|
+
})) : void 0
|
|
80
|
+
}, /* @__PURE__ */ React.createElement(Input.Switch, {
|
|
81
|
+
checked: settings.debug,
|
|
82
|
+
onCheckedChange: (checked) => settings.debug = !!checked
|
|
83
|
+
})));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// packages/plugins/plugin-markdown/src/components/index.ts
|
|
87
|
+
var MarkdownContainer = lazy(() => import("./MarkdownContainer-3ZHQTTMQ.mjs"));
|
|
88
|
+
|
|
89
|
+
// packages/plugins/plugin-markdown/src/capabilities/react-surface.tsx
|
|
90
|
+
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
91
|
+
createSurface({
|
|
92
|
+
id: `${MARKDOWN_PLUGIN}/document`,
|
|
93
|
+
role: [
|
|
94
|
+
"article",
|
|
95
|
+
"section"
|
|
96
|
+
],
|
|
97
|
+
filter: (data) => data.subject instanceof DocumentType,
|
|
98
|
+
component: ({ data, role }) => {
|
|
99
|
+
const settingsStore = useCapability(Capabilities.SettingsStore);
|
|
100
|
+
const settings = settingsStore.getStore(MARKDOWN_PLUGIN).value;
|
|
101
|
+
const { state, editorState, getViewMode, setViewMode } = useCapability(MarkdownCapabilities.State);
|
|
102
|
+
return /* @__PURE__ */ React2.createElement(MarkdownContainer, {
|
|
103
|
+
id: fullyQualifiedId(data.subject),
|
|
104
|
+
object: data.subject,
|
|
105
|
+
role,
|
|
106
|
+
settings,
|
|
107
|
+
extensionProviders: state.extensionProviders,
|
|
108
|
+
viewMode: getViewMode(fullyQualifiedId(data.subject)),
|
|
109
|
+
editorStateStore: editorState,
|
|
110
|
+
onViewModeChange: setViewMode
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
114
|
+
createSurface({
|
|
115
|
+
id: `${MARKDOWN_PLUGIN}/editor`,
|
|
116
|
+
role: [
|
|
117
|
+
"article",
|
|
118
|
+
"section"
|
|
119
|
+
],
|
|
120
|
+
filter: (data) => isEditorModel(data.subject),
|
|
121
|
+
component: ({ data, role }) => {
|
|
122
|
+
const settingsStore = useCapability(Capabilities.SettingsStore);
|
|
123
|
+
const settings = settingsStore.getStore(MARKDOWN_PLUGIN).value;
|
|
124
|
+
const { state, editorState, getViewMode, setViewMode } = useCapability(MarkdownCapabilities.State);
|
|
125
|
+
return /* @__PURE__ */ React2.createElement(MarkdownContainer, {
|
|
126
|
+
id: data.subject.id,
|
|
127
|
+
object: data.subject,
|
|
128
|
+
role,
|
|
129
|
+
settings,
|
|
130
|
+
extensionProviders: state.extensionProviders,
|
|
131
|
+
viewMode: getViewMode(data.subject.id),
|
|
132
|
+
editorStateStore: editorState,
|
|
133
|
+
onViewModeChange: setViewMode
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
createSurface({
|
|
138
|
+
id: `${MARKDOWN_PLUGIN}/settings`,
|
|
139
|
+
role: "settings",
|
|
140
|
+
filter: (data) => data.subject === MARKDOWN_PLUGIN,
|
|
141
|
+
component: () => {
|
|
142
|
+
const settingsStore = useCapability(Capabilities.SettingsStore);
|
|
143
|
+
const settings = settingsStore.getStore(MARKDOWN_PLUGIN).value;
|
|
144
|
+
return /* @__PURE__ */ React2.createElement(MarkdownSettings, {
|
|
145
|
+
settings
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
]);
|
|
150
|
+
export {
|
|
151
|
+
react_surface_default as default
|
|
152
|
+
};
|
|
153
|
+
//# sourceMappingURL=react-surface-RRXHEW4R.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts", "../../../src/components/MarkdownSettings.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { createSurface, contributes, Capabilities, useCapability } from '@dxos/app-framework';\nimport { fullyQualifiedId } from '@dxos/react-client/echo';\n\nimport { MarkdownCapabilities } from './capabilities';\nimport { MarkdownContainer, MarkdownSettings } from '../components';\nimport { MARKDOWN_PLUGIN } from '../meta';\nimport { DocumentType, isEditorModel, type MarkdownSettingsProps } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${MARKDOWN_PLUGIN}/document`,\n role: ['article', 'section'],\n filter: (data): data is { subject: DocumentType } => data.subject instanceof DocumentType,\n component: ({ data, role }) => {\n const settingsStore = useCapability(Capabilities.SettingsStore);\n const settings = settingsStore.getStore<MarkdownSettingsProps>(MARKDOWN_PLUGIN)!.value;\n const { state, editorState, getViewMode, setViewMode } = useCapability(MarkdownCapabilities.State);\n\n return (\n <MarkdownContainer\n id={fullyQualifiedId(data.subject)}\n object={data.subject}\n role={role}\n settings={settings}\n extensionProviders={state.extensionProviders}\n viewMode={getViewMode(fullyQualifiedId(data.subject))}\n editorStateStore={editorState}\n onViewModeChange={setViewMode}\n />\n );\n },\n }),\n createSurface({\n id: `${MARKDOWN_PLUGIN}/editor`,\n role: ['article', 'section'],\n filter: (data): data is { subject: { id: string; text: string } } => isEditorModel(data.subject),\n component: ({ data, role }) => {\n const settingsStore = useCapability(Capabilities.SettingsStore);\n const settings = settingsStore.getStore<MarkdownSettingsProps>(MARKDOWN_PLUGIN)!.value;\n const { state, editorState, getViewMode, setViewMode } = useCapability(MarkdownCapabilities.State);\n\n return (\n <MarkdownContainer\n id={data.subject.id}\n object={data.subject}\n role={role}\n settings={settings}\n extensionProviders={state.extensionProviders}\n viewMode={getViewMode(data.subject.id)}\n editorStateStore={editorState}\n onViewModeChange={setViewMode}\n />\n );\n },\n }),\n createSurface({\n id: `${MARKDOWN_PLUGIN}/settings`,\n role: 'settings',\n filter: (data): data is any => data.subject === MARKDOWN_PLUGIN,\n component: () => {\n const settingsStore = useCapability(Capabilities.SettingsStore);\n const settings = settingsStore.getStore<MarkdownSettingsProps>(MARKDOWN_PLUGIN)!.value;\n return <MarkdownSettings settings={settings} />;\n },\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport * from './MarkdownSettings';\n\nexport const MarkdownContainer = lazy(() => import('./MarkdownContainer'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Input, Select, useTranslation } from '@dxos/react-ui';\nimport { type EditorInputMode, EditorInputModes, type EditorViewMode, EditorViewModes } from '@dxos/react-ui-editor';\nimport { DeprecatedFormInput } from '@dxos/react-ui-form';\n\nimport { MARKDOWN_PLUGIN } from '../meta';\nimport { type MarkdownSettingsProps } from '../types';\n\nexport const MarkdownSettings = ({ settings }: { settings: MarkdownSettingsProps }) => {\n const { t } = useTranslation(MARKDOWN_PLUGIN);\n\n // TODO(wittjosiah): Add skill test confirmation for entering vim mode.\n return (\n <>\n <DeprecatedFormInput label={t('default view mode label')}>\n <Select.Root\n value={settings.defaultViewMode}\n onValueChange={(value) => {\n settings.defaultViewMode = value as EditorViewMode;\n }}\n >\n <Select.TriggerButton />\n <Select.Portal>\n <Select.Content>\n <Select.Viewport>\n {EditorViewModes.map((mode) => (\n <Select.Option key={mode} value={mode}>\n {t(`${mode} mode label`, { ns: 'react-ui-editor' })}\n </Select.Option>\n ))}\n </Select.Viewport>\n </Select.Content>\n </Select.Portal>\n </Select.Root>\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('editor input mode label')}>\n <Select.Root\n value={settings.editorInputMode ?? 'default'}\n onValueChange={(value) => {\n settings.editorInputMode = value as EditorInputMode;\n }}\n >\n <Select.TriggerButton placeholder={t('select editor input mode placeholder')} />\n <Select.Portal>\n <Select.Content>\n <Select.Viewport>\n {EditorInputModes.map((mode) => (\n <Select.Option key={mode} value={mode}>\n {t(`settings editor input mode ${mode} label`)}\n </Select.Option>\n ))}\n </Select.Viewport>\n </Select.Content>\n </Select.Portal>\n </Select.Root>\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings toolbar label')}>\n <Input.Switch checked={settings.toolbar} onCheckedChange={(checked) => (settings.toolbar = !!checked)} />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings numbered headings label')}>\n <Input.Switch\n checked={settings.numberedHeadings}\n onCheckedChange={(checked) => (settings.numberedHeadings = !!checked)}\n />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings folding label')}>\n <Input.Switch checked={settings.folding} onCheckedChange={(checked) => (settings.folding = !!checked)} />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput label={t('settings experimental label')}>\n <Input.Switch\n checked={settings.experimental}\n onCheckedChange={(checked) => (settings.experimental = !!checked)}\n />\n </DeprecatedFormInput>\n\n <DeprecatedFormInput\n label={t('settings debug label')}\n secondary={\n settings.debug ? (\n <Input.Root>\n <Input.TextArea\n rows={5}\n value={settings.typewriter}\n onChange={({ target: { value } }) => (settings.typewriter = value)}\n placeholder={t('settings debug placeholder')}\n />\n </Input.Root>\n ) : undefined\n }\n >\n <Input.Switch checked={settings.debug} onCheckedChange={(checked) => (settings.debug = !!checked)} />\n </DeprecatedFormInput>\n </>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAIA,OAAOA,YAAW;AAElB,SAASC,eAAeC,aAAaC,cAAcC,qBAAqB;AACxE,SAASC,wBAAwB;;;ACHjC,SAASC,YAAY;;;ACArB,OAAOC,WAAW;AAElB,SAASC,OAAOC,QAAQC,sBAAsB;AAC9C,SAA+BC,kBAAuCC,uBAAuB;AAC7F,SAASC,2BAA2B;AAK7B,IAAMC,mBAAmB,CAAC,EAAEC,SAAQ,MAAuC;AAChF,QAAM,EAAEC,EAAC,IAAKC,eAAeC,eAAAA;AAG7B,SACE,sBAAA,cAAA,MAAA,UAAA,MACE,sBAAA,cAACC,qBAAAA;IAAoBC,OAAOJ,EAAE,yBAAA;KAC5B,sBAAA,cAACK,OAAOC,MAAI;IACVC,OAAOR,SAASS;IAChBC,eAAe,CAACF,UAAAA;AACdR,eAASS,kBAAkBD;IAC7B;KAEA,sBAAA,cAACF,OAAOK,eAAa,IAAA,GACrB,sBAAA,cAACL,OAAOM,QAAM,MACZ,sBAAA,cAACN,OAAOO,SAAO,MACb,sBAAA,cAACP,OAAOQ,UAAQ,MACbC,gBAAgBC,IAAI,CAACC,SACpB,sBAAA,cAACX,OAAOY,QAAM;IAACC,KAAKF;IAAMT,OAAOS;KAC9BhB,EAAE,GAAGgB,IAAAA,eAAmB;IAAEG,IAAI;EAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAS/D,sBAAA,cAAChB,qBAAAA;IAAoBC,OAAOJ,EAAE,yBAAA;KAC5B,sBAAA,cAACK,OAAOC,MAAI;IACVC,OAAOR,SAASqB,mBAAmB;IACnCX,eAAe,CAACF,UAAAA;AACdR,eAASqB,kBAAkBb;IAC7B;KAEA,sBAAA,cAACF,OAAOK,eAAa;IAACW,aAAarB,EAAE,sCAAA;MACrC,sBAAA,cAACK,OAAOM,QAAM,MACZ,sBAAA,cAACN,OAAOO,SAAO,MACb,sBAAA,cAACP,OAAOQ,UAAQ,MACbS,iBAAiBP,IAAI,CAACC,SACrB,sBAAA,cAACX,OAAOY,QAAM;IAACC,KAAKF;IAAMT,OAAOS;KAC9BhB,EAAE,8BAA8BgB,IAAAA,QAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAS3D,sBAAA,cAACb,qBAAAA;IAAoBC,OAAOJ,EAAE,wBAAA;KAC5B,sBAAA,cAACuB,MAAMC,QAAM;IAACC,SAAS1B,SAAS2B;IAASC,iBAAiB,CAACF,YAAa1B,SAAS2B,UAAU,CAAC,CAACD;OAG/F,sBAAA,cAACtB,qBAAAA;IAAoBC,OAAOJ,EAAE,kCAAA;KAC5B,sBAAA,cAACuB,MAAMC,QAAM;IACXC,SAAS1B,SAAS6B;IAClBD,iBAAiB,CAACF,YAAa1B,SAAS6B,mBAAmB,CAAC,CAACH;OAIjE,sBAAA,cAACtB,qBAAAA;IAAoBC,OAAOJ,EAAE,wBAAA;KAC5B,sBAAA,cAACuB,MAAMC,QAAM;IAACC,SAAS1B,SAAS8B;IAASF,iBAAiB,CAACF,YAAa1B,SAAS8B,UAAU,CAAC,CAACJ;OAG/F,sBAAA,cAACtB,qBAAAA;IAAoBC,OAAOJ,EAAE,6BAAA;KAC5B,sBAAA,cAACuB,MAAMC,QAAM;IACXC,SAAS1B,SAAS+B;IAClBH,iBAAiB,CAACF,YAAa1B,SAAS+B,eAAe,CAAC,CAACL;OAI7D,sBAAA,cAACtB,qBAAAA;IACCC,OAAOJ,EAAE,sBAAA;IACT+B,WACEhC,SAASiC,QACP,sBAAA,cAACT,MAAMjB,MAAI,MACT,sBAAA,cAACiB,MAAMU,UAAQ;MACbC,MAAM;MACN3B,OAAOR,SAASoC;MAChBC,UAAU,CAAC,EAAEC,QAAQ,EAAE9B,MAAK,EAAE,MAAQR,SAASoC,aAAa5B;MAC5Dc,aAAarB,EAAE,4BAAA;UAGjBsC;KAGN,sBAAA,cAACf,MAAMC,QAAM;IAACC,SAAS1B,SAASiC;IAAOL,iBAAiB,CAACF,YAAa1B,SAASiC,QAAQ,CAAC,CAACP;;AAIjG;;;ADhGO,IAAMc,oBAAoBC,KAAK,MAAM,OAAO,kCAAA,CAAA;;;ADMnD,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,eAAAA;IACPC,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SAA4CA,KAAKC,mBAAmBC;IAC7EC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAE;AACxB,YAAMM,gBAAgBC,cAAcZ,aAAaa,aAAa;AAC9D,YAAMC,WAAWH,cAAcI,SAAgCX,eAAAA,EAAkBY;AACjF,YAAM,EAAEC,OAAOC,aAAaC,aAAaC,YAAW,IAAKR,cAAcS,qBAAqBC,KAAK;AAEjG,aACE,gBAAAC,OAAA,cAACC,mBAAAA;QACCrB,IAAIsB,iBAAiBlB,KAAKC,OAAO;QACjCkB,QAAQnB,KAAKC;QACbH;QACAS;QACAa,oBAAoBV,MAAMU;QAC1BC,UAAUT,YAAYM,iBAAiBlB,KAAKC,OAAO,CAAA;QACnDqB,kBAAkBX;QAClBY,kBAAkBV;;IAGxB;EACF,CAAA;EACAlB,cAAc;IACZC,IAAI,GAAGC,eAAAA;IACPC,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SAA4DwB,cAAcxB,KAAKC,OAAO;IAC/FE,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAE;AACxB,YAAMM,gBAAgBC,cAAcZ,aAAaa,aAAa;AAC9D,YAAMC,WAAWH,cAAcI,SAAgCX,eAAAA,EAAkBY;AACjF,YAAM,EAAEC,OAAOC,aAAaC,aAAaC,YAAW,IAAKR,cAAcS,qBAAqBC,KAAK;AAEjG,aACE,gBAAAC,OAAA,cAACC,mBAAAA;QACCrB,IAAII,KAAKC,QAAQL;QACjBuB,QAAQnB,KAAKC;QACbH;QACAS;QACAa,oBAAoBV,MAAMU;QAC1BC,UAAUT,YAAYZ,KAAKC,QAAQL,EAAE;QACrC0B,kBAAkBX;QAClBY,kBAAkBV;;IAGxB;EACF,CAAA;EACAlB,cAAc;IACZC,IAAI,GAAGC,eAAAA;IACPC,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYJ;IAChDM,WAAW,MAAA;AACT,YAAMC,gBAAgBC,cAAcZ,aAAaa,aAAa;AAC9D,YAAMC,WAAWH,cAAcI,SAAgCX,eAAAA,EAAkBY;AACjF,aAAO,gBAAAO,OAAA,cAACS,kBAAAA;QAAiBlB;;IAC3B;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "createSurface", "contributes", "Capabilities", "useCapability", "fullyQualifiedId", "lazy", "React", "Input", "Select", "useTranslation", "EditorInputModes", "EditorViewModes", "DeprecatedFormInput", "MarkdownSettings", "settings", "t", "useTranslation", "MARKDOWN_PLUGIN", "DeprecatedFormInput", "label", "Select", "Root", "value", "defaultViewMode", "onValueChange", "TriggerButton", "Portal", "Content", "Viewport", "EditorViewModes", "map", "mode", "Option", "key", "ns", "editorInputMode", "placeholder", "EditorInputModes", "Input", "Switch", "checked", "toolbar", "onCheckedChange", "numberedHeadings", "folding", "experimental", "secondary", "debug", "TextArea", "rows", "typewriter", "onChange", "target", "undefined", "MarkdownContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "MARKDOWN_PLUGIN", "role", "filter", "data", "subject", "DocumentType", "component", "settingsStore", "useCapability", "SettingsStore", "settings", "getStore", "value", "state", "editorState", "getViewMode", "setViewMode", "MarkdownCapabilities", "State", "React", "MarkdownContainer", "fullyQualifiedId", "object", "extensionProviders", "viewMode", "editorStateStore", "onViewModeChange", "isEditorModel", "MarkdownSettings"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
MarkdownSettingsSchema
|
|
4
|
+
} from "./chunk-CDFNMFGT.mjs";
|
|
5
|
+
import {
|
|
6
|
+
MARKDOWN_PLUGIN
|
|
7
|
+
} from "./chunk-AOKWCL3O.mjs";
|
|
8
|
+
|
|
9
|
+
// packages/plugins/plugin-markdown/src/capabilities/settings.ts
|
|
10
|
+
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
11
|
+
import { create } from "@dxos/live-object";
|
|
12
|
+
var settings_default = () => {
|
|
13
|
+
const settings = create({
|
|
14
|
+
defaultViewMode: "preview",
|
|
15
|
+
toolbar: true,
|
|
16
|
+
numberedHeadings: true,
|
|
17
|
+
folding: true,
|
|
18
|
+
experimental: false
|
|
19
|
+
});
|
|
20
|
+
return contributes(Capabilities.Settings, {
|
|
21
|
+
schema: MarkdownSettingsSchema,
|
|
22
|
+
prefix: MARKDOWN_PLUGIN,
|
|
23
|
+
value: settings
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
settings_default as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=settings-E7P5FQ3F.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/settings.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\n\nimport { MARKDOWN_PLUGIN } from '../meta';\nimport { type MarkdownSettingsProps, MarkdownSettingsSchema } from '../types';\n\nexport default () => {\n const settings = create<MarkdownSettingsProps>({\n defaultViewMode: 'preview',\n toolbar: true,\n numberedHeadings: true,\n folding: true,\n experimental: false,\n });\n\n return contributes(Capabilities.Settings, {\n schema: MarkdownSettingsSchema,\n prefix: MARKDOWN_PLUGIN,\n value: settings,\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,mBAAmB;AAC1C,SAASC,cAAc;AAKvB,IAAA,mBAAe,MAAA;AACb,QAAMC,WAAWC,OAA8B;IAC7CC,iBAAiB;IACjBC,SAAS;IACTC,kBAAkB;IAClBC,SAAS;IACTC,cAAc;EAChB,CAAA;AAEA,SAAOC,YAAYC,aAAaC,UAAU;IACxCC,QAAQC;IACRC,QAAQC;IACRC,OAAOd;EACT,CAAA;AACF;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "create", "settings", "create", "defaultViewMode", "toolbar", "numberedHeadings", "folding", "experimental", "contributes", "Capabilities", "Settings", "schema", "MarkdownSettingsSchema", "prefix", "MARKDOWN_PLUGIN", "value"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
MarkdownCapabilities
|
|
4
|
+
} from "./chunk-2GHK262V.mjs";
|
|
5
|
+
import {
|
|
6
|
+
MARKDOWN_PLUGIN
|
|
7
|
+
} from "./chunk-AOKWCL3O.mjs";
|
|
8
|
+
|
|
9
|
+
// packages/plugins/plugin-markdown/src/capabilities/state.ts
|
|
10
|
+
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
11
|
+
import { LocalStorageStore } from "@dxos/local-storage";
|
|
12
|
+
import { createEditorStateStore } from "@dxos/react-ui-editor";
|
|
13
|
+
var state_default = (context) => {
|
|
14
|
+
const state = new LocalStorageStore(MARKDOWN_PLUGIN, {
|
|
15
|
+
extensionProviders: [],
|
|
16
|
+
viewMode: {}
|
|
17
|
+
});
|
|
18
|
+
state.prop({
|
|
19
|
+
key: "viewMode",
|
|
20
|
+
type: LocalStorageStore.json()
|
|
21
|
+
});
|
|
22
|
+
const editorState = createEditorStateStore(`${MARKDOWN_PLUGIN}/editor`);
|
|
23
|
+
const getViewMode = (id) => {
|
|
24
|
+
const defaultViewMode = context.requestCapability(Capabilities.SettingsStore).getStore(MARKDOWN_PLUGIN).value.defaultViewMode;
|
|
25
|
+
return id && state.values.viewMode[id] || defaultViewMode;
|
|
26
|
+
};
|
|
27
|
+
const setViewMode = (id, viewMode) => state.values.viewMode[id] = viewMode;
|
|
28
|
+
return contributes(MarkdownCapabilities.State, {
|
|
29
|
+
state: state.values,
|
|
30
|
+
editorState,
|
|
31
|
+
getViewMode,
|
|
32
|
+
setViewMode
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
state_default as default
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=state-HXSOQNOV.mjs.map
|