@types/scrivito 1.22.1 → 1.22.3

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.
scrivito/LICENSE CHANGED
File without changes
scrivito/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for scrivito (https://www.scrivito.com/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scrivito.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 06 Jul 2021 16:34:22 GMT
11
+ * Last updated: Mon, 25 Sep 2023 13:39:06 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
  * Global values: none
14
14
 
scrivito/index.d.ts CHANGED
@@ -137,7 +137,7 @@ export class ContentTag extends React.Component<ContentTagProps, any> {}
137
137
 
138
138
  export class CurrentPage extends React.Component<{}, any> {}
139
139
 
140
- interface ImageTagProps extends React.HTMLAttributes<HTMLImageElement> {
140
+ interface ImageTagProps extends Omit<React.HTMLAttributes<HTMLImageElement>, "content"> {
141
141
  attribute?: string | undefined;
142
142
  content: Binary | Obj | Widget;
143
143
  alt?: string | undefined;
@@ -583,7 +583,10 @@ export function getClass(name: string): ObjClass | WidgetClass | null;
583
583
  export function isEditorLoggedIn(): boolean;
584
584
  export function isInPlaceEditingActive(): boolean;
585
585
  export function load<T>(functionToLoad: () => T): Promise<T>;
586
- export function navigateTo(target: (() => Obj | Link) | Obj | Link, options?: { hash?: string | undefined; params?: any }): void;
586
+ export function navigateTo(
587
+ target: (() => Obj | Link) | Obj | Link,
588
+ options?: { hash?: string | undefined; params?: any },
589
+ ): void;
587
590
  export function openDialog(name: string): void;
588
591
  export function preload(preloadDump: any): Promise<{ dumpLoaded: boolean }>;
589
592
  export function provideComponent(className: string, component: WidgetComponent | ObjComponent): void;
@@ -601,7 +604,10 @@ export function renderPage(page: Obj, renderFunction: () => void): Promise<{ res
601
604
  export function setVisitorIdToken(idToken: string): void;
602
605
  export function updateContent(): void;
603
606
  export function updateMenuExtensions(): void;
604
- export function urlFor(target: Obj | Binary | Link, options?: { query?: string | undefined; hash?: string | undefined }): string;
607
+ export function urlFor(
608
+ target: Obj | Binary | Link,
609
+ options?: { query?: string | undefined; hash?: string | undefined },
610
+ ): string;
605
611
  export function useHistory(history: History): void;
606
612
  export function validationResultsFor(model: Obj | Widget, attribute: string): ValidationResult[];
607
613
  export function isComparisonActive(): boolean;
@@ -617,10 +623,10 @@ type AttributeKeys<T extends WidgetClassOptions | ObjClassOptions> = {
617
623
  };
618
624
 
619
625
  export type {
626
+ AttributeKeys,
620
627
  AttributeOptions,
621
628
  AttributeProps,
622
629
  AttributeValue,
623
- AttributeKeys,
624
630
  BackgroundImageBackgroundProp,
625
631
  BackgroundImageTagProps,
626
632
  ChildListTagProps,
@@ -640,10 +646,10 @@ export type {
640
646
  ObjComponentProps,
641
647
  OptimizeDefinition,
642
648
  PropertiesGroup,
649
+ SiteContext,
643
650
  WidgetClassOptions,
644
651
  WidgetComponentProps,
645
652
  WidgetTagProps,
646
- SiteContext,
647
653
  };
648
654
 
649
655
  // Disables automatic exports
scrivito/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/scrivito",
3
- "version": "1.22.1",
3
+ "version": "1.22.3",
4
4
  "description": "TypeScript definitions for scrivito",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scrivito",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "dependencies": {
28
28
  "@types/react": "*"
29
29
  },
30
- "typesPublisherContentHash": "a64ff991c19ce3c3a1340bef16a6a3654d22ea9ab102d87e9f0f605dc80c416c",
31
- "typeScriptVersion": "3.8"
30
+ "typesPublisherContentHash": "844530157e1b0bbec6c56d70c6536977533ce8728bc3d1c191fc80d05396590f",
31
+ "typeScriptVersion": "4.5"
32
32
  }