@prose-reader/core 1.189.0 → 1.190.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,5 +1,5 @@
1
- import { EnhancerOptions, EnhancerOutput, RootEnhancer } from '../types/enhancer';
2
1
  import { SettingsInterface } from '../../settings/SettingsInterface';
2
+ import { EnhancerOptions, EnhancerOutput, RootEnhancer } from '../types/enhancer';
3
3
  import { InputSettings, OutputSettings } from './types';
4
4
  export declare const layoutEnhancer: <InheritOptions extends EnhancerOptions<RootEnhancer>, InheritOutput extends EnhancerOutput<RootEnhancer>, InheritSettings extends NonNullable<InheritOutput["settings"]["_inputSettings"]>, InheritComputedSettings extends NonNullable<InheritOutput["settings"]["_outputSettings"]>, Output extends Omit<InheritOutput, "settings"> & {
5
5
  settings: SettingsInterface<InheritSettings & InputSettings, OutputSettings & InheritComputedSettings>;
package/dist/index.js CHANGED
@@ -2040,6 +2040,35 @@ const htmlEnhancer = (next) => (options) => {
2040
2040
  });
2041
2041
  return reader;
2042
2042
  };
2043
+ function isDefined(arg) {
2044
+ return arg !== null && arg !== void 0;
2045
+ }
2046
+ let SettingsManager$1 = class SettingsManager2 extends SettingsManagerOverload {
2047
+ computeOutputSettings(inputSettings) {
2048
+ return inputSettings;
2049
+ }
2050
+ hasSettingsChanged(newOutputSettings) {
2051
+ return !isShallowEqual(this.outputSettings, newOutputSettings);
2052
+ }
2053
+ getCleanedParentInputSettings(settings) {
2054
+ const {
2055
+ layoutAutoResize,
2056
+ pageHorizontalMargin,
2057
+ pageVerticalMargin,
2058
+ layoutLayerTransition,
2059
+ ...rest
2060
+ } = settings;
2061
+ return rest;
2062
+ }
2063
+ getDefaultSettings() {
2064
+ return {
2065
+ layoutAutoResize: "container",
2066
+ pageHorizontalMargin: 24,
2067
+ pageVerticalMargin: 24,
2068
+ layoutLayerTransition: true
2069
+ };
2070
+ }
2071
+ };
2043
2072
  const createMovingSafePan$ = (reader) => {
2044
2073
  let iframeOverlayForAnimationsElement;
2045
2074
  const updateOverlayElement$ = reader.context.state$.pipe(
@@ -2118,35 +2147,6 @@ const fixReflowable = (reader) => {
2118
2147
  }
2119
2148
  );
2120
2149
  };
2121
- function isDefined(arg) {
2122
- return arg !== null && arg !== void 0;
2123
- }
2124
- let SettingsManager$1 = class SettingsManager2 extends SettingsManagerOverload {
2125
- computeOutputSettings(inputSettings) {
2126
- return inputSettings;
2127
- }
2128
- hasSettingsChanged(newOutputSettings) {
2129
- return !isShallowEqual(this.outputSettings, newOutputSettings);
2130
- }
2131
- getCleanedParentInputSettings(settings) {
2132
- const {
2133
- layoutAutoResize,
2134
- pageHorizontalMargin,
2135
- pageVerticalMargin,
2136
- layoutLayerTransition,
2137
- ...rest
2138
- } = settings;
2139
- return rest;
2140
- }
2141
- getDefaultSettings() {
2142
- return {
2143
- layoutAutoResize: "container",
2144
- pageHorizontalMargin: 24,
2145
- pageVerticalMargin: 24,
2146
- layoutLayerTransition: true
2147
- };
2148
- }
2149
- };
2150
2150
  const layoutEnhancer = (next) => (options) => {
2151
2151
  const {
2152
2152
  pageHorizontalMargin,