@chili-publish/studio-sdk 1.46.1 → 1.47.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.
Files changed (63) hide show
  1. package/_bundles/main.js +4 -4
  2. package/_bundles/main.js.map +1 -1
  3. package/lib/src/controllers/ComponentGridController.cjs.js.map +1 -1
  4. package/lib/src/controllers/ComponentGridController.es.js.map +1 -1
  5. package/lib/src/controllers/FrameController.cjs.js +8 -0
  6. package/lib/src/controllers/FrameController.cjs.js.map +1 -1
  7. package/lib/src/controllers/FrameController.d.ts +14 -0
  8. package/lib/src/controllers/FrameController.es.js +8 -0
  9. package/lib/src/controllers/FrameController.es.js.map +1 -1
  10. package/lib/src/controllers/UtilsController.cjs.js +4 -1
  11. package/lib/src/controllers/UtilsController.cjs.js.map +1 -1
  12. package/lib/src/controllers/UtilsController.es.js +4 -1
  13. package/lib/src/controllers/UtilsController.es.js.map +1 -1
  14. package/lib/src/interactions/Connector.cjs.js +29 -10
  15. package/lib/src/interactions/Connector.cjs.js.map +1 -1
  16. package/lib/src/interactions/Connector.d.ts +2 -2
  17. package/lib/src/interactions/Connector.es.js +29 -10
  18. package/lib/src/interactions/Connector.es.js.map +1 -1
  19. package/lib/src/next/controllers/PageController.cjs.js +1 -0
  20. package/lib/src/next/controllers/PageController.cjs.js.map +1 -1
  21. package/lib/src/next/controllers/PageController.es.js +1 -0
  22. package/lib/src/next/controllers/PageController.es.js.map +1 -1
  23. package/lib/src/sdk/editor-engine.json.cjs.js +1 -1
  24. package/lib/src/sdk/editor-engine.json.es.js +1 -1
  25. package/lib/src/sdk/package.json.cjs.js +1 -1
  26. package/lib/src/sdk/package.json.es.js +1 -1
  27. package/lib/src/sdk.cjs.js +26 -13
  28. package/lib/src/sdk.cjs.js.map +1 -1
  29. package/lib/src/sdk.d.ts +14 -0
  30. package/lib/src/sdk.es.js +26 -13
  31. package/lib/src/sdk.es.js.map +1 -1
  32. package/lib/src/types/BarcodeTypes.cjs.js.map +1 -1
  33. package/lib/src/types/BarcodeTypes.d.ts +3 -1
  34. package/lib/src/types/BarcodeTypes.es.js.map +1 -1
  35. package/lib/src/types/BrandKitTypes.d.ts +4 -2
  36. package/lib/src/types/CharacterStyleTypes.d.ts +6 -2
  37. package/lib/src/types/ColorStyleTypes.cjs.js.map +1 -1
  38. package/lib/src/types/ColorStyleTypes.es.js.map +1 -1
  39. package/lib/src/types/ComponentGridTypes.cjs.js.map +1 -1
  40. package/lib/src/types/ComponentGridTypes.es.js.map +1 -1
  41. package/lib/src/types/ConnectorTypes.cjs.js.map +1 -1
  42. package/lib/src/types/ConnectorTypes.es.js.map +1 -1
  43. package/lib/src/types/FrameTypes.cjs.js.map +1 -1
  44. package/lib/src/types/FrameTypes.d.ts +5 -0
  45. package/lib/src/types/FrameTypes.es.js.map +1 -1
  46. package/lib/src/types/ParagraphStyleTypes.cjs.js.map +1 -1
  47. package/lib/src/types/ParagraphStyleTypes.d.ts +6 -2
  48. package/lib/src/types/ParagraphStyleTypes.es.js.map +1 -1
  49. package/lib/src/types/RichTextRuleTypes.cjs.js.map +1 -1
  50. package/lib/src/types/RichTextRuleTypes.es.js.map +1 -1
  51. package/lib/src/types/ShapeTypes.cjs.js.map +1 -1
  52. package/lib/src/types/ShapeTypes.d.ts +2 -0
  53. package/lib/src/types/ShapeTypes.es.js.map +1 -1
  54. package/lib/src/types/TextStyleTypes.cjs.js.map +1 -1
  55. package/lib/src/types/TextStyleTypes.d.ts +2 -1
  56. package/lib/src/types/TextStyleTypes.es.js.map +1 -1
  57. package/lib/src/types/VariableTypes.cjs.js.map +1 -1
  58. package/lib/src/types/VariableTypes.es.js.map +1 -1
  59. package/lib/src/utils/EngineCallbackHandler.cjs.js.map +1 -1
  60. package/lib/src/utils/EngineCallbackHandler.es.js.map +1 -1
  61. package/lib/src/utils/EngineEvent.cjs.js.map +1 -1
  62. package/lib/src/utils/EngineEvent.es.js.map +1 -1
  63. package/package.json +17 -20
