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

@murasoftware/next-core

Package Overview
Dependencies
Maintainers
5
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@murasoftware/next-core - npm Package Compare versions

Comparing version 1.0.36 to 1.0.37

56

dist/index.js

@@ -5,3 +5,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var React__default = _interopDefault(React);
var Mura$1 = _interopDefault(require('mura.js'));
var Mura = _interopDefault(require('mura.js'));

@@ -154,3 +154,3 @@ function _extends() {

var _temp27 = function _temp27() {
var styleData = Mura$1.recordModuleStyles(item);
var styleData = Mura.recordModuleStyles(item);
return {

@@ -171,3 +171,3 @@ isEditMode: isEditMode,

if (typeof ComponentRegistry[objectkey] == 'undefined') {
objectkey = Mura$1.firstToUpperCase(item.object);
objectkey = Mura.firstToUpperCase(item.object);
}

@@ -190,3 +190,3 @@

var containerItem = item.items[containerIdx];
containerItem.instanceid = containerItem.instanceid || Mura$1.createUUID();
containerItem.instanceid = containerItem.instanceid || Mura.createUUID();
return Promise.resolve(getModuleProps(containerItem, moduleStyleData, isEditMode, content)).then(function (_getModuleProps3) {

@@ -247,3 +247,3 @@ moduleStyleData[containerItem.instanceid] = _getModuleProps3;

var item = region.local.items[itemIdx];
item.instanceid = item.instanceid || Mura$1.createUUID();
item.instanceid = item.instanceid || Mura.createUUID();
return Promise.resolve(getModuleProps(item, moduleStyleData, isEditMode, content)).then(function (_getModuleProps2) {

@@ -263,3 +263,3 @@ moduleStyleData[item.instanceid] = _getModuleProps2;

var item = region.inherited.items[itemdIx];
item.instanceid = item.instanceid || Mura$1.createUUID();
item.instanceid = item.instanceid || Mura.createUUID();
return Promise.resolve(getModuleProps(item, moduleStyleData, isEditMode, content)).then(function (_getModuleProps) {

@@ -290,3 +290,3 @@ moduleStyleData[item.instanceid] = _getModuleProps;

if (context.browser) {
query = Mura$1.getQueryStringParams();
query = Mura.getQueryStringParams();
} else if (context.query) {

@@ -315,3 +315,3 @@ query = _extends({}, context.query);

query = Object.assign(query, params);
return Promise.resolve(Mura$1.renderFilename(filename, query).then(function (rendered) {
return Promise.resolve(Mura.renderFilename(filename, query).then(function (rendered) {
return Promise.resolve(rendered);

@@ -366,3 +366,3 @@ }, function (rendered) {

if (connectorConfig.siteidinurls) {
return '/' + Mura$1.siteid + '/' + path.join('/');
return '/' + Mura.siteid + '/' + path.join('/');
} else {

@@ -377,3 +377,3 @@ return '/' + path.join('/');

if (typeof ComponentRegistry[objectkey] == 'undefined') {
objectkey = Mura$1.firstToUpperCase(item.object);
objectkey = Mura.firstToUpperCase(item.object);
}

@@ -424,3 +424,3 @@

getMura(siteids[index]);
return Promise.resolve(Mura$1.getFeed('content').maxItems(0).itemsPerPage(0).sort('orderno').getQuery({
return Promise.resolve(Mura.getFeed('content').maxItems(0).itemsPerPage(0).sort('orderno').getQuery({
renderMode: 'static'

@@ -442,3 +442,3 @@ })).then(function (items) {

var getMura = function getMura(context) {
var startingsiteid = Mura$1.siteid;
var startingsiteid = Mura.siteid;

@@ -491,4 +491,4 @@ if (typeof context == 'string' && ConnectorConfig.siteid.find(function (item) {

delete connectorConfig.apiendpoint;
delete Mura$1.apiEndpoint;
delete Mura$1.apiendpoint;
delete Mura.apiEndpoint;
delete Mura.apiendpoint;
};

@@ -502,10 +502,10 @@

clearMuraAPICache();
Mura$1.init(connectorConfig);
Mura.init(connectorConfig);
} else if (startingsiteid != connectorConfig.siteid) {
clearMuraAPICache();
Mura$1.init(connectorConfig);
Mura.init(connectorConfig);
}
Mura$1.holdReady(true);
return Mura$1;
Mura.holdReady(true);
return Mura;
};

@@ -537,3 +537,3 @@ var getRootPath = function getRootPath() {

function _temp7() {
Mura$1.deInit();
Mura.deInit();
var props = {

@@ -567,3 +567,3 @@ content: content,

if (connectorConfig.codeblocks) {
return Promise.resolve(Mura$1.getFeed('codeblock').where().prop('active').isEQ(1).getQuery()).then(function (codeCollection) {
return Promise.resolve(Mura.getFeed('codeblock').where().prop('active').isEQ(1).getQuery()).then(function (codeCollection) {
codeCollection.forEach(function (item) {

@@ -594,6 +594,6 @@ var placement = item.get('placement').toLowerCase();

getMura(context);
Mura$1.renderMode = 'dynamic';
Mura.renderMode = 'dynamic';
if (!isEditMode) {
Mura$1.renderMode = 'static';
Mura.renderMode = 'static';
}

@@ -605,8 +605,8 @@

body: "",
contentid: Mura$1.createUUID(),
contentid: Mura.createUUID(),
isnew: 1,
siteid: Mura$1.siteid,
siteid: Mura.siteid,
type: 'Page',
subtype: 'Default'
}, _content["contentid"] = Mura$1.createUUID(), _content.contenthistid = Mura$1.createUUID(), _content.filename = "500", _content.statusCode = 500, _content.errors = [], _content.displayregions = {
}, _content["contentid"] = Mura.createUUID(), _content.contenthistid = Mura.createUUID(), _content.filename = "500", _content.statusCode = 500, _content.errors = [], _content.displayregions = {
primarycontent: {

@@ -1005,8 +1005,4 @@ local: {

var remoteFooter = Mura('#mura-remote-footer');
Mura('#mura-remote-footer, .mura-cta, [data-transient="true"]').remove();
if (remoteFooter.length) {
remoteFooter.remove();
}
if (typeof Mura.deInitLayoutManager !== 'undefined') {

@@ -1013,0 +1009,0 @@ Mura.deInitLayoutManager();

import React, { useEffect, createContext } from 'react';
import Mura$1 from 'mura.js';
import Mura from 'mura.js';

@@ -150,3 +150,3 @@ function _extends() {

var _temp27 = function _temp27() {
var styleData = Mura$1.recordModuleStyles(item);
var styleData = Mura.recordModuleStyles(item);
return {

@@ -167,3 +167,3 @@ isEditMode: isEditMode,

if (typeof ComponentRegistry[objectkey] == 'undefined') {
objectkey = Mura$1.firstToUpperCase(item.object);
objectkey = Mura.firstToUpperCase(item.object);
}

@@ -186,3 +186,3 @@

var containerItem = item.items[containerIdx];
containerItem.instanceid = containerItem.instanceid || Mura$1.createUUID();
containerItem.instanceid = containerItem.instanceid || Mura.createUUID();
return Promise.resolve(getModuleProps(containerItem, moduleStyleData, isEditMode, content)).then(function (_getModuleProps3) {

@@ -243,3 +243,3 @@ moduleStyleData[containerItem.instanceid] = _getModuleProps3;

var item = region.local.items[itemIdx];
item.instanceid = item.instanceid || Mura$1.createUUID();
item.instanceid = item.instanceid || Mura.createUUID();
return Promise.resolve(getModuleProps(item, moduleStyleData, isEditMode, content)).then(function (_getModuleProps2) {

@@ -259,3 +259,3 @@ moduleStyleData[item.instanceid] = _getModuleProps2;

var item = region.inherited.items[itemdIx];
item.instanceid = item.instanceid || Mura$1.createUUID();
item.instanceid = item.instanceid || Mura.createUUID();
return Promise.resolve(getModuleProps(item, moduleStyleData, isEditMode, content)).then(function (_getModuleProps) {

@@ -286,3 +286,3 @@ moduleStyleData[item.instanceid] = _getModuleProps;

if (context.browser) {
query = Mura$1.getQueryStringParams();
query = Mura.getQueryStringParams();
} else if (context.query) {

@@ -311,3 +311,3 @@ query = _extends({}, context.query);

query = Object.assign(query, params);
return Promise.resolve(Mura$1.renderFilename(filename, query).then(function (rendered) {
return Promise.resolve(Mura.renderFilename(filename, query).then(function (rendered) {
return Promise.resolve(rendered);

@@ -362,3 +362,3 @@ }, function (rendered) {

if (connectorConfig.siteidinurls) {
return '/' + Mura$1.siteid + '/' + path.join('/');
return '/' + Mura.siteid + '/' + path.join('/');
} else {

@@ -373,3 +373,3 @@ return '/' + path.join('/');

if (typeof ComponentRegistry[objectkey] == 'undefined') {
objectkey = Mura$1.firstToUpperCase(item.object);
objectkey = Mura.firstToUpperCase(item.object);
}

@@ -420,3 +420,3 @@

getMura(siteids[index]);
return Promise.resolve(Mura$1.getFeed('content').maxItems(0).itemsPerPage(0).sort('orderno').getQuery({
return Promise.resolve(Mura.getFeed('content').maxItems(0).itemsPerPage(0).sort('orderno').getQuery({
renderMode: 'static'

@@ -438,3 +438,3 @@ })).then(function (items) {

var getMura = function getMura(context) {
var startingsiteid = Mura$1.siteid;
var startingsiteid = Mura.siteid;

@@ -487,4 +487,4 @@ if (typeof context == 'string' && ConnectorConfig.siteid.find(function (item) {

delete connectorConfig.apiendpoint;
delete Mura$1.apiEndpoint;
delete Mura$1.apiendpoint;
delete Mura.apiEndpoint;
delete Mura.apiendpoint;
};

@@ -498,10 +498,10 @@

clearMuraAPICache();
Mura$1.init(connectorConfig);
Mura.init(connectorConfig);
} else if (startingsiteid != connectorConfig.siteid) {
clearMuraAPICache();
Mura$1.init(connectorConfig);
Mura.init(connectorConfig);
}
Mura$1.holdReady(true);
return Mura$1;
Mura.holdReady(true);
return Mura;
};

@@ -533,3 +533,3 @@ var getRootPath = function getRootPath() {

function _temp7() {
Mura$1.deInit();
Mura.deInit();
var props = {

@@ -563,3 +563,3 @@ content: content,

if (connectorConfig.codeblocks) {
return Promise.resolve(Mura$1.getFeed('codeblock').where().prop('active').isEQ(1).getQuery()).then(function (codeCollection) {
return Promise.resolve(Mura.getFeed('codeblock').where().prop('active').isEQ(1).getQuery()).then(function (codeCollection) {
codeCollection.forEach(function (item) {

@@ -590,6 +590,6 @@ var placement = item.get('placement').toLowerCase();

getMura(context);
Mura$1.renderMode = 'dynamic';
Mura.renderMode = 'dynamic';
if (!isEditMode) {
Mura$1.renderMode = 'static';
Mura.renderMode = 'static';
}

@@ -601,8 +601,8 @@

body: "",
contentid: Mura$1.createUUID(),
contentid: Mura.createUUID(),
isnew: 1,
siteid: Mura$1.siteid,
siteid: Mura.siteid,
type: 'Page',
subtype: 'Default'
}, _content["contentid"] = Mura$1.createUUID(), _content.contenthistid = Mura$1.createUUID(), _content.filename = "500", _content.statusCode = 500, _content.errors = [], _content.displayregions = {
}, _content["contentid"] = Mura.createUUID(), _content.contenthistid = Mura.createUUID(), _content.filename = "500", _content.statusCode = 500, _content.errors = [], _content.displayregions = {
primarycontent: {

@@ -1001,8 +1001,4 @@ local: {

var remoteFooter = Mura('#mura-remote-footer');
Mura('#mura-remote-footer, .mura-cta, [data-transient="true"]').remove();
if (remoteFooter.length) {
remoteFooter.remove();
}
if (typeof Mura.deInitLayoutManager !== 'undefined') {

@@ -1009,0 +1005,0 @@ Mura.deInitLayoutManager();

{
"name": "@murasoftware/next-core",
"version": "1.0.36",
"version": "1.0.37",
"description": "Core utilties for Mura.js and Next.js",

@@ -5,0 +5,0 @@ "author": "Mura Software",

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