plggmatic 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -60,6 +60,8 @@ export declare const embedParam: SoftStr;
|
|
|
60
60
|
export declare const embeddedAttr: SoftStr;
|
|
61
61
|
/** The frame a column from another site is shown in. */
|
|
62
62
|
export declare const frameClass: SoftStr;
|
|
63
|
+
/** Set on a partner's column once its page has answered. */
|
|
64
|
+
export declare const frameReadyAttr: SoftStr;
|
|
63
65
|
/** The structure of a column from another site, and of
|
|
64
66
|
* a page while it is shown as one. */
|
|
65
67
|
export declare const frameCss: (p: SoftStr) => SoftStr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../../src/Navigate/model/marker.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAGV,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,KAAK,EAGX,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;GAOG;AAEH,+CAA+C;AAC/C,eAAO,MAAM,SAAS,EAAE,OAAmC,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,OAAoC,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,EAAE,OAAkC,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,OAA6B,CAAC;AAExD,uDAAuD;AACvD,eAAO,MAAM,KAAK,GAAI,GAAG,SAChB,KAAK,YACF,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CACsC,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,SACzB,OAAO,QACR,MAAM,CAAC,OAAO,CAAC,SACd,KAAK,YACF,aAAa,CAA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,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAgBR,CAAC;AAEJ;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,OAAiC,CAAC;AAC7D,eAAO,MAAM,aAAa,EAAE,OAAkC,CAAC;AAC/D,wDAAwD;AACxD,eAAO,MAAM,UAAU,EAAE,OAA8B,CAAC;AACxD;yCACyC;AACzC,eAAO,MAAM,YAAY,EAAE,OAAsC,CAAC;AAClE,wDAAwD;AACxD,eAAO,MAAM,UAAU,EAAE,OAA8B,CAAC;AAExD,4DAA4D;AAC5D,eAAO,MAAM,cAAc,EAAE,OAAyC,CAAC;AAEvE;sCACsC;AACtC,eAAO,MAAM,QAAQ,MAAO,OAAO,KAAG,OAIrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationScript.d.ts","sourceRoot":"","sources":["../../../src/Navigate/usecase/navigationScript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"navigationScript.d.ts","sourceRoot":"","sources":["../../../src/Navigate/usecase/navigationScript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AA8DpC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,OA2V1B,CAAC;AAEV;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,SAC3B,OAAO,KACZ,OAMO,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -2323,7 +2323,7 @@ exports.carouselInitScript = "(function(){" +
|
|
|
2323
2323
|
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
2324
2324
|
"use strict";
|
|
2325
2325
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2326
|
-
exports.frameCss = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2326
|
+
exports.frameCss = exports.frameReadyAttr = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2327
2327
|
const plgg_1 = require("plgg");
|
|
2328
2328
|
const plgg_view_1 = require("plgg-view");
|
|
2329
2329
|
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
@@ -2346,6 +2346,7 @@ exports.embeddersMeta = `${identity_1.cssPrefix}-embedders`;
|
|
|
2346
2346
|
exports.embedParam = `${identity_1.cssPrefix}-embed`;
|
|
2347
2347
|
exports.embeddedAttr = `data-${identity_1.cssPrefix}-embedded`;
|
|
2348
2348
|
exports.frameClass = `${identity_1.cssPrefix}-frame`;
|
|
2349
|
+
exports.frameReadyAttr = `data-${identity_1.cssPrefix}-frame-ready`;
|
|
2349
2350
|
const frameCss = (p) => `
|
|
2350
2351
|
.${p}-frame{flex:1 1 auto;min-height:0;width:100%;border-style:none}
|
|
2351
2352
|
[data-${p}-embedded] :is(.${p}-shell-bar,.${p}-shell-side,.${p}-shell-backdrop,.${p}-shell-head,.${p}-trail){display:none}
|
|
@@ -2739,6 +2740,7 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2739
2740
|
`var R=${q(compositionUrl_1.restParam)},Q=${q(compositionUrl_1.spanParam)};` +
|
|
2740
2741
|
`var E=${q(compositionUrl_1.escapeChar)},N=${q(compositionUrl_1.entrySeparator)},F=${q(compositionUrl_1.fieldSeparator)};` +
|
|
2741
2742
|
`var PM=${q(marker_1.partnersMeta)},EM=${q(marker_1.embeddersMeta)},EP=${q(marker_1.embedParam)},EA=${q(marker_1.embeddedAttr)},FR=${q(marker_1.frameClass)};` +
|
|
2743
|
+
`var RD=${q(marker_1.frameReadyAttr)},FT=4000;` +
|
|
2742
2744
|
"function metaList(n){var m=document.querySelector('meta[name=\"'+n+'\"]');" +
|
|
2743
2745
|
"return m?(m.getAttribute('content')||'').split(' ').filter(Boolean):[];}" +
|
|
2744
2746
|
"var PT=metaList(PM),EB=metaList(EM);" +
|
|
@@ -2799,7 +2801,12 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2799
2801
|
"f.setAttribute('sandbox','allow-scripts allow-same-origin');" +
|
|
2800
2802
|
"f.setAttribute('referrerpolicy','strict-origin-when-cross-origin');" +
|
|
2801
2803
|
"f.title=sp.textContent;var src=new URL(x.origin+x.pathname);src.searchParams.set(EP,'1');f.src=src.href;" +
|
|
2802
|
-
"col.appendChild(f);
|
|
2804
|
+
"col.appendChild(f);" +
|
|
2805
|
+
"setTimeout(function(){if(col.hasAttribute(RD)||!col.isConnected){return;}" +
|
|
2806
|
+
"var at=columnOf(col);if(at>0){truncate(at-1,true);" +
|
|
2807
|
+
"window.history.replaceState(null,'',urlFor(current().slice(1)));}" +
|
|
2808
|
+
"window.location.assign(x.origin+x.pathname);},FT);" +
|
|
2809
|
+
"return col;}" +
|
|
2803
2810
|
"function fetchCol(route,span){" +
|
|
2804
2811
|
"if(abs(route)){return partner(route)&&strip()&&cols().length" +
|
|
2805
2812
|
"?Promise.resolve(frameCol(route)):Promise.reject(new Error('nav'));}" +
|
|
@@ -2906,6 +2913,7 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2906
2913
|
"try{if(new URL(c[at].getAttribute(C)||'').origin!==ev.origin){return;}}catch(e){return;}" +
|
|
2907
2914
|
"var d=ev.data;" +
|
|
2908
2915
|
"if(d.type==='pm:title'&&typeof d.title==='string'){" +
|
|
2916
|
+
"c[at].setAttribute(RD,'');" +
|
|
2909
2917
|
"var sp=c[at].querySelector(':scope>header>span');if(sp){sp.textContent=d.title.slice(0,120);}sync();return;}" +
|
|
2910
2918
|
"if(d.type==='pm:open'&&typeof d.href==='string'){var u;try{u=new URL(d.href);}catch(e){return;}" +
|
|
2911
2919
|
"if(u.protocol!=='https:'&&u.protocol!=='http:'){return;}" +
|
package/dist/styleEntry.es.js
CHANGED
|
@@ -1699,7 +1699,7 @@ exports.carouselInitScript = "(function(){" +
|
|
|
1699
1699
|
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
1700
1700
|
"use strict";
|
|
1701
1701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1702
|
-
exports.frameCss = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
1702
|
+
exports.frameCss = exports.frameReadyAttr = exports.frameClass = exports.embeddedAttr = exports.embedParam = exports.embeddersMeta = exports.partnersMeta = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
1703
1703
|
const plgg_1 = require("plgg");
|
|
1704
1704
|
const plgg_view_1 = require("plgg-view");
|
|
1705
1705
|
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
@@ -1722,6 +1722,7 @@ exports.embeddersMeta = `${identity_1.cssPrefix}-embedders`;
|
|
|
1722
1722
|
exports.embedParam = `${identity_1.cssPrefix}-embed`;
|
|
1723
1723
|
exports.embeddedAttr = `data-${identity_1.cssPrefix}-embedded`;
|
|
1724
1724
|
exports.frameClass = `${identity_1.cssPrefix}-frame`;
|
|
1725
|
+
exports.frameReadyAttr = `data-${identity_1.cssPrefix}-frame-ready`;
|
|
1725
1726
|
const frameCss = (p) => `
|
|
1726
1727
|
.${p}-frame{flex:1 1 auto;min-height:0;width:100%;border-style:none}
|
|
1727
1728
|
[data-${p}-embedded] :is(.${p}-shell-bar,.${p}-shell-side,.${p}-shell-backdrop,.${p}-shell-head,.${p}-trail){display:none}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plggmatic",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A column-oriented UI design framework on the plgg family: pane alignment, a typed light/dark color scheme, and fundamental components as pure functions returning plgg-view Html",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.es.js",
|