@@ -1 +1 @@
1
- {"version":3,"file":"FrameTypes.cjs.js","sources":["../../../src/types/FrameTypes.ts"],"sourcesContent":["// FramePropertiesDto\nimport { BarcodeCharacterSet, BarcodeErrorCorrectionLevel, BarcodeType, QuietZone } from './BarcodeTypes';\nimport { ColorUsage } from './ColorStyleTypes';\nimport { HasOverrideState, Id, PropertyState } from './CommonTypes';\nimport { GradientUsage } from './GradientStyleTypes';\nimport { ComponentGridSettings } from '../types/ComponentGridTypes';\nimport {\n CornerRadiusAll,\n CornerRadiusNone,\n CornerRadiusOnly,\n ShapeFrameSource,\n ShapeType,\n ShapeContainerProperties,\n} from './ShapeTypes';\n\nexport type FrameLayoutType = {\n id: Id;\n layoutId: Id;\n horizontal: FrameAnchor;\n vertical: FrameAnchor;\n x: PropertyState<number>;\n y: PropertyState<number>;\n width: PropertyState<number>;\n height: PropertyState<number>;\n rotationDegrees: PropertyState<number>;\n scaleX: PropertyState<number>;\n scaleY: PropertyState<number>;\n isVisible: PropertyState<boolean>;\n fitMode: PropertyState<FitMode>;\n fitModePosition: PropertyState<FitModePosition>;\n smartCropSettings: PropertyState<SmartCropSettings>;\n hasImageCrop: PropertyState<boolean>;\n hasFrameSubjectArea: PropertyState<boolean>;\n minCopyfitting: PropertyState<number>;\n maxCopyfitting: PropertyState<number>;\n enableCopyfitting: PropertyState<boolean>;\n autoGrow: AutoGrowSettings;\n isShowingCustomCroppedAsset: boolean;\n customCroppedAssetCount: number;\n subjectId: PropertyState<Id | null>;\n componentGridSettings: PropertyState<ComponentGridSettings>;\n componentFit: PropertyState<ComponentFitEnum>;\n} | null;\n\n//Frame.image\nexport type FrameType = {\n id: Id;\n name: string;\n type: FrameTypeEnum;\n // `imageUrl` is not generic: should be removed from model\n imageUrl: string;\n blendMode: string;\n opacity: number;\n};\n\nexport type Frame = TextFrame | ImageFrame | ShapeFrame | BarcodeFrame | ComponentFrame | ComponentGridFrame;\n\nexport type ImageFrameVariableSource = {\n type: ImageSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type ImageFrameUrlSource = {\n type: ImageSourceTypeEnum.url;\n url: string;\n};\n\nexport type ImageFrameConnectorSource = {\n type: ImageSourceTypeEnum.connector;\n assetId: Id;\n id: Id;\n};\n\nexport type ImageFrameBrandkitMediaSource = {\n type: ImageSourceTypeEnum.brandKitMedia;\n name: string;\n};\n\nexport type ImageFrameSource =\n | ImageFrameConnectorSource\n | ImageFrameVariableSource\n | ImageFrameUrlSource\n | ImageFrameBrandkitMediaSource;\n\n// used by new getter methods\nexport type ImageFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.image;\n src?: ImageFrameSource;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n container: {\n source: ShapeFrameSource;\n properties: ShapeContainerProperties;\n };\n};\n\nexport type ShapeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.shape;\n blendMode: BlendMode;\n shapeProperties: {\n enableFill: boolean;\n fillColor: ColorUsage;\n enableStroke: boolean;\n strokeWeight: number;\n strokeColor: ColorUsage;\n allCornersSame: boolean;\n };\n src: {\n type: ShapeType;\n cornerRadius: CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n sides?: number;\n };\n dropShadowSettings?: DropShadowSettings;\n gradient?: GradientUsage;\n};\n\nexport type TextFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.text;\n textContent: string;\n paddingLeft: number;\n paddingTop: number;\n paddingRight: number;\n paddingBottom: number;\n numberOfColumns: number;\n columnGap: number;\n textDirection: TextDirection;\n flowDirection: FlowDirection;\n verticalAlign: VerticalAlign;\n textStroke: boolean;\n textStrokeWeight: number;\n textStrokeColor: number;\n hasClippingPath: boolean;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n hasVariable?: boolean;\n};\n\nexport type BarcodeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.barcode;\n blendMode: BlendMode;\n barcodeProperties: {\n enableBackground: boolean;\n backgroundColor: ColorUsage;\n enableBarColor: boolean;\n barColor: ColorUsage;\n enableText: boolean;\n barHeight: number;\n magnification: number;\n quietZone: QuietZone;\n errorCorrectionLevel?: BarcodeErrorCorrectionLevel;\n characterSet?: BarcodeCharacterSet;\n drawStartStopChars: boolean;\n };\n src?: BarcodeSource;\n barcodeType: BarcodeType;\n dropShadowSettings?: DropShadowSettings;\n};\n\nexport type BarcodeSource = BarcodeVariableSource | BarcodeTextSource;\n\nexport type BarcodeVariableSource = {\n type: BarcodeSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type BarcodeTextSource = {\n type: BarcodeSourceTypeEnum.text;\n text: string;\n};\n\nexport type ComponentFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.component;\n blendMode: BlendMode;\n src: ComponentSource;\n variableMappings: VariableMapping[];\n\n /**\n * @deprecated Use `componentFit` on frame properties instead. This property is deprecated and will be removed in a future version.\n * How the component fits within the frame.\n */\n fitMode: ComponentFitEnum;\n};\n\nexport type ComponentGridFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.componentGrid;\n blendMode: BlendMode;\n dataSourceVariableId?: Id | null;\n src?: ComponentSource | null;\n variableMappings: GridVariableMapping;\n};\n\nexport type GridVariableMapping = {\n mappings: Record<string, VariableMapping[] | null>;\n};\n\nexport type ComponentSource = ConnectorComponentSource;\n\nexport type ConnectorComponentSource = {\n type: ComponentSourceTypeEnum.connector;\n id: Id;\n assetId: Id | null;\n};\n\nexport type VariableMapping = {\n source: Id;\n target: Id;\n sourceField?: string;\n};\n\nexport enum ComponentFitEnum {\n /**\n * The component resizes to fit the frame size.\n */\n resize = 'resize',\n\n /**\n * The component scales to fit the frame size while maintaining its aspect ratio.\n */\n scale = 'scale',\n\n /**\n * The component first scales to fit the frame size while maintaining its aspect ratio,\n * then resizes to fill the remaining space.\n */\n scaleAndResize = 'scaleAndResize',\n}\n\nexport type CropSettings = {\n left: number;\n top: number;\n width: number;\n height: number;\n rotationDegrees: number;\n type: 'default';\n};\n\nexport type NoCropSettings = {\n type: 'noCrop';\n};\n\nexport type AutoGrowSettings = {\n enabled: PropertyState<boolean>;\n minWidth: PropertyState<number>;\n maxWidth: PropertyState<number>;\n minHeight: PropertyState<number>;\n maxHeight: PropertyState<number>;\n directions: PropertyState<Array<AutoGrowDirection>>;\n};\n\nexport interface AutoGrowDeltaUpdate {\n enabled?: {\n value: boolean;\n };\n minWidth?: {\n value: string | null;\n };\n maxWidth?: {\n value: string | null;\n };\n minHeight?: {\n value: string | null;\n };\n maxHeight?: {\n value: string | null;\n };\n directions?: {\n value: Array<AutoGrowDirection>;\n };\n}\n\nexport type DropShadowSettings = {\n enabled: boolean;\n distance: number;\n angleDegrees: number;\n blurRadius: number;\n color: ColorUsage;\n};\n\nexport interface ShadowSettingsDeltaUpdate {\n distance?: {\n value: string;\n };\n angleDegrees?: {\n value: number;\n };\n blurRadius?: {\n value: number;\n };\n enabled?: {\n value: boolean;\n };\n color?: {\n value: ColorUsage;\n };\n}\n\nexport enum AutoGrowDirection {\n top = 'top',\n bottom = 'bottom',\n left = 'left',\n right = 'right',\n}\n\nexport enum ImageSourceTypeEnum {\n url = 'url',\n variable = 'variable',\n connector = 'connector',\n brandKitMedia = 'brandKitMedia',\n}\n\nexport enum ComponentSourceTypeEnum {\n connector = 'connector',\n}\n\nexport enum FrameTypeEnum {\n text = 'text',\n image = 'image',\n shape = 'shape',\n barcode = 'barcode',\n component = 'component',\n componentGrid = 'componentGrid',\n}\n\nexport enum BarcodeSourceTypeEnum {\n variable = 'variable',\n text = 'text',\n}\n\nexport enum TextDirection {\n leftToRight = 'leftToRight',\n rightToLeft = 'rightToLeft',\n weak = 'weak',\n}\n\nexport enum FlowDirection {\n horizontal = 'horizontal',\n vertical = 'vertical',\n onPath = 'onPath',\n}\n\nexport enum VerticalAlign {\n top = 'top',\n bottom = 'bottom',\n middle = 'middle',\n justify = 'justify',\n}\n\nexport enum BlendMode {\n normal = 'normal',\n screen = 'screen',\n overlay = 'overlay',\n darken = 'darken',\n lighten = 'lighten',\n colorDodge = 'colorDodge',\n colorBurn = 'colorBurn',\n hardLight = 'hardLight',\n softLight = 'softLight',\n difference = 'difference',\n exclusion = 'exclusion',\n multiply = 'multiply',\n hue = 'hue',\n saturation = 'saturation',\n color = 'color',\n luminosity = 'luminosity',\n}\n\nexport enum FitMode {\n fill = 'fill',\n fit = 'fit',\n smartCrop = 'smartCrop',\n manualCrop = 'manualCrop',\n}\n\nexport enum FitModePosition {\n topLeft = 'topLeft',\n topCenter = 'topCenter',\n topRight = 'topRight',\n centerLeft = 'centerLeft',\n center = 'center',\n centerRight = 'centerRight',\n bottomLeft = 'bottomLeft',\n bottomCenter = 'bottomCenter',\n bottomRight = 'bottomRight',\n}\n\nexport enum UpdateZIndexMethod {\n bringToFront = 'bringToFront',\n sendToBack = 'sendToBack',\n bringForward = 'bringForward',\n sendBackward = 'sendBackward',\n}\n\nexport enum FrameAnchorType {\n relative = 'relative',\n start = 'start',\n end = 'end',\n startAndEnd = 'startAndEnd',\n center = 'center',\n}\n\nexport enum AnchorTargetType {\n page = 'page',\n frame = 'frame',\n}\n\nexport enum AnchorTargetEdgeType {\n start = 'start',\n end = 'end',\n center = 'center',\n}\n\nexport class PageAnchorTarget {\n type = AnchorTargetType.page;\n}\n\nexport class FrameAnchorTarget {\n frameId: Id;\n edge: AnchorTargetEdgeType;\n type = AnchorTargetType.frame;\n\n constructor(id: Id, edge: AnchorTargetEdgeType) {\n (this.frameId = id), (this.edge = edge);\n }\n}\n\nexport type AnchorTarget = PageAnchorTarget | FrameAnchorTarget;\n\nexport type RelativeFrameAnchor = {\n start: PropertyState<number>;\n end: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.relative;\n} & HasOverrideState;\n\nexport type StartFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.start;\n} & HasOverrideState;\n\nexport type EndFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.end;\n} & HasOverrideState;\n\nexport type StartAndEndFrameAnchor = {\n start: PropertyState<number>;\n startTarget: AnchorTarget;\n end: PropertyState<number>;\n endTarget: AnchorTarget;\n type: FrameAnchorType.startAndEnd;\n} & HasOverrideState;\n\nexport type CenterFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.center;\n} & HasOverrideState;\n\nexport type FrameAnchor =\n | RelativeFrameAnchor\n | StartFrameAnchor\n | EndFrameAnchor\n | StartAndEndFrameAnchor\n | CenterFrameAnchor;\n\nexport type FrameAnchorProperties = {\n horizontal: boolean;\n type: FrameAnchorType;\n target: AnchorTarget;\n endTarget?: AnchorTarget | null;\n};\n\nexport type AnchorConfiguration = {\n allowedTypes: Set<FrameAnchorType>;\n allowedFrameIds: Set<Id>;\n};\n\nexport type FrameConfiguration = {\n horizontal: AnchorConfiguration;\n vertical: AnchorConfiguration;\n};\n\nexport enum CropType {\n frameCrop = 'frameCrop',\n assetCrop = 'assetCrop',\n}\n\n/**\n * Image-specific editing constraints.\n */\nexport type ImageFrameConstraints = {\n cropAllowed: PropertyState<boolean>;\n};\n\n/**\n * Text-specific editing constraints.\n */\nexport type TextFrameConstraints = {\n editingAllowed: PropertyState<boolean>;\n paragraphStyles: PropertyState<IdSetManagedConstraint>;\n characterStyles: PropertyState<IdSetManagedConstraint>;\n colors: PropertyState<IdSetManagedConstraint>;\n fontSizes: PropertyState<FontSizeRangeManagedConstraint>;\n};\n\nexport interface ManagedConstraint {\n allowed: boolean;\n}\n\n/**\n * A managed constraint represented by a set of allowed Id identifiers.\n *\n * Example: used to allow only a specific set of paragraph or character styles.\n * - `allowed`: If true, only the provided `ids` may be used.\n * - `ids`: The set of allowed Id values.\n */\nexport interface IdSetManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n ids: Id[];\n}\n\n/**\n * A managed constraint that restricts allowed font sizes to a continuous range.\n *\n * - `allowed`: If true, restricts allowed font sizes to [min, max] (inclusive).\n * - `min`: The minimum allowed font size (nullable).\n * - `max`: The maximum allowed font size (nullable).\n */\nexport interface FontSizeRangeManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n min: number | null;\n max: number | null;\n}\n\n/**\n * Frame editing constraints with optional frame-type-specific sub-properties.\n */\nexport type FrameConstraints = {\n selectionAllowed: PropertyState<boolean>;\n horizontalMovementAllowed: PropertyState<boolean>;\n verticalMovementAllowed: PropertyState<boolean>;\n rotationAllowed: PropertyState<boolean>;\n resizeAllowed: PropertyState<boolean>;\n proportionLocked: PropertyState<boolean>;\n /** Image-specific constraints. */\n image?: ImageFrameConstraints;\n /** Text-specific constraints. */\n text?: TextFrameConstraints;\n};\n\n/**\n * Image-specific constraints delta update.\n */\nexport interface ImageFrameConstraintsDeltaUpdate {\n cropAllowed?: {\n value: boolean;\n };\n}\n\n/**\n * Text-specific constraints delta update.\n */\nexport interface TextFrameConstraintsDeltaUpdate {\n editingAllowed?: {\n value: boolean;\n };\n paragraphStyles?: {\n value: IdSetManagedConstraint;\n };\n characterStyles?: {\n value: IdSetManagedConstraint;\n };\n colors?: {\n value: IdSetManagedConstraint;\n };\n fontSizes?: {\n value: FontSizeRangeManagedConstraint;\n };\n}\n\n/**\n * Frame constraints delta update with optional frame-type-specific sub-properties.\n */\nexport interface FrameConstraintsDeltaUpdate {\n selectionAllowed?: {\n value: boolean;\n };\n horizontalMovementAllowed?: {\n value: boolean;\n };\n verticalMovementAllowed?: {\n value: boolean;\n };\n rotationAllowed?: {\n value: boolean;\n };\n resizeAllowed?: {\n value: boolean;\n };\n proportionLocked?: {\n value: boolean;\n };\n /** Image-specific constraints update. */\n image?: ImageFrameConstraintsDeltaUpdate;\n /** Text-specific constraints update. */\n text?: TextFrameConstraintsDeltaUpdate;\n}\n\nexport type SmartCropSettings = SmartCropSettingsV1 | SmartCropSettingsV2;\n\nexport type SmartCropSettingsV1 = {\n version: SmartCropVersion.v1;\n};\n\nexport type SmartCropSettingsV2 = {\n version: SmartCropVersion.v2;\n horizontalBias: SmartCropAxisBias;\n verticalBias: SmartCropAxisBias;\n};\n\nexport enum SmartCropVersion {\n v1 = 'v1',\n v2 = 'v2',\n}\n\n/**\n * Latest version of the smart crop algorithm.\n * Keep in sync with @SmartCropVersion enum.\n */\nexport const LATEST_SMART_CROP_VERSION = SmartCropVersion.v2;\n\nexport enum SmartCropAxisBias {\n start = 'start',\n center = 'center',\n end = 'end',\n}\n"],"names":["ComponentFitEnum","AutoGrowDirection","ImageSourceTypeEnum","ComponentSourceTypeEnum","FrameTypeEnum","BarcodeSourceTypeEnum","TextDirection","FlowDirection","VerticalAlign","BlendMode","FitMode","FitModePosition","UpdateZIndexMethod","FrameAnchorType","AnchorTargetType","AnchorTargetEdgeType","CropType","SmartCropVersion","SmartCropAxisBias"],"mappings":";;AAmOO,IAAK,qCAAAA,sBAAL;AAIHA,oBAAA,QAAA,IAAS;AAKTA,oBAAA,OAAA,IAAQ;AAMRA,oBAAA,gBAAA,IAAiB;AAfT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAuFL,IAAK,sCAAAC,uBAAL;AACHA,qBAAA,KAAA,IAAM;AACNA,qBAAA,QAAA,IAAS;AACTA,qBAAA,MAAA,IAAO;AACPA,qBAAA,OAAA,IAAQ;AAJA,SAAAA;AAAA,GAAA,qBAAA,CAAA,CAAA;AAOL,IAAK,wCAAAC,yBAAL;AACHA,uBAAA,KAAA,IAAM;AACNA,uBAAA,UAAA,IAAW;AACXA,uBAAA,WAAA,IAAY;AACZA,uBAAA,eAAA,IAAgB;AAJR,SAAAA;AAAA,GAAA,uBAAA,CAAA,CAAA;AAOL,IAAK,4CAAAC,6BAAL;AACHA,2BAAA,WAAA,IAAY;AADJ,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;AAIL,IAAK,kCAAAC,mBAAL;AACHA,iBAAA,MAAA,IAAO;AACPA,iBAAA,OAAA,IAAQ;AACRA,iBAAA,OAAA,IAAQ;AACRA,iBAAA,SAAA,IAAU;AACVA,iBAAA,WAAA,IAAY;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,WAAA,IAAY;AACZA,YAAA,WAAA,IAAY;AAFJ,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AA0IL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,IAAA,IAAK;AACLA,oBAAA,IAAA,IAAK;AAFG,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AASL,MAAM,4BAA4B;AAElC,IAAK,sCAAAC,uBAAL;AACHA,qBAAA,OAAA,IAAQ;AACRA,qBAAA,QAAA,IAAS;AACTA,qBAAA,KAAA,IAAM;AAHE,SAAAA;AAAA,GAAA,qBAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"FrameTypes.cjs.js","sources":["../../../src/types/FrameTypes.ts"],"sourcesContent":["// FramePropertiesDto\nimport { BarcodeCharacterSet, BarcodeErrorCorrectionLevel, BarcodeType, QuietZone } from './BarcodeTypes';\nimport { ColorUsage } from './ColorStyleTypes';\nimport { HasOverrideState, Id, PropertyState } from './CommonTypes';\nimport { GradientUsage } from './GradientStyleTypes';\nimport { ComponentGridSettings } from '../types/ComponentGridTypes';\nimport {\n CornerRadiusAll,\n CornerRadiusNone,\n CornerRadiusOnly,\n ShapeFrameSource,\n ShapeType,\n ShapeContainerProperties,\n} from './ShapeTypes';\n\nexport type FrameLayoutType = {\n id: Id;\n layoutId: Id;\n horizontal: FrameAnchor;\n vertical: FrameAnchor;\n x: PropertyState<number>;\n y: PropertyState<number>;\n width: PropertyState<number>;\n height: PropertyState<number>;\n rotationDegrees: PropertyState<number>;\n scaleX: PropertyState<number>;\n scaleY: PropertyState<number>;\n isVisible: PropertyState<boolean>;\n fitMode: PropertyState<FitMode>;\n fitModePosition: PropertyState<FitModePosition>;\n smartCropSettings: PropertyState<SmartCropSettings>;\n hasImageCrop: PropertyState<boolean>;\n hasFrameSubjectArea: PropertyState<boolean>;\n minCopyfitting: PropertyState<number>;\n maxCopyfitting: PropertyState<number>;\n enableCopyfitting: PropertyState<boolean>;\n autoGrow: AutoGrowSettings;\n isShowingCustomCroppedAsset: boolean;\n customCroppedAssetCount: number;\n subjectId: PropertyState<Id | null>;\n componentGridSettings: PropertyState<ComponentGridSettings>;\n componentFit: PropertyState<ComponentFitEnum>;\n} | null;\n\n//Frame.image\nexport type FrameType = {\n id: Id;\n name: string;\n type: FrameTypeEnum;\n // `imageUrl` is not generic: should be removed from model\n imageUrl: string;\n blendMode: string;\n opacity: number;\n};\n\nexport type Frame = TextFrame | ImageFrame | ShapeFrame | BarcodeFrame | ComponentFrame | ComponentGridFrame;\n\nexport type ImageFrameVariableSource = {\n type: ImageSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type ImageFrameUrlSource = {\n type: ImageSourceTypeEnum.url;\n url: string;\n};\n\nexport type ImageFrameConnectorSource = {\n type: ImageSourceTypeEnum.connector;\n assetId: Id;\n id: Id;\n};\n\nexport type ImageFrameBrandkitMediaSource = {\n type: ImageSourceTypeEnum.brandKitMedia;\n name: string;\n};\n\nexport type ImageFrameSource =\n ImageFrameConnectorSource | ImageFrameVariableSource | ImageFrameUrlSource | ImageFrameBrandkitMediaSource;\n\n// used by new getter methods\nexport type ImageFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.image;\n src?: ImageFrameSource;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n container: {\n source: ShapeFrameSource;\n properties: ShapeContainerProperties;\n };\n};\n\nexport type ShapeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.shape;\n blendMode: BlendMode;\n shapeProperties: {\n enableFill: boolean;\n fillColor: ColorUsage;\n enableStroke: boolean;\n strokeWeight: number;\n strokeColor: ColorUsage;\n allCornersSame: boolean;\n fillOverprint: boolean;\n strokeOverprint: boolean;\n };\n src: {\n type: ShapeType;\n cornerRadius: CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n sides?: number;\n };\n dropShadowSettings?: DropShadowSettings;\n gradient?: GradientUsage;\n};\n\nexport type TextFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.text;\n textContent: string;\n paddingLeft: number;\n paddingTop: number;\n paddingRight: number;\n paddingBottom: number;\n numberOfColumns: number;\n columnGap: number;\n textDirection: TextDirection;\n flowDirection: FlowDirection;\n verticalAlign: VerticalAlign;\n textStroke: boolean;\n textStrokeWeight: number;\n textStrokeColor: number;\n hasClippingPath: boolean;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n hasVariable?: boolean;\n};\n\nexport type BarcodeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.barcode;\n blendMode: BlendMode;\n barcodeProperties: {\n enableBars: boolean;\n enableBackground: boolean;\n backgroundColor: ColorUsage;\n enableBarColor: boolean;\n barColor: ColorUsage;\n enableText: boolean;\n barHeight: number;\n magnification: number;\n quietZone: QuietZone;\n errorCorrectionLevel?: BarcodeErrorCorrectionLevel;\n characterSet?: BarcodeCharacterSet;\n drawStartStopChars: boolean;\n barcodeOverprint: boolean;\n backgroundOverprint: boolean;\n };\n src?: BarcodeSource;\n barcodeType: BarcodeType;\n dropShadowSettings?: DropShadowSettings;\n};\n\nexport type BarcodeSource = BarcodeVariableSource | BarcodeTextSource;\n\nexport type BarcodeVariableSource = {\n type: BarcodeSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type BarcodeTextSource = {\n type: BarcodeSourceTypeEnum.text;\n text: string;\n};\n\nexport type ComponentFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.component;\n blendMode: BlendMode;\n src: ComponentSource;\n variableMappings: VariableMapping[];\n\n /**\n * @deprecated Use `componentFit` on frame properties instead. This property is deprecated and will be removed in a future version.\n * How the component fits within the frame.\n */\n fitMode: ComponentFitEnum;\n};\n\nexport type ComponentGridFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.componentGrid;\n blendMode: BlendMode;\n dataSourceVariableId?: Id | null;\n src?: ComponentSource | null;\n variableMappings: GridVariableMapping;\n};\n\nexport type GridVariableMapping = {\n mappings: Record<string, VariableMapping[] | null>;\n};\n\nexport type ComponentSource = ConnectorComponentSource;\n\nexport type ConnectorComponentSource = {\n type: ComponentSourceTypeEnum.connector;\n id: Id;\n assetId: Id | null;\n};\n\nexport type VariableMapping = {\n source: Id;\n target: Id;\n sourceField?: string;\n};\n\nexport enum ComponentFitEnum {\n /**\n * The component resizes to fit the frame size.\n */\n resize = 'resize',\n\n /**\n * The component scales to fit the frame size while maintaining its aspect ratio.\n */\n scale = 'scale',\n\n /**\n * The component first scales to fit the frame size while maintaining its aspect ratio,\n * then resizes to fill the remaining space.\n */\n scaleAndResize = 'scaleAndResize',\n}\n\nexport type CropSettings = {\n left: number;\n top: number;\n width: number;\n height: number;\n rotationDegrees: number;\n type: 'default';\n};\n\nexport type NoCropSettings = {\n type: 'noCrop';\n};\n\nexport type AutoGrowSettings = {\n enabled: PropertyState<boolean>;\n minWidth: PropertyState<number>;\n maxWidth: PropertyState<number>;\n minHeight: PropertyState<number>;\n maxHeight: PropertyState<number>;\n directions: PropertyState<Array<AutoGrowDirection>>;\n};\n\nexport interface AutoGrowDeltaUpdate {\n enabled?: {\n value: boolean;\n };\n minWidth?: {\n value: string | null;\n };\n maxWidth?: {\n value: string | null;\n };\n minHeight?: {\n value: string | null;\n };\n maxHeight?: {\n value: string | null;\n };\n directions?: {\n value: Array<AutoGrowDirection>;\n };\n}\n\nexport type DropShadowSettings = {\n enabled: boolean;\n distance: number;\n angleDegrees: number;\n blurRadius: number;\n color: ColorUsage;\n};\n\nexport interface ShadowSettingsDeltaUpdate {\n distance?: {\n value: string;\n };\n angleDegrees?: {\n value: number;\n };\n blurRadius?: {\n value: number;\n };\n enabled?: {\n value: boolean;\n };\n color?: {\n value: ColorUsage;\n };\n}\n\nexport enum AutoGrowDirection {\n top = 'top',\n bottom = 'bottom',\n left = 'left',\n right = 'right',\n}\n\nexport enum ImageSourceTypeEnum {\n url = 'url',\n variable = 'variable',\n connector = 'connector',\n brandKitMedia = 'brandKitMedia',\n}\n\nexport enum ComponentSourceTypeEnum {\n connector = 'connector',\n}\n\nexport enum FrameTypeEnum {\n text = 'text',\n image = 'image',\n shape = 'shape',\n barcode = 'barcode',\n component = 'component',\n componentGrid = 'componentGrid',\n}\n\nexport enum BarcodeSourceTypeEnum {\n variable = 'variable',\n text = 'text',\n}\n\nexport enum TextDirection {\n leftToRight = 'leftToRight',\n rightToLeft = 'rightToLeft',\n weak = 'weak',\n}\n\nexport enum FlowDirection {\n horizontal = 'horizontal',\n vertical = 'vertical',\n onPath = 'onPath',\n}\n\nexport enum VerticalAlign {\n top = 'top',\n bottom = 'bottom',\n middle = 'middle',\n justify = 'justify',\n}\n\nexport enum BlendMode {\n normal = 'normal',\n screen = 'screen',\n overlay = 'overlay',\n darken = 'darken',\n lighten = 'lighten',\n colorDodge = 'colorDodge',\n colorBurn = 'colorBurn',\n hardLight = 'hardLight',\n softLight = 'softLight',\n difference = 'difference',\n exclusion = 'exclusion',\n multiply = 'multiply',\n hue = 'hue',\n saturation = 'saturation',\n color = 'color',\n luminosity = 'luminosity',\n}\n\nexport enum FitMode {\n fill = 'fill',\n fit = 'fit',\n smartCrop = 'smartCrop',\n manualCrop = 'manualCrop',\n}\n\nexport enum FitModePosition {\n topLeft = 'topLeft',\n topCenter = 'topCenter',\n topRight = 'topRight',\n centerLeft = 'centerLeft',\n center = 'center',\n centerRight = 'centerRight',\n bottomLeft = 'bottomLeft',\n bottomCenter = 'bottomCenter',\n bottomRight = 'bottomRight',\n}\n\nexport enum UpdateZIndexMethod {\n bringToFront = 'bringToFront',\n sendToBack = 'sendToBack',\n bringForward = 'bringForward',\n sendBackward = 'sendBackward',\n}\n\nexport enum FrameAnchorType {\n relative = 'relative',\n start = 'start',\n end = 'end',\n startAndEnd = 'startAndEnd',\n center = 'center',\n}\n\nexport enum AnchorTargetType {\n page = 'page',\n frame = 'frame',\n}\n\nexport enum AnchorTargetEdgeType {\n start = 'start',\n end = 'end',\n center = 'center',\n}\n\nexport class PageAnchorTarget {\n type = AnchorTargetType.page;\n}\n\nexport class FrameAnchorTarget {\n frameId: Id;\n edge: AnchorTargetEdgeType;\n type = AnchorTargetType.frame;\n\n constructor(id: Id, edge: AnchorTargetEdgeType) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n ((this.frameId = id), (this.edge = edge));\n }\n}\n\nexport type AnchorTarget = PageAnchorTarget | FrameAnchorTarget;\n\nexport type RelativeFrameAnchor = {\n start: PropertyState<number>;\n end: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.relative;\n} & HasOverrideState;\n\nexport type StartFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.start;\n} & HasOverrideState;\n\nexport type EndFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.end;\n} & HasOverrideState;\n\nexport type StartAndEndFrameAnchor = {\n start: PropertyState<number>;\n startTarget: AnchorTarget;\n end: PropertyState<number>;\n endTarget: AnchorTarget;\n type: FrameAnchorType.startAndEnd;\n} & HasOverrideState;\n\nexport type CenterFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.center;\n} & HasOverrideState;\n\nexport type FrameAnchor =\n RelativeFrameAnchor | StartFrameAnchor | EndFrameAnchor | StartAndEndFrameAnchor | CenterFrameAnchor;\n\nexport type FrameAnchorProperties = {\n horizontal: boolean;\n type: FrameAnchorType;\n target: AnchorTarget;\n endTarget?: AnchorTarget | null;\n};\n\nexport type AnchorConfiguration = {\n allowedTypes: Set<FrameAnchorType>;\n allowedFrameIds: Set<Id>;\n};\n\nexport type FrameConfiguration = {\n horizontal: AnchorConfiguration;\n vertical: AnchorConfiguration;\n};\n\nexport enum CropType {\n frameCrop = 'frameCrop',\n assetCrop = 'assetCrop',\n}\n\n/**\n * Image-specific editing constraints.\n */\nexport type ImageFrameConstraints = {\n cropAllowed: PropertyState<boolean>;\n};\n\n/**\n * Text-specific editing constraints.\n */\nexport type TextFrameConstraints = {\n editingAllowed: PropertyState<boolean>;\n paragraphStyles: PropertyState<IdSetManagedConstraint>;\n characterStyles: PropertyState<IdSetManagedConstraint>;\n colors: PropertyState<IdSetManagedConstraint>;\n fontSizes: PropertyState<FontSizeRangeManagedConstraint>;\n};\n\nexport interface ManagedConstraint {\n allowed: boolean;\n}\n\n/**\n * A managed constraint represented by a set of allowed Id identifiers.\n *\n * Example: used to allow only a specific set of paragraph or character styles.\n * - `allowed`: If true, only the provided `ids` may be used.\n * - `ids`: The set of allowed Id values.\n */\nexport interface IdSetManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n ids: Id[];\n}\n\n/**\n * A managed constraint that restricts allowed font sizes to a continuous range.\n *\n * - `allowed`: If true, restricts allowed font sizes to [min, max] (inclusive).\n * - `min`: The minimum allowed font size (nullable).\n * - `max`: The maximum allowed font size (nullable).\n */\nexport interface FontSizeRangeManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n min: number | null;\n max: number | null;\n}\n\n/**\n * Frame editing constraints with optional frame-type-specific sub-properties.\n */\nexport type FrameConstraints = {\n selectionAllowed: PropertyState<boolean>;\n horizontalMovementAllowed: PropertyState<boolean>;\n verticalMovementAllowed: PropertyState<boolean>;\n rotationAllowed: PropertyState<boolean>;\n resizeAllowed: PropertyState<boolean>;\n proportionLocked: PropertyState<boolean>;\n /** Image-specific constraints. */\n image?: ImageFrameConstraints;\n /** Text-specific constraints. */\n text?: TextFrameConstraints;\n};\n\n/**\n * Image-specific constraints delta update.\n */\nexport interface ImageFrameConstraintsDeltaUpdate {\n cropAllowed?: {\n value: boolean;\n };\n}\n\n/**\n * Text-specific constraints delta update.\n */\nexport interface TextFrameConstraintsDeltaUpdate {\n editingAllowed?: {\n value: boolean;\n };\n paragraphStyles?: {\n value: IdSetManagedConstraint;\n };\n characterStyles?: {\n value: IdSetManagedConstraint;\n };\n colors?: {\n value: IdSetManagedConstraint;\n };\n fontSizes?: {\n value: FontSizeRangeManagedConstraint;\n };\n}\n\n/**\n * Frame constraints delta update with optional frame-type-specific sub-properties.\n */\nexport interface FrameConstraintsDeltaUpdate {\n selectionAllowed?: {\n value: boolean;\n };\n horizontalMovementAllowed?: {\n value: boolean;\n };\n verticalMovementAllowed?: {\n value: boolean;\n };\n rotationAllowed?: {\n value: boolean;\n };\n resizeAllowed?: {\n value: boolean;\n };\n proportionLocked?: {\n value: boolean;\n };\n /** Image-specific constraints update. */\n image?: ImageFrameConstraintsDeltaUpdate;\n /** Text-specific constraints update. */\n text?: TextFrameConstraintsDeltaUpdate;\n}\n\nexport type SmartCropSettings = SmartCropSettingsV1 | SmartCropSettingsV2;\n\nexport type SmartCropSettingsV1 = {\n version: SmartCropVersion.v1;\n};\n\nexport type SmartCropSettingsV2 = {\n version: SmartCropVersion.v2;\n horizontalBias: SmartCropAxisBias;\n verticalBias: SmartCropAxisBias;\n};\n\nexport enum SmartCropVersion {\n v1 = 'v1',\n v2 = 'v2',\n}\n\n/**\n * Latest version of the smart crop algorithm.\n * Keep in sync with @SmartCropVersion enum.\n */\nexport const LATEST_SMART_CROP_VERSION = SmartCropVersion.v2;\n\nexport enum SmartCropAxisBias {\n start = 'start',\n center = 'center',\n end = 'end',\n}\n"],"names":["ComponentFitEnum","AutoGrowDirection","ImageSourceTypeEnum","ComponentSourceTypeEnum","FrameTypeEnum","BarcodeSourceTypeEnum","TextDirection","FlowDirection","VerticalAlign","BlendMode","FitMode","FitModePosition","UpdateZIndexMethod","FrameAnchorType","AnchorTargetType","AnchorTargetEdgeType","CropType","SmartCropVersion","SmartCropAxisBias"],"mappings":";;AAqOO,IAAK,qCAAAA,sBAAL;AAIHA,oBAAA,QAAA,IAAS;AAKTA,oBAAA,OAAA,IAAQ;AAMRA,oBAAA,gBAAA,IAAiB;AAfT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAuFL,IAAK,sCAAAC,uBAAL;AACHA,qBAAA,KAAA,IAAM;AACNA,qBAAA,QAAA,IAAS;AACTA,qBAAA,MAA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L,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,MAAA,IAAO;AACPA,oBAAA,OAAA,IAAQ;AAFA,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAKL,IAAK,yCAAAC,0BAAL;AACHA,wBAAA,OAAA,IAAQ;AACRA,wBAAA,KAAA,IAAM;AACNA,wBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,wBAAA,CAAA,CAAA;AAML,MAAM,iBAAiB;AAAA,EAAvB,cAAA;AACH,SAAA,OAAO;AAAA,EAAA;AACX;AAEO,MAAM,kBAAkB;AAAA,EAK3B,YAAY,IAAQ,MAA4B;AAFhD,SAAA,OAAO;AAID,SAAK,UAAU,IAAM,KAAK,OAAO;AAAA,EACvC;AACJ;AAyDO,IAAK,6BAAAC,cAAL;AACHA,YAAA,WAAA,IAAY;AACZA,YAAA,WAAA,IAAY;AAFJ,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AA0IL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,IAAA,IAAK;AACLA,oBAAA,IAAA,IAAK;AAFG,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AASL,MAAM,4BAA4B;AAElC,IAAK,sCAAAC,uBAAL;AACHA,qBAAA,OAAA,IAAQ;AACRA,qBAAA,QAAA,IAAS;AACTA,qBAAA,KAAA,IAAM;AAHE,SAAAA;AAAA,GAAA,qBAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -85,6 +85,8 @@ export type ShapeFrame = {
85
85
  strokeWeight: number;
86
86
  strokeColor: ColorUsage;
87
87
  allCornersSame: boolean;
88
+ fillOverprint: boolean;
89
+ strokeOverprint: boolean;
88
90
  };
