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

@sitecore-jss/sitecore-jss

Package Overview
Dependencies
Maintainers
8
Versions
1351
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitecore-jss/sitecore-jss - npm Package Compare versions

Comparing version 15.0.1 to 16.0.0-canary.0

10

dist/dataModels.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Layout Service page state enum
*/
var LayoutServicePageState;
(function (LayoutServicePageState) {
LayoutServicePageState["Preview"] = "preview";
LayoutServicePageState["Edit"] = "edit";
LayoutServicePageState["Normal"] = "normal";
})(LayoutServicePageState = exports.LayoutServicePageState || (exports.LayoutServicePageState = {}));
;

2

dist/index.js

@@ -18,4 +18,6 @@ "use strict";

exports.resetExperienceEditorChromes = util_1.resetExperienceEditorChromes;
var dataModels_1 = require("./dataModels");
exports.LayoutServicePageState = dataModels_1.LayoutServicePageState;
var layoutDataUtils_1 = require("./layoutDataUtils");
exports.getFieldValue = layoutDataUtils_1.getFieldValue;
exports.getChildPlaceholder = layoutDataUtils_1.getChildPlaceholder;

6

package.json
{
"name": "@sitecore-jss/sitecore-jss",
"version": "15.0.1",
"version": "16.0.0-canary.0",
"main": "dist/index.js",

@@ -8,3 +8,3 @@ "scripts": {

"clean": "del-cli dist types",
"lint": "tslint -p . -c ../../tslint.json 'src/**/*.ts'",
"lint": "tslint -p . -c ../../tslint.json \"src/**/*.ts\"",
"test": "mocha --require ts-node/register \"./src/**/*.test.ts\"",

@@ -50,3 +50,3 @@ "prepublishOnly": "npm run build",

"types": "types/index.d.ts",
"gitHead": "2a1c3e4b74789d40a76d7f91e8b6cc1d874db6c3"
"gitHead": "ae2853c715aec40158e33bc67997ca564d0d4301"
}
/**
* Phrases from the Sitecore Dictionary Service
*/
export interface DictionaryPhrases {
[k: string]: string;
}
/**
* A reply from the Sitecore Dictionary Service
*/
export interface DictionaryServiceData {
lang: string;
app: string;
phrases: DictionaryPhrases;
}
/**
* A reply from the Sitecore Layout Service

@@ -10,15 +24,27 @@ */

/**
* Layout Service page state enum
*/
export declare enum LayoutServicePageState {
Preview = "preview",
Edit = "edit",
Normal = "normal"
}
/**
* Shape of context data from the Sitecore Layout Service
*/
export interface LayoutServiceContext {
pageEditing?: boolean;
language?: string;
pageState?: LayoutServicePageState;
visitorIdentificationTimestamp?: number;
site?: {
name?: string;
};
[key: string]: any;
}
/**
* Context information from the Sitecore Layout Service
*/
export interface LayoutServiceContextData {
context: {
pageEditing?: boolean;
language?: string;
pageState?: 'preview' | 'edit' | 'normal';
visitorIdentificationTimestamp?: number;
site?: {
name?: string;
};
[key: string]: any;
};
context: LayoutServiceContext;
}

@@ -25,0 +51,0 @@ /**

@@ -6,4 +6,4 @@ import * as dataApi from './dataApi';

export { isExperienceEditorActive, isServer, resetExperienceEditorChromes } from './util';
export { LayoutServiceData, LayoutServiceContextData, RouteData, PlaceholderData, ComponentRendering, HtmlElementRendering, Field, Item, PlaceholdersData, ComponentFields, ComponentParams } from './dataModels';
export { DictionaryPhrases, DictionaryServiceData, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, RouteData, PlaceholderData, ComponentRendering, HtmlElementRendering, Field, Item, PlaceholdersData, ComponentFields, ComponentParams } from './dataModels';
export { getFieldValue, getChildPlaceholder } from './layoutDataUtils';
export { HttpJsonFetcher, HttpResponse } from './httpClientInterface';
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