@financial-times/dotcom-ui-app-context 7.2.7 → 7.3.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.
@@ -0,0 +1,10 @@
1
+ import { TAppContext } from '../types';
2
+ export declare type TAppContextOptions = {
3
+ appContext: TAppContext;
4
+ };
5
+ export default class AppContext {
6
+ private appContext;
7
+ constructor(options: TAppContextOptions);
8
+ get(property: string): any;
9
+ getAll(): TAppContext;
10
+ }
@@ -0,0 +1,2 @@
1
+ import AppContext from './AppContext';
2
+ export declare function init(): AppContext;
@@ -0,0 +1,2 @@
1
+ import { TAppContext } from '../types';
2
+ export default function loadEmbeddedAppContext(): TAppContext;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { TAppContext } from '../types';
3
+ export declare type TAppContextProps = {
4
+ appContext?: TAppContext;
5
+ };
6
+ export declare function AppContextEmbed({ appContext }: TAppContextProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const APP_CONTEXT_ELEMENT_ID = "page-kit-app-context";
@@ -0,0 +1,2 @@
1
+ export * from './components/AppContextEmbed';
2
+ export * from './constants';
@@ -0,0 +1,10 @@
1
+ import { TAppContext } from '../types';
2
+ export declare type TAppContextOptions = {
3
+ appContext: TAppContext;
4
+ };
5
+ export default class AppContext {
6
+ private appContext;
7
+ constructor(options: TAppContextOptions);
8
+ get(property: string): any;
9
+ getAll(): TAppContext;
10
+ }
@@ -0,0 +1,2 @@
1
+ import AppContext from './AppContext';
2
+ export declare function init(): AppContext;
@@ -0,0 +1,2 @@
1
+ import { TAppContext } from '../types';
2
+ export default function loadEmbeddedAppContext(): TAppContext;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { TAppContext } from '../types';
3
+ export declare type TAppContextProps = {
4
+ appContext?: TAppContext;
5
+ };
6
+ export declare function AppContextEmbed({ appContext }: TAppContextProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const APP_CONTEXT_ELEMENT_ID = "page-kit-app-context";
@@ -0,0 +1,2 @@
1
+ export * from './components/AppContextEmbed';
2
+ export * from './constants';