@financial-times/dotcom-ui-flags 7.3.0 → 7.3.2

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,7 @@
1
+ import { TFlagsData, TFlag } from '../types';
2
+ export default class Flags {
3
+ private flags;
4
+ constructor(flags: TFlagsData);
5
+ get(flag: string): TFlag | undefined;
6
+ getAll(): TFlagsData;
7
+ }
@@ -0,0 +1,4 @@
1
+ import loadFlags from './loadFlags';
2
+ import Flags from './Flags';
3
+ declare const init: () => Flags;
4
+ export { loadFlags, Flags, init };
@@ -0,0 +1,2 @@
1
+ import { TFlagsData } from '../types';
2
+ export default function loadFlags(): TFlagsData;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { TFlagsData } from '../types';
3
+ declare type TFlagsEmbedProps = {
4
+ flags?: TFlagsData;
5
+ };
6
+ declare function FlagsEmbed({ flags }: TFlagsEmbedProps): JSX.Element;
7
+ declare namespace FlagsEmbed {
8
+ var defaultProps: {
9
+ flags: {};
10
+ };
11
+ }
12
+ export { FlagsEmbed };
13
+ export type { TFlagsEmbedProps };
@@ -0,0 +1 @@
1
+ export declare const SCRIPT_ELEMENT_ID = "page-kit-flags-embed";
@@ -0,0 +1,2 @@
1
+ export * from './components/FlagsEmbed';
2
+ export * from './constants';
@@ -0,0 +1,2 @@
1
+ import { TFlagsData } from '../types';
2
+ export default function formatFlagsJSON(flags?: TFlagsData): TFlagsData;
@@ -0,0 +1,2 @@
1
+ import formatFlagsJSON from './formatFlagsJSON';
2
+ export { formatFlagsJSON };
@@ -0,0 +1,7 @@
1
+ import { TFlagsData, TFlag } from '../types';
2
+ export default class Flags {
3
+ private flags;
4
+ constructor(flags: TFlagsData);
5
+ get(flag: string): TFlag | undefined;
6
+ getAll(): TFlagsData;
7
+ }
@@ -0,0 +1,4 @@
1
+ import loadFlags from './loadFlags';
2
+ import Flags from './Flags';
3
+ declare const init: () => Flags;
4
+ export { loadFlags, Flags, init };
@@ -0,0 +1,2 @@
1
+ import { TFlagsData } from '../types';
2
+ export default function loadFlags(): TFlagsData;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { TFlagsData } from '../types';
3
+ declare type TFlagsEmbedProps = {
4
+ flags?: TFlagsData;
5
+ };
6
+ declare function FlagsEmbed({ flags }: TFlagsEmbedProps): JSX.Element;
7
+ declare namespace FlagsEmbed {
8
+ var defaultProps: {
9
+ flags: {};
10
+ };
11
+ }
12
+ export { FlagsEmbed };
13
+ export type { TFlagsEmbedProps };
@@ -0,0 +1 @@
1
+ export declare const SCRIPT_ELEMENT_ID = "page-kit-flags-embed";
@@ -0,0 +1,2 @@
1
+ export * from './components/FlagsEmbed';
2
+ export * from './constants';
@@ -0,0 +1,2 @@
1
+ import { TFlagsData } from '../types';
2
+ export default function formatFlagsJSON(flags?: TFlagsData): TFlagsData;
@@ -0,0 +1,2 @@
1
+ import formatFlagsJSON from './formatFlagsJSON';
2
+ export { formatFlagsJSON };