89
91
  src: {
90
92
  type: ShapeType;
@@ -124,6 +126,7 @@ export type BarcodeFrame = {
124
126
  type: FrameTypeEnum.barcode;
125
127
  blendMode: BlendMode;
126
128
  barcodeProperties: {
129
+ enableBars: boolean;
127
130
  enableBackground: boolean;
128
131
  backgroundColor: ColorUsage;
129
132
  enableBarColor: boolean;
@@ -135,6 +138,8 @@ export type BarcodeFrame = {
135
138
  errorCorrectionLevel?: BarcodeErrorCorrectionLevel;
136
139
  characterSet?: BarcodeCharacterSet;
137
140
  drawStartStopChars: boolean;
141
+ barcodeOverprint: boolean;
142
+ backgroundOverprint: boolean;
138
143
  };
139
144
  src?: BarcodeSource;
140
145
  barcodeType: BarcodeType;
@@ -1 +1 @@
1
- {"version":3,"file":"FrameTypes.es.js","sources":["../../../src/types/FrameTypes.ts"],"sourcesContent":["// FramePropertiesDto\nimport { BarcodeCharacterSet, BarcodeErrorCorrectionLevel, BarcodeType, QuietZone } from './BarcodeTypes';\nimport { ColorUsage } from './ColorStyleTypes';\nimport { HasOverrideState, Id, PropertyState } from './CommonTypes';\nimport { GradientUsage } from './GradientStyleTypes';\nimport { ComponentGridSettings } from '../types/ComponentGridTypes';\nimport {\n CornerRadiusAll,\n CornerRadiusNone,\n CornerRadiusOnly,\n ShapeFrameSource,\n ShapeType,\n ShapeContainerProperties,\n} from './ShapeTypes';\n\nexport type FrameLayoutType = {\n id: Id;\n layoutId: Id;\n horizontal: FrameAnchor;\n vertical: FrameAnchor;\n x: PropertyState<number>;\n y: PropertyState<number>;\n width: PropertyState<number>;\n height: PropertyState<number>;\n rotationDegrees: PropertyState<number>;\n scaleX: PropertyState<number>;\n scaleY: PropertyState<number>;\n isVisible: PropertyState<boolean>;\n fitMode: PropertyState<FitMode>;\n fitModePosition: PropertyState<FitModePosition>;\n smartCropSettings: PropertyState<SmartCropSettings>;\n hasImageCrop: PropertyState<boolean>;\n hasFrameSubjectArea: PropertyState<boolean>;\n minCopyfitting: PropertyState<number>;\n maxCopyfitting: PropertyState<number>;\n enableCopyfitting: PropertyState<boolean>;\n autoGrow: AutoGrowSettings;\n isShowingCustomCroppedAsset: boolean;\n customCroppedAssetCount: number;\n subjectId: PropertyState<Id | null>;\n componentGridSettings: PropertyState<ComponentGridSettings>;\n componentFit: PropertyState<ComponentFitEnum>;\n} | null;\n\n//Frame.image\nexport type FrameType = {\n id: Id;\n name: string;\n type: FrameTypeEnum;\n // `imageUrl` is not generic: should be removed from model\n imageUrl: string;\n blendMode: string;\n opacity: number;\n};\n\nexport type Frame = TextFrame | ImageFrame | ShapeFrame | BarcodeFrame | ComponentFrame | ComponentGridFrame;\n\nexport type ImageFrameVariableSource = {\n type: ImageSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type ImageFrameUrlSource = {\n type: ImageSourceTypeEnum.url;\n url: string;\n};\n\nexport type ImageFrameConnectorSource = {\n type: ImageSourceTypeEnum.connector;\n assetId: Id;\n id: Id;\n};\n\nexport type ImageFrameBrandkitMediaSource = {\n type: ImageSourceTypeEnum.brandKitMedia;\n name: string;\n};\n\nexport type ImageFrameSource =\n | ImageFrameConnectorSource\n | ImageFrameVariableSource\n | ImageFrameUrlSource\n | ImageFrameBrandkitMediaSource;\n\n// used by new getter methods\nexport type ImageFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.image;\n src?: ImageFrameSource;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n container: {\n source: ShapeFrameSource;\n properties: ShapeContainerProperties;\n };\n};\n\nexport type ShapeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.shape;\n blendMode: BlendMode;\n shapeProperties: {\n enableFill: boolean;\n fillColor: ColorUsage;\n enableStroke: boolean;\n strokeWeight: number;\n strokeColor: ColorUsage;\n allCornersSame: boolean;\n };\n src: {\n type: ShapeType;\n cornerRadius: CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n sides?: number;\n };\n dropShadowSettings?: DropShadowSettings;\n gradient?: GradientUsage;\n};\n\nexport type TextFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.text;\n textContent: string;\n paddingLeft: number;\n paddingTop: number;\n paddingRight: number;\n paddingBottom: number;\n numberOfColumns: number;\n columnGap: number;\n textDirection: TextDirection;\n flowDirection: FlowDirection;\n verticalAlign: VerticalAlign;\n textStroke: boolean;\n textStrokeWeight: number;\n textStrokeColor: number;\n hasClippingPath: boolean;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n hasVariable?: boolean;\n};\n\nexport type BarcodeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.barcode;\n blendMode: BlendMode;\n barcodeProperties: {\n enableBackground: boolean;\n backgroundColor: ColorUsage;\n enableBarColor: boolean;\n barColor: ColorUsage;\n enableText: boolean;\n barHeight: number;\n magnification: number;\n quietZone: QuietZone;\n errorCorrectionLevel?: BarcodeErrorCorrectionLevel;\n characterSet?: BarcodeCharacterSet;\n drawStartStopChars: boolean;\n };\n src?: BarcodeSource;\n barcodeType: BarcodeType;\n dropShadowSettings?: DropShadowSettings;\n};\n\nexport type BarcodeSource = BarcodeVariableSource | BarcodeTextSource;\n\nexport type BarcodeVariableSource = {\n type: BarcodeSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type BarcodeTextSource = {\n type: BarcodeSourceTypeEnum.text;\n text: string;\n};\n\nexport type ComponentFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.component;\n blendMode: BlendMode;\n src: ComponentSource;\n variableMappings: VariableMapping[];\n\n /**\n * @deprecated Use `componentFit` on frame properties instead. This property is deprecated and will be removed in a future version.\n * How the component fits within the frame.\n */\n fitMode: ComponentFitEnum;\n};\n\nexport type ComponentGridFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.componentGrid;\n blendMode: BlendMode;\n dataSourceVariableId?: Id | null;\n src?: ComponentSource | null;\n variableMappings: GridVariableMapping;\n};\n\nexport type GridVariableMapping = {\n mappings: Record<string, VariableMapping[] | null>;\n};\n\nexport type ComponentSource = ConnectorComponentSource;\n\nexport type ConnectorComponentSource = {\n type: ComponentSourceTypeEnum.connector;\n id: Id;\n assetId: Id | null;\n};\n\nexport type VariableMapping = {\n source: Id;\n target: Id;\n sourceField?: string;\n};\n\nexport enum ComponentFitEnum {\n /**\n * The component resizes to fit the frame size.\n */\n resize = 'resize',\n\n /**\n * The component scales to fit the frame size while maintaining its aspect ratio.\n */\n scale = 'scale',\n\n /**\n * The component first scales to fit the frame size while maintaining its aspect ratio,\n * then resizes to fill the remaining space.\n */\n scaleAndResize = 'scaleAndResize',\n}\n\nexport type CropSettings = {\n left: number;\n top: number;\n width: number;\n height: number;\n rotationDegrees: number;\n type: 'default';\n};\n\nexport type NoCropSettings = {\n type: 'noCrop';\n};\n\nexport type AutoGrowSettings = {\n enabled: PropertyState<boolean>;\n minWidth: PropertyState<number>;\n maxWidth: PropertyState<number>;\n minHeight: PropertyState<number>;\n maxHeight: PropertyState<number>;\n directions: PropertyState<Array<AutoGrowDirection>>;\n};\n\nexport interface AutoGrowDeltaUpdate {\n enabled?: {\n value: boolean;\n };\n minWidth?: {\n value: string | null;\n };\n maxWidth?: {\n value: string | null;\n };\n minHeight?: {\n value: string | null;\n };\n maxHeight?: {\n value: string | null;\n };\n directions?: {\n value: Array<AutoGrowDirection>;\n };\n}\n\nexport type DropShadowSettings = {\n enabled: boolean;\n distance: number;\n angleDegrees: number;\n blurRadius: number;\n color: ColorUsage;\n};\n\nexport interface ShadowSettingsDeltaUpdate {\n distance?: {\n value: string;\n };\n angleDegrees?: {\n value: number;\n };\n blurRadius?: {\n value: number;\n };\n enabled?: {\n value: boolean;\n };\n color?: {\n value: ColorUsage;\n };\n}\n\nexport enum AutoGrowDirection {\n top = 'top',\n bottom = 'bottom',\n left = 'left',\n right = 'right',\n}\n\nexport enum ImageSourceTypeEnum {\n url = 'url',\n variable = 'variable',\n connector = 'connector',\n brandKitMedia = 'brandKitMedia',\n}\n\nexport enum ComponentSourceTypeEnum {\n connector = 'connector',\n}\n\nexport enum FrameTypeEnum {\n text = 'text',\n image = 'image',\n shape = 'shape',\n barcode = 'barcode',\n component = 'component',\n componentGrid = 'componentGrid',\n}\n\nexport enum BarcodeSourceTypeEnum {\n variable = 'variable',\n text = 'text',\n}\n\nexport enum TextDirection {\n leftToRight = 'leftToRight',\n rightToLeft = 'rightToLeft',\n weak = 'weak',\n}\n\nexport enum FlowDirection {\n horizontal = 'horizontal',\n vertical = 'vertical',\n onPath = 'onPath',\n}\n\nexport enum VerticalAlign {\n top = 'top',\n bottom = 'bottom',\n middle = 'middle',\n justify = 'justify',\n}\n\nexport enum BlendMode {\n normal = 'normal',\n screen = 'screen',\n overlay = 'overlay',\n darken = 'darken',\n lighten = 'lighten',\n colorDodge = 'colorDodge',\n colorBurn = 'colorBurn',\n hardLight = 'hardLight',\n softLight = 'softLight',\n difference = 'difference',\n exclusion = 'exclusion',\n multiply = 'multiply',\n hue = 'hue',\n saturation = 'saturation',\n color = 'color',\n luminosity = 'luminosity',\n}\n\nexport enum FitMode {\n fill = 'fill',\n fit = 'fit',\n smartCrop = 'smartCrop',\n manualCrop = 'manualCrop',\n}\n\nexport enum FitModePosition {\n topLeft = 'topLeft',\n topCenter = 'topCenter',\n topRight = 'topRight',\n centerLeft = 'centerLeft',\n center = 'center',\n centerRight = 'centerRight',\n bottomLeft = 'bottomLeft',\n bottomCenter = 'bottomCenter',\n bottomRight = 'bottomRight',\n}\n\nexport enum UpdateZIndexMethod {\n bringToFront = 'bringToFront',\n sendToBack = 'sendToBack',\n bringForward = 'bringForward',\n sendBackward = 'sendBackward',\n}\n\nexport enum FrameAnchorType {\n relative = 'relative',\n start = 'start',\n end = 'end',\n startAndEnd = 'startAndEnd',\n center = 'center',\n}\n\nexport enum AnchorTargetType {\n page = 'page',\n frame = 'frame',\n}\n\nexport enum AnchorTargetEdgeType {\n start = 'start',\n end = 'end',\n center = 'center',\n}\n\nexport class PageAnchorTarget {\n type = AnchorTargetType.page;\n}\n\nexport class FrameAnchorTarget {\n frameId: Id;\n edge: AnchorTargetEdgeType;\n type = AnchorTargetType.frame;\n\n constructor(id: Id, edge: AnchorTargetEdgeType) {\n (this.frameId = id), (this.edge = edge);\n }\n}\n\nexport type AnchorTarget = PageAnchorTarget | FrameAnchorTarget;\n\nexport type RelativeFrameAnchor = {\n start: PropertyState<number>;\n end: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.relative;\n} & HasOverrideState;\n\nexport type StartFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.start;\n} & HasOverrideState;\n\nexport type EndFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.end;\n} & HasOverrideState;\n\nexport type StartAndEndFrameAnchor = {\n start: PropertyState<number>;\n startTarget: AnchorTarget;\n end: PropertyState<number>;\n endTarget: AnchorTarget;\n type: FrameAnchorType.startAndEnd;\n} & HasOverrideState;\n\nexport type CenterFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.center;\n} & HasOverrideState;\n\nexport type FrameAnchor =\n | RelativeFrameAnchor\n | StartFrameAnchor\n | EndFrameAnchor\n | StartAndEndFrameAnchor\n | CenterFrameAnchor;\n\nexport type FrameAnchorProperties = {\n horizontal: boolean;\n type: FrameAnchorType;\n target: AnchorTarget;\n endTarget?: AnchorTarget | null;\n};\n\nexport type AnchorConfiguration = {\n allowedTypes: Set<FrameAnchorType>;\n allowedFrameIds: Set<Id>;\n};\n\nexport type FrameConfiguration = {\n horizontal: AnchorConfiguration;\n vertical: AnchorConfiguration;\n};\n\nexport enum CropType {\n frameCrop = 'frameCrop',\n assetCrop = 'assetCrop',\n}\n\n/**\n * Image-specific editing constraints.\n */\nexport type ImageFrameConstraints = {\n cropAllowed: PropertyState<boolean>;\n};\n\n/**\n * Text-specific editing constraints.\n */\nexport type TextFrameConstraints = {\n editingAllowed: PropertyState<boolean>;\n paragraphStyles: PropertyState<IdSetManagedConstraint>;\n characterStyles: PropertyState<IdSetManagedConstraint>;\n colors: PropertyState<IdSetManagedConstraint>;\n fontSizes: PropertyState<FontSizeRangeManagedConstraint>;\n};\n\nexport interface ManagedConstraint {\n allowed: boolean;\n}\n\n/**\n * A managed constraint represented by a set of allowed Id identifiers.\n *\n * Example: used to allow only a specific set of paragraph or character styles.\n * - `allowed`: If true, only the provided `ids` may be used.\n * - `ids`: The set of allowed Id values.\n */\nexport interface IdSetManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n ids: Id[];\n}\n\n/**\n * A managed constraint that restricts allowed font sizes to a continuous range.\n *\n * - `allowed`: If true, restricts allowed font sizes to [min, max] (inclusive).\n * - `min`: The minimum allowed font size (nullable).\n * - `max`: The maximum allowed font size (nullable).\n */\nexport interface FontSizeRangeManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n min: number | null;\n max: number | null;\n}\n\n/**\n * Frame editing constraints with optional frame-type-specific sub-properties.\n */\nexport type FrameConstraints = {\n selectionAllowed: PropertyState<boolean>;\n horizontalMovementAllowed: PropertyState<boolean>;\n verticalMovementAllowed: PropertyState<boolean>;\n rotationAllowed: PropertyState<boolean>;\n resizeAllowed: PropertyState<boolean>;\n proportionLocked: PropertyState<boolean>;\n /** Image-specific constraints. */\n image?: ImageFrameConstraints;\n /** Text-specific constraints. */\n text?: TextFrameConstraints;\n};\n\n/**\n * Image-specific constraints delta update.\n */\nexport interface ImageFrameConstraintsDeltaUpdate {\n cropAllowed?: {\n value: boolean;\n };\n}\n\n/**\n * Text-specific constraints delta update.\n */\nexport interface TextFrameConstraintsDeltaUpdate {\n editingAllowed?: {\n value: boolean;\n };\n paragraphStyles?: {\n value: IdSetManagedConstraint;\n };\n characterStyles?: {\n value: IdSetManagedConstraint;\n };\n colors?: {\n value: IdSetManagedConstraint;\n };\n fontSizes?: {\n value: FontSizeRangeManagedConstraint;\n };\n}\n\n/**\n * Frame constraints delta update with optional frame-type-specific sub-properties.\n */\nexport interface FrameConstraintsDeltaUpdate {\n selectionAllowed?: {\n value: boolean;\n };\n horizontalMovementAllowed?: {\n value: boolean;\n };\n verticalMovementAllowed?: {\n value: boolean;\n };\n rotationAllowed?: {\n value: boolean;\n };\n resizeAllowed?: {\n value: boolean;\n };\n proportionLocked?: {\n value: boolean;\n };\n /** Image-specific constraints update. */\n image?: ImageFrameConstraintsDeltaUpdate;\n /** Text-specific constraints update. */\n text?: TextFrameConstraintsDeltaUpdate;\n}\n\nexport type SmartCropSettings = SmartCropSettingsV1 | SmartCropSettingsV2;\n\nexport type SmartCropSettingsV1 = {\n version: SmartCropVersion.v1;\n};\n\nexport type SmartCropSettingsV2 = {\n version: SmartCropVersion.v2;\n horizontalBias: SmartCropAxisBias;\n verticalBias: SmartCropAxisBias;\n};\n\nexport enum SmartCropVersion {\n v1 = 'v1',\n v2 = 'v2',\n}\n\n/**\n * Latest version of the smart crop algorithm.\n * Keep in sync with @SmartCropVersion enum.\n */\nexport const LATEST_SMART_CROP_VERSION = SmartCropVersion.v2;\n\nexport enum SmartCropAxisBias {\n start = 'start',\n center = 'center',\n end = 'end',\n}\n"],"names":["ComponentFitEnum","AutoGrowDirection","ImageSourceTypeEnum","ComponentSourceTypeEnum","FrameTypeEnum","BarcodeSourceTypeEnum","TextDirection","FlowDirection","VerticalAlign","BlendMode","FitMode","FitModePosition","UpdateZIndexMethod","FrameAnchorType","AnchorTargetType","AnchorTargetEdgeType","CropType","SmartCropVersion","SmartCropAxisBias"],"mappings":"AAmOO,IAAK,qCAAAA,sBAAL;AAIHA,oBAAA,QAAA,IAAS;AAKTA,oBAAA,OAAA,IAAQ;AAMRA,oBAAA,gBAAA,IAAiB;AAfT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAuFL,IAAK,sCAAAC,uBAAL;AACHA,qBAAA,KAAA,IAAM;AACNA,qBAAA,QAAA,IAAS;AACTA,qBAAA,MAAA,IAAO;AACPA,qBAAA,OAAA,IAAQ;AAJA,SAAAA;AAAA,GAAA,qBAAA,CAAA,CAAA;AAOL,IAAK,wCAAAC,yBAAL;AACHA,uBAAA,KAAA,IAAM;AACNA,uBAAA,UAAA,IAAW;AACXA,uBAAA,WAAA,IAAY;AACZA,uBAAA,eAAA,IAAgB;AAJR,SAAAA;AAAA,GAAA,uBAAA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AA,GAAA,wBAAA,CAAA,CAAA;AAML,MAAM,iBAAiB;AAAA,EAAvB,cAAA;AACH,SAAA,OAAO;AAAA,EAAA;AACX;AAEO,MAAM,kBAAkB;AAAA,EAK3B,YAAY,IAAQ,MAA4B;AAFhD,SAAA,OAAO;AAGF,SAAK,UAAU,IAAM,KAAK,OAAO;AAAA,EACtC;AACJ;AA6DO,IAAK,6BAAAC,cAAL;AACHA,YAAA,WAAA,IAAY;AACZA,YAAA,WAAA,IAAY;AAFJ,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AA0IL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,IAAA,IAAK;AACLA,oBAAA,IAAA,IAAK;AAFG,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AASL,MAAM,4BAA4B;AAElC,IAAK,sCAAAC,uBAAL;AACHA,qBAAA,OAAA,IAAQ;AACRA,qBAAA,QAAA,IAAS;AACTA,qBAAA,KAAA,IAAM;AAHE,SAAAA;AAAA,GAAA,qBAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"FrameTypes.es.js","sources":["../../../src/types/FrameTypes.ts"],"sourcesContent":["// FramePropertiesDto\nimport { BarcodeCharacterSet, BarcodeErrorCorrectionLevel, BarcodeType, QuietZone } from './BarcodeTypes';\nimport { ColorUsage } from './ColorStyleTypes';\nimport { HasOverrideState, Id, PropertyState } from './CommonTypes';\nimport { GradientUsage } from './GradientStyleTypes';\nimport { ComponentGridSettings } from '../types/ComponentGridTypes';\nimport {\n CornerRadiusAll,\n CornerRadiusNone,\n CornerRadiusOnly,\n ShapeFrameSource,\n ShapeType,\n ShapeContainerProperties,\n} from './ShapeTypes';\n\nexport type FrameLayoutType = {\n id: Id;\n layoutId: Id;\n horizontal: FrameAnchor;\n vertical: FrameAnchor;\n x: PropertyState<number>;\n y: PropertyState<number>;\n width: PropertyState<number>;\n height: PropertyState<number>;\n rotationDegrees: PropertyState<number>;\n scaleX: PropertyState<number>;\n scaleY: PropertyState<number>;\n isVisible: PropertyState<boolean>;\n fitMode: PropertyState<FitMode>;\n fitModePosition: PropertyState<FitModePosition>;\n smartCropSettings: PropertyState<SmartCropSettings>;\n hasImageCrop: PropertyState<boolean>;\n hasFrameSubjectArea: PropertyState<boolean>;\n minCopyfitting: PropertyState<number>;\n maxCopyfitting: PropertyState<number>;\n enableCopyfitting: PropertyState<boolean>;\n autoGrow: AutoGrowSettings;\n isShowingCustomCroppedAsset: boolean;\n customCroppedAssetCount: number;\n subjectId: PropertyState<Id | null>;\n componentGridSettings: PropertyState<ComponentGridSettings>;\n componentFit: PropertyState<ComponentFitEnum>;\n} | null;\n\n//Frame.image\nexport type FrameType = {\n id: Id;\n name: string;\n type: FrameTypeEnum;\n // `imageUrl` is not generic: should be removed from model\n imageUrl: string;\n blendMode: string;\n opacity: number;\n};\n\nexport type Frame = TextFrame | ImageFrame | ShapeFrame | BarcodeFrame | ComponentFrame | ComponentGridFrame;\n\nexport type ImageFrameVariableSource = {\n type: ImageSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type ImageFrameUrlSource = {\n type: ImageSourceTypeEnum.url;\n url: string;\n};\n\nexport type ImageFrameConnectorSource = {\n type: ImageSourceTypeEnum.connector;\n assetId: Id;\n id: Id;\n};\n\nexport type ImageFrameBrandkitMediaSource = {\n type: ImageSourceTypeEnum.brandKitMedia;\n name: string;\n};\n\nexport type ImageFrameSource =\n ImageFrameConnectorSource | ImageFrameVariableSource | ImageFrameUrlSource | ImageFrameBrandkitMediaSource;\n\n// used by new getter methods\nexport type ImageFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.image;\n src?: ImageFrameSource;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n container: {\n source: ShapeFrameSource;\n properties: ShapeContainerProperties;\n };\n};\n\nexport type ShapeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.shape;\n blendMode: BlendMode;\n shapeProperties: {\n enableFill: boolean;\n fillColor: ColorUsage;\n enableStroke: boolean;\n strokeWeight: number;\n strokeColor: ColorUsage;\n allCornersSame: boolean;\n fillOverprint: boolean;\n strokeOverprint: boolean;\n };\n src: {\n type: ShapeType;\n cornerRadius: CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n sides?: number;\n };\n dropShadowSettings?: DropShadowSettings;\n gradient?: GradientUsage;\n};\n\nexport type TextFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.text;\n textContent: string;\n paddingLeft: number;\n paddingTop: number;\n paddingRight: number;\n paddingBottom: number;\n numberOfColumns: number;\n columnGap: number;\n textDirection: TextDirection;\n flowDirection: FlowDirection;\n verticalAlign: VerticalAlign;\n textStroke: boolean;\n textStrokeWeight: number;\n textStrokeColor: number;\n hasClippingPath: boolean;\n blendMode: BlendMode;\n dropShadowSettings?: DropShadowSettings;\n hasVariable?: boolean;\n};\n\nexport type BarcodeFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.barcode;\n blendMode: BlendMode;\n barcodeProperties: {\n enableBars: boolean;\n enableBackground: boolean;\n backgroundColor: ColorUsage;\n enableBarColor: boolean;\n barColor: ColorUsage;\n enableText: boolean;\n barHeight: number;\n magnification: number;\n quietZone: QuietZone;\n errorCorrectionLevel?: BarcodeErrorCorrectionLevel;\n characterSet?: BarcodeCharacterSet;\n drawStartStopChars: boolean;\n barcodeOverprint: boolean;\n backgroundOverprint: boolean;\n };\n src?: BarcodeSource;\n barcodeType: BarcodeType;\n dropShadowSettings?: DropShadowSettings;\n};\n\nexport type BarcodeSource = BarcodeVariableSource | BarcodeTextSource;\n\nexport type BarcodeVariableSource = {\n type: BarcodeSourceTypeEnum.variable;\n id: Id;\n};\n\nexport type BarcodeTextSource = {\n type: BarcodeSourceTypeEnum.text;\n text: string;\n};\n\nexport type ComponentFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.component;\n blendMode: BlendMode;\n src: ComponentSource;\n variableMappings: VariableMapping[];\n\n /**\n * @deprecated Use `componentFit` on frame properties instead. This property is deprecated and will be removed in a future version.\n * How the component fits within the frame.\n */\n fitMode: ComponentFitEnum;\n};\n\nexport type ComponentGridFrame = {\n id: Id;\n name: string;\n opacity: number;\n type: FrameTypeEnum.componentGrid;\n blendMode: BlendMode;\n dataSourceVariableId?: Id | null;\n src?: ComponentSource | null;\n variableMappings: GridVariableMapping;\n};\n\nexport type GridVariableMapping = {\n mappings: Record<string, VariableMapping[] | null>;\n};\n\nexport type ComponentSource = ConnectorComponentSource;\n\nexport type ConnectorComponentSource = {\n type: ComponentSourceTypeEnum.connector;\n id: Id;\n assetId: Id | null;\n};\n\nexport type VariableMapping = {\n source: Id;\n target: Id;\n sourceField?: string;\n};\n\nexport enum ComponentFitEnum {\n /**\n * The component resizes to fit the frame size.\n */\n resize = 'resize',\n\n /**\n * The component scales to fit the frame size while maintaining its aspect ratio.\n */\n scale = 'scale',\n\n /**\n * The component first scales to fit the frame size while maintaining its aspect ratio,\n * then resizes to fill the remaining space.\n */\n scaleAndResize = 'scaleAndResize',\n}\n\nexport type CropSettings = {\n left: number;\n top: number;\n width: number;\n height: number;\n rotationDegrees: number;\n type: 'default';\n};\n\nexport type NoCropSettings = {\n type: 'noCrop';\n};\n\nexport type AutoGrowSettings = {\n enabled: PropertyState<boolean>;\n minWidth: PropertyState<number>;\n maxWidth: PropertyState<number>;\n minHeight: PropertyState<number>;\n maxHeight: PropertyState<number>;\n directions: PropertyState<Array<AutoGrowDirection>>;\n};\n\nexport interface AutoGrowDeltaUpdate {\n enabled?: {\n value: boolean;\n };\n minWidth?: {\n value: string | null;\n };\n maxWidth?: {\n value: string | null;\n };\n minHeight?: {\n value: string | null;\n };\n maxHeight?: {\n value: string | null;\n };\n directions?: {\n value: Array<AutoGrowDirection>;\n };\n}\n\nexport type DropShadowSettings = {\n enabled: boolean;\n distance: number;\n angleDegrees: number;\n blurRadius: number;\n color: ColorUsage;\n};\n\nexport interface ShadowSettingsDeltaUpdate {\n distance?: {\n value: string;\n };\n angleDegrees?: {\n value: number;\n };\n blurRadius?: {\n value: number;\n };\n enabled?: {\n value: boolean;\n };\n color?: {\n value: ColorUsage;\n };\n}\n\nexport enum AutoGrowDirection {\n top = 'top',\n bottom = 'bottom',\n left = 'left',\n right = 'right',\n}\n\nexport enum ImageSourceTypeEnum {\n url = 'url',\n variable = 'variable',\n connector = 'connector',\n brandKitMedia = 'brandKitMedia',\n}\n\nexport enum ComponentSourceTypeEnum {\n connector = 'connector',\n}\n\nexport enum FrameTypeEnum {\n text = 'text',\n image = 'image',\n shape = 'shape',\n barcode = 'barcode',\n component = 'component',\n componentGrid = 'componentGrid',\n}\n\nexport enum BarcodeSourceTypeEnum {\n variable = 'variable',\n text = 'text',\n}\n\nexport enum TextDirection {\n leftToRight = 'leftToRight',\n rightToLeft = 'rightToLeft',\n weak = 'weak',\n}\n\nexport enum FlowDirection {\n horizontal = 'horizontal',\n vertical = 'vertical',\n onPath = 'onPath',\n}\n\nexport enum VerticalAlign {\n top = 'top',\n bottom = 'bottom',\n middle = 'middle',\n justify = 'justify',\n}\n\nexport enum BlendMode {\n normal = 'normal',\n screen = 'screen',\n overlay = 'overlay',\n darken = 'darken',\n lighten = 'lighten',\n colorDodge = 'colorDodge',\n colorBurn = 'colorBurn',\n hardLight = 'hardLight',\n softLight = 'softLight',\n difference = 'difference',\n exclusion = 'exclusion',\n multiply = 'multiply',\n hue = 'hue',\n saturation = 'saturation',\n color = 'color',\n luminosity = 'luminosity',\n}\n\nexport enum FitMode {\n fill = 'fill',\n fit = 'fit',\n smartCrop = 'smartCrop',\n manualCrop = 'manualCrop',\n}\n\nexport enum FitModePosition {\n topLeft = 'topLeft',\n topCenter = 'topCenter',\n topRight = 'topRight',\n centerLeft = 'centerLeft',\n center = 'center',\n centerRight = 'centerRight',\n bottomLeft = 'bottomLeft',\n bottomCenter = 'bottomCenter',\n bottomRight = 'bottomRight',\n}\n\nexport enum UpdateZIndexMethod {\n bringToFront = 'bringToFront',\n sendToBack = 'sendToBack',\n bringForward = 'bringForward',\n sendBackward = 'sendBackward',\n}\n\nexport enum FrameAnchorType {\n relative = 'relative',\n start = 'start',\n end = 'end',\n startAndEnd = 'startAndEnd',\n center = 'center',\n}\n\nexport enum AnchorTargetType {\n page = 'page',\n frame = 'frame',\n}\n\nexport enum AnchorTargetEdgeType {\n start = 'start',\n end = 'end',\n center = 'center',\n}\n\nexport class PageAnchorTarget {\n type = AnchorTargetType.page;\n}\n\nexport class FrameAnchorTarget {\n frameId: Id;\n edge: AnchorTargetEdgeType;\n type = AnchorTargetType.frame;\n\n constructor(id: Id, edge: AnchorTargetEdgeType) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n ((this.frameId = id), (this.edge = edge));\n }\n}\n\nexport type AnchorTarget = PageAnchorTarget | FrameAnchorTarget;\n\nexport type RelativeFrameAnchor = {\n start: PropertyState<number>;\n end: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.relative;\n} & HasOverrideState;\n\nexport type StartFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.start;\n} & HasOverrideState;\n\nexport type EndFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.end;\n} & HasOverrideState;\n\nexport type StartAndEndFrameAnchor = {\n start: PropertyState<number>;\n startTarget: AnchorTarget;\n end: PropertyState<number>;\n endTarget: AnchorTarget;\n type: FrameAnchorType.startAndEnd;\n} & HasOverrideState;\n\nexport type CenterFrameAnchor = {\n offset: PropertyState<number>;\n target: AnchorTarget;\n type: FrameAnchorType.center;\n} & HasOverrideState;\n\nexport type FrameAnchor =\n RelativeFrameAnchor | StartFrameAnchor | EndFrameAnchor | StartAndEndFrameAnchor | CenterFrameAnchor;\n\nexport type FrameAnchorProperties = {\n horizontal: boolean;\n type: FrameAnchorType;\n target: AnchorTarget;\n endTarget?: AnchorTarget | null;\n};\n\nexport type AnchorConfiguration = {\n allowedTypes: Set<FrameAnchorType>;\n allowedFrameIds: Set<Id>;\n};\n\nexport type FrameConfiguration = {\n horizontal: AnchorConfiguration;\n vertical: AnchorConfiguration;\n};\n\nexport enum CropType {\n frameCrop = 'frameCrop',\n assetCrop = 'assetCrop',\n}\n\n/**\n * Image-specific editing constraints.\n */\nexport type ImageFrameConstraints = {\n cropAllowed: PropertyState<boolean>;\n};\n\n/**\n * Text-specific editing constraints.\n */\nexport type TextFrameConstraints = {\n editingAllowed: PropertyState<boolean>;\n paragraphStyles: PropertyState<IdSetManagedConstraint>;\n characterStyles: PropertyState<IdSetManagedConstraint>;\n colors: PropertyState<IdSetManagedConstraint>;\n fontSizes: PropertyState<FontSizeRangeManagedConstraint>;\n};\n\nexport interface ManagedConstraint {\n allowed: boolean;\n}\n\n/**\n * A managed constraint represented by a set of allowed Id identifiers.\n *\n * Example: used to allow only a specific set of paragraph or character styles.\n * - `allowed`: If true, only the provided `ids` may be used.\n * - `ids`: The set of allowed Id values.\n */\nexport interface IdSetManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n ids: Id[];\n}\n\n/**\n * A managed constraint that restricts allowed font sizes to a continuous range.\n *\n * - `allowed`: If true, restricts allowed font sizes to [min, max] (inclusive).\n * - `min`: The minimum allowed font size (nullable).\n * - `max`: The maximum allowed font size (nullable).\n */\nexport interface FontSizeRangeManagedConstraint extends ManagedConstraint {\n allowed: boolean;\n min: number | null;\n max: number | null;\n}\n\n/**\n * Frame editing constraints with optional frame-type-specific sub-properties.\n */\nexport type FrameConstraints = {\n selectionAllowed: PropertyState<boolean>;\n horizontalMovementAllowed: PropertyState<boolean>;\n verticalMovementAllowed: PropertyState<boolean>;\n rotationAllowed: PropertyState<boolean>;\n resizeAllowed: PropertyState<boolean>;\n proportionLocked: PropertyState<boolean>;\n /** Image-specific constraints. */\n image?: ImageFrameConstraints;\n /** Text-specific constraints. */\n text?: TextFrameConstraints;\n};\n\n/**\n * Image-specific constraints delta update.\n */\nexport interface ImageFrameConstraintsDeltaUpdate {\n cropAllowed?: {\n value: boolean;\n };\n}\n\n/**\n * Text-specific constraints delta update.\n */\nexport interface TextFrameConstraintsDeltaUpdate {\n editingAllowed?: {\n value: boolean;\n };\n paragraphStyles?: {\n value: IdSetManagedConstraint;\n };\n characterStyles?: {\n value: IdSetManagedConstraint;\n };\n colors?: {\n value: IdSetManagedConstraint;\n };\n fontSizes?: {\n value: FontSizeRangeManagedConstraint;\n };\n}\n\n/**\n * Frame constraints delta update with optional frame-type-specific sub-properties.\n */\nexport interface FrameConstraintsDeltaUpdate {\n selectionAllowed?: {\n value: boolean;\n };\n horizontalMovementAllowed?: {\n value: boolean;\n };\n verticalMovementAllowed?: {\n value: boolean;\n };\n rotationAllowed?: {\n value: boolean;\n };\n resizeAllowed?: {\n value: boolean;\n };\n proportionLocked?: {\n value: boolean;\n };\n /** Image-specific constraints update. */\n image?: ImageFrameConstraintsDeltaUpdate;\n /** Text-specific constraints update. */\n text?: TextFrameConstraintsDeltaUpdate;\n}\n\nexport type SmartCropSettings = SmartCropSettingsV1 | SmartCropSettingsV2;\n\nexport type SmartCropSettingsV1 = {\n version: SmartCropVersion.v1;\n};\n\nexport type SmartCropSettingsV2 = {\n version: SmartCropVersion.v2;\n horizontalBias: SmartCropAxisBias;\n verticalBias: SmartCropAxisBias;\n};\n\nexport enum SmartCropVersion {\n v1 = 'v1',\n v2 = 'v2',\n}\n\n/**\n * Latest version of the smart crop algorithm.\n * Keep in sync with @SmartCropVersion enum.\n */\nexport const LATEST_SMART_CROP_VERSION = SmartCropVersion.v2;\n\nexport enum SmartCropAxisBias {\n start = 'start',\n center = 'center',\n end = 'end',\n}\n"],"names":["ComponentFitEnum","AutoGrowDirection","ImageSourceTypeEnum","ComponentSourceTypeEnum","FrameTypeEnum","BarcodeSourceTypeEnum","TextDirection","FlowDirection","VerticalAlign","BlendMode","FitMode","FitModePosition","UpdateZIndexMethod","FrameAnchorType","AnchorTargetType","AnchorTargetEdgeType","CropType","SmartCropVersion","SmartCropAxisBias"],"mappings":"AAqOO,IAAK,qC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sageUpdate } from './ColorStyleTypes';\nimport { Id } from './CommonTypes';\nimport { Alignment, Case, Scripting } from './TextStyleTypes';\n\nexport type ParagraphStyle = {\n id: Id;\n name: string;\n fontKey: string;\n fontStyle: string;\n fontSize: number;\n typographicCase: Case;\n kerningOn: boolean;\n subSuperScript: Scripting;\n // the following properties are unit properties\n trackingLeft: number;\n trackingRight: number;\n startIndent: string;\n endIndent: string;\n spaceBefore: string;\n spaceAfter: string;\n textIndent: string;\n // end of unit properties\n alignToBaseLine: boolean;\n baselineShiftValue: string;\n lineHeight: number;\n textAlign: Alignment;\n textAlignLast: Alignment;\n textOverprint: boolean;\n color: ColorUsage;\n strokeColor: ColorUsage;\n backgroundColor: ColorUsage;\n fillColorApplied: boolean;\n strokeColorApplied: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth: number;\n underline: boolean;\n lineThrough: boolean;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListStyle: BulletListStyle;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListStyle: NumericListStyle;\n};\n\nexport type ParagraphStyleUpdate = {\n fontKey?: {\n value: string;\n };\n fontSize?: {\n value: number;\n };\n typographicCase?: {\n value: Case;\n };\n kerningOn?: {\n value: boolean;\n };\n subSuperScript?: {\n value: Scripting;\n };\n trackingLeft?: {\n value: number;\n };\n trackingRight?: {\n value: number;\n };\n textIndent?: {\n value: string;\n };\n alignToBaseLine?: {\n value: boolean;\n };\n baselineShiftValue?: {\n value: string;\n };\n lineHeight?: {\n value: number;\n };\n textAlign?: {\n value: Alignment;\n };\n textAlignLast?: {\n value: Alignment;\n };\n textOverprint?: {\n value: boolean;\n };\n color?: {\n value: ColorUsageUpdate;\n };\n fillColorApplied?: {\n value: boolean;\n };\n strokeColor?: {\n value: ColorUsageUpdate;\n };\n strokeColorApplied?: {\n value: boolean;\n };\n strokeWidth?: {\n value: string;\n };\n backgroundColor?: {\n value: ColorUsageUpdate;\n };\n backgroundColorApplied?: {\n value: boolean;\n };\n underline?: {\n value: boolean;\n };\n lineThrough?: {\n value: boolean;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListBulletMarks?: {\n value: string[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListCharacterStyleId?: {\n value?: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListNumberingStyle?: {\n value: NumericListNumberingStyle[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListCharacterStyleId?: {\n value?: string;\n };\n};\n\nexport type BulletListStyle = {\n /**\n * Array of bullet marks for each level\n * The position of the item in the array is the level of the bullet list\n * The value of the item is the bullet mark\n */\n bulletMarks: string[];\n leftIndent: number;\n textIndent: number;\n characterStyleId?: string;\n};\n\nexport type NumericListStyle = {\n leftIndent: number;\n textIndent: number;\n numberingStyle: NumericListNumberingStyle[];\n characterStyleId?: string;\n};\n\nexport type NumericListNumberingStyle = {\n format: NumberListFormat;\n symbol: NumberListSeparatorSymbol;\n};\n\nexport enum NumberListFormat {\n arabic = 'arabic',\n romanUpperCase = 'romanUpperCase',\n romanLowerCase = 'romanLowerCase',\n latinUpperCase = 'latinUpperCase',\n latinLowerCase = 'latinLowerCase',\n}\n\nexport enum NumberListSeparatorSymbol {\n none = 'none',\n dash = 'dash',\n dot = 'dot',\n colon = 'colon',\n roundBracket = 'roundBracket',\n}\n"],"names":["NumberListFormat","NumberListSeparatorSymbol"],"mappings":";;AA+LO,IAAK,qCAAAA,sBAAL;AACHA,oBAAA,QAAA,IAAS;AACTA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AALT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAQL,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,MAAA,IAAO;AACPA,6BAAA,MAAA,IAAO;AACPA,6BAAA,KAAA,IAAM;AACNA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,cAAA,IAAe;AALP,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;;;"}
1
+ {"version":3,"file":"ParagraphStyleTypes.cjs.js","sources":["../../../src/types/ParagraphStyleTypes.ts"],"sourcesContent":["import { ColorUsage, ColorUsageUpdate } from './ColorStyleTypes';\nimport { Id } from './CommonTypes';\nimport { Alignment, Case, Scripting } from './TextStyleTypes';\n\nexport type ParagraphStyle = {\n id: Id;\n name: string;\n fontKey: string;\n fontStyle: string;\n fontSize: number;\n typographicCase: Case;\n kerningOn: boolean;\n subSuperScript: Scripting;\n // the following properties are unit properties\n trackingLeft: number;\n trackingRight: number;\n startIndent: string;\n endIndent: string;\n spaceBefore: string;\n spaceAfter: string;\n textIndent: string;\n // end of unit properties\n alignToBaseLine: boolean;\n baselineShiftValue: string;\n lineHeight: number;\n textAlign: Alignment;\n textAlignLast: Alignment;\n fillOverprint: boolean;\n strokeOverprint: boolean;\n color: ColorUsage;\n strokeColor: ColorUsage;\n backgroundColor: ColorUsage;\n fillColorApplied: boolean;\n strokeColorApplied: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth: number;\n underline: boolean;\n lineThrough: boolean;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListStyle: BulletListStyle;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListStyle: NumericListStyle;\n};\n\nexport type ParagraphStyleUpdate = {\n fontKey?: {\n value: string;\n };\n fontSize?: {\n value: number;\n };\n typographicCase?: {\n value: Case;\n };\n kerningOn?: {\n value: boolean;\n };\n subSuperScript?: {\n value: Scripting;\n };\n trackingLeft?: {\n value: number;\n };\n trackingRight?: {\n value: number;\n };\n textIndent?: {\n value: string;\n };\n alignToBaseLine?: {\n value: boolean;\n };\n baselineShiftValue?: {\n value: string;\n };\n lineHeight?: {\n value: number;\n };\n textAlign?: {\n value: Alignment;\n };\n textAlignLast?: {\n value: Alignment;\n };\n fillOverprint?: {\n value: boolean;\n };\n strokeOverprint?: {\n value: boolean;\n };\n color?: {\n value: ColorUsageUpdate;\n };\n fillColorApplied?: {\n value: boolean;\n };\n strokeColor?: {\n value: ColorUsageUpdate;\n };\n strokeColorApplied?: {\n value: boolean;\n };\n strokeWidth?: {\n value: string;\n };\n backgroundColor?: {\n value: ColorUsageUpdate;\n };\n backgroundColorApplied?: {\n value: boolean;\n };\n underline?: {\n value: boolean;\n };\n lineThrough?: {\n value: boolean;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListBulletMarks?: {\n value: string[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListCharacterStyleId?: {\n value?: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListNumberingStyle?: {\n value: NumericListNumberingStyle[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListCharacterStyleId?: {\n value?: string;\n };\n};\n\nexport type BulletListStyle = {\n /**\n * Array of bullet marks for each level\n * The position of the item in the array is the level of the bullet list\n * The value of the item is the bullet mark\n */\n bulletMarks: string[];\n leftIndent: number;\n textIndent: number;\n characterStyleId?: string;\n};\n\nexport type NumericListStyle = {\n leftIndent: number;\n textIndent: number;\n numberingStyle: NumericListNumberingStyle[];\n characterStyleId?: string;\n};\n\nexport type NumericListNumberingStyle = {\n format: NumberListFormat;\n symbol: NumberListSeparatorSymbol;\n};\n\nexport enum NumberListFormat {\n arabic = 'arabic',\n romanUpperCase = 'romanUpperCase',\n romanLowerCase = 'romanLowerCase',\n latinUpperCase = 'latinUpperCase',\n latinLowerCase = 'latinLowerCase',\n}\n\nexport enum NumberListSeparatorSymbol {\n none = 'none',\n dash = 'dash',\n dot = 'dot',\n colon = 'colon',\n roundBracket = 'roundBracket',\n}\n"],"names":["NumberListFormat","NumberListSeparatorSymbol"],"mappings":";;AAmMO,IAAK,qCAAAA,sBAAL;AACHA,oBAAA,QAAA,IAAS;AACTA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AALT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAQL,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,MAAA,IAAO;AACPA,6BAAA,MAAA,IAAO;AACPA,6BAAA,KAAA,IAAM;AACNA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,cAAA,IAAe;AALP,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;;;"}
@@ -22,7 +22,8 @@ export type ParagraphStyle = {
22
22
  lineHeight: number;
23
23
  textAlign: Alignment;
24
24
  textAlignLast: Alignment;
25
- textOverprint: boolean;
25
+ fillOverprint: boolean;
26
+ strokeOverprint: boolean;
26
27
  color: ColorUsage;
27
28
  strokeColor: ColorUsage;
28
29
  backgroundColor: ColorUsage;
@@ -81,7 +82,10 @@ export type ParagraphStyleUpdate = {
81
82
  textAlignLast?: {
82
83
  value: Alignment;
83
84
  };
84
- textOverprint?: {
85
+ fillOverprint?: {
86
+ value: boolean;
87
+ };
88
+ strokeOverprint?: {
85
89
  value: boolean;
86
90
  };
87
91
  color?: {
@@ -1 +1 @@
1
- {"version":3,"file":"ParagraphStyleTypes.es.js","sources":["../../../src/types/ParagraphStyleTypes.ts"],"sourcesContent":["import { ColorUsage, ColorUsageUpdate } from './ColorStyleTypes';\nimport { Id } from './CommonTypes';\nimport { Alignment, Case, Scripting } from './TextStyleTypes';\n\nexport type ParagraphStyle = {\n id: Id;\n name: string;\n fontKey: string;\n fontStyle: string;\n fontSize: number;\n typographicCase: Case;\n kerningOn: boolean;\n subSuperScript: Scripting;\n // the following properties are unit properties\n trackingLeft: number;\n trackingRight: number;\n startIndent: string;\n endIndent: string;\n spaceBefore: string;\n spaceAfter: string;\n textIndent: string;\n // end of unit properties\n alignToBaseLine: boolean;\n baselineShiftValue: string;\n lineHeight: number;\n textAlign: Alignment;\n textAlignLast: Alignment;\n textOverprint: boolean;\n color: ColorUsage;\n strokeColor: ColorUsage;\n backgroundColor: ColorUsage;\n fillColorApplied: boolean;\n strokeColorApplied: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth: number;\n underline: boolean;\n lineThrough: boolean;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListStyle: BulletListStyle;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListStyle: NumericListStyle;\n};\n\nexport type ParagraphStyleUpdate = {\n fontKey?: {\n value: string;\n };\n fontSize?: {\n value: number;\n };\n typographicCase?: {\n value: Case;\n };\n kerningOn?: {\n value: boolean;\n };\n subSuperScript?: {\n value: Scripting;\n };\n trackingLeft?: {\n value: number;\n };\n trackingRight?: {\n value: number;\n };\n textIndent?: {\n value: string;\n };\n alignToBaseLine?: {\n value: boolean;\n };\n baselineShiftValue?: {\n value: string;\n };\n lineHeight?: {\n value: number;\n };\n textAlign?: {\n value: Alignment;\n };\n textAlignLast?: {\n value: Alignment;\n };\n textOverprint?: {\n value: boolean;\n };\n color?: {\n value: ColorUsageUpdate;\n };\n fillColorApplied?: {\n value: boolean;\n };\n strokeColor?: {\n value: ColorUsageUpdate;\n };\n strokeColorApplied?: {\n value: boolean;\n };\n strokeWidth?: {\n value: string;\n };\n backgroundColor?: {\n value: ColorUsageUpdate;\n };\n backgroundColorApplied?: {\n value: boolean;\n };\n underline?: {\n value: boolean;\n };\n lineThrough?: {\n value: boolean;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListBulletMarks?: {\n value: string[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListCharacterStyleId?: {\n value?: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListNumberingStyle?: {\n value: NumericListNumberingStyle[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListCharacterStyleId?: {\n value?: string;\n };\n};\n\nexport type BulletListStyle = {\n /**\n * Array of bullet marks for each level\n * The position of the item in the array is the level of the bullet list\n * The value of the item is the bullet mark\n */\n bulletMarks: string[];\n leftIndent: number;\n textIndent: number;\n characterStyleId?: string;\n};\n\nexport type NumericListStyle = {\n leftIndent: number;\n textIndent: number;\n numberingStyle: NumericListNumberingStyle[];\n characterStyleId?: string;\n};\n\nexport type NumericListNumberingStyle = {\n format: NumberListFormat;\n symbol: NumberListSeparatorSymbol;\n};\n\nexport enum NumberListFormat {\n arabic = 'arabic',\n romanUpperCase = 'romanUpperCase',\n romanLowerCase = 'romanLowerCase',\n latinUpperCase = 'latinUpperCase',\n latinLowerCase = 'latinLowerCase',\n}\n\nexport enum NumberListSeparatorSymbol {\n none = 'none',\n dash = 'dash',\n dot = 'dot',\n colon = 'colon',\n roundBracket = 'roundBracket',\n}\n"],"names":["NumberListFormat","NumberListSeparatorSymbol"],"mappings":"AA+LO,IAAK,qCAAAA,sBAAL;AACHA,oBAAA,QAAA,IAAS;AACTA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AALT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAQL,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,MAAA,IAAO;AACPA,6BAAA,MAAA,IAAO;AACPA,6BAAA,KAAA,IAAM;AACNA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,cAAA,IAAe;AALP,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"ParagraphStyleTypes.es.js","sources":["../../../src/types/ParagraphStyleTypes.ts"],"sourcesContent":["import { ColorUsage, ColorUsageUpdate } from './ColorStyleTypes';\nimport { Id } from './CommonTypes';\nimport { Alignment, Case, Scripting } from './TextStyleTypes';\n\nexport type ParagraphStyle = {\n id: Id;\n name: string;\n fontKey: string;\n fontStyle: string;\n fontSize: number;\n typographicCase: Case;\n kerningOn: boolean;\n subSuperScript: Scripting;\n // the following properties are unit properties\n trackingLeft: number;\n trackingRight: number;\n startIndent: string;\n endIndent: string;\n spaceBefore: string;\n spaceAfter: string;\n textIndent: string;\n // end of unit properties\n alignToBaseLine: boolean;\n baselineShiftValue: string;\n lineHeight: number;\n textAlign: Alignment;\n textAlignLast: Alignment;\n fillOverprint: boolean;\n strokeOverprint: boolean;\n color: ColorUsage;\n strokeColor: ColorUsage;\n backgroundColor: ColorUsage;\n fillColorApplied: boolean;\n strokeColorApplied: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth: number;\n underline: boolean;\n lineThrough: boolean;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListStyle: BulletListStyle;\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListStyle: NumericListStyle;\n};\n\nexport type ParagraphStyleUpdate = {\n fontKey?: {\n value: string;\n };\n fontSize?: {\n value: number;\n };\n typographicCase?: {\n value: Case;\n };\n kerningOn?: {\n value: boolean;\n };\n subSuperScript?: {\n value: Scripting;\n };\n trackingLeft?: {\n value: number;\n };\n trackingRight?: {\n value: number;\n };\n textIndent?: {\n value: string;\n };\n alignToBaseLine?: {\n value: boolean;\n };\n baselineShiftValue?: {\n value: string;\n };\n lineHeight?: {\n value: number;\n };\n textAlign?: {\n value: Alignment;\n };\n textAlignLast?: {\n value: Alignment;\n };\n fillOverprint?: {\n value: boolean;\n };\n strokeOverprint?: {\n value: boolean;\n };\n color?: {\n value: ColorUsageUpdate;\n };\n fillColorApplied?: {\n value: boolean;\n };\n strokeColor?: {\n value: ColorUsageUpdate;\n };\n strokeColorApplied?: {\n value: boolean;\n };\n strokeWidth?: {\n value: string;\n };\n backgroundColor?: {\n value: ColorUsageUpdate;\n };\n backgroundColorApplied?: {\n value: boolean;\n };\n underline?: {\n value: boolean;\n };\n lineThrough?: {\n value: boolean;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListBulletMarks?: {\n value: string[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n bulletListCharacterStyleId?: {\n value?: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListNumberingStyle?: {\n value: NumericListNumberingStyle[];\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListLeftIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListTextIndent?: {\n value: string;\n };\n /**\n * @experimental This property is experimental and may be changed in the future.\n */\n numericListCharacterStyleId?: {\n value?: string;\n };\n};\n\nexport type BulletListStyle = {\n /**\n * Array of bullet marks for each level\n * The position of the item in the array is the level of the bullet list\n * The value of the item is the bullet mark\n */\n bulletMarks: string[];\n leftIndent: number;\n textIndent: number;\n characterStyleId?: string;\n};\n\nexport type NumericListStyle = {\n leftIndent: number;\n textIndent: number;\n numberingStyle: NumericListNumberingStyle[];\n characterStyleId?: string;\n};\n\nexport type NumericListNumberingStyle = {\n format: NumberListFormat;\n symbol: NumberListSeparatorSymbol;\n};\n\nexport enum NumberListFormat {\n arabic = 'arabic',\n romanUpperCase = 'romanUpperCase',\n romanLowerCase = 'romanLowerCase',\n latinUpperCase = 'latinUpperCase',\n latinLowerCase = 'latinLowerCase',\n}\n\nexport enum NumberListSeparatorSymbol {\n none = 'none',\n dash = 'dash',\n dot = 'dot',\n colon = 'colon',\n roundBracket = 'roundBracket',\n}\n"],"names":["NumberListFormat","NumberListSeparatorSymbol"],"mappings":"AAmMO,IAAK,qCAAAA,sBAAL;AACHA,oBAAA,QAAA,IAAS;AACTA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AACjBA,oBAAA,gBAAA,IAAiB;AALT,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAQL,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,MAAA,IAAO;AACPA,6BAAA,MAAA,IAAO;AACPA,6BAAA,KAAA,IAAM;AACNA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,cAAA,IAAe;AALP,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextRuleTypes.cjs.js","sources":["../../../src/types/RichTextRuleTypes.ts"],"sourcesContent":["import { Scripting } from './TextStyleTypes';\n\n/**\n * Defines a text flow and all style rules that are applied to it.\n */\nexport interface StructuredTextTextFlowDefinition {\n id: string;\n styleRules: StructuredTextStyleRule[];\n}\n\n/**\n * Supported style kinds for structured text rules.\n */\nexport enum StructuredTextStyleKind {\n paragraph = 'paragraph',\n character = 'character',\n lineBreak = 'lineBreak',\n inlineStyle = 'inlineStyle',\n}\n\n/**\n * A style rule for rich text parsing.\n */\nexport type StructuredTextStyleRule =\n | ParagraphTextStyleRule\n | CharacterTextStyleRule\n | LineBreakTextStyleRule\n | InlineStyleTextStyleRule;\n\nexport interface ParagraphTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n paragraphStyleName: string;\n styleKind: StructuredTextStyleKind.paragraph;\n}\n\nexport interface CharacterTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n characterStyleName: string;\n styleKind: StructuredTextStyleKind.character;\n}\n\nexport interface LineBreakTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n styleKind: StructuredTextStyleKind.lineBreak;\n}\n\n/**\n * A style rule that applies inline character styling directly to matched\n * elements without requiring a named style.\n */\nexport interface InlineStyleTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n inlineStyleDefinition: StructuredTextInlineStyleDefinition;\n styleKind: StructuredTextStyleKind.inlineStyle;\n}\n\n/**\n * Defines inline character style properties applied by inline style rules.\n *\n * Every property is optional. If a property is left `undefined`, it is not\n * overridden by the rule.\n */\nexport interface StructuredTextInlineStyleDefinition {\n underline?: boolean;\n lineThrough?: boolean;\n subSuperScript?: Scripting;\n}\n\n/**\n * Matcher for structured text nodes.\n */\nexport interface StructuredTextNodeMatcher {\n tag?: string;\n attributeMatchers: StructuredTextAttributeMatcher[];\n caseSensitive: boolean;\n}\n\n/**\n * Supported operators for matching attributes.\n */\nexport enum StructuredTextAttributeMatchOperator {\n exists = 'exists',\n missing = 'missing',\n equals = 'equals',\n notEquals = 'notEquals',\n contains = 'contains',\n startsWith = 'startsWith',\n endsWith = 'endsWith',\n}\n\n/**\n * Matcher used to evaluate a node attribute.\n */\nexport type StructuredTextAttributeMatcher =\n | ExistsStructuredTextAttributeMatcher\n | MissingStructuredTextAttributeMatcher\n | EqualsStructuredTextAttributeMatcher\n | NotEqualsStructuredTextAttributeMatcher\n | ContainsStructuredTextAttributeMatcher\n | StartsWithStructuredTextAttributeMatcher\n | EndsWithStructuredTextAttributeMatcher;\n\nexport interface ExistsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.exists;\n}\n\nexport interface MissingStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.missing;\n}\n\nexport interface EqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.equals;\n}\n\nexport interface NotEqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.notEquals;\n}\n\nexport interface ContainsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.contains;\n}\n\nexport interface StartsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.startsWith;\n}\n\nexport interface EndsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.endsWith;\n}\n"],"names":["StructuredTextStyleKind","StructuredTextAttributeMatchOperator"],"mappings":";;AAaO,IAAK,4CAAAA,6BAAL;AACHA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,aAAA,IAAc;AAJN,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;AAmEL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,QAAA,IAAS;AACTA,wCAAA,SAAA,IAAU;AACVA,wCAAA,QAAA,IAAS;AACTA,wCAAA,WAAA,IAAY;AACZA,wCAAA,UAAA,IAAW;AACXA,wCAAA,YAAA,IAAa;AACbA,wCAAA,UAAA,IAAW;AAPH,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;;;"}
1
+ {"version":3,"file":"RichTextRuleTypes.cjs.js","sources":["../../../src/types/RichTextRuleTypes.ts"],"sourcesContent":["import { Scripting } from './TextStyleTypes';\n\n/**\n * Defines a text flow and all style rules that are applied to it.\n */\nexport interface StructuredTextTextFlowDefinition {\n id: string;\n styleRules: StructuredTextStyleRule[];\n}\n\n/**\n * Supported style kinds for structured text rules.\n */\nexport enum StructuredTextStyleKind {\n paragraph = 'paragraph',\n character = 'character',\n lineBreak = 'lineBreak',\n inlineStyle = 'inlineStyle',\n}\n\n/**\n * A style rule for rich text parsing.\n */\nexport type StructuredTextStyleRule =\n ParagraphTextStyleRule | CharacterTextStyleRule | LineBreakTextStyleRule | InlineStyleTextStyleRule;\n\nexport interface ParagraphTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n paragraphStyleName: string;\n styleKind: StructuredTextStyleKind.paragraph;\n}\n\nexport interface CharacterTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n characterStyleName: string;\n styleKind: StructuredTextStyleKind.character;\n}\n\nexport interface LineBreakTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n styleKind: StructuredTextStyleKind.lineBreak;\n}\n\n/**\n * A style rule that applies inline character styling directly to matched\n * elements without requiring a named style.\n */\nexport interface InlineStyleTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n inlineStyleDefinition: StructuredTextInlineStyleDefinition;\n styleKind: StructuredTextStyleKind.inlineStyle;\n}\n\n/**\n * Defines inline character style properties applied by inline style rules.\n *\n * Every property is optional. If a property is left `undefined`, it is not\n * overridden by the rule.\n */\nexport interface StructuredTextInlineStyleDefinition {\n underline?: boolean;\n lineThrough?: boolean;\n subSuperScript?: Scripting;\n}\n\n/**\n * Matcher for structured text nodes.\n */\nexport interface StructuredTextNodeMatcher {\n tag?: string;\n attributeMatchers: StructuredTextAttributeMatcher[];\n caseSensitive: boolean;\n}\n\n/**\n * Supported operators for matching attributes.\n */\nexport enum StructuredTextAttributeMatchOperator {\n exists = 'exists',\n missing = 'missing',\n equals = 'equals',\n notEquals = 'notEquals',\n contains = 'contains',\n startsWith = 'startsWith',\n endsWith = 'endsWith',\n}\n\n/**\n * Matcher used to evaluate a node attribute.\n */\nexport type StructuredTextAttributeMatcher =\n | ExistsStructuredTextAttributeMatcher\n | MissingStructuredTextAttributeMatcher\n | EqualsStructuredTextAttributeMatcher\n | NotEqualsStructuredTextAttributeMatcher\n | ContainsStructuredTextAttributeMatcher\n | StartsWithStructuredTextAttributeMatcher\n | EndsWithStructuredTextAttributeMatcher;\n\nexport interface ExistsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.exists;\n}\n\nexport interface MissingStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.missing;\n}\n\nexport interface EqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.equals;\n}\n\nexport interface NotEqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.notEquals;\n}\n\nexport interface ContainsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.contains;\n}\n\nexport interface StartsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.startsWith;\n}\n\nexport interface EndsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.endsWith;\n}\n"],"names":["StructuredTextStyleKind","StructuredTextAttributeMatchOperator"],"mappings":";;AAaO,IAAK,4CAAAA,6BAAL;AACHA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,aAAA,IAAc;AAJN,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;AAgEL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,QAAA,IAAS;AACTA,wCAAA,SAAA,IAAU;AACVA,wCAAA,QAAA,IAAS;AACTA,wCAAA,WAAA,IAAY;AACZA,wCAAA,UAAA,IAAW;AACXA,wCAAA,YAAA,IAAa;AACbA,wCAAA,UAAA,IAAW;AAPH,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextRuleTypes.es.js","sources":["../../../src/types/RichTextRuleTypes.ts"],"sourcesContent":["import { Scripting } from './TextStyleTypes';\n\n/**\n * Defines a text flow and all style rules that are applied to it.\n */\nexport interface StructuredTextTextFlowDefinition {\n id: string;\n styleRules: StructuredTextStyleRule[];\n}\n\n/**\n * Supported style kinds for structured text rules.\n */\nexport enum StructuredTextStyleKind {\n paragraph = 'paragraph',\n character = 'character',\n lineBreak = 'lineBreak',\n inlineStyle = 'inlineStyle',\n}\n\n/**\n * A style rule for rich text parsing.\n */\nexport type StructuredTextStyleRule =\n | ParagraphTextStyleRule\n | CharacterTextStyleRule\n | LineBreakTextStyleRule\n | InlineStyleTextStyleRule;\n\nexport interface ParagraphTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n paragraphStyleName: string;\n styleKind: StructuredTextStyleKind.paragraph;\n}\n\nexport interface CharacterTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n characterStyleName: string;\n styleKind: StructuredTextStyleKind.character;\n}\n\nexport interface LineBreakTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n styleKind: StructuredTextStyleKind.lineBreak;\n}\n\n/**\n * A style rule that applies inline character styling directly to matched\n * elements without requiring a named style.\n */\nexport interface InlineStyleTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n inlineStyleDefinition: StructuredTextInlineStyleDefinition;\n styleKind: StructuredTextStyleKind.inlineStyle;\n}\n\n/**\n * Defines inline character style properties applied by inline style rules.\n *\n * Every property is optional. If a property is left `undefined`, it is not\n * overridden by the rule.\n */\nexport interface StructuredTextInlineStyleDefinition {\n underline?: boolean;\n lineThrough?: boolean;\n subSuperScript?: Scripting;\n}\n\n/**\n * Matcher for structured text nodes.\n */\nexport interface StructuredTextNodeMatcher {\n tag?: string;\n attributeMatchers: StructuredTextAttributeMatcher[];\n caseSensitive: boolean;\n}\n\n/**\n * Supported operators for matching attributes.\n */\nexport enum StructuredTextAttributeMatchOperator {\n exists = 'exists',\n missing = 'missing',\n equals = 'equals',\n notEquals = 'notEquals',\n contains = 'contains',\n startsWith = 'startsWith',\n endsWith = 'endsWith',\n}\n\n/**\n * Matcher used to evaluate a node attribute.\n */\nexport type StructuredTextAttributeMatcher =\n | ExistsStructuredTextAttributeMatcher\n | MissingStructuredTextAttributeMatcher\n | EqualsStructuredTextAttributeMatcher\n | NotEqualsStructuredTextAttributeMatcher\n | ContainsStructuredTextAttributeMatcher\n | StartsWithStructuredTextAttributeMatcher\n | EndsWithStructuredTextAttributeMatcher;\n\nexport interface ExistsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.exists;\n}\n\nexport interface MissingStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.missing;\n}\n\nexport interface EqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.equals;\n}\n\nexport interface NotEqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.notEquals;\n}\n\nexport interface ContainsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.contains;\n}\n\nexport interface StartsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.startsWith;\n}\n\nexport interface EndsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.endsWith;\n}\n"],"names":["StructuredTextStyleKind","StructuredTextAttributeMatchOperator"],"mappings":"AAaO,IAAK,4CAAAA,6BAAL;AACHA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,aAAA,IAAc;AAJN,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;AAmEL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,QAAA,IAAS;AACTA,wCAAA,SAAA,IAAU;AACVA,wCAAA,QAAA,IAAS;AACTA,wCAAA,WAAA,IAAY;AACZA,wCAAA,UAAA,IAAW;AACXA,wCAAA,YAAA,IAAa;AACbA,wCAAA,UAAA,IAAW;AAPH,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"RichTextRuleTypes.es.js","sources":["../../../src/types/RichTextRuleTypes.ts"],"sourcesContent":["import { Scripting } from './TextStyleTypes';\n\n/**\n * Defines a text flow and all style rules that are applied to it.\n */\nexport interface StructuredTextTextFlowDefinition {\n id: string;\n styleRules: StructuredTextStyleRule[];\n}\n\n/**\n * Supported style kinds for structured text rules.\n */\nexport enum StructuredTextStyleKind {\n paragraph = 'paragraph',\n character = 'character',\n lineBreak = 'lineBreak',\n inlineStyle = 'inlineStyle',\n}\n\n/**\n * A style rule for rich text parsing.\n */\nexport type StructuredTextStyleRule =\n ParagraphTextStyleRule | CharacterTextStyleRule | LineBreakTextStyleRule | InlineStyleTextStyleRule;\n\nexport interface ParagraphTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n paragraphStyleName: string;\n styleKind: StructuredTextStyleKind.paragraph;\n}\n\nexport interface CharacterTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n characterStyleName: string;\n styleKind: StructuredTextStyleKind.character;\n}\n\nexport interface LineBreakTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n styleKind: StructuredTextStyleKind.lineBreak;\n}\n\n/**\n * A style rule that applies inline character styling directly to matched\n * elements without requiring a named style.\n */\nexport interface InlineStyleTextStyleRule {\n matcher: StructuredTextNodeMatcher;\n inlineStyleDefinition: StructuredTextInlineStyleDefinition;\n styleKind: StructuredTextStyleKind.inlineStyle;\n}\n\n/**\n * Defines inline character style properties applied by inline style rules.\n *\n * Every property is optional. If a property is left `undefined`, it is not\n * overridden by the rule.\n */\nexport interface StructuredTextInlineStyleDefinition {\n underline?: boolean;\n lineThrough?: boolean;\n subSuperScript?: Scripting;\n}\n\n/**\n * Matcher for structured text nodes.\n */\nexport interface StructuredTextNodeMatcher {\n tag?: string;\n attributeMatchers: StructuredTextAttributeMatcher[];\n caseSensitive: boolean;\n}\n\n/**\n * Supported operators for matching attributes.\n */\nexport enum StructuredTextAttributeMatchOperator {\n exists = 'exists',\n missing = 'missing',\n equals = 'equals',\n notEquals = 'notEquals',\n contains = 'contains',\n startsWith = 'startsWith',\n endsWith = 'endsWith',\n}\n\n/**\n * Matcher used to evaluate a node attribute.\n */\nexport type StructuredTextAttributeMatcher =\n | ExistsStructuredTextAttributeMatcher\n | MissingStructuredTextAttributeMatcher\n | EqualsStructuredTextAttributeMatcher\n | NotEqualsStructuredTextAttributeMatcher\n | ContainsStructuredTextAttributeMatcher\n | StartsWithStructuredTextAttributeMatcher\n | EndsWithStructuredTextAttributeMatcher;\n\nexport interface ExistsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.exists;\n}\n\nexport interface MissingStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n matchOperator: StructuredTextAttributeMatchOperator.missing;\n}\n\nexport interface EqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.equals;\n}\n\nexport interface NotEqualsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.notEquals;\n}\n\nexport interface ContainsStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.contains;\n}\n\nexport interface StartsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.startsWith;\n}\n\nexport interface EndsWithStructuredTextAttributeMatcher {\n name: string;\n caseSensitive: boolean;\n value: string;\n matchOperator: StructuredTextAttributeMatchOperator.endsWith;\n}\n"],"names":["StructuredTextStyleKind","StructuredTextAttributeMatchOperator"],"mappings":"AAaO,IAAK,4CAAAA,6BAAL;AACHA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,WAAA,IAAY;AACZA,2BAAA,aAAA,IAAc;AAJN,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;AAgEL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,QAAA,IAAS;AACTA,wCAAA,SAAA,IAAU;AACVA,wCAAA,QAAA,IAAS;AACTA,wCAAA,WAAA,IAAY;AACZA,wCAAA,UAAA,IAAW;AACXA,wCAAA,YAAA,IAAa;AACbA,wCAAA,UAAA,IAAW;AAPH,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ShapeTypes.cjs.js","sources":["../../../src/types/ShapeTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\n\nexport enum ShapeType {\n ellipse = 'ellipse',\n rectangle = 'rectangle',\n polygon = 'polygon',\n custom = 'custom',\n}\n\nexport interface ShapeProperties {\n enableFill?: boolean;\n fillColor?: ColorUsage;\n enableStroke?: boolean;\n strokeColor?: ColorUsage;\n strokeWeight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface ShapeContainerProperties {\n enableStroke: boolean;\n strokeColor: ColorUsage;\n strokeWeight: number;\n allCornersSame: boolean;\n}\n\nexport interface CornerRadiusUpdateModel {\n radiusAll?: number;\n topLeft?: number;\n bottomLeft?: number;\n topRight?: number;\n bottomRight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface CornerRadiusNone {\n type: string;\n}\n\nexport interface CornerRadiusAll {\n type: string;\n radius: number;\n}\n\nexport interface CornerRadiusOnly {\n type: string;\n topLeft: number;\n bottomLeft: number;\n topRight: number;\n bottomRight: number;\n}\n\nexport enum CornerRadiusType {\n all = 'all',\n only = 'only',\n none = 'none',\n}\n\nexport type CornerRadius = CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n\nexport type ShapeFrameRectSource = {\n type: ShapeType.rectangle;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameEllipseSource = {\n type: ShapeType.ellipse;\n};\n\nexport type ShapeFramePolygonSource = {\n type: ShapeType.polygon;\n sides?: number;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameCustomSource = {\n type: ShapeType.custom;\n /** \n * The shape path is in relative coordinates to the frame, \n * with the top left corner of the frame being (0, 0) and the \n * bottom right corner being (1, 1). The path should be a valid SVG path string. \n */\n path: string;\n};\n\nexport type ShapeFrameSource =\n | ShapeFrameRectSource\n | ShapeFrameEllipseSource\n | ShapeFramePolygonSource\n | ShapeFrameCustomSource;\n"],"names":["ShapeType","CornerRadiusType"],"mappings":";;AAEO,IAAK,8BAAAA,eAAL;AACHA,aAAA,SAAA,IAAU;AACVA,aAAA,WAAA,IAAY;AACZA,aAAA,SAAA,IAAU;AACVA,aAAA,QAAA,IAAS;AAJD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAiDL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,KAAA,IAAM;AACNA,oBAAA,MAAA,IAAO;AACPA,oBAAA,MAAA,IAAO;AAHC,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;;;"}
1
+ {"version":3,"file":"ShapeTypes.cjs.js","sources":["../../../src/types/ShapeTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\n\nexport enum ShapeType {\n ellipse = 'ellipse',\n rectangle = 'rectangle',\n polygon = 'polygon',\n custom = 'custom',\n}\n\nexport interface ShapeProperties {\n enableFill?: boolean;\n fillColor?: ColorUsage;\n fillOverprint?: boolean;\n enableStroke?: boolean;\n strokeColor?: ColorUsage;\n strokeOverprint?: boolean;\n strokeWeight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface ShapeContainerProperties {\n enableStroke: boolean;\n strokeColor: ColorUsage;\n strokeWeight: number;\n allCornersSame: boolean;\n}\n\nexport interface CornerRadiusUpdateModel {\n radiusAll?: number;\n topLeft?: number;\n bottomLeft?: number;\n topRight?: number;\n bottomRight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface CornerRadiusNone {\n type: string;\n}\n\nexport interface CornerRadiusAll {\n type: string;\n radius: number;\n}\n\nexport interface CornerRadiusOnly {\n type: string;\n topLeft: number;\n bottomLeft: number;\n topRight: number;\n bottomRight: number;\n}\n\nexport enum CornerRadiusType {\n all = 'all',\n only = 'only',\n none = 'none',\n}\n\nexport type CornerRadius = CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n\nexport type ShapeFrameRectSource = {\n type: ShapeType.rectangle;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameEllipseSource = {\n type: ShapeType.ellipse;\n};\n\nexport type ShapeFramePolygonSource = {\n type: ShapeType.polygon;\n sides?: number;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameCustomSource = {\n type: ShapeType.custom;\n /**\n * The shape path is in relative coordinates to the frame,\n * with the top left corner of the frame being (0, 0) and the\n * bottom right corner being (1, 1). The path should be a valid SVG path string.\n */\n path: string;\n};\n\nexport type ShapeFrameSource =\n ShapeFrameRectSource | ShapeFrameEllipseSource | ShapeFramePolygonSource | ShapeFrameCustomSource;\n"],"names":["ShapeType","CornerRadiusType"],"mappings":";;AAEO,IAAK,8BAAAA,eAAL;AACHA,aAAA,SAAA,IAAU;AACVA,aAAA,WAAA,IAAY;AACZA,aAAA,SAAA,IAAU;AACVA,aAAA,QAAA,IAAS;AAJD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAmDL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,KAAA,IAAM;AACNA,oBAAA,MAAA,IAAO;AACPA,oBAAA,MAAA,IAAO;AAHC,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;;;"}
@@ -8,8 +8,10 @@ export declare enum ShapeType {
8
8
  export interface ShapeProperties {
9
9
  enableFill?: boolean;
10
10
  fillColor?: ColorUsage;
11
+ fillOverprint?: boolean;
11
12
  enableStroke?: boolean;
12
13
  strokeColor?: ColorUsage;
14
+ strokeOverprint?: boolean;
13
15
  strokeWeight?: number;
14
16
  allCornersSame?: boolean;
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ShapeTypes.es.js","sources":["../../../src/types/ShapeTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\n\nexport enum ShapeType {\n ellipse = 'ellipse',\n rectangle = 'rectangle',\n polygon = 'polygon',\n custom = 'custom',\n}\n\nexport interface ShapeProperties {\n enableFill?: boolean;\n fillColor?: ColorUsage;\n enableStroke?: boolean;\n strokeColor?: ColorUsage;\n strokeWeight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface ShapeContainerProperties {\n enableStroke: boolean;\n strokeColor: ColorUsage;\n strokeWeight: number;\n allCornersSame: boolean;\n}\n\nexport interface CornerRadiusUpdateModel {\n radiusAll?: number;\n topLeft?: number;\n bottomLeft?: number;\n topRight?: number;\n bottomRight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface CornerRadiusNone {\n type: string;\n}\n\nexport interface CornerRadiusAll {\n type: string;\n radius: number;\n}\n\nexport interface CornerRadiusOnly {\n type: string;\n topLeft: number;\n bottomLeft: number;\n topRight: number;\n bottomRight: number;\n}\n\nexport enum CornerRadiusType {\n all = 'all',\n only = 'only',\n none = 'none',\n}\n\nexport type CornerRadius = CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n\nexport type ShapeFrameRectSource = {\n type: ShapeType.rectangle;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameEllipseSource = {\n type: ShapeType.ellipse;\n};\n\nexport type ShapeFramePolygonSource = {\n type: ShapeType.polygon;\n sides?: number;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameCustomSource = {\n type: ShapeType.custom;\n /** \n * The shape path is in relative coordinates to the frame, \n * with the top left corner of the frame being (0, 0) and the \n * bottom right corner being (1, 1). The path should be a valid SVG path string. \n */\n path: string;\n};\n\nexport type ShapeFrameSource =\n | ShapeFrameRectSource\n | ShapeFrameEllipseSource\n | ShapeFramePolygonSource\n | ShapeFrameCustomSource;\n"],"names":["ShapeType","CornerRadiusType"],"mappings":"AAEO,IAAK,8BAAAA,eAAL;AACHA,aAAA,SAAA,IAAU;AACVA,aAAA,WAAA,IAAY;AACZA,aAAA,SAAA,IAAU;AACVA,aAAA,QAAA,IAAS;AAJD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAiDL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,KAAA,IAAM;AACNA,oBAAA,MAAA,IAAO;AACPA,oBAAA,MAAA,IAAO;AAHC,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"ShapeTypes.es.js","sources":["../../../src/types/ShapeTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\n\nexport enum ShapeType {\n ellipse = 'ellipse',\n rectangle = 'rectangle',\n polygon = 'polygon',\n custom = 'custom',\n}\n\nexport interface ShapeProperties {\n enableFill?: boolean;\n fillColor?: ColorUsage;\n fillOverprint?: boolean;\n enableStroke?: boolean;\n strokeColor?: ColorUsage;\n strokeOverprint?: boolean;\n strokeWeight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface ShapeContainerProperties {\n enableStroke: boolean;\n strokeColor: ColorUsage;\n strokeWeight: number;\n allCornersSame: boolean;\n}\n\nexport interface CornerRadiusUpdateModel {\n radiusAll?: number;\n topLeft?: number;\n bottomLeft?: number;\n topRight?: number;\n bottomRight?: number;\n allCornersSame?: boolean;\n}\n\nexport interface CornerRadiusNone {\n type: string;\n}\n\nexport interface CornerRadiusAll {\n type: string;\n radius: number;\n}\n\nexport interface CornerRadiusOnly {\n type: string;\n topLeft: number;\n bottomLeft: number;\n topRight: number;\n bottomRight: number;\n}\n\nexport enum CornerRadiusType {\n all = 'all',\n only = 'only',\n none = 'none',\n}\n\nexport type CornerRadius = CornerRadiusNone | CornerRadiusAll | CornerRadiusOnly;\n\nexport type ShapeFrameRectSource = {\n type: ShapeType.rectangle;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameEllipseSource = {\n type: ShapeType.ellipse;\n};\n\nexport type ShapeFramePolygonSource = {\n type: ShapeType.polygon;\n sides?: number;\n cornerRadius?: CornerRadius;\n};\n\nexport type ShapeFrameCustomSource = {\n type: ShapeType.custom;\n /**\n * The shape path is in relative coordinates to the frame,\n * with the top left corner of the frame being (0, 0) and the\n * bottom right corner being (1, 1). The path should be a valid SVG path string.\n */\n path: string;\n};\n\nexport type ShapeFrameSource =\n ShapeFrameRectSource | ShapeFrameEllipseSource | ShapeFramePolygonSource | ShapeFrameCustomSource;\n"],"names":["ShapeType","CornerRadiusType"],"mappings":"AAEO,IAAK,8BAAAA,eAAL;AACHA,aAAA,SAAA,IAAU;AACVA,aAAA,WAAA,IAAY;AACZA,aAAA,SAAA,IAAU;AACVA,aAAA,QAAA,IAAS;AAJD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAmDL,IAAK,qCAAAC,sBAAL;AACHA,oBAAA,KAAA,IAAM;AACNA,oBAAA,MAAA,IAAO;AACPA,oBAAA,MAAA,IAAO;AAHC,SAAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextStyleTypes.cjs.js","sources":["../../../src/types/TextStyleTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\nimport { VerticalAlign } from './FrameTypes';\n\nexport enum FontWeights {\n BOLD = 'Bold',\n ITALIC = 'Italic',\n REGULAR = 'Regular',\n}\nexport enum Alignment {\n LEFT = 'left',\n CENTER = 'center',\n RIGHT = 'right',\n JUSTIFY = 'justify',\n}\n\nexport enum TextPosition {\n TOP = 'top',\n CENTER = 'center',\n BOTTOM = 'bottom',\n}\nexport enum Case {\n TO_LOWER_CASE = 'lowercase',\n TO_UPPER_CASE = 'uppercase',\n NORMAL = 'normal',\n}\nexport enum Scripting {\n SUPERSCRIPT = 'superscript',\n SUBSCRIPT = 'subscript',\n NORMAL = 'normal',\n}\n\nexport type DisplayColor = ColorUsage & {\n isApplied: boolean;\n};\nexport interface TextProperties {\n fontKey?: string;\n fontStyle?: FontWeights;\n fontSize?: number;\n textAlign?: Alignment;\n verticalAlign?: VerticalAlign;\n underline?: boolean;\n lineThrough?: boolean;\n letterSpacing?: string;\n trackingRight?: string;\n lineHeight?: number;\n SUB_SUPER_SCRIPT?: Scripting;\n typographicCase?: Case;\n color?: DisplayColor;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\n\nexport interface TextStyle {\n paragraph?: string;\n character?: string;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\nexport type TextStyleUpdateType = {\n [key in keyof typeof SelectedTextStyles]?: {\n value: number | string | boolean;\n };\n};\n\nexport interface AppearanceProperties {\n blendMode?: string;\n opacity?: string;\n useFill?: boolean;\n useStroke?: boolean;\n useBackground?: boolean;\n useDropShadow?: boolean;\n fillColor?: string;\n strokeColor?: string;\n backgroundColor?: string;\n dropShadowColor?: string;\n}\n\nexport interface SelectedTextStyle {\n paragraphStyleId?: string;\n characterStyleId?: string;\n fontKey?: string;\n fontSize?: number;\n typographicCase?: Case;\n kerningOn?: boolean;\n subSuperScript?: Scripting;\n trackingLeft?: number;\n trackingRight?: number;\n paragraphIndentStart?: string;\n paragraphIndentEnd?: string;\n paragraphSpaceBefore?: string;\n paragraphSpaceAfter?: string;\n textIndent?: string;\n alignToBaseLine?: boolean;\n baselineShiftValue?: string;\n lineHeight?: number;\n verticalAlign?: VerticalAlign;\n copyfittingScale?: number;\n textAlign?: HorizontalAlign;\n textAlignLast?: HorizontalAlign;\n textOverprint?: boolean;\n color?: DisplayColor;\n strokeColor?: DisplayColor;\n backgroundColor?: DisplayColor;\n fillColorApplied?: boolean;\n strokeColorApplied?: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth?: number;\n underline?: boolean;\n lineThrough?: boolean;\n hasLocalFormatting: boolean;\n markedListType?: MarkedListType;\n markedListGroup?: string;\n markedListLevel?: number;\n}\n\nexport enum HorizontalAlign {\n left = 'left',\n center = 'center',\n right = 'right',\n justify = 'justify',\n}\n\nexport enum MarkedListType {\n none = 'none',\n bullet = 'bullet',\n number = 'number',\n}\n\nexport enum SelectedTextStyleSections {\n STYLE = 'textStyle',\n PROPERTIES = 'textProperties',\n APPEARANCE = 'appearance',\n}\n\nexport enum SelectedTextStyles {\n PARAGRAPH = 'paragraphStyleId',\n CHARACTER = 'characterStyleId',\n FONT_FAMILY = 'fontKey',\n FONT_STYLE = 'fontStyle',\n FONT_SIZE = 'fontSize',\n LETTER_SPACING = 'letterSpacing',\n LINE_HEIGHT = 'lineHeight',\n TEXT_ALIGN = 'textAlign',\n VERTICAL_ALIGN = 'verticalAlign',\n TYPOGRAPHIC_CASE = 'typographicCase',\n SUB_SUPER_SCRIPT = 'subSuperScript',\n UNDERLINE = 'underline',\n LINE_THROUGH = 'lineThrough',\n FILL_COLOR = 'fillColor',\n COLOR = 'color',\n FILL_COLOR_APPLIED = 'fillColorApplied',\n STROKE_COLOR = 'strokeColor',\n STROKE_COLOR_APPLIED = 'strokeColorApplied',\n BACKGROUND_COLOR = 'backgroundColor',\n BACKGROUND_COLOR_APPLIED = 'backgroundColorApplied',\n DROP_SHADOW_COLOR = 'dropShadowColor',\n BLEND_MODE = 'blendMode',\n OPACITY = 'opacity',\n TRACKING_RIGHT = 'trackingRight',\n BASELINE_SHIFT = 'baselineShiftValue',\n STROKE_WIDTH = 'strokeWidth',\n MARKED_LIST_TYPE = 'markedListType',\n MARKED_LIST_GROUP = 'markedListGroup',\n MARKED_LIST_LEVEL = 'markedListLevel',\n}\n\nexport interface UpdateStyleType {\n path: { value: number | string | Record<string, unknown> | null | boolean | undefined };\n}\n"],"names":["FontWeights","Alignment","TextPosition","Case","Scripting","MarkedListType","SelectedTextStyleSections","SelectedTextStyles"],"mappings":";;AAGO,IAAK,gCAAAA,iBAAL;AACHA,eAAA,MAAA,IAAO;AACPA,eAAA,QAAA,IAAS;AACTA,eAAA,SAAA,IAAU;AAHF,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;AAKL,IAAK,8BAAAC,eAAL;AACHA,aAAA,MAAA,IAAO;AACPA,aAAA,QAAA,IAAS;AACTA,aAAA,OAAA,IAAQ;AACRA,aAAA,SAAA,IAAU;AAJF,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAOL,IAAK,iCAAAC,kBAAL;AACHA,gBAAA,KAAA,IAAM;AACNA,gBAAA,QAAA,IAAS;AACTA,gBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAKL,IAAK,yBAAAC,UAAL;AACHA,QAAA,eAAA,IAAgB;AAChBA,QAAA,eAAA,IAAgB;AAChBA,QAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;AAKL,IAAK,8BAAAC,eAAL;AACHA,aAAA,aAAA,IAAc;AACdA,aAAA,WAAA,IAAY;AACZA,aAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AA+FL,IAAK,mCAAAC,oBAAL;AACHA,kBAAA,MAAA,IAAO;AACPA,kBAAA,QAAA,IAAS;AACTA,kBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;AAML,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,YAAA,IAAa;AACbA,6BAAA,YAAA,IAAa;AAHL,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;AAML,IAAK,uCAAAC,wBAAL;AACHA,sBAAA,WAAA,IAAY;AACZA,sBAAA,WAAA,IAAY;AACZA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,WAAA,IAAY;AACZA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,WAAA,IAAY;AACZA,sBAAA,cAAA,IAAe;AACfA,sBAAA,YAAA,IAAa;AACbA,sBAAA,OAAA,IAAQ;AACRA,sBAAA,oBAAA,IAAqB;AACrBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,sBAAA,IAAuB;AACvBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,0BAAA,IAA2B;AAC3BA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,YAAA,IAAa;AACbA,sBAAA,SAAA,IAAU;AACVA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,mBAAA,IAAoB;AA7BZ,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;;;;;;;;;"}
1
+ {"version":3,"file":"TextStyleTypes.cjs.js","sources":["../../../src/types/TextStyleTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\nimport { VerticalAlign } from './FrameTypes';\n\nexport enum FontWeights {\n BOLD = 'Bold',\n ITALIC = 'Italic',\n REGULAR = 'Regular',\n}\nexport enum Alignment {\n LEFT = 'left',\n CENTER = 'center',\n RIGHT = 'right',\n JUSTIFY = 'justify',\n}\n\nexport enum TextPosition {\n TOP = 'top',\n CENTER = 'center',\n BOTTOM = 'bottom',\n}\nexport enum Case {\n TO_LOWER_CASE = 'lowercase',\n TO_UPPER_CASE = 'uppercase',\n NORMAL = 'normal',\n}\nexport enum Scripting {\n SUPERSCRIPT = 'superscript',\n SUBSCRIPT = 'subscript',\n NORMAL = 'normal',\n}\n\nexport type DisplayColor = ColorUsage & {\n isApplied: boolean;\n};\nexport interface TextProperties {\n fontKey?: string;\n fontStyle?: FontWeights;\n fontSize?: number;\n textAlign?: Alignment;\n verticalAlign?: VerticalAlign;\n underline?: boolean;\n lineThrough?: boolean;\n letterSpacing?: string;\n trackingRight?: string;\n lineHeight?: number;\n SUB_SUPER_SCRIPT?: Scripting;\n typographicCase?: Case;\n color?: DisplayColor;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\n\nexport interface TextStyle {\n paragraph?: string;\n character?: string;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\nexport type TextStyleUpdateType = {\n [key in keyof typeof SelectedTextStyles]?: {\n value: number | string | boolean;\n };\n};\n\nexport interface AppearanceProperties {\n blendMode?: string;\n opacity?: string;\n useFill?: boolean;\n useStroke?: boolean;\n useBackground?: boolean;\n useDropShadow?: boolean;\n fillColor?: string;\n strokeColor?: string;\n backgroundColor?: string;\n dropShadowColor?: string;\n}\n\nexport interface SelectedTextStyle {\n paragraphStyleId?: string;\n characterStyleId?: string;\n fontKey?: string;\n fontSize?: number;\n typographicCase?: Case;\n kerningOn?: boolean;\n subSuperScript?: Scripting;\n trackingLeft?: number;\n trackingRight?: number;\n paragraphIndentStart?: string;\n paragraphIndentEnd?: string;\n paragraphSpaceBefore?: string;\n paragraphSpaceAfter?: string;\n textIndent?: string;\n alignToBaseLine?: boolean;\n baselineShiftValue?: string;\n lineHeight?: number;\n verticalAlign?: VerticalAlign;\n copyfittingScale?: number;\n textAlign?: HorizontalAlign;\n textAlignLast?: HorizontalAlign;\n fillOverprint?: boolean;\n strokeOverprint?: boolean;\n color?: DisplayColor;\n strokeColor?: DisplayColor;\n backgroundColor?: DisplayColor;\n fillColorApplied?: boolean;\n strokeColorApplied?: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth?: number;\n underline?: boolean;\n lineThrough?: boolean;\n hasLocalFormatting: boolean;\n markedListType?: MarkedListType;\n markedListGroup?: string;\n markedListLevel?: number;\n}\n\nexport enum HorizontalAlign {\n left = 'left',\n center = 'center',\n right = 'right',\n justify = 'justify',\n}\n\nexport enum MarkedListType {\n none = 'none',\n bullet = 'bullet',\n number = 'number',\n}\n\nexport enum SelectedTextStyleSections {\n STYLE = 'textStyle',\n PROPERTIES = 'textProperties',\n APPEARANCE = 'appearance',\n}\n\nexport enum SelectedTextStyles {\n PARAGRAPH = 'paragraphStyleId',\n CHARACTER = 'characterStyleId',\n FONT_FAMILY = 'fontKey',\n FONT_STYLE = 'fontStyle',\n FONT_SIZE = 'fontSize',\n LETTER_SPACING = 'letterSpacing',\n LINE_HEIGHT = 'lineHeight',\n TEXT_ALIGN = 'textAlign',\n VERTICAL_ALIGN = 'verticalAlign',\n TYPOGRAPHIC_CASE = 'typographicCase',\n SUB_SUPER_SCRIPT = 'subSuperScript',\n UNDERLINE = 'underline',\n LINE_THROUGH = 'lineThrough',\n FILL_COLOR = 'fillColor',\n COLOR = 'color',\n FILL_COLOR_APPLIED = 'fillColorApplied',\n STROKE_COLOR = 'strokeColor',\n STROKE_COLOR_APPLIED = 'strokeColorApplied',\n BACKGROUND_COLOR = 'backgroundColor',\n BACKGROUND_COLOR_APPLIED = 'backgroundColorApplied',\n DROP_SHADOW_COLOR = 'dropShadowColor',\n BLEND_MODE = 'blendMode',\n OPACITY = 'opacity',\n TRACKING_RIGHT = 'trackingRight',\n BASELINE_SHIFT = 'baselineShiftValue',\n STROKE_WIDTH = 'strokeWidth',\n MARKED_LIST_TYPE = 'markedListType',\n MARKED_LIST_GROUP = 'markedListGroup',\n MARKED_LIST_LEVEL = 'markedListLevel',\n}\n\nexport interface UpdateStyleType {\n path: { value: number | string | Record<string, unknown> | null | boolean | undefined };\n}\n"],"names":["FontWeights","Alignment","TextPosition","Case","Scripting","MarkedListType","SelectedTextStyleSections","SelectedTextStyles"],"mappings":";;AAGO,IAAK,gCAAAA,iBAAL;AACHA,eAAA,MAAA,IAAO;AACPA,eAAA,QAAA,IAAS;AACTA,eAAA,SAAA,IAAU;AAHF,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;AAKL,IAAK,8BAAAC,eAAL;AACHA,aAAA,MAAA,IAAO;AACPA,aAAA,QAAA,IAAS;AACTA,aAAA,OAAA,IAAQ;AACRA,aAAA,SAAA,IAAU;AAJF,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAOL,IAAK,iCAAAC,kBAAL;AACHA,gBAAA,KAAA,IAAM;AACNA,gBAAA,QAAA,IAAS;AACTA,gBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAKL,IAAK,yBAAAC,UAAL;AACHA,QAAA,eAAA,IAAgB;AAChBA,QAAA,eAAA,IAAgB;AAChBA,QAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;AAKL,IAAK,8BAAAC,eAAL;AACHA,aAAA,aAAA,IAAc;AACdA,aAAA,WAAA,IAAY;AACZA,aAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAgGL,IAAK,mCAAAC,oBAAL;AACHA,kBAAA,MAAA,IAAO;AACPA,kBAAA,QAAA,IAAS;AACTA,kBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;AAML,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,YAAA,IAAa;AACbA,6BAAA,YAAA,IAAa;AAHL,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;AAML,IAAK,uCAAAC,wBAAL;AACHA,sBAAA,WAAA,IAAY;AACZA,sBAAA,WAAA,IAAY;AACZA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,WAAA,IAAY;AACZA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,WAAA,IAAY;AACZA,sBAAA,cAAA,IAAe;AACfA,sBAAA,YAAA,IAAa;AACbA,sBAAA,OAAA,IAAQ;AACRA,sBAAA,oBAAA,IAAqB;AACrBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,sBAAA,IAAuB;AACvBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,0BAAA,IAA2B;AAC3BA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,YAAA,IAAa;AACbA,sBAAA,SAAA,IAAU;AACVA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,mBAAA,IAAoB;AA7BZ,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;;;;;;;;;"}
@@ -89,7 +89,8 @@ export interface SelectedTextStyle {
89
89
  copyfittingScale?: number;
90
90
  textAlign?: HorizontalAlign;
91
91
  textAlignLast?: HorizontalAlign;
92
- textOverprint?: boolean;
92
+ fillOverprint?: boolean;
93
+ strokeOverprint?: boolean;
93
94
  color?: DisplayColor;
94
95
  strokeColor?: DisplayColor;
95
96
  backgroundColor?: DisplayColor;
@@ -1 +1 @@
1
- {"version":3,"file":"TextStyleTypes.es.js","sources":["../../../src/types/TextStyleTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\nimport { VerticalAlign } from './FrameTypes';\n\nexport enum FontWeights {\n BOLD = 'Bold',\n ITALIC = 'Italic',\n REGULAR = 'Regular',\n}\nexport enum Alignment {\n LEFT = 'left',\n CENTER = 'center',\n RIGHT = 'right',\n JUSTIFY = 'justify',\n}\n\nexport enum TextPosition {\n TOP = 'top',\n CENTER = 'center',\n BOTTOM = 'bottom',\n}\nexport enum Case {\n TO_LOWER_CASE = 'lowercase',\n TO_UPPER_CASE = 'uppercase',\n NORMAL = 'normal',\n}\nexport enum Scripting {\n SUPERSCRIPT = 'superscript',\n SUBSCRIPT = 'subscript',\n NORMAL = 'normal',\n}\n\nexport type DisplayColor = ColorUsage & {\n isApplied: boolean;\n};\nexport interface TextProperties {\n fontKey?: string;\n fontStyle?: FontWeights;\n fontSize?: number;\n textAlign?: Alignment;\n verticalAlign?: VerticalAlign;\n underline?: boolean;\n lineThrough?: boolean;\n letterSpacing?: string;\n trackingRight?: string;\n lineHeight?: number;\n SUB_SUPER_SCRIPT?: Scripting;\n typographicCase?: Case;\n color?: DisplayColor;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\n\nexport interface TextStyle {\n paragraph?: string;\n character?: string;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\nexport type TextStyleUpdateType = {\n [key in keyof typeof SelectedTextStyles]?: {\n value: number | string | boolean;\n };\n};\n\nexport interface AppearanceProperties {\n blendMode?: string;\n opacity?: string;\n useFill?: boolean;\n useStroke?: boolean;\n useBackground?: boolean;\n useDropShadow?: boolean;\n fillColor?: string;\n strokeColor?: string;\n backgroundColor?: string;\n dropShadowColor?: string;\n}\n\nexport interface SelectedTextStyle {\n paragraphStyleId?: string;\n characterStyleId?: string;\n fontKey?: string;\n fontSize?: number;\n typographicCase?: Case;\n kerningOn?: boolean;\n subSuperScript?: Scripting;\n trackingLeft?: number;\n trackingRight?: number;\n paragraphIndentStart?: string;\n paragraphIndentEnd?: string;\n paragraphSpaceBefore?: string;\n paragraphSpaceAfter?: string;\n textIndent?: string;\n alignToBaseLine?: boolean;\n baselineShiftValue?: string;\n lineHeight?: number;\n verticalAlign?: VerticalAlign;\n copyfittingScale?: number;\n textAlign?: HorizontalAlign;\n textAlignLast?: HorizontalAlign;\n textOverprint?: boolean;\n color?: DisplayColor;\n strokeColor?: DisplayColor;\n backgroundColor?: DisplayColor;\n fillColorApplied?: boolean;\n strokeColorApplied?: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth?: number;\n underline?: boolean;\n lineThrough?: boolean;\n hasLocalFormatting: boolean;\n markedListType?: MarkedListType;\n markedListGroup?: string;\n markedListLevel?: number;\n}\n\nexport enum HorizontalAlign {\n left = 'left',\n center = 'center',\n right = 'right',\n justify = 'justify',\n}\n\nexport enum MarkedListType {\n none = 'none',\n bullet = 'bullet',\n number = 'number',\n}\n\nexport enum SelectedTextStyleSections {\n STYLE = 'textStyle',\n PROPERTIES = 'textProperties',\n APPEARANCE = 'appearance',\n}\n\nexport enum SelectedTextStyles {\n PARAGRAPH = 'paragraphStyleId',\n CHARACTER = 'characterStyleId',\n FONT_FAMILY = 'fontKey',\n FONT_STYLE = 'fontStyle',\n FONT_SIZE = 'fontSize',\n LETTER_SPACING = 'letterSpacing',\n LINE_HEIGHT = 'lineHeight',\n TEXT_ALIGN = 'textAlign',\n VERTICAL_ALIGN = 'verticalAlign',\n TYPOGRAPHIC_CASE = 'typographicCase',\n SUB_SUPER_SCRIPT = 'subSuperScript',\n UNDERLINE = 'underline',\n LINE_THROUGH = 'lineThrough',\n FILL_COLOR = 'fillColor',\n COLOR = 'color',\n FILL_COLOR_APPLIED = 'fillColorApplied',\n STROKE_COLOR = 'strokeColor',\n STROKE_COLOR_APPLIED = 'strokeColorApplied',\n BACKGROUND_COLOR = 'backgroundColor',\n BACKGROUND_COLOR_APPLIED = 'backgroundColorApplied',\n DROP_SHADOW_COLOR = 'dropShadowColor',\n BLEND_MODE = 'blendMode',\n OPACITY = 'opacity',\n TRACKING_RIGHT = 'trackingRight',\n BASELINE_SHIFT = 'baselineShiftValue',\n STROKE_WIDTH = 'strokeWidth',\n MARKED_LIST_TYPE = 'markedListType',\n MARKED_LIST_GROUP = 'markedListGroup',\n MARKED_LIST_LEVEL = 'markedListLevel',\n}\n\nexport interface UpdateStyleType {\n path: { value: number | string | Record<string, unknown> | null | boolean | undefined };\n}\n"],"names":["FontWeights","Alignment","TextPosition","Case","Scripting","MarkedListType","SelectedTextStyleSections","SelectedTextStyles"],"mappings":"AAGO,IAAK,gCAAAA,iBAAL;AACHA,eAAA,MAAA,IAAO;AACPA,eAAA,QAAA,IAAS;AACTA,eAAA,SAAA,IAAU;AAHF,SAAAA;AAAA,GAAA,eAAA,CAAA,CAAA;AAKL,IAAK,8BAAAC,eAAL;AACHA,aAAA,MAAA,IAAO;AACPA,aAAA,QAAA,IAAS;AACTA,aAAA,OAAA,IAAQ;AACRA,aAAA,SAAA,IAAU;AAJF,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAOL,IAAK,iCAAAC,kBAAL;AACHA,gBAAA,KAAA,IAAM;AACNA,gBAAA,QAAA,IAAS;AACTA,gBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAKL,IAAK,yBAAAC,UAAL;AACHA,QAAA,eAAA,IAAgB;AAChBA,QAAA,eAAA,IAAgB;AAChBA,QAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;AAKL,IAAK,8BAAAC,eAAL;AACHA,aAAA,aAAA,IAAc;AACdA,aAAA,WAAA,IAAY;AACZA,aAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AA+FL,IAAK,mCAAAC,oBAAL;AACHA,kBAAA,MAAA,IAAO;AACPA,kBAAA,QAAA,IAAS;AACTA,kBAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;AAML,IAAK,8CAAAC,+BAAL;AACHA,6BAAA,OAAA,IAAQ;AACRA,6BAAA,YAAA,IAAa;AACbA,6BAAA,YAAA,IAAa;AAHL,SAAAA;AAAA,GAAA,6BAAA,CAAA,CAAA;AAML,IAAK,uCAAAC,wBAAL;AACHA,sBAAA,WAAA,IAAY;AACZA,sBAAA,WAAA,IAAY;AACZA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,WAAA,IAAY;AACZA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,WAAA,IAAY;AACZA,sBAAA,cAAA,IAAe;AACfA,sBAAA,YAAA,IAAa;AACbA,sBAAA,OAAA,IAAQ;AACRA,sBAAA,oBAAA,IAAqB;AACrBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,sBAAA,IAAuB;AACvBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,0BAAA,IAA2B;AAC3BA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,YAAA,IAAa;AACbA,sBAAA,SAAA,IAAU;AACVA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,mBAAA,IAAoB;AA7BZ,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"TextStyleTypes.es.js","sources":["../../../src/types/TextStyleTypes.ts"],"sourcesContent":["import { ColorUsage } from './ColorStyleTypes';\nimport { VerticalAlign } from './FrameTypes';\n\nexport enum FontWeights {\n BOLD = 'Bold',\n ITALIC = 'Italic',\n REGULAR = 'Regular',\n}\nexport enum Alignment {\n LEFT = 'left',\n CENTER = 'center',\n RIGHT = 'right',\n JUSTIFY = 'justify',\n}\n\nexport enum TextPosition {\n TOP = 'top',\n CENTER = 'center',\n BOTTOM = 'bottom',\n}\nexport enum Case {\n TO_LOWER_CASE = 'lowercase',\n TO_UPPER_CASE = 'uppercase',\n NORMAL = 'normal',\n}\nexport enum Scripting {\n SUPERSCRIPT = 'superscript',\n SUBSCRIPT = 'subscript',\n NORMAL = 'normal',\n}\n\nexport type DisplayColor = ColorUsage & {\n isApplied: boolean;\n};\nexport interface TextProperties {\n fontKey?: string;\n fontStyle?: FontWeights;\n fontSize?: number;\n textAlign?: Alignment;\n verticalAlign?: VerticalAlign;\n underline?: boolean;\n lineThrough?: boolean;\n letterSpacing?: string;\n trackingRight?: string;\n lineHeight?: number;\n SUB_SUPER_SCRIPT?: Scripting;\n typographicCase?: Case;\n color?: DisplayColor;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\n\nexport interface TextStyle {\n paragraph?: string;\n character?: string;\n [key: string]: number | string | Record<string, unknown> | null | boolean | undefined;\n}\nexport type TextStyleUpdateType = {\n [key in keyof typeof SelectedTextStyles]?: {\n value: number | string | boolean;\n };\n};\n\nexport interface AppearanceProperties {\n blendMode?: string;\n opacity?: string;\n useFill?: boolean;\n useStroke?: boolean;\n useBackground?: boolean;\n useDropShadow?: boolean;\n fillColor?: string;\n strokeColor?: string;\n backgroundColor?: string;\n dropShadowColor?: string;\n}\n\nexport interface SelectedTextStyle {\n paragraphStyleId?: string;\n characterStyleId?: string;\n fontKey?: string;\n fontSize?: number;\n typographicCase?: Case;\n kerningOn?: boolean;\n subSuperScript?: Scripting;\n trackingLeft?: number;\n trackingRight?: number;\n paragraphIndentStart?: string;\n paragraphIndentEnd?: string;\n paragraphSpaceBefore?: string;\n paragraphSpaceAfter?: string;\n textIndent?: string;\n alignToBaseLine?: boolean;\n baselineShiftValue?: string;\n lineHeight?: number;\n verticalAlign?: VerticalAlign;\n copyfittingScale?: number;\n textAlign?: HorizontalAlign;\n textAlignLast?: HorizontalAlign;\n fillOverprint?: boolean;\n strokeOverprint?: boolean;\n color?: DisplayColor;\n strokeColor?: DisplayColor;\n backgroundColor?: DisplayColor;\n fillColorApplied?: boolean;\n strokeColorApplied?: boolean;\n backgroundColorApplied?: boolean;\n strokeWidth?: number;\n underline?: boolean;\n lineThrough?: boolean;\n hasLocalFormatting: boolean;\n markedListType?: MarkedListType;\n markedListGroup?: string;\n markedListLevel?: number;\n}\n\nexport enum HorizontalAlign {\n left = 'left',\n center = 'center',\n right = 'right',\n justify = 'justify',\n}\n\nexport enum MarkedListType {\n none = 'none',\n bullet = 'bullet',\n number = 'number',\n}\n\nexport enum SelectedTextStyleSections {\n STYLE = 'textStyle',\n PROPERTIES = 'textProperties',\n APPEARANCE = 'appearance',\n}\n\nexport enum SelectedTextStyles {\n PARAGRAPH = 'paragraphStyleId',\n CHARACTER = 'characterStyleId',\n FONT_FAMILY = 'fontKey',\n FONT_STYLE = 'fontStyle',\n FONT_SIZE = 'fontSize',\n LETTER_SPACING = 'letterSpacing',\n LINE_HEIGHT = 'lineHeight',\n TEXT_ALIGN = 'textAlign',\n VERTICAL_ALIGN = 'verticalAlign',\n TYPOGRAPHIC_CASE = 'typographicCase',\n SUB_SUPER_SCRIPT = 'subSuperScript',\n UNDERLINE = 'underline',\n LINE_THROUGH = 'lineThrough',\n FILL_COLOR = 'fillColor',\n COLOR = 'color',\n FILL_COLOR_APPLIED = 'fillColorApplied',\n STROKE_COLOR = 'strokeColor',\n STROKE_COLOR_APPLIED = 'strokeColorApplied',\n BACKGROUND_COLOR = 'backgroundColor',\n BACKGROUND_COLOR_APPLIED = 'backgroundColorApplied',\n DROP_SHADOW_COLOR = 'dropShadowColor',\n BLEND_MODE = 'blendMode',\n OPACITY = 'opacity',\n TRACKING_RIGHT = 'trackingRight',\n BASELINE_SHIFT = 'baselineShiftValue',\n STROKE_WIDTH = 'strokeWidth',\n MARKED_LIST_TYPE = 'markedListType',\n MARKED_LIST_GROUP = 'markedListGroup',\n MARKED_LIST_LEVEL = 'markedListLevel',\n}\n\nexport interface UpdateStyleType {\n path: { value: number | string | Record<string, unknown> | null | boolean | undefined };\n}\n"],"names":["FontWeights","Alignment","TextPosition","Case","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,WAAA,IAAY;AACZA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,aAAA,IAAc;AACdA,sBAAA,YAAA,IAAa;AACbA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,WAAA,IAAY;AACZA,sBAAA,cAAA,IAAe;AACfA,sBAAA,YAAA,IAAa;AACbA,sBAAA,OAAA,IAAQ;AACRA,sBAAA,oBAAA,IAAqB;AACrBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,sBAAA,IAAuB;AACvBA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,0BAAA,IAA2B;AAC3BA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,YAAA,IAAa;AACbA,sBAAA,SAAA,IAAU;AACVA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,gBAAA,IAAiB;AACjBA,sBAAA,cAAA,IAAe;AACfA,sBAAA,kBAAA,IAAmB;AACnBA,sBAAA,mBAAA,IAAoB;AACpBA,sBAAA,mBAAA,IAAoB;AA7BZ,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"VariableTypes.cjs.js","sources":["../../../src/types/VariableTypes.ts"],"sourcesContent":["import { DataModelProperty, Dictionary } from '@chili-studio/connector-types';\nimport { Id, PrivateData } from './CommonTypes';\n\nexport interface ConnectorImageVariableSource {\n connectorId: string;\n /**\n * The requested asset id or name\n */\n assetId: string;\n /**\n * If the connector was able to query, this will contain\n * the actual resolved media Id.\n */\n resolved?: ResolvedMedia;\n\n /**\n * The context of the variable that will be passed to the connector\n */\n context: Dictionary;\n}\n\n/**\n * Image variable query lookup result\n */\nexport interface ResolvedMedia {\n /**\n * The resolved media Id.\n * This id can be used to perform the download call.\n */\n mediaId: string;\n}\n\nexport enum VariableType {\n shortText = 'shortText',\n longText = 'longText',\n richText = 'richText',\n image = 'image',\n list = 'list',\n boolean = 'boolean',\n group = 'group',\n number = 'number',\n date = 'date',\n dataSource = 'dataSource',\n}\n\nexport interface Variable {\n id: string;\n type: VariableType;\n parentId?: string;\n name: string;\n label?: string | null;\n isVisible: boolean;\n visibility: VariableVisibility;\n isReadonly: boolean;\n isRequired: boolean;\n occurrences: number;\n placeholder?: string | null;\n helpText?: string | null;\n privateData: PrivateData;\n}\n\nexport interface ImageVariable extends Variable {\n value?: ConnectorImageVariableSource;\n allowQuery: boolean;\n allowUpload: boolean;\n uploadMinHeight?: number | null;\n uploadMinWidth?: number | null;\n}\n\nexport interface ListVariableItem {\n value: string;\n displayValue?: string;\n}\n\nexport interface ListVariable extends Variable {\n items: string[];\n selected?: string;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface BooleanVariable extends Variable {\n value: boolean;\n}\n\nexport interface ShortTextVariable extends Variable {\n value: string;\n removeParagraphIfEmpty: boolean;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n isDontBreak: boolean;\n maxCharacters?: number;\n}\n\nexport interface NumberVariable extends Variable {\n value: number;\n numberOfDecimals: number;\n decimalCharacterStyleId?: string;\n decimalSeparator: string;\n thousandsSeparator: string;\n minValue?: number;\n maxValue?: number;\n showStepper: boolean;\n stepSize: number;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface DateVariable extends Variable {\n value?: string;\n removeParagraphIfEmpty: boolean;\n displayFormat: string;\n startDate?: DateRestriction;\n endDate?: DateRestriction;\n excludedDays: Day[];\n locale: Locale;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport type LongTextVariable = ShortTextVariable;\n\nexport type GroupVariable = Variable;\n\nexport interface DataSourceVariable extends Variable {\n value?: DataSourceVariableSource;\n displayOptions: DataSourceVariableDisplayOptions;\n entryId?: RowId;\n}\n\nexport interface RichTextVariable extends Variable {\n value: null;\n ruleSetId: string;\n}\n\nexport type DateRestriction = RelativeDate | AbsoluteDate;\n\nexport interface ValueWithStyle {\n value?: string;\n style?: string;\n}\n\nexport interface RelativeDate {\n offset: number;\n type: 'relative';\n}\n\nexport interface AbsoluteDate {\n value: string;\n type: 'absolute';\n}\n\nexport enum Day {\n Monday = 'monday',\n Tuesday = 'tuesday',\n Wednesday = 'wednesday',\n Thursday = 'thursday',\n Friday = 'friday',\n Saturday = 'saturday',\n Sunday = 'sunday',\n}\n\nexport enum Locale {\n en_US = 'en_US',\n cs = 'cs',\n da = 'da',\n nl = 'nl',\n fi = 'fi',\n fr = 'fr',\n de = 'de',\n it = 'it',\n no = 'no',\n pl = 'pl',\n pt_PT = 'pt_PT',\n es_ES = 'es_ES',\n sv = 'sv',\n}\n\nexport interface DateVariablePropertiesDeltaUpdate {\n startDate?: {\n value: DateRestriction | null;\n };\n endDate?: {\n value: DateRestriction | null;\n };\n excludedDays?: {\n value: Day[] | null;\n };\n locale?: {\n value: Locale;\n };\n displayFormat?: {\n value: string;\n };\n}\n\nexport interface NumberVariablePropertiesDeltaUpdate {\n minValue?: {\n value: number | null;\n };\n maxValue?: {\n value: number | null;\n };\n showStepper?: {\n value: boolean;\n };\n stepSize?: {\n value: number;\n };\n numberOfDecimals?: {\n value: number;\n };\n decimalCharacterStyleId?: {\n value: string | null;\n };\n decimalSeparator?: {\n value: string;\n };\n thousandsSeparator?: {\n value: string;\n };\n}\n\nexport interface PrefixSuffixDeltaUpdate {\n prefix?: {\n value: string | null;\n };\n suffix?: {\n value: string | null;\n };\n prefixCharacterStyleId?: {\n value: string | null;\n };\n suffixCharacterStyleId?: {\n value: string | null;\n };\n}\n\nexport enum VariableVisibilityType {\n visible = 'visible',\n invisible = 'invisible',\n conditional = 'conditional',\n}\n\nexport enum VariableVisibilityTargetType {\n boolean = 'boolean',\n text = 'text',\n number = 'number',\n}\n\nexport enum VariableVisibilityOperator {\n equals = '=',\n notEquals = '!=',\n greaterThan = '>',\n greaterThanOrEquals = '>=',\n lessThan = '<',\n lessThanOrEquals = '<=',\n}\n\nexport interface VariableVisibilityBase {\n type: VariableVisibilityType;\n}\n\nexport interface VariableVisibilityVisible extends VariableVisibilityBase {\n type: VariableVisibilityType.visible;\n}\n\nexport interface VariableVisibilityInvisible extends VariableVisibilityBase {\n type: VariableVisibilityType.invisible;\n}\n\nexport interface VariableVisibilityConditional extends VariableVisibilityBase {\n type: VariableVisibilityType.conditional;\n layouts: VariableVisibilityLayout[];\n variables: VariableWithValue[];\n}\n\nexport type VariableVisibility =\n | VariableVisibilityVisible\n | VariableVisibilityInvisible\n | VariableVisibilityConditional;\n\nexport interface VariableVisibilityLayout {\n layoutId: string;\n includeChildren: boolean;\n}\n\nexport interface VariableWithValue {\n id: string;\n value: VariableVisibilityConditionValue;\n}\n\nexport interface VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType;\n}\n\nexport interface VariableVisibilityConditionValueBoolean extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.boolean;\n value: boolean;\n}\n\nexport interface VariableVisibilityConditionValueText extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.text;\n value: string;\n operator: VariableVisibilityOperator;\n}\n\nexport interface VariableVisibilityConditionValueNumber extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.number;\n value: number;\n operator: VariableVisibilityOperator;\n}\n\nexport type VariableVisibilityConditionValue =\n | VariableVisibilityConditionValueBoolean\n | VariableVisibilityConditionValueText\n | VariableVisibilityConditionValueNumber;\n\nexport type VariableUsagesReport = {\n pages: Id[];\n frames: Id[];\n actionTrigger: Id[];\n variables: Id[];\n outputDataSource: boolean;\n};\n\n// Data Source Variable Types\n\nexport type RowId = string;\n\nexport enum DataSourceVariableSourceType {\n injected = 'injected',\n connector = 'connector',\n}\n\nexport type InjectedDataSourceVariableSource = {\n type: DataSourceVariableSourceType.injected;\n model: DataModelProperty[];\n itemIdPropertyName: string;\n};\n\nexport type ConnectorDataSourceVariableSource = {\n type: DataSourceVariableSourceType.connector;\n connectorId: string;\n};\n\nexport type DataSourceVariableSource = InjectedDataSourceVariableSource | ConnectorDataSourceVariableSource;\n\nexport enum DataSourceVariableDisplayOptionsType {\n table = 'table',\n list = 'list',\n}\n\nexport interface DataSourceVariableDisplayOptionsTable {\n type: DataSourceVariableDisplayOptionsType.table;\n}\n\nexport interface DataSourceVariableDisplayOptionsList {\n type: DataSourceVariableDisplayOptionsType.list;\n displayColumn: string;\n}\n\nexport type DataSourceVariableDisplayOptions =\n | DataSourceVariableDisplayOptionsTable\n | DataSourceVariableDisplayOptionsList;\n"],"names":["VariableType","Day","Locale","VariableVisibilityType","VariableVisibilityTargetType","VariableVisibilityOperator","DataSourceVariableSourceType","DataSourceVariableDisplayOptionsType"],"mappings":";;AAgCO,IAAK,iCAAAA,kBAAL;AACHA,gBAAA,WAAA,IAAY;AACZA,gBAAA,UAAA,IAAW;AACXA,gBAAA,UAAA,IAAW;AACXA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,MAAA,IAAO;AACPA,gBAAA,SAAA,IAAU;AACVA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,QAAA,IAAS;AACTA,gBAAA,MAAA,IAAO;AACPA,gBAAA,YAAA,IAAa;AAVL,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAwHL,IAAK,wBAAAC,SAAL;AACHA,OAAA,QAAA,IAAS;AACTA,OAAA,SAAA,IAAU;AACVA,OAAA,WAAA,IAAY;AACZA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AACTA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AAPD,SAAAA;AAAA,GAAA,OAAA,CAAA,CAAA;AAUL,IAAK,2BAAAC,YAAL;AACHA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,IAAA,IAAK;AACLA,UAAA,OAAA,IAAQ;AACRA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,IAAK;AAbG,SAAAA;AAAA,GAAA,UAAA,CAAA,CAAA;AA4EL,IAAK,2CAAAC,4BAAL;AACHA,0BAAA,SAAA,IAAU;AACVA,0BAAA,WAAA,IAAY;AACZA,0BAAA,aAAA,IAAc;AAHN,SAAAA;AAAA,GAAA,0BAAA,CAAA,CAAA;AAML,IAAK,iDAAAC,kCAAL;AACHA,gCAAA,SAAA,IAAU;AACVA,gCAAA,MAAA,IAAO;AACPA,gCAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,gCAAA,CAAA,CAAA;AAML,IAAK,+CAAAC,gCAAL;AACHA,8BAAA,QAAA,IAAS;AACTA,8BAAA,WAAA,IAAY;AACZA,8BAAA,aAAA,IAAc;AACdA,8BAAA,qBAAA,IAAsB;AACtBA,8BAAA,UAAA,IAAW;AACXA,8BAAA,kBAAA,IAAmB;AANX,SAAAA;AAAA,GAAA,8BAAA,CAAA,CAAA;AAgFL,IAAK,iDAAAC,kCAAL;AACHA,gCAAA,UAAA,IAAW;AACXA,gCAAA,WAAA,IAAY;AAFJ,SAAAA;AAAA,GAAA,gCAAA,CAAA,CAAA;AAkBL,IAAK,yDAAAC,0CAAL;AACHA,wCAAA,OAAA,IAAQ;AACRA,wCAAA,MAAA,IAAO;AAFC,SAAAA;AAAA,GAAA,wCAAA,CAAA,CAAA;;;;;;;;;"}
1
+ {"version":3,"file":"VariableTypes.cjs.js","sources":["../../../src/types/VariableTypes.ts"],"sourcesContent":["import { DataModelProperty, Dictionary } from '@chili-studio/connector-types';\nimport { Id, PrivateData } from './CommonTypes';\n\nexport interface ConnectorImageVariableSource {\n connectorId: string;\n /**\n * The requested asset id or name\n */\n assetId: string;\n /**\n * If the connector was able to query, this will contain\n * the actual resolved media Id.\n */\n resolved?: ResolvedMedia;\n\n /**\n * The context of the variable that will be passed to the connector\n */\n context: Dictionary;\n}\n\n/**\n * Image variable query lookup result\n */\nexport interface ResolvedMedia {\n /**\n * The resolved media Id.\n * This id can be used to perform the download call.\n */\n mediaId: string;\n}\n\nexport enum VariableType {\n shortText = 'shortText',\n longText = 'longText',\n richText = 'richText',\n image = 'image',\n list = 'list',\n boolean = 'boolean',\n group = 'group',\n number = 'number',\n date = 'date',\n dataSource = 'dataSource',\n}\n\nexport interface Variable {\n id: string;\n type: VariableType;\n parentId?: string;\n name: string;\n label?: string | null;\n isVisible: boolean;\n visibility: VariableVisibility;\n isReadonly: boolean;\n isRequired: boolean;\n occurrences: number;\n placeholder?: string | null;\n helpText?: string | null;\n privateData: PrivateData;\n}\n\nexport interface ImageVariable extends Variable {\n value?: ConnectorImageVariableSource;\n allowQuery: boolean;\n allowUpload: boolean;\n uploadMinHeight?: number | null;\n uploadMinWidth?: number | null;\n}\n\nexport interface ListVariableItem {\n value: string;\n displayValue?: string;\n}\n\nexport interface ListVariable extends Variable {\n items: string[];\n selected?: string;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface BooleanVariable extends Variable {\n value: boolean;\n}\n\nexport interface ShortTextVariable extends Variable {\n value: string;\n removeParagraphIfEmpty: boolean;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n isDontBreak: boolean;\n maxCharacters?: number;\n}\n\nexport interface NumberVariable extends Variable {\n value: number;\n numberOfDecimals: number;\n decimalCharacterStyleId?: string;\n decimalSeparator: string;\n thousandsSeparator: string;\n minValue?: number;\n maxValue?: number;\n showStepper: boolean;\n stepSize: number;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport interface DateVariable extends Variable {\n value?: string;\n removeParagraphIfEmpty: boolean;\n displayFormat: string;\n startDate?: DateRestriction;\n endDate?: DateRestriction;\n excludedDays: Day[];\n locale: Locale;\n prefix?: ValueWithStyle;\n suffix?: ValueWithStyle;\n}\n\nexport type LongTextVariable = ShortTextVariable;\n\nexport type GroupVariable = Variable;\n\nexport interface DataSourceVariable extends Variable {\n value?: DataSourceVariableSource;\n displayOptions: DataSourceVariableDisplayOptions;\n entryId?: RowId;\n}\n\nexport interface RichTextVariable extends Variable {\n value: null;\n ruleSetId: string;\n}\n\nexport type DateRestriction = RelativeDate | AbsoluteDate;\n\nexport interface ValueWithStyle {\n value?: string;\n style?: string;\n}\n\nexport interface RelativeDate {\n offset: number;\n type: 'relative';\n}\n\nexport interface AbsoluteDate {\n value: string;\n type: 'absolute';\n}\n\nexport enum Day {\n Monday = 'monday',\n Tuesday = 'tuesday',\n Wednesday = 'wednesday',\n Thursday = 'thursday',\n Friday = 'friday',\n Saturday = 'saturday',\n Sunday = 'sunday',\n}\n\nexport enum Locale {\n en_US = 'en_US',\n cs = 'cs',\n da = 'da',\n nl = 'nl',\n fi = 'fi',\n fr = 'fr',\n de = 'de',\n it = 'it',\n no = 'no',\n pl = 'pl',\n pt_PT = 'pt_PT',\n es_ES = 'es_ES',\n sv = 'sv',\n}\n\nexport interface DateVariablePropertiesDeltaUpdate {\n startDate?: {\n value: DateRestriction | null;\n };\n endDate?: {\n value: DateRestriction | null;\n };\n excludedDays?: {\n value: Day[] | null;\n };\n locale?: {\n value: Locale;\n };\n displayFormat?: {\n value: string;\n };\n}\n\nexport interface NumberVariablePropertiesDeltaUpdate {\n minValue?: {\n value: number | null;\n };\n maxValue?: {\n value: number | null;\n };\n showStepper?: {\n value: boolean;\n };\n stepSize?: {\n value: number;\n };\n numberOfDecimals?: {\n value: number;\n };\n decimalCharacterStyleId?: {\n value: string | null;\n };\n decimalSeparator?: {\n value: string;\n };\n thousandsSeparator?: {\n value: string;\n };\n}\n\nexport interface PrefixSuffixDeltaUpdate {\n prefix?: {\n value: string | null;\n };\n suffix?: {\n value: string | null;\n };\n prefixCharacterStyleId?: {\n value: string | null;\n };\n suffixCharacterStyleId?: {\n value: string | null;\n };\n}\n\nexport enum VariableVisibilityType {\n visible = 'visible',\n invisible = 'invisible',\n conditional = 'conditional',\n}\n\nexport enum VariableVisibilityTargetType {\n boolean = 'boolean',\n text = 'text',\n number = 'number',\n}\n\nexport enum VariableVisibilityOperator {\n equals = '=',\n notEquals = '!=',\n greaterThan = '>',\n greaterThanOrEquals = '>=',\n lessThan = '<',\n lessThanOrEquals = '<=',\n}\n\nexport interface VariableVisibilityBase {\n type: VariableVisibilityType;\n}\n\nexport interface VariableVisibilityVisible extends VariableVisibilityBase {\n type: VariableVisibilityType.visible;\n}\n\nexport interface VariableVisibilityInvisible extends VariableVisibilityBase {\n type: VariableVisibilityType.invisible;\n}\n\nexport interface VariableVisibilityConditional extends VariableVisibilityBase {\n type: VariableVisibilityType.conditional;\n layouts: VariableVisibilityLayout[];\n variables: VariableWithValue[];\n}\n\nexport type VariableVisibility =\n VariableVisibilityVisible | VariableVisibilityInvisible | VariableVisibilityConditional;\n\nexport interface VariableVisibilityLayout {\n layoutId: string;\n includeChildren: boolean;\n}\n\nexport interface VariableWithValue {\n id: string;\n value: VariableVisibilityConditionValue;\n}\n\nexport interface VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType;\n}\n\nexport interface VariableVisibilityConditionValueBoolean extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.boolean;\n value: boolean;\n}\n\nexport interface VariableVisibilityConditionValueText extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.text;\n value: string;\n operator: VariableVisibilityOperator;\n}\n\nexport interface VariableVisibilityConditionValueNumber extends VariableVisibilityConditionValueBase {\n type: VariableVisibilityTargetType.number;\n value: number;\n operator: VariableVisibilityOperator;\n}\n\nexport type VariableVisibilityConditionValue =\n | VariableVisibilityConditionValueBoolean\n | VariableVisibilityConditionValueText\n | VariableVisibilityConditionValueNumber;\n\nexport type VariableUsagesReport = {\n pages: Id[];\n frames: Id[];\n actionTrigger: Id[];\n variables: Id[];\n outputDataSource: boolean;\n};\n\n// Data Source Variable Types\n\nexport type RowId = string;\n\nexport enum DataSourceVariableSourceType {\n injected = 'injected',\n connector = 'connector',\n}\n\nexport type InjectedDataSourceVariableSource = {\n type: DataSourceVariableSourceType.injected;\n model: DataModelProperty[];\n itemIdPropertyName: string;\n};\n\nexport type ConnectorDataSourceVariableSource = {\n type: DataSourceVariableSourceType.connector;\n connectorId: string;\n};\n\nexport type DataSourceVariableSource = InjectedDataSourceVariableSource | ConnectorDataSourceVariableSource;\n\nexport enum DataSourceVariableDisplayOptionsType {\n table = 'table',\n list = 'list',\n}\n\nexport interface DataSourceVariableDisplayOptionsTable {\n type: DataSourceVariableDisplayOptionsType.table;\n}\n\nexport interface DataSourceVariableDisplayOptionsList {\n type: DataSourceVariableDisplayOptionsType.list;\n displayColumn: string;\n}\n\nexport type DataSourceVariableDisplayOptions =\n DataSourceVariableDisplayOptionsTable | DataSourceVariableDisplayOptionsList;\n"],"names":["VariableType","Day","Locale","VariableVisibilityType","VariableVisibilityTargetType","VariableVisibilityOperator","DataSourceVariableSourceType","DataSourceVariableDisplayOptionsType"],"mappings":";;AAgCO,IAAK,iCAAAA,kBAAL;AACHA,gBAAA,WAAA,IAAY;AACZA,gBAAA,UAAA,IAAW;AACXA,gBAAA,UAAA,IAAW;AACXA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,MAAA,IAAO;AACPA,gBAAA,SAAA,IAAU;AACVA,gBAAA,OAAA,IAAQ;AACRA,gBAAA,QAAA,IAAS;AACTA,gBAAA,MAAA,IAAO;AACPA,gBAAA,YAAA,IAAa;AAVL,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;AAwHL,IAAK,wBAAAC,SAAL;AACHA,OAAA,QAAA,IAAS;AACTA,OAAA,SAAA,IAAU;AACVA,OAAA,WAAA,IAAY;AACZA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AACTA,OAAA,UAAA,IAAW;AACXA,OAAA,QAAA,IAAS;AAPD,SAAAA;AAAA,GAAA,OAAA,CAAA,CAAA;AAUL,IAAK,2BAAAC,YAAL;AACHA,UAAA,OAAA,IAAQ;AACRA,UAAA,IAAA,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