@washingtonpost/subs-de-inputs 1.10.2 → 1.11.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.
@@ -1,6 +1,5 @@
1
- import type { ReactEventHandler } from 'react';
2
- import React from 'react';
3
- import type { DisclosureConfigValue } from '../../interfaces/disclosure';
1
+ import { ReactEventHandler, default as React } from 'react';
2
+ import { DisclosureConfigValue } from '../../interfaces/disclosure';
4
3
  interface DEDisclosureWithBannerStatusProps {
5
4
  config: DisclosureConfigValue;
6
5
  allowCookieStore?: boolean;
@@ -1,6 +1,5 @@
1
- import type { ReactEventHandler } from 'react';
2
- import React from 'react';
3
- import type { DisclosureConfigValue } from '../../interfaces/disclosure';
1
+ import { ReactEventHandler, default as React } from 'react';
2
+ import { DisclosureConfigValue } from '../../interfaces/disclosure';
4
3
  interface DEDisclosureWithoutBannerStatusProps {
5
4
  config: DisclosureConfigValue;
6
5
  onFinished: ({ isFinished, isError, }: {
@@ -1,4 +1,4 @@
1
- import type { ICookieStore } from '@washingtonpost/subs-sdk';
1
+ import { ICookieStore } from '@washingtonpost/subs-sdk';
2
2
  interface TCData {
3
3
  eventStatus: 'tcloaded' | 'cmpuishown' | 'useractioncomplete';
4
4
  listenerId: number;
@@ -1,5 +1,4 @@
1
- import type { ReactEventHandler } from 'react';
2
- import React from 'react';
1
+ import { ReactEventHandler, default as React } from 'react';
3
2
  interface DisclosureProps {
4
3
  /** callback function to be called when the disclosure is finished loading */
5
4
  onFinished?: ({ isFinished, isError, }: {
@@ -1,2 +1,2 @@
1
- import type { DisclosureConfigValue } from '../../../interfaces/disclosure';
1
+ import { DisclosureConfigValue } from '../../../interfaces/disclosure';
2
2
  export declare const getConfig: () => Promise<DisclosureConfigValue | undefined>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  type hydrateLinksType = (str: string, onLinkClick: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void) => string | JSX.Element;
3
3
  export declare const hydrateLinks: hydrateLinksType;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  interface IDropdownProps {
3
3
  id: string;
4
4
  label: string;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import type { Attribute, AttributeValue } from '../../interfaces';
1
+ import { default as React } from 'react';
2
+ import { Attribute, AttributeValue } from '../../interfaces';
3
3
  interface DESelectProps {
4
4
  source: string;
5
5
  fieldName: string;