@jahia/javascript-modules-library 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from "react";
1
+ import { type ReactNode, type JSX } from "react";
2
2
  import type { RenderContext, Resource } from "org.jahia.services.render";
3
3
  import type { JCRNodeWrapper, JCRSessionWrapper } from "org.jahia.services.content";
4
4
  /**
@@ -33,4 +33,4 @@ export interface ServerContext {
33
33
  export declare function useServerContext(): ServerContext;
34
34
  export declare function ServerContextProvider({ renderContext, currentResource, currentNode, mainNode, jcrSession, bundleKey, children, }: ServerContext & {
35
35
  readonly children: ReactNode;
36
- }): React.JSX.Element;
36
+ }): JSX.Element;
@@ -1,4 +1,5 @@
1
1
  declare module 'org.jahia.services.render' {
2
+ import { ClientCachePolicy } from 'org.jahia.services.render.filter.cache';
2
3
  import { Locale, Set, List, Map } from 'java.util';
3
4
  import { JCRNodeWrapper } from 'org.jahia.services.content';
4
5
  import { Serializable } from 'java.io';
@@ -61,6 +62,7 @@ export class RenderContext {
61
62
  * @return Whether the application is in read only mode, dependent on read only, full read only, and maintenance status currently activated/deactivated.
62
63
  */
63
64
  isReadOnly(): boolean;
65
+ getClientCachePolicy(): ClientCachePolicy;
64
66
  }
65
67
  /**
66
68
  * A resource is the aggregation of a node and a specific template
package/dist/package.tgz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/javascript-modules-library",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "homepage": "https://github.com/Jahia/javascript-modules/tree/main/javascript-modules-library#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/Jahia/javascript-modules/issues"