- { children }
-
-
-
- { sprintf(
- // Translators: %s = visibility setting label.
- __(
- 'This block is only visible to %s',
- 'lifterlms'
- ),
- getSetting( llms_visibility )
- ) }
-
-
-
- );
- }
-}
diff --git a/src/js/block-visibility/settings.js b/src/js/block-visibility/settings.js
deleted file mode 100644
index 4dd0f1e1..00000000
--- a/src/js/block-visibility/settings.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Settings used by the block visibility component
- *
- * @since 2.0.0
- * @version 2.0.0
- */
-
-// WP deps.
-import { __ } from '@wordpress/i18n';
-
-/**
- * Settings value -> label map.
- *
- * @type {Object}
- */
-const settings = {
- all: __( 'everyone', 'lifterlms' ),
- enrolled: __( 'enrolled users', 'lifterlms' ),
- not_enrolled: __( 'non-enrolled users or visitors', 'lifterlms' ),
- logged_in: __( 'logged in users', 'lifterlms' ),
- logged_out: __( 'logged out users', 'lifterlms' ),
-};
-
-/**
- * Retrieve the label for a single setting value
- *
- * @since 2.0.0
- *
- * @param {string} setting Setting value.
- * @return {string} Setting label.
- */
-export const getSetting = ( setting ) => settings[ setting ] || setting;
-
-/**
- * Array of settings options as used by a select control
- *
- * @since 2.0.0
- *
- * @return {Object[]} Array of objects to be passed into the options property for a select control.
- */
-export const options = Object.keys( settings ).map( ( key ) => ( {
- label: settings[ key ],
- value: key,
-} ) );
diff --git a/src/js/blocks-backwards-compat.js b/src/js/blocks-backwards-compat.js
deleted file mode 100644
index 70facb93..00000000
--- a/src/js/blocks-backwards-compat.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Ensure backwards compatibility with WP Core packages we rely on.
- *
- * @since 2.0.0
- * @version 2.0.0
- */
-
-// Import aliased versions of WP Core Packages.
-import { createReduxStore, register } from 'llmsWPData';
-
-// Make text definitions of all the data stores we reference via import.
-window.wp.blockEditor.store = 'core/block-editor';
-window.wp.editor.store = 'core/editor';
-window.wp.notices.store = 'core/notices';
-
-// Ensure we can register data stores.
-window.wp.data = {
- ...window.wp.data,
- createReduxStore,
- register,
-};
diff --git a/src/js/blocks.js b/src/js/blocks.js
deleted file mode 100644
index 8de16ea0..00000000
--- a/src/js/blocks.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * Main Block editor entry point.
- *
- * @since 1.0.0
- * @version 2.4.0
- */
-
-// SCSS.
-import '../scss/blocks.scss';
-
-// Icon for Block Category.
-import LifterLMSIcon from './icons/lifterlms-icon';
-
-// Internal Deps.
-import './block-visibility/';
-import './dom-ready/';
-import './post-visibility/';
-import './formats/shortcodes/';
-import './sidebar/';
-import './data/';
-
-// Register all Core Blocks.
-import registerBlocks from './blocks/';
-registerBlocks();
-
-// Preserve components from `@lifterlms/components`.
-const { components = {} } = window.llms;
-
-// Import core Components and expose them for 3rd parties to utilize.
-import * as Components from './components/';
-window.llms.components = {
- ...components,
- ...Components,
-};
-
-/**
- * Add our SVG icon to the LifterLMS blocks category.
- *
- * @since TBD
- */
-( function() {
- wp.blocks.updateCategory( 'llms-blocks', { icon: LifterLMSIcon } );
-} )();
diff --git a/src/js/blocks/course-continue-button/index.js b/src/js/blocks/course-continue-button/index.js
deleted file mode 100644
index 6f8b9427..00000000
--- a/src/js/blocks/course-continue-button/index.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * BLOCK: llms/course-continue-button
- *
- * @since 1.0.0
- * @since 1.5.0 Add supported post type settings.
- * @since 1.8.0 Use imports in favor of "wp." variables.
- * @version 2.5.0
- */
-
-// WP Deps.
-import { __ } from '@wordpress/i18n';
-import { Button } from '@wordpress/components';
-
-// Internal dependencies.
-import icon from '../../icons/forward';
-
-/**
- * Block Name
- *
- * @type {string}
- */
-export const name = 'llms/course-continue-button';
-
-/**
- * Array of supported post types.
- *
- * @type {Array}
- */
-export const postTypes = [ 'course' ];
-
-/**
- * Register: Course Continue Button Block
- *
- * @since 1.0.0
- * @since 2.5.0 Update icon color to `currentColor`.
- *
- * @param {string} name Block name.
- * @param {Object} settings Block settings.
- * @return {?WPBlock} The block, if it has been successfully, registered; otherwise `undefined`.
- */
-export const settings = {
- title: __( 'Course Continue Button', 'lifterlms' ),
- icon: icon,
- category: 'llms-blocks', // common, formatting, layout widgets, embed. see https://wordpress.org/gutenberg/handbook/block-api/#category.
- keywords: [ __( 'LifterLMS', 'lifterlms' ) ],
-
- /**
- * The edit function describes the structure of your block in the context of the editor.
- * This represents what the editor will render when the block is used.
- *
- * The "edit" property must be a valid function.
- *
- * @since 1.0.0
- *
- * @param {Object} props Block properties.
- * @return {Function} Component HTML fragment.
- */
- edit( props ) {
- return (
-