@sitecore-jss/sitecore-jss
Advanced tools
Comparing version 15.0.1 to 16.0.0-canary.0
"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 = {})); | ||
; |
@@ -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; |
{ | ||
"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'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34017
555
1