@aiquants/markdown-explorer 0.20.0 → 0.22.0

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.
@@ -1,10 +1,16 @@
1
+ import { SpreadsheetBlockLabelKey } from "@aiquants/markdown/code-blocks";
1
2
  export declare const MARKDOWN_EXPLORER_LOCALES: readonly [
2
3
  "en",
3
4
  "ja"
4
5
  ];
5
6
  export type MarkdownExplorerLocale = (typeof MARKDOWN_EXPLORER_LOCALES)[number];
6
7
  export declare const DEFAULT_MARKDOWN_EXPLORER_LOCALE: MarkdownExplorerLocale;
7
- export type MarkdownExplorerLabels = {
8
+ export type MarkdownExplorerSpreadsheetLabels = {
9
+ readonly [K in SpreadsheetBlockLabelKey as `viewerSpreadsheet${Capitalize<K>}`]: string;
10
+ };
11
+ type SpreadsheetLabelKey = keyof MarkdownExplorerSpreadsheetLabels;
12
+ export declare const spreadsheetLabelKeyOf: (key: SpreadsheetBlockLabelKey) => SpreadsheetLabelKey;
13
+ export type MarkdownExplorerLabels = MarkdownExplorerSpreadsheetLabels & {
8
14
  readonly explorerRegion: string;
9
15
  readonly sourceLabel: string;
10
16
  readonly refreshTreeLabel: string;
@@ -82,6 +88,7 @@ export type MarkdownExplorerLabels = {
82
88
  readonly previewRegion: string;
83
89
  readonly previewUpdating: string;
84
90
  readonly previewFailed: (reason: string) => string;
91
+ readonly previewTablePending: string;
85
92
  readonly expandAll: string;
86
93
  readonly collapseAll: string;
87
94
  readonly treeSettings: string;
@@ -230,32 +237,6 @@ export type MarkdownExplorerLabels = {
230
237
  readonly viewerEmbeddedVideo: string;
231
238
  readonly viewerEmbeddedPost: string;
232
239
  readonly viewerEmbeddedFrame: string;
233
- readonly viewerSpreadsheetTable: string;
234
- readonly viewerSpreadsheetZoomIn: string;
235
- readonly viewerSpreadsheetZoomOut: string;
236
- readonly viewerSpreadsheetResetZoom: string;
237
- readonly viewerSpreadsheetHighlight: string;
238
- readonly viewerSpreadsheetCopyAll: string;
239
- readonly viewerSpreadsheetSaveTsv: string;
240
- readonly viewerSpreadsheetSaveMenu: string;
241
- readonly viewerSpreadsheetSaveTsvWithBom: string;
242
- readonly viewerSpreadsheetFullscreen: string;
243
- readonly viewerSpreadsheetExitFullscreen: string;
244
- readonly viewerSpreadsheetFullscreenDialog: string;
245
- readonly viewerSpreadsheetSize: string;
246
- readonly viewerSpreadsheetFileName: string;
247
- readonly viewerSpreadsheetCopied: string;
248
- readonly viewerSpreadsheetCopyFailed: string;
249
- readonly viewerSpreadsheetCellAnnouncement: string;
250
- readonly viewerSpreadsheetEmptyCell: string;
251
- readonly viewerSpreadsheetSelectionAnnouncement: string;
252
- readonly viewerSpreadsheetReadOnly: string;
253
- readonly viewerSpreadsheetFormatRefused: string;
254
- readonly viewerSpreadsheetFenceRefused: string;
255
- readonly viewerSpreadsheetEditConflict: string;
256
- readonly viewerSpreadsheetOptionsError: string;
257
- readonly viewerSpreadsheetLoadFailed: string;
258
- readonly viewerSpreadsheetRetry: string;
259
240
  readonly multiRegion: string;
260
241
  readonly multiEmpty: string;
261
242
  readonly panelLimit: (max: number) => string;
@@ -297,3 +278,4 @@ export declare const MARKDOWN_EXPLORER_LABEL_KEYS: readonly MarkdownExplorerLabe
297
278
  export declare const resolveMarkdownExplorerLocale: (locale: unknown) => MarkdownExplorerLocale;
298
279
  export declare const resolveMarkdownExplorerLabels: (locale: unknown, overrides: unknown) => MarkdownExplorerLabels;
299
280
  export declare const areLabelOverridesEqual: (previous: unknown, next: unknown) => boolean;
281
+ export {};
@@ -1,10 +1,16 @@
1
+ import { SpreadsheetBlockLabelKey } from "@aiquants/markdown/code-blocks";
1
2
  export declare const MARKDOWN_EXPLORER_LOCALES: readonly [
2
3
  "en",
3
4
  "ja"
4
5
  ];
5
6
  export type MarkdownExplorerLocale = (typeof MARKDOWN_EXPLORER_LOCALES)[number];
6
7
  export declare const DEFAULT_MARKDOWN_EXPLORER_LOCALE: MarkdownExplorerLocale;
7
- export type MarkdownExplorerLabels = {
8
+ export type MarkdownExplorerSpreadsheetLabels = {
9
+ readonly [K in SpreadsheetBlockLabelKey as `viewerSpreadsheet${Capitalize<K>}`]: string;
10
+ };
11
+ type SpreadsheetLabelKey = keyof MarkdownExplorerSpreadsheetLabels;
12
+ export declare const spreadsheetLabelKeyOf: (key: SpreadsheetBlockLabelKey) => SpreadsheetLabelKey;
13
+ export type MarkdownExplorerLabels = MarkdownExplorerSpreadsheetLabels & {
8
14
  readonly explorerRegion: string;
9
15
  readonly sourceLabel: string;
10
16
  readonly refreshTreeLabel: string;
@@ -82,6 +88,7 @@ export type MarkdownExplorerLabels = {
82
88
  readonly previewRegion: string;
83
89
  readonly previewUpdating: string;
84
90
  readonly previewFailed: (reason: string) => string;
91
+ readonly previewTablePending: string;
85
92
  readonly expandAll: string;
86
93
  readonly collapseAll: string;
87
94
  readonly treeSettings: string;
@@ -230,32 +237,6 @@ export type MarkdownExplorerLabels = {
230
237
  readonly viewerEmbeddedVideo: string;
231
238
  readonly viewerEmbeddedPost: string;
232
239
  readonly viewerEmbeddedFrame: string;
233
- readonly viewerSpreadsheetTable: string;
234
- readonly viewerSpreadsheetZoomIn: string;
235
- readonly viewerSpreadsheetZoomOut: string;
236
- readonly viewerSpreadsheetResetZoom: string;
237
- readonly viewerSpreadsheetHighlight: string;
238
- readonly viewerSpreadsheetCopyAll: string;
239
- readonly viewerSpreadsheetSaveTsv: string;
240
- readonly viewerSpreadsheetSaveMenu: string;
241
- readonly viewerSpreadsheetSaveTsvWithBom: string;
242
- readonly viewerSpreadsheetFullscreen: string;
243
- readonly viewerSpreadsheetExitFullscreen: string;
244
- readonly viewerSpreadsheetFullscreenDialog: string;
245
- readonly viewerSpreadsheetSize: string;
246
- readonly viewerSpreadsheetFileName: string;
247
- readonly viewerSpreadsheetCopied: string;
248
- readonly viewerSpreadsheetCopyFailed: string;
249
- readonly viewerSpreadsheetCellAnnouncement: string;
250
- readonly viewerSpreadsheetEmptyCell: string;
251
- readonly viewerSpreadsheetSelectionAnnouncement: string;
252
- readonly viewerSpreadsheetReadOnly: string;
253
- readonly viewerSpreadsheetFormatRefused: string;
254
- readonly viewerSpreadsheetFenceRefused: string;
255
- readonly viewerSpreadsheetEditConflict: string;
256
- readonly viewerSpreadsheetOptionsError: string;
257
- readonly viewerSpreadsheetLoadFailed: string;
258
- readonly viewerSpreadsheetRetry: string;
259
240
  readonly multiRegion: string;
260
241
  readonly multiEmpty: string;
261
242
  readonly panelLimit: (max: number) => string;
@@ -297,3 +278,4 @@ export declare const MARKDOWN_EXPLORER_LABEL_KEYS: readonly MarkdownExplorerLabe
297
278
  export declare const resolveMarkdownExplorerLocale: (locale: unknown) => MarkdownExplorerLocale;
298
279
  export declare const resolveMarkdownExplorerLabels: (locale: unknown, overrides: unknown) => MarkdownExplorerLabels;
299
280
  export declare const areLabelOverridesEqual: (previous: unknown, next: unknown) => boolean;
281
+ export {};