Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Update XFC Provider initialization for the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kolkheang committed Dec 4, 2023
1 parent d02933d commit c921c31
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/terra-embedded-content-consumer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Updated
* Updated XFC initialization for the Embedded Content Consumer examples.

## 3.42.0 - (December 1, 2023)

* Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';

import '../../../initalizeXFC';
import './ProviderIframe.module.scss';
import './ProviderTestTemplate.module.scss';

Expand Down
1 change: 1 addition & 0 deletions packages/terra-framework-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

* Changed
* Updated examples and tests for `terra-table` to consume updated onRowSelect callback.
* Updated XFC initialization for the Embedded Content Consumer examples.

## 1.49.0 - (December 1, 2023)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import React from 'react';
import { Provider } from 'xfc';
import classNames from 'classnames/bind';
import ProviderTestTemplate from 'terra-embedded-content-consumer/lib/EmbeddedContentProviderTestTemplate';
import styles from './EmbeddedContentConsumerCommon.module.scss';

const cx = classNames.bind(styles);

const Provider = () => (
Provider.init({
acls: ['*'],
secret: () => (Promise.resolve('Success')),
});

const BasicProvider = () => (
<ProviderTestTemplate>
<div className={cx('content-wrapper')}>
<h1>Basic Content</h1>
Expand All @@ -14,4 +20,4 @@ const Provider = () => (
</ProviderTestTemplate>
);

export default Provider;
export default BasicProvider;
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import React from 'react';
import { Provider } from 'xfc';
import classNames from 'classnames/bind';
import ProviderTestTemplate from 'terra-embedded-content-consumer/lib/EmbeddedContentProviderTestTemplate';
import styles from './EmbeddedContentConsumerCommon.module.scss';

const cx = classNames.bind(styles);

const Provider = () => (
Provider.init({
acls: ['*'],
secret: () => (Promise.resolve('Success')),
});

const BasicProviderWithScrolling = () => (
<ProviderTestTemplate>
<div className={cx('content-wrapper')}>
<h1>Basic Content With Scrolling</h1>
Expand All @@ -14,4 +20,4 @@ const Provider = () => (
</ProviderTestTemplate>
);

export default Provider;
export default BasicProviderWithScrolling;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import styles from './EmbeddedContentConsumerCommon.module.scss';

const cx = classNames.bind(styles);

Provider.init({
acls: ['*'],
secret: () => (Promise.resolve('Success')),
});

class EmbeddedContent extends React.Component {
constructor(props) {
super(props);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import styles from './EmbeddedContentConsumerCommon.module.scss';

const cx = classNames.bind(styles);

Provider.init({
acls: ['*'],
secret: () => (Promise.resolve('Success')),
});

class EmbeddedContent extends React.Component {
constructor(props) {
super(props);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import React from 'react';
import { Provider } from 'xfc';
import classNames from 'classnames/bind';
import ProviderTestTemplate from 'terra-embedded-content-consumer/lib/EmbeddedContentProviderTestTemplate';
import styles from './EmbeddedContentConsumerCommon.module.scss';

const cx = classNames.bind(styles);

Provider.init({
acls: ['*'],
secret: () => (Promise.resolve('Success')),
});

const DataStatusProvider2 = () => (
<ProviderTestTemplate>
<div className={cx('content-wrapper')}>
Expand Down

0 comments on commit c921c31

Please sign in to comment.