@pptx-editor.dev/react 0.5.1-canary.20261116033339.sha-dc95409 → 0.6.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ReactElement, CSSProperties, ComponentType, MouseEvent } from 'react';
|
|
3
3
|
import { ChromeTranslate, PptxEditorInstance, ColumnsDialogFields, BulletsDialogFields, FontDialogFields, ParagraphDialogFields, SlideBackground, SlideSizeFields, EditorRejection, MenuNamedRow, ChromeSlotId, ChromeMenuId, CanvasMenuKind, SlideSection, LoadOptions, CommandResult, EditorCommand, EditorExecOptions, EditorSnapshot, EditorMode, EditorFontsOption, EditorFontError, EditorModule, ClipboardDrawingReader, ColorMode, ChromeGroupId, ChromeControl, SlideshowController, ToolbarValueMap, ToolbarShownValue, SidePanelTab, SlideRailOrientation, DocumentOpenFailure, RibbonTabId, ResolvedColorMode, DocumentSearchState, DocumentSearchFindOptions, FindMatch, EditorCaret, HistoryGroupBindingOptions, PptxEditorEvents, ShapeStyleChoice, ShapeStyleValue, HyperlinkPopupActions, HyperlinkPopupState, FontResolver, PptxSource, UsePptxSourceOptions, GradientFill, PatternFill, SlideLayoutSummary, ParagraphFormatRead, ParagraphFormatCommand, FontFormatRead, FontFormatCommand, BulletFormatRead, BulletFormat, ReviewAuthorInfo, FontConfigurationFragment, MarkedFontResolver, FontOrigin, FontPickerGroup, FontPickerRow, PopoverAnchorRect, FormatSectionId, FormatSectionDefinition, ContextMenuPartName, MenuRowPartName } from '@pptx-editor.dev/core/editor';
|
|
4
|
-
export { BulletFormat, BulletFormatMixed, BulletFormatRead, BulletsDialogFields, CanvasMenuKind, ChromeControl, ChromeGroupId, ChromeMenuId, ChromeSlotId, ChromeTranslate, ClipboardDrawingReader, ColorMode, ColumnsDialogFields, CommandResult, ContextMenuPartName, DEFAULT_FONT, DocumentOpenFailure, DocumentSearchFindOptions, DocumentSearchState, EditorCaret, EditorCommand, EditorExecOptions, EditorFontError, EditorFontsOption, EditorMode, EditorModule, EditorRejection, EditorRemoval, EditorSnapshot, FORMAT_SECTIONS, FontConfigurationBase, FontConfigurationFragment, FontDialogFields, FontFormatCommand, FontFormatRead, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontPickerGroup, FontPickerGroupId, FontPickerRow, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, FormatSectionDefinition, FormatSectionId, GradientFill, HistoryGroupBindingOptions, HyperlinkPopupActions, HyperlinkPopupLink, HyperlinkPopupMode, HyperlinkPopupState, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, MenuNamedRow, MenuRowPartName, PaneRequest, ParagraphDialogFields, ParagraphFormatCommand, ParagraphFormatRead, PatternFill, PatternPreset, PptxEditorEvents, PptxEditorInstance, PptxFontOrigin, PptxFontsInput, PptxFontsSource, PptxSource, ResolvedColorMode, RibbonTabId, ShapeStyleChoice, ShapeStyleValue, SidePanelTab, SlideBackground, SlideLayoutSummary, SlideRailOrientation, SlideSection, SlideshowController, ToolbarShownValue, ToolbarValueMap, UsePptxSourceOptions, composeFontConfiguration, composeFontOrigins, createFontSource, deferFonts, defineFontResolver, formatSectionsOf, gradientCss, isFontResolver, listenPaneRequests, loadFonts, platformShortcuts, requestPane } from '@pptx-editor.dev/core/editor';
|
|
4
|
+
export { AnchorHighlightAnimation, AnchorHighlightOptions, BulletFormat, BulletFormatMixed, BulletFormatRead, BulletsDialogFields, CanvasMenuKind, ChromeControl, ChromeGroupId, ChromeMenuId, ChromeSlotId, ChromeTranslate, ClearAnchorHighlightOptions, ClearRefreshHighlightsOptions, ClipboardDrawingReader, ColorMode, ColumnsDialogFields, CommandResult, ComputedRefreshChange, ContextMenuPartName, DEFAULT_FONT, DocumentChange, DocumentHandle, DocumentOpenFailure, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, DocumentSearchFindOptions, DocumentSearchState, EditorCaret, EditorCommand, EditorExecOptions, EditorFontError, EditorFontsOption, EditorMode, EditorModule, EditorRejection, EditorRemoval, EditorSnapshot, FORMAT_SECTIONS, FontConfigurationBase, FontConfigurationFragment, FontDialogFields, FontFormatCommand, FontFormatRead, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontPickerGroup, FontPickerGroupId, FontPickerRow, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, FormatSectionDefinition, FormatSectionId, GradientFill, HistoryGroupBindingOptions, HyperlinkPopupActions, HyperlinkPopupLink, HyperlinkPopupMode, HyperlinkPopupState, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, MenuNamedRow, MenuRowPartName, NavigateToChangeOptions, PaneRequest, ParagraphDialogFields, ParagraphFormatCommand, ParagraphFormatRead, PatternFill, PatternPreset, PptxEditorEvents, PptxEditorInstance, PptxFontOrigin, PptxFontsInput, PptxFontsSource, PptxSource, RefreshChange, RefreshChangeAspect, RefreshChangeInput, RefreshComputedChange, RefreshDiagnosticCode, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshHighlightSurface, RefreshLocation, RefreshRefusal, RefreshRefusalFields, RefreshRefusalReason, RefreshResult, RefreshSubmission, RefreshUpdate, RefreshUpdateMode, ReplaceDocumentCommand, ReplaceDocumentErrorCode, ReplaceDocumentOutcome, ReplaceDocumentRefusal, ReplaceDocumentRefusalReason, ReplaceDocumentRequest, ResolvedColorMode, RibbonTabId, ShapeStyleChoice, ShapeStyleValue, SidePanelTab, SlideBackground, SlideLayoutSummary, SlideRailOrientation, SlideSection, SlideshowController, ToolbarShownValue, ToolbarValueMap, UsePptxSourceOptions, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, deferFonts, defineFontResolver, describeRefreshChange, formatSectionsOf, gradientCss, isFontResolver, listenPaneRequests, loadFonts, platformShortcuts, requestPane } from '@pptx-editor.dev/core/editor';
|
|
5
5
|
import { Translate, LocaleCatalog } from '@pptx-editor.dev/i18n';
|
|
6
6
|
import { FontConfiguration } from '@pptx-editor.dev/core/contracts';
|
|
7
7
|
export { EditorFontErrorCode, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution } from '@pptx-editor.dev/core/contracts';
|
|
@@ -2654,7 +2654,7 @@ interface UsePptxSourceResult {
|
|
|
2654
2654
|
* ```
|
|
2655
2655
|
*
|
|
2656
2656
|
* Eager fonts (a value, a promise, or a zero-argument loader) hold the deck back until they
|
|
2657
|
-
* settle, so the slides lay out once. They hold it for at most
|
|
2657
|
+
* settle, so the slides lay out once. They hold it for at most 3 seconds: fonts that settle
|
|
2658
2658
|
* later apply, and the slides lay out again. An on-demand resolver (`packagedFonts()`,
|
|
2659
2659
|
* `googleFonts()`) needs the parsed deck, so the bytes go through at once and the slides lay
|
|
2660
2660
|
* out again when the faces arrive. A font failure never fails the deck.
|
package/dist/index.js
CHANGED
|
@@ -14183,6 +14183,11 @@ function useFontFamily() {
|
|
|
14183
14183
|
|
|
14184
14184
|
// src/index.ts
|
|
14185
14185
|
import { EditorFontError } from "@pptx-editor.dev/core/editor";
|
|
14186
|
+
import {
|
|
14187
|
+
createDocumentRefresh,
|
|
14188
|
+
describeRefreshChange,
|
|
14189
|
+
DocumentRefreshError
|
|
14190
|
+
} from "@pptx-editor.dev/core/editor";
|
|
14186
14191
|
import {
|
|
14187
14192
|
MAX_RESOLVER_FAMILIES,
|
|
14188
14193
|
DEFAULT_FONT,
|
|
@@ -14387,6 +14392,7 @@ export {
|
|
|
14387
14392
|
ColumnsDialog,
|
|
14388
14393
|
ContextMenu,
|
|
14389
14394
|
DEFAULT_FONT,
|
|
14395
|
+
DocumentRefreshError,
|
|
14390
14396
|
EditNotice,
|
|
14391
14397
|
EditorFontError,
|
|
14392
14398
|
EquationDialog,
|
|
@@ -14470,10 +14476,12 @@ export {
|
|
|
14470
14476
|
ZoomPill,
|
|
14471
14477
|
composeFontConfiguration,
|
|
14472
14478
|
composeFontOrigins2 as composeFontOrigins,
|
|
14479
|
+
createDocumentRefresh,
|
|
14473
14480
|
createFontSource,
|
|
14474
14481
|
deferFonts,
|
|
14475
14482
|
defineFontResolver2 as defineFontResolver,
|
|
14476
14483
|
definePopup,
|
|
14484
|
+
describeRefreshChange,
|
|
14477
14485
|
formatSectionsOf2 as formatSectionsOf,
|
|
14478
14486
|
gradientCss3 as gradientCss,
|
|
14479
14487
|
isFontResolver,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptx-editor.dev/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "React adapter for PPTX Editor: a provider, hooks, and chrome compounds over the @pptx-editor.dev/core editor contract.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"api:check": "node ../../scripts/api-extractor.mjs --package @pptx-editor.dev/react"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pptx-editor.dev/i18n": "0.
|
|
31
|
+
"@pptx-editor.dev/i18n": "^0.6.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@pptx-editor.dev/core": "0.
|
|
34
|
+
"@pptx-editor.dev/core": "~0.6.0",
|
|
35
35
|
"react": "^18.0.0 || ^19.0.0",
|
|
36
36
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
37
37
|
},
|