@beyond-js/widgets
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -103,11 +103,9 @@ define(["exports", "module", "@beyond-js/kernel/bundle"], function (_exports, _amd_module, dependency_0) { | ||
}) {}; | ||
const __beyond_pkg = __pkg; | ||
_exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = _exports.__beyond_pkg = __pkg; | ||
const hmr = _exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
_exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
}); | ||
//# sourceMappingURL=application.amd.js.map |
@@ -8,5 +8,5 @@ define(["exports"], function (_exports) { | ||
_exports.default = void 0; | ||
var _default = { | ||
var _default = _exports.default = { | ||
"package": "@beyond-js/widgets", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"languages": { | ||
@@ -16,2 +16,3 @@ "supported": [], | ||
}, | ||
"environment": "production", | ||
"global.css": true, | ||
@@ -22,3 +23,2 @@ "params": {}, | ||
}; | ||
_exports.default = _default; | ||
}); |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.default = void 0; | ||
var _default = { | ||
var _default = exports.default = { | ||
"package": "@beyond-js/widgets", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"languages": { | ||
@@ -15,2 +15,3 @@ "supported": [], | ||
}, | ||
"environment": "production", | ||
"global.css": true, | ||
@@ -20,3 +21,2 @@ "params": {}, | ||
"backend": {} | ||
}; | ||
exports.default = _default; | ||
}; |
@@ -9,3 +9,3 @@ System.register([], function (_export, _context) { | ||
"package": "@beyond-js/widgets", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"languages": { | ||
@@ -15,2 +15,3 @@ "supported": [], | ||
}, | ||
"environment": "production", | ||
"global.css": true, | ||
@@ -17,0 +18,0 @@ "params": {}, |
@@ -5,2 +5,7 @@ import { IWidgetSpecs, widgets } from '@beyond-js/widgets/render'; | ||
interface IWidgetStore { | ||
// This property is used in case the class that implements it | ||
// does not make explicit use of the interface methods, | ||
// this ensures a correct implementation of the interface in case a class does not implement SSR methods | ||
isStore?: boolean; | ||
toJSON?(): object; | ||
@@ -7,0 +12,0 @@ |
@@ -166,3 +166,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/kernel/core", "@beyond-js/widgets/render", "@beyond-js/kernel/styles"], function (_exports, _amd_module, dependency_0, dependency_1, dependency_2, dependency_3) { | ||
ims.set('./controller', { | ||
hash: 3835813087, | ||
hash: 2493003511, | ||
creator: function (require, exports) { | ||
@@ -298,11 +298,10 @@ "use strict"; | ||
}]; | ||
let WidgetAttributes, WidgetClientController, IWidgetStore, WidgetControllerBase, IWidgetRendered, WidgetServerController; | ||
let WidgetAttributes = _exports.WidgetAttributes = void 0, | ||
WidgetClientController = _exports.WidgetClientController = void 0, | ||
IWidgetStore = _exports.IWidgetStore = void 0, | ||
WidgetControllerBase = _exports.WidgetControllerBase = void 0, | ||
IWidgetRendered = _exports.IWidgetRendered = void 0, | ||
WidgetServerController = _exports.WidgetServerController = void 0; | ||
// Module exports | ||
_exports.WidgetServerController = WidgetServerController; | ||
_exports.IWidgetRendered = IWidgetRendered; | ||
_exports.WidgetControllerBase = WidgetControllerBase; | ||
_exports.IWidgetStore = IWidgetStore; | ||
_exports.WidgetClientController = WidgetClientController; | ||
_exports.WidgetAttributes = WidgetAttributes; | ||
__pkg.exports.process = function ({ | ||
@@ -320,11 +319,9 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
_exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = _exports.__beyond_pkg = __pkg; | ||
const hmr = _exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
_exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
}); | ||
//# sourceMappingURL=controller.amd.js.map |
@@ -169,3 +169,3 @@ "use strict"; | ||
ims.set('./controller', { | ||
hash: 3835813087, | ||
hash: 2493003511, | ||
creator: function (require, exports) { | ||
@@ -301,11 +301,10 @@ "use strict"; | ||
}]; | ||
let WidgetAttributes, WidgetClientController, IWidgetStore, WidgetControllerBase, IWidgetRendered, WidgetServerController; | ||
let WidgetAttributes = exports.WidgetAttributes = void 0, | ||
WidgetClientController = exports.WidgetClientController = void 0, | ||
IWidgetStore = exports.IWidgetStore = void 0, | ||
WidgetControllerBase = exports.WidgetControllerBase = void 0, | ||
IWidgetRendered = exports.IWidgetRendered = void 0, | ||
WidgetServerController = exports.WidgetServerController = void 0; | ||
// Module exports | ||
exports.WidgetServerController = WidgetServerController; | ||
exports.IWidgetRendered = IWidgetRendered; | ||
exports.WidgetControllerBase = WidgetControllerBase; | ||
exports.IWidgetStore = IWidgetStore; | ||
exports.WidgetClientController = WidgetClientController; | ||
exports.WidgetAttributes = WidgetAttributes; | ||
__pkg.exports.process = function ({ | ||
@@ -323,10 +322,8 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = exports.__beyond_pkg = __pkg; | ||
const hmr = exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
//# sourceMappingURL=controller.cjs.js.map |
@@ -54,2 +54,3 @@ /************ | ||
export interface IWidgetStore { | ||
isStore?: boolean; | ||
toJSON?(): object; | ||
@@ -56,0 +57,0 @@ hydrate?(cached: object): Promise<void> | void; |
@@ -180,3 +180,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/kernel/core", "@beyond-js/widgets/render", "@beyond-js/kernel/styles"], function (_export, _context) { | ||
ims.set('./controller', { | ||
hash: 3835813087, | ||
hash: 2493003511, | ||
creator: function (require, exports) { | ||
@@ -183,0 +183,0 @@ "use strict"; |
@@ -213,3 +213,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/widgets/render"], function (_exports, _amd_module, dependency_0, dependency_1) { | ||
/*bundle*/ | ||
const ssr = new class extends EventTarget { | ||
const ssr = exports.ssr = new class extends EventTarget { | ||
// The main layout | ||
@@ -247,3 +247,2 @@ #main; | ||
}(); | ||
exports.ssr = ssr; | ||
} | ||
@@ -256,6 +255,5 @@ }); | ||
}]; | ||
let ssr; | ||
let ssr = _exports.ssr = void 0; | ||
// Module exports | ||
_exports.ssr = ssr; | ||
__pkg.exports.process = function ({ | ||
@@ -268,11 +266,9 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
_exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = _exports.__beyond_pkg = __pkg; | ||
const hmr = _exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
_exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
}); | ||
//# sourceMappingURL=layout.amd.js.map |
@@ -18,9 +18,9 @@ /************ | ||
export const ssr: { | ||
"__#50516@#main": string; | ||
"__#67998@#main": string; | ||
readonly main: string; | ||
"__#50516@#page": string; | ||
"__#67998@#page": string; | ||
readonly page: string; | ||
"__#50516@#layouts": string[]; | ||
"__#67998@#layouts": string[]; | ||
readonly layouts: string[]; | ||
"__#50516@#hierarchy": string[]; | ||
"__#67998@#hierarchy": string[]; | ||
readonly hierarchy: string[]; | ||
@@ -27,0 +27,0 @@ data(main: string, page: PageSSR): void; |
@@ -216,3 +216,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/widgets/render"], function (_export, _context) { | ||
/*bundle*/ | ||
const ssr = new class extends EventTarget { | ||
const ssr = exports.ssr = new class extends EventTarget { | ||
// The main layout | ||
@@ -250,3 +250,2 @@ #main; | ||
}(); | ||
exports.ssr = ssr; | ||
} | ||
@@ -253,0 +252,0 @@ }); |
{ | ||
"name": "@beyond-js/widgets", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Create web projects as standalone microfrontends with beyondJS", | ||
"repository": "https://github.com/beyondjs/widgets", | ||
"license": "MIT", | ||
"libraries": { | ||
"imports": [ | ||
"@beyond-js/kernel" | ||
] | ||
}, | ||
"dependencies": { | ||
"@beyond-js/kernel": "~0.1.8" | ||
}, | ||
"exports": { | ||
@@ -73,3 +66,6 @@ "./application": { | ||
}, | ||
"dependencies": { | ||
"@beyond-js/kernel": "~0.1.9" | ||
}, | ||
"uimport": true | ||
} |
@@ -84,4 +84,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_exports, _amd_module, dependency_0, dependency_1) { | ||
/*bundle*/ | ||
const attributes = new Attributes(); | ||
exports.attributes = attributes; | ||
const attributes = exports.attributes = new Attributes(); | ||
} | ||
@@ -106,3 +105,3 @@ }); | ||
// NodeWidget is an object with a tree structure (parent, children) | ||
const instances = new class extends Set { | ||
const instances = exports.instances = new class extends Set { | ||
register(widget) { | ||
@@ -126,3 +125,2 @@ this.add(widget); | ||
}(); | ||
exports.instances = instances; | ||
} | ||
@@ -181,3 +179,3 @@ }); | ||
/*bundle*/ | ||
const prerender = new class { | ||
const prerender = exports.prerender = new class { | ||
#ssr = []; | ||
@@ -195,3 +193,2 @@ get ssr() { | ||
}(); | ||
exports.prerender = prerender; | ||
} | ||
@@ -269,3 +266,2 @@ }); | ||
} | ||
return hash.toString().replace('-', 'n'); | ||
@@ -1046,4 +1042,3 @@ } | ||
/*bundle*/ | ||
const widgets = new BeyondWidgets(); | ||
exports.widgets = widgets; | ||
const widgets = exports.widgets = new BeyondWidgets(); | ||
} | ||
@@ -1092,15 +1087,14 @@ }); | ||
}]; | ||
let attributes, NodeWidget, prerender, IBeyondWidgetController, WidgetCSR, IWidgetSpecs, BeyondWidget, GlobalCSS, StylesManager, widgets; | ||
let attributes = _exports.attributes = void 0, | ||
NodeWidget = _exports.NodeWidget = void 0, | ||
prerender = _exports.prerender = void 0, | ||
IBeyondWidgetController = _exports.IBeyondWidgetController = void 0, | ||
WidgetCSR = _exports.WidgetCSR = void 0, | ||
IWidgetSpecs = _exports.IWidgetSpecs = void 0, | ||
BeyondWidget = _exports.BeyondWidget = void 0, | ||
GlobalCSS = _exports.GlobalCSS = void 0, | ||
StylesManager = _exports.StylesManager = void 0, | ||
widgets = _exports.widgets = void 0; | ||
// Module exports | ||
_exports.widgets = widgets; | ||
_exports.StylesManager = StylesManager; | ||
_exports.GlobalCSS = GlobalCSS; | ||
_exports.BeyondWidget = BeyondWidget; | ||
_exports.IWidgetSpecs = IWidgetSpecs; | ||
_exports.WidgetCSR = WidgetCSR; | ||
_exports.IBeyondWidgetController = IBeyondWidgetController; | ||
_exports.prerender = prerender; | ||
_exports.NodeWidget = NodeWidget; | ||
_exports.attributes = attributes; | ||
__pkg.exports.process = function ({ | ||
@@ -1122,11 +1116,9 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
_exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = _exports.__beyond_pkg = __pkg; | ||
const hmr = _exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
_exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
}); | ||
//# sourceMappingURL=render.amd.js.map |
@@ -35,3 +35,3 @@ "use strict"; | ||
/*bundle*/ | ||
const widgets = new class BeyondWidgets extends Map { | ||
const widgets = exports.widgets = new class BeyondWidgets extends Map { | ||
constructor() { | ||
@@ -58,3 +58,2 @@ super(); | ||
}(); | ||
exports.widgets = widgets; | ||
} | ||
@@ -79,9 +78,8 @@ }); | ||
}]; | ||
let IWidgetSpecs, StylesManager, BeyondWidget, widgets; | ||
let IWidgetSpecs = exports.IWidgetSpecs = void 0, | ||
StylesManager = exports.StylesManager = void 0, | ||
BeyondWidget = exports.BeyondWidget = void 0, | ||
widgets = exports.widgets = void 0; | ||
// Module exports | ||
exports.widgets = widgets; | ||
exports.BeyondWidget = BeyondWidget; | ||
exports.StylesManager = StylesManager; | ||
exports.IWidgetSpecs = IWidgetSpecs; | ||
__pkg.exports.process = function ({ | ||
@@ -97,10 +95,8 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = exports.__beyond_pkg = __pkg; | ||
const hmr = exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
//# sourceMappingURL=render.cjs.js.map |
@@ -63,3 +63,3 @@ /************ | ||
export const prerender: { | ||
readonly "__#49396@#ssr": IWidgetRendered[]; | ||
readonly "__#66799@#ssr": IWidgetRendered[]; | ||
readonly ssr: IWidgetRendered[]; | ||
@@ -66,0 +66,0 @@ find(element: string, attrs: Map<string, string>): IWidgetRendered; |
@@ -98,4 +98,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_export, _context) { | ||
/*bundle*/ | ||
const attributes = new Attributes(); | ||
exports.attributes = attributes; | ||
const attributes = exports.attributes = new Attributes(); | ||
} | ||
@@ -120,3 +119,3 @@ }); | ||
// NodeWidget is an object with a tree structure (parent, children) | ||
const instances = new class extends Set { | ||
const instances = exports.instances = new class extends Set { | ||
register(widget) { | ||
@@ -140,3 +139,2 @@ this.add(widget); | ||
}(); | ||
exports.instances = instances; | ||
} | ||
@@ -195,3 +193,3 @@ }); | ||
/*bundle*/ | ||
const prerender = new class { | ||
const prerender = exports.prerender = new class { | ||
#ssr = []; | ||
@@ -209,3 +207,2 @@ get ssr() { | ||
}(); | ||
exports.prerender = prerender; | ||
} | ||
@@ -283,3 +280,2 @@ }); | ||
} | ||
return hash.toString().replace('-', 'n'); | ||
@@ -1060,4 +1056,3 @@ } | ||
/*bundle*/ | ||
const widgets = new BeyondWidgets(); | ||
exports.widgets = widgets; | ||
const widgets = exports.widgets = new BeyondWidgets(); | ||
} | ||
@@ -1064,0 +1059,0 @@ }); |
@@ -153,3 +153,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/kernel/core", "@beyond-js/widgets/render", "@beyond-js/kernel/routing"], function (_exports, _amd_module, dependency_0, dependency_1, dependency_2, dependency_3) { | ||
/*bundle*/ | ||
const manager = typeof process === 'object' ? void 0 : new class Manager { | ||
const manager = exports.manager = typeof process === 'object' ? void 0 : new class Manager { | ||
// The registry of all layouts (except the main layout) and pages instances registered in the session | ||
@@ -226,3 +226,2 @@ #instances = { | ||
}(); | ||
exports.manager = manager; | ||
} | ||
@@ -482,10 +481,9 @@ }); | ||
}]; | ||
let Layout, manager, PageInstance, Route, PageURI; | ||
let Layout = _exports.Layout = void 0, | ||
manager = _exports.manager = void 0, | ||
PageInstance = _exports.PageInstance = void 0, | ||
Route = _exports.Route = void 0, | ||
PageURI = _exports.PageURI = void 0; | ||
// Module exports | ||
_exports.PageURI = PageURI; | ||
_exports.Route = Route; | ||
_exports.PageInstance = PageInstance; | ||
_exports.manager = manager; | ||
_exports.Layout = Layout; | ||
__pkg.exports.process = function ({ | ||
@@ -502,11 +500,9 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
_exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = _exports.__beyond_pkg = __pkg; | ||
const hmr = _exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
_exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
}); | ||
//# sourceMappingURL=routing.amd.js.map |
@@ -156,3 +156,3 @@ "use strict"; | ||
/*bundle*/ | ||
const manager = typeof process === 'object' ? void 0 : new class Manager { | ||
const manager = exports.manager = typeof process === 'object' ? void 0 : new class Manager { | ||
// The registry of all layouts (except the main layout) and pages instances registered in the session | ||
@@ -229,3 +229,2 @@ #instances = { | ||
}(); | ||
exports.manager = manager; | ||
} | ||
@@ -485,10 +484,9 @@ }); | ||
}]; | ||
let Layout, manager, PageInstance, Route, PageURI; | ||
let Layout = exports.Layout = void 0, | ||
manager = exports.manager = void 0, | ||
PageInstance = exports.PageInstance = void 0, | ||
Route = exports.Route = void 0, | ||
PageURI = exports.PageURI = void 0; | ||
// Module exports | ||
exports.PageURI = PageURI; | ||
exports.Route = Route; | ||
exports.PageInstance = PageInstance; | ||
exports.manager = manager; | ||
exports.Layout = Layout; | ||
__pkg.exports.process = function ({ | ||
@@ -505,10 +503,8 @@ require, | ||
}; | ||
const __beyond_pkg = __pkg; | ||
exports.__beyond_pkg = __beyond_pkg; | ||
const hmr = new function () { | ||
const __beyond_pkg = exports.__beyond_pkg = __pkg; | ||
const hmr = exports.hmr = new function () { | ||
this.on = (event, listener) => void 0; | ||
this.off = (event, listener) => void 0; | ||
}(); | ||
exports.hmr = hmr; | ||
__pkg.initialise(ims); | ||
//# sourceMappingURL=routing.cjs.js.map |
@@ -63,16 +63,16 @@ /************ | ||
export const manager: { | ||
readonly "__#50100@#instances": { | ||
readonly "__#67552@#instances": { | ||
layouts: Layouts; | ||
pages: Pages; | ||
}; | ||
"__#50100@#initialised": boolean; | ||
"__#67552@#initialised": boolean; | ||
readonly initialised: boolean; | ||
"__#50100@#resolve": any; | ||
"__#50100@#ready": Promise<unknown>; | ||
"__#67552@#resolve": any; | ||
"__#67552@#ready": Promise<unknown>; | ||
readonly ready: Promise<unknown>; | ||
readonly layouts: Layouts; | ||
readonly pages: Pages; | ||
"__#50100@#main": Layout; | ||
"__#67552@#main": Layout; | ||
readonly main: Layout; | ||
"__#50100@#ct": CancellationToken; | ||
"__#67552@#ct": CancellationToken; | ||
set(uri: URI): Promise<void>; | ||
@@ -79,0 +79,0 @@ }; |
@@ -166,3 +166,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/kernel/core", "@beyond-js/widgets/render", "@beyond-js/kernel/routing"], function (_export, _context) { | ||
/*bundle*/ | ||
const manager = typeof process === 'object' ? void 0 : new class Manager { | ||
const manager = exports.manager = typeof process === 'object' ? void 0 : new class Manager { | ||
// The registry of all layouts (except the main layout) and pages instances registered in the session | ||
@@ -239,3 +239,2 @@ #instances = { | ||
}(); | ||
exports.manager = manager; | ||
} | ||
@@ -242,0 +241,0 @@ }); |
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
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
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
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
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
556274
10178
Updated@beyond-js/kernel@~0.1.9