@uirouter/core
Advanced tools
Comparing version 7.0.0-beta.1 to 7.0.0-beta.2
@@ -40,2 +40,3 @@ import { UIRouterPlugin } from '../interface'; | ||
interface RenderRoutedComponentCommand { | ||
id: string; | ||
command: 'RENDER_ROUTED_VIEW'; | ||
@@ -45,5 +46,7 @@ routedViewConfig: ViewConfig; | ||
interface RenderDefaultContentCommand { | ||
id: string; | ||
command: 'RENDER_DEFAULT_CONTENT'; | ||
} | ||
interface RenderInteropDivCommand { | ||
id: string; | ||
command: 'RENDER_INTEROP_DIV'; | ||
@@ -50,0 +53,0 @@ giveDiv: (div: HTMLDivElement) => void; |
@@ -156,2 +156,3 @@ import { applyPairs, equals, find, inArray, pairs, removeFrom, values } from '../common/common'; | ||
var viewConfig = tuple.viewConfig, uiView = tuple.uiView; | ||
var id = uiView.id; | ||
// If a parent ui-view is reconfigured, it could destroy child ui-views. | ||
@@ -168,6 +169,6 @@ // Before configuring a child ui-view, make sure it's still in the active uiViews array. | ||
var newCommand = !viewConfig | ||
? { command: 'RENDER_DEFAULT_CONTENT' } | ||
? { id: id, command: 'RENDER_DEFAULT_CONTENT' } | ||
: uiView.type === viewConfig.viewDecl.$type | ||
? { command: 'RENDER_ROUTED_VIEW', routedViewConfig: viewConfig } | ||
: { command: 'RENDER_INTEROP_DIV', giveDiv: giveDiv }; | ||
? { id: id, command: 'RENDER_ROUTED_VIEW', routedViewConfig: viewConfig } | ||
: { id: id, command: 'RENDER_INTEROP_DIV', giveDiv: giveDiv }; | ||
function hasChanged(a, b) { | ||
@@ -280,3 +281,3 @@ if (a.command === 'RENDER_ROUTED_VIEW' && b.command === 'RENDER_ROUTED_VIEW') { | ||
portalState: state, | ||
currentPortalCommand: { command: undefined }, | ||
currentPortalCommand: { id: id, command: undefined }, | ||
renderContentIntoUIViewPortal: renderContentIntoUIViewPortal, | ||
@@ -283,0 +284,0 @@ }; |
@@ -40,2 +40,3 @@ import { UIRouterPlugin } from '../interface'; | ||
interface RenderRoutedComponentCommand { | ||
id: string; | ||
command: 'RENDER_ROUTED_VIEW'; | ||
@@ -45,5 +46,7 @@ routedViewConfig: ViewConfig; | ||
interface RenderDefaultContentCommand { | ||
id: string; | ||
command: 'RENDER_DEFAULT_CONTENT'; | ||
} | ||
interface RenderInteropDivCommand { | ||
id: string; | ||
command: 'RENDER_INTEROP_DIV'; | ||
@@ -50,0 +53,0 @@ giveDiv: (div: HTMLDivElement) => void; |
@@ -159,2 +159,3 @@ "use strict"; | ||
var viewConfig = tuple.viewConfig, uiView = tuple.uiView; | ||
var id = uiView.id; | ||
// If a parent ui-view is reconfigured, it could destroy child ui-views. | ||
@@ -171,6 +172,6 @@ // Before configuring a child ui-view, make sure it's still in the active uiViews array. | ||
var newCommand = !viewConfig | ||
? { command: 'RENDER_DEFAULT_CONTENT' } | ||
? { id: id, command: 'RENDER_DEFAULT_CONTENT' } | ||
: uiView.type === viewConfig.viewDecl.$type | ||
? { command: 'RENDER_ROUTED_VIEW', routedViewConfig: viewConfig } | ||
: { command: 'RENDER_INTEROP_DIV', giveDiv: giveDiv }; | ||
? { id: id, command: 'RENDER_ROUTED_VIEW', routedViewConfig: viewConfig } | ||
: { id: id, command: 'RENDER_INTEROP_DIV', giveDiv: giveDiv }; | ||
function hasChanged(a, b) { | ||
@@ -283,3 +284,3 @@ if (a.command === 'RENDER_ROUTED_VIEW' && b.command === 'RENDER_ROUTED_VIEW') { | ||
portalState: state, | ||
currentPortalCommand: { command: undefined }, | ||
currentPortalCommand: { id: id, command: undefined }, | ||
renderContentIntoUIViewPortal: renderContentIntoUIViewPortal, | ||
@@ -286,0 +287,0 @@ }; |
{ | ||
"name": "@uirouter/core", | ||
"description": "UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps", | ||
"version": "7.0.0-beta.1", | ||
"version": "7.0.0-beta.2", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "clean": "shx rm -rf lib lib-esm _bundles .cache _doc", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
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
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
4658943
42527