Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blocks/canvas/editor-utils/block-slash.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function checkBlockLibraryConfigured({ org, site } = {}) {
}
return (async () => {
try {
const { getBlocksExtension } = await import('../ew-panel-extensions/helpers.js');
const { getBlocksExtension } = await import('../../shared/block-library.js');
store.hasLibrary = !!(await getBlocksExtension(org, site));
} catch {
store.hasLibrary = false;
Expand Down Expand Up @@ -138,7 +138,7 @@ export function ensureBlockLibrary({ org, site } = {}) {
store.state = 'loading';
return (async () => {
try {
const { loadBlockLibrary } = await import('../ew-panel-extensions/helpers.js');
const { loadBlockLibrary } = await import('../../shared/block-library.js');
const { ext, blocks } = await loadBlockLibrary(org, site);
if (!ext) {
store.entries = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { LitElement, html, nothing } from 'da-lit';
import { getNx, getNx2 } from '../../../scripts/utils.js';
import getSheet from '../../shared/sheet.js';
import {
loadBlockLibrary,
getItemPreviewUrl,
getPreviewStatus,
} from '../ew-panel-extensions/helpers.js';
import { loadBlockLibrary } from '../../shared/block-library.js';

const nx = getNx();
await import(`${nx}/blocks/shared/dialog/dialog.js`);
Expand Down
2 changes: 1 addition & 1 deletion blocks/canvas/ew-page-outline/ew-page-outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
moveContentItem,
moveSection,
} from '../editor-utils/blocks.js';
import { fetchExtensions } from '../ew-panel-extensions/helpers.js';
import { fetchExtensions } from '../../shared/block-library.js';

const DELETE_ICON_SRC = '/img/icons/s2-icon-delete-20-n.svg';
const ADD_BLOCK_ICON_SRC = '/img/icons/s2-icon-tableadd-20-n.svg';
Expand Down
2 changes: 1 addition & 1 deletion blocks/canvas/ew-panel-extensions/ew-panel-library.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { LitElement, html, nothing } from 'da-lit';
import { getNx, getNx2 } from '../../../scripts/utils.js';
import getSheet from '../../shared/sheet.js';
import {
fetchBlocks,
fetchItems,
insertBlock,
insertText,
insertTemplate,
getPreviewStatus,
getItemPreviewUrl,
} from './helpers.js';
import { fetchBlocks } from '../../shared/block-library.js';
import { getExtensionsBridge } from '../editor-utils/extensions-bridge.js';

const { loadStyle, hashChange } = await import(`${getNx()}/utils/utils.js`);
Expand Down
Loading
Loading