@jant/core 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-DPKBdt72.js → app-CPVwpmb3.js} +45 -25
- package/dist/app-Z83YzveI.js +6 -0
- package/dist/client/.vite/manifest.json +3 -3
- package/dist/client/_assets/{client-YDJ3uHBY.js → client-8pp1btGZ.js} +1 -1
- package/dist/client/_assets/{client-BgUDb9OM.css → client-CFegXQty.css} +1 -1
- package/dist/client/_assets/{client-auth-B4rzNBSB.js → client-auth-Ds3SVvGh.js} +79 -62
- package/dist/{export-B7P3YE3x.js → export-I9XFTWyO.js} +1 -1
- package/dist/{github-sync-LvT27JR9.js → github-sync-C0Fi4LKt.js} +2 -2
- package/dist/{github-sync-Yg2zs-iC.js → github-sync-DBAwA3H9.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/node.js +4 -4
- package/package.json +1 -1
- package/src/client/__tests__/slash-discovery.test.ts +150 -0
- package/src/client/components/__tests__/jant-compose-dialog.test.ts +1 -0
- package/src/client/components/__tests__/jant-compose-editor.test.ts +47 -2
- package/src/client/components/compose-types.ts +1 -0
- package/src/client/components/jant-compose-dialog.ts +8 -0
- package/src/client/components/jant-compose-editor.ts +55 -12
- package/src/client/slash-discovery-bridge.ts +9 -0
- package/src/client/slash-discovery.ts +200 -0
- package/src/client/tiptap/slash-commands.ts +5 -0
- package/src/client-auth.ts +1 -0
- package/src/i18n/locales/public/en.po +5 -0
- package/src/i18n/locales/public/en.ts +1 -1
- package/src/i18n/locales/public/zh-Hans.po +5 -0
- package/src/i18n/locales/public/zh-Hans.ts +1 -1
- package/src/i18n/locales/public/zh-Hant.po +5 -0
- package/src/i18n/locales/public/zh-Hant.ts +1 -1
- package/src/lib/render.tsx +3 -0
- package/src/routes/api/__tests__/settings.test.ts +59 -0
- package/src/routes/api/settings.ts +19 -0
- package/src/routes/pages/new.tsx +6 -0
- package/src/services/export-theme/assets/client-site.css +1 -1
- package/src/styles/site-media.css +6 -0
- package/src/styles/ui.css +40 -0
- package/src/types/config.ts +5 -0
- package/src/types/views.ts +1 -0
- package/src/ui/compose/ComposeDialog.tsx +12 -0
- package/src/ui/layouts/SiteLayout.tsx +2 -0
- package/src/ui/pages/ComposePage.tsx +3 -0
- package/dist/app-DaT0_7q3.js +0 -6
|
@@ -129,6 +129,7 @@ export const SiteLayout: FC<PropsWithChildren<SiteLayoutProps>> = ({
|
|
|
129
129
|
showComposeDialog = true,
|
|
130
130
|
showHeader = true,
|
|
131
131
|
composeOpenShortcutDiscovered = false,
|
|
132
|
+
slashCommandDiscovered = false,
|
|
132
133
|
composeCollectionId,
|
|
133
134
|
children,
|
|
134
135
|
}) => {
|
|
@@ -567,6 +568,7 @@ export const SiteLayout: FC<PropsWithChildren<SiteLayoutProps>> = ({
|
|
|
567
568
|
<ComposeDialog
|
|
568
569
|
collections={collections}
|
|
569
570
|
uploadMaxFileSize={uploadMaxFileSize}
|
|
571
|
+
slashCommandDiscovered={slashCommandDiscovered}
|
|
570
572
|
/>
|
|
571
573
|
)}
|
|
572
574
|
</div>
|
|
@@ -8,12 +8,14 @@ export interface ComposePageProps {
|
|
|
8
8
|
collections?: Collection[];
|
|
9
9
|
uploadMaxFileSize?: number;
|
|
10
10
|
closeHref?: string;
|
|
11
|
+
slashCommandDiscovered?: boolean;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const ComposePage: FC<ComposePageProps> = ({
|
|
14
15
|
collections,
|
|
15
16
|
uploadMaxFileSize,
|
|
16
17
|
closeHref = "/",
|
|
18
|
+
slashCommandDiscovered = false,
|
|
17
19
|
}) => {
|
|
18
20
|
const { i18n } = useLingui();
|
|
19
21
|
const backLabel = i18n._(
|
|
@@ -52,6 +54,7 @@ export const ComposePage: FC<ComposePageProps> = ({
|
|
|
52
54
|
pageMode
|
|
53
55
|
closeHref={closeHref}
|
|
54
56
|
autoRestoreDraft
|
|
57
|
+
slashCommandDiscovered={slashCommandDiscovered}
|
|
55
58
|
/>
|
|
56
59
|
</div>
|
|
57
60
|
</section>
|