Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kolibri-components

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kolibri-components - npm Package Compare versions

Comparing version 0.13.0-dev.8 to 0.13.0-dev.9

src/content/ContentRendererLoading.vue

4

package.json
{
"name": "kolibri-components",
"version": "0.13.0-dev.8",
"version": "0.13.0-dev.9",
"description": "Front-end components and utilities supporting the Kolibri Design System",

@@ -14,2 +14,2 @@ "author": "Learning Equality",

}
}
}
import setupPluginMediator from '../utils/pluginMediator';
import KContentRenderer from './KContentRenderer';
import ContentRendererLoading from './ContentRendererLoading';
import { RENDERER_SUFFIX } from './constants';

@@ -10,18 +11,25 @@

languageDirection,
ContentRendererLoadingComponent = {
render(h) {
return h('p', '-----');
},
},
ContentRendererLoadingComponent = ContentRendererLoading,
ContentRendererErrorComponent = {
// Define a simple error component in case none is supplied.
render(h) {
return h('p', 'xxxxx');
return h('p', 'Error');
},
},
facade,
coreApp,
registerContentActivity = () => {},
} = {}
) {
if (!facade) {
facade = window.kolibriCoreAppGlobal = window.kolibriCoreAppGlobal || {};
if (!coreApp) {
coreApp = window.kolibriCoreAppGlobal = window.kolibriCoreAppGlobal || {};
} else {
// Do a check that if a coreApp argument is supplied, that it is referenceable
// as window.kolibriCoreAppGlobal.
setTimeout(() => {
// Do after the main thread executes, so that if this is inside the kolibri core
// app then it has had a chance to be assigned to the core global object.
if (coreApp !== window.kolibriCoreAppGlobal) {
console.error('KContent coreApp is not window.kolibriCoreAppGlobal'); // eslint-disable-line no-console
}
}, 0);
}

@@ -35,3 +43,3 @@

languageDirection,
facade,
facade: coreApp,
});

@@ -38,0 +46,0 @@

@@ -31,3 +31,7 @@ import { RENDERER_SUFFIX } from './constants';

if (listeners[event]) {
listeners[event] = [listeners[event], this.registerContentActivity];
if (Array.isArray(listeners[event])) {
listeners[event] = [...listeners[event], this.registerContentActivity];
} else {
listeners[event] = [listeners[event], this.registerContentActivity];
}
} else {

@@ -39,2 +43,3 @@ listeners[event] = this.registerContentActivity;

props: this.$props,
attrs: this.$attrs,
on: listeners,

@@ -41,0 +46,0 @@ ref: 'contentView',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc