mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 05:33:02 -05:00
Added support for background in pages (#56)
* added support for background in pages * minor fix * removed eslint ignore
This commit is contained in:
parent
50c359ee37
commit
30a64ed1b3
10 changed files with 78 additions and 38 deletions
5
.changeset/soft-snails-sneeze.md
Normal file
5
.changeset/soft-snails-sneeze.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"penpot-exporter": minor
|
||||
---
|
||||
|
||||
Added support for background colors in pages
|
|
@ -1,10 +1,14 @@
|
|||
import { transformChildren } from '@plugin/transformers/partials';
|
||||
import { translatePageFill } from '@plugin/translators';
|
||||
|
||||
import { PenpotPage } from '@ui/lib/types/penpotPage';
|
||||
|
||||
export const transformPageNode = async (node: PageNode): Promise<PenpotPage> => {
|
||||
return {
|
||||
name: node.name,
|
||||
options: {
|
||||
background: node.backgrounds.length ? translatePageFill(node.backgrounds[0]) : undefined
|
||||
},
|
||||
...(await transformChildren(node))
|
||||
};
|
||||
};
|
||||
|
|
|
@ -33,6 +33,15 @@ export const translateFills = (
|
|||
return penpotFills;
|
||||
};
|
||||
|
||||
export const translatePageFill = (fill: Paint): string | undefined => {
|
||||
switch (fill.type) {
|
||||
case 'SOLID':
|
||||
return rgbToHex(fill.color);
|
||||
}
|
||||
|
||||
console.error(`Unsupported page fill type: ${fill.type}`);
|
||||
};
|
||||
|
||||
const translateSolidFill = (fill: SolidPaint): Fill => {
|
||||
return {
|
||||
fillColor: rgbToHex(fill.color),
|
||||
|
|
|
@ -4,7 +4,7 @@ import { PenpotPage } from '@ui/lib/types/penpotPage';
|
|||
import { createPenpotItem } from '.';
|
||||
|
||||
export const createPenpotPage = (file: PenpotFile, node: PenpotPage) => {
|
||||
file.addPage(node.name);
|
||||
file.addPage(node.name, node.options);
|
||||
|
||||
for (const child of node.children ?? []) {
|
||||
createPenpotItem(file, child);
|
||||
|
|
4
ui-src/lib/penpot.d.ts
vendored
4
ui-src/lib/penpot.d.ts
vendored
|
@ -4,12 +4,12 @@ import { FrameShape } from '@ui/lib/types/frame/frameShape';
|
|||
import { GroupShape } from '@ui/lib/types/group/groupShape';
|
||||
import { ImageShape } from '@ui/lib/types/image/imageShape';
|
||||
import { PathShape } from '@ui/lib/types/path/pathShape';
|
||||
import { PenpotPageOptions } from '@ui/lib/types/penpotPage';
|
||||
import { RectShape } from '@ui/lib/types/rect/rectShape';
|
||||
import { TextShape } from '@ui/lib/types/text/textShape';
|
||||
|
||||
export interface PenpotFile {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
addPage(name: string, options?: any): void;
|
||||
addPage(name: string, options?: PenpotPageOptions): void;
|
||||
closePage(): void;
|
||||
addArtboard(artboard: FrameShape): void;
|
||||
closeArtboard(): void;
|
||||
|
|
|
@ -3606,8 +3606,8 @@ null!=a.Am)a=a.Am(a);else{var b=sL[ca(null==a?null:a)];if(null!=b)a=b.W?b.W(a):b
|
|||
c.j(a,b):c(a,b);else if(c=yL._,null!=c)a=c.j?c.j(a,b):c(a,b);else throw xb("ILazySchema.-explain",a);}return a},zL=function(a){return null!=a?l===a.rn?!0:a.hc?!1:vb(qL,a):vb(qL,a)},RM=function(a){return zL(a)?rL(a):$y(a,AL)},EBa=function(a){return fI.j(a,AL)},FBa=function(a){var b=new Ki(function(){var c=Tj(a)?PF(a,null):a;return zL(c)?sL(c):XH.W(RM(c))});return function(c){var d=Yb(b);return d.W?d.W(c):d(c)}},Dpa=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;
|
||||
else break;b=1<b.length?new Sc(b.slice(1),0,null):null;return BL(arguments[0],b)},BL=function(a,b){var c=F(a);a=z.j(c,ZB);var d=z.j(c,ZF);c=z.j(c,Gl);var h=F(b);b=z.j(h,yl);h=z.j(h,MA);d=dp.j(function(u){return Ul.ba(u,ZB,EBa)},d);var m=new $a,q=jb,r=kb;jb=!0;kb=function(u){return m.append(u)};try{Ei(x(["Schema: "])),Ei(x([zka(EBa(a),x([new f(null,3,[VB,100,MA,15,yl,20],null)]))])),Ei(x(["Errors:"])),Ei(x([zka(d,x([new f(null,3,[VB,100,MA,15,yl,20],null)]))])),Ei(x(["Value:"])),Ei(x([zka(c,x([new f(null,
|
||||
3,[VB,160,MA,Uo(h,8),yl,Uo(b,12)],null)]))]))}finally{kb=r,jb=q}return k.W(m)},KBa=function(a){a=F(a);var b=z.j(a,PG);a=B(a,XD)?Ul.ba(a,XD,function(c){var d=B(c,EL)?Ul.ba(c,EL,function(h){return function(m){if(g(b.W?b.W(m):b(m)))return m;try{var q=h.W?h.W(m):h(m)}catch(r){q=null}return g(q)?q:m}}):c;return B(c,IL)?Ul.ba(d,IL,function(h){return function(m){if(g(b.W?b.W(m):b(m)))return m;try{var q=h.W?h.W(m):h(m)}catch(r){q=null}return g(q)?q:m}}):d}):a;return Oy(a)},Epa=function(a,b){if(!wL(a,b)){var c=
|
||||
Uo(KL,"check error");a=yL(a,b);throw rj(c,new f(null,4,[P,LL,$F,SL,TL,c,UL,a],null));}return!0},XL=function(a){a=zL(a)?a:VL.W?VL.W(a):VL(a);return If(Epa,a)},eM=function(a,b){b=Ld(b)?KBa(x([b])):b;Ui.ea(QBa,H,a,b)},oM=function(a,b,c,d,h,m,q,r,u,v,w){this.options=a;this.decoder=b;this.Km=c;this.Qh=d;this.Rp=h;this.zn=m;this.Do=q;this.Ip=r;this.s=u;this.Tn=v;this.pp=w;this.Qc=393216;this.J=0},VL=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;b=1<b.length?
|
||||
new Sc(b.slice(1),0,null):null;return Jpa(arguments[0],b)},Jpa=function(a,b){var c=F(b),d=z.j(c,pM),h=new Ki(function(){return RM(a)}),m=new Ki(function(){return XH.W(Yb(h))}),q=new Ki(function(){return Uta(Yb(h),null)}),r=hf.cb(x([AL,Wj.j(c,pM)])),u=g(d)?d:Ppa;return new oM(r,new Ki(function(){var v=Yb(h);v=pC($y(v,r),vM(u),oD,r);return g(v)?v:le}),q,h,u,new Ki(function(){var v=Yb(h);v=pC($y(v,r),vM(u),aL,r);return g(v)?v:le}),m,b,a,c,E)},YM=function(a){return"string"===typeof a?(a=ni(SBa,a),null==
|
||||
Uo(KL,"check error");a=yL(a,b);throw rj(c,new f(null,4,[P,LL,$F,SL,TL,c,UL,a],null));}return!0},XL=function(a){a=zL(a)?a:VL.W?VL.W(a):VL(a);return If(Epa,a)},eM=function(a,b){b=Ld(b)?KBa(x([b])):b;Ui.ea(QBa,H,a,b)},oM=function(a,b,c,d,h,m,q,r,u,v,w){this.options=a;this.decoder=b;this.Km=c;this.Ip=d;this.Qh=h;this.Rp=m;this.zn=q;this.Do=r;this.Tn=u;this.s=v;this.pp=w;this.Qc=393216;this.J=0},VL=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;b=1<b.length?
|
||||
new Sc(b.slice(1),0,null):null;return Jpa(arguments[0],b)},Jpa=function(a,b){var c=F(b),d=z.j(c,pM),h=new Ki(function(){return RM(a)}),m=new Ki(function(){return XH.W(Yb(h))}),q=new Ki(function(){return Uta(Yb(h),null)}),r=hf.cb(x([AL,Wj.j(c,pM)])),u=g(d)?d:Ppa;return new oM(r,new Ki(function(){var v=Yb(h);v=pC($y(v,r),vM(u),oD,r);return g(v)?v:le}),q,b,h,u,new Ki(function(){var v=Yb(h);v=pC($y(v,r),vM(u),aL,r);return g(v)?v:le}),m,c,a,E)},YM=function(a){return"string"===typeof a?(a=ni(SBa,a),null==
|
||||
a?null:Hj(a)):a},WBa=function(a){return"string"===typeof a?ni(TBa,a):a},tv=function(a,b){if(null!=a&&null!=a.ic)a=a.ic(a,b);else{var c=tv[ca(null==a?null:a)];if(null!=c)a=c.j?c.j(a,b):c(a,b);else if(c=tv._,null!=c)a=c.j?c.j(a,b):c(a,b);else throw xb("Spec.conform*",a);}return a},uv=function(a,b){if(null!=a&&null!=a.mc)a=a.mc(a,b);else{var c=uv[ca(null==a?null:a)];if(null!=c)a=c.j?c.j(a,b):c(a,b);else if(c=uv._,null!=c)a=c.j?c.j(a,b):c(a,b);else throw xb("Spec.unform*",a);}return a},vv=function(a,
|
||||
b,c,d,h){if(null!=a&&null!=a.kc)a=a.kc(a,b,c,d,h);else{var m=vv[ca(null==a?null:a)];if(null!=m)a=m.ga?m.ga(a,b,c,d,h):m(a,b,c,d,h);else if(m=vv._,null!=m)a=m.ga?m.ga(a,b,c,d,h):m(a,b,c,d,h);else throw xb("Spec.explain*",a);}return a},wv=function(a,b,c,d){if(null!=a&&null!=a.lc)a=a.lc(a,b,c,d);else{var h=wv[ca(null==a?null:a)];if(null!=h)a=h.ea?h.ea(a,b,c,d):h(a,b,c,d);else if(h=wv._,null!=h)a=h.ea?h.ea(a,b,c,d):h(a,b,c,d);else throw xb("Spec.gen*",a);}return a},xv=function(a,b){if(null!=a&&null!=
|
||||
a.nc)a=a.nc(a,b);else{var c=xv[ca(null==a?null:a)];if(null!=c)a=c.j?c.j(a,b):c(a,b);else if(c=xv._,null!=c)a=c.j?c.j(a,b):c(a,b);else throw xb("Spec.with-gen*",a);}return a},yv=function(a){if(null!=a&&null!=a.jc)a=a.jc(a);else{var b=yv[ca(null==a?null:a)];if(null!=b)a=b.W?b.W(a):b(a);else if(b=yv._,null!=b)a=b.W?b.W(a):b(a);else throw xb("Spec.describe*",a);}return a},Av=function(a){if(Ie(a)){var b=Yb(zv);a=z.j(b,a);if(Ie(a))a:for(;;)if(Ie(a))a=z.j(b,a);else{b=a;break a}else b=a;return b}return a},
|
||||
|
@ -4470,27 +4470,27 @@ Iza=new C(null,"lengthAdjust","lengthAdjust",1978553687),p3=new Mc("cljs.core","
|
|||
"theme",-1247880880),TQ=new C(null,"command","command",-894540724),sC=new C(null,"message","message",-406056002),$za=new Mc("clojure.test.check.generators","keyword-ns","clojure.test.check.generators/keyword-ns",-1492628482,null),aAa=new C(null,"v-alphabetic","v-alphabetic",-552236578),eAa=new C(null,"collapsed","collapsed",-628494523),gAa=new C(null,"writing-mode","writing-mode",-1707110905),u3=new C(null,"multi","multi",-190293005),v3=new C("expound.printer","theme","expound.printer/theme",976967333),
|
||||
hAa=new C(null,"protocol-with-overwriting-method","protocol-with-overwriting-method",319993011),WO=new C("expound.problem-group","one-value","expound.problem-group/one-value",-1584327548),Qha=new C(null,"preset","preset",777387345),iAa=new Mc("expound.alpha","error-message","expound.alpha/error-message",596661929,null),w3=new C(null,"magenta","magenta",1687937081),efa=new Mc("cljs.core","List","cljs.core/List",1708954352,null),gva=new C(null,"show-text?","show-text?",1934354679),jAa=new C(null,"escaped",
|
||||
"escaped",-1007929769),kAa=new Mc("cljs.tools.reader.edn","escape-char","cljs.tools.reader.edn/escape-char",17562632,null),Em=new C(null,"refer-clojure","refer-clojure",813784440),lAa=new Mc("app.common.spec","safe-int?","app.common.spec/safe-int?",139307410,null),ZI=new C(null,"end-row-key","end-row-key",-1126662680),cq=new C(null,"host-field","host-field",-72662140),$B=new C("malli.core","end-of-input","malli.core/end-of-input",-491237771),mAa=new Mc("expound.alpha","expound-str","expound.alpha/expound-str",
|
||||
-1476944198,null),nAa=new C(null,"existing","existing",-340796094),oAa=new C(null,"rotate","rotate",152705015),vea=new C("cljs.analyzer","constant-table","cljs.analyzer/constant-table",-114131889),rAa=new C(null,"marker","marker",865118313),sAa=new C(null,"startOffset","startOffset",-590231263),ZF=new C(null,"errors","errors",-908790718),tAa=new C(null,"font","font",-1506159249),vAa=new C(null,"fatal","fatal",1874419888),xAa=new C(null,"feDisplacementMap","feDisplacementMap",176959495),yAa=new Mc(null,
|
||||
"p1__43353#","p1__43353#",-598450757,null),AAa=new Mc("clojure.spec.alpha","keys","clojure.spec.alpha/keys",-90227326,null),dt=new Mc("cljs.core","and","cljs.core/and",-6692549,null),x3=new C("app.common.types.shape.blur","blur","app.common.types.shape.blur/blur",636029398),BAa=new Mc("cljs.core","float?","cljs.core/float?",-941017745,null),Tpa=new C(null,"gen-max","gen-max",-793680445),qwa=new C(null,"teamId","teamId",-1272235390),Tq=new C(null,"fn-method","fn-method",236100839),CAa=new Mc("js",
|
||||
"Function","js/Function",-749892063,null),DAa=new Mc(null,"number-literal?","number-literal?",843787662,null),i_=new C(null,"event-type","event-type",319722813),zm=new C(null,"libspec","libspec",1228503756),y3=new C(null,"blend-mode","blend-mode",-1393007224),EAa=new C(null,"overflow","overflow",2058931880),Hy=new C(null,"directive","directive",793559132),AF=new C(null,"re-unparser","re-unparser",1432943079),Iwa=new C(null,"get-file-libraries","get-file-libraries",-1759425876),z3=new C(null,"fix-obj",
|
||||
"fix-obj",1131095112),BP=new C(null,"json","json",1279968570),GAa=new C(null,"background-color","background-color",570434026),HAa=new Mc("s","nilable","s/nilable",-812128520,null),t_=new C(null,"layout-justify-content","layout-justify-content",-416357134),RK=new C("malli.edn","var-parsing-not-supported","malli.edn/var-parsing-not-supported",-283037656),IAa=new C(null,"compile-syntax-check","compile-syntax-check",-1865080468),LN=new Mc("cljs.spec.alpha","cat","cljs.spec.alpha/cat",-1471398329,null),
|
||||
A3=new C("expound.printer","print-specs?","expound.printer/print-specs?",-2143920374),JAa=new C(null,"focus-path","focus-path",-2048689431),LAa=new C(null,"case-test","case-test",-213512472),pq=new C(null,"form","form",-1624062471),yQ=new C(null,"pages-index","pages-index",-1376462145),YH=new C(null,"group","group",582596132),MAa=new C(null,"exclusion","exclusion",531897910),NU=new C(null,"typography-ref-id","typography-ref-id",-993695356),B3=new C("app.common.types.shape","bool-attrs","app.common.types.shape/bool-attrs",
|
||||
247510648),Ku=new C(null,"mandatory","mandatory",542802336),cP=new Mc("cljs.core","any?","cljs.core/any?",-2068111842,null),VU=new C("app.common.logging","id","app.common.logging/id",1339267211),C3=new C(null,"password","password",417022471),kwa=new C(null,"get-file-fragment","get-file-fragment",-1236282386),pp=new C(null,"macro-present?","macro-present?",-1397713205),NAa=new C(null,"skip-copies?","skip-copies?",1278015996),aO=new C(null,"instrument","instrument",-960698844),OAa=new C(null,"xlink:role",
|
||||
"xlink:role",-556206369),Y1=new C(null,"add-obj","add-obj",-1569519983),RAa=new Mc(null,"p1__38485#","p1__38485#",952138742,null),co=new C(null,"source","source",-433931539),D3=new C(null,"qualified-symbol","qualified-symbol",-665513695),zo=new C(null,"keyword","keyword",811389747),E3=new C(null,"add-media","add-media",1778802009),TAa=new C(null,"viewTarget","viewTarget",-494135597),F3=new C("app.common.types.shape.blur","type","app.common.types.shape.blur/type",2120292747),y1=new C(null,"text-align",
|
||||
"text-align",1786091845),G3=new Mc(null,"p1__38484#","p1__38484#",192441545,null),XAa=new C(null,"thumbnail-uri","thumbnail-uri",1904972561),Dea=new C(null,"global-exports","global-exports",-1644865592),ZAa=new C(null,"foreignObject","foreignObject",25502111),u2=new C(null,"libraries","libraries",-303286011),$Aa=new C(null,"slope","slope",-1227938123),eBa=new C("malli.core","function-checker","malli.core/function-checker",-792030936),A_=new C(null,"justify-self","justify-self",-2135975605),RU=new C(null,
|
||||
"debug","debug",-1608172596),jBa=new C(null,"intercept","intercept",-2141938204),mU=new C(null,"update-new-shape","update-new-shape",1958657165),rq=new C(null,"else","else",-1508377146),lBa=new C(null,"from-ast","from-ast",-246238449),XN=new C("expound.paths","not-found","expound.paths/not-found",-195785795),H3=new C(null,"set-touched","set-touched",-443889429),Su=new C(null,"seq","seq",-1817803783),qea=new C(null,"sep","sep",1970430530),mBa=new Mc(null,"defn","defn",-126010802,null),Bo=new C(null,
|
||||
"set","set",304602554),nBa=new C(null,"scroll-left","scroll-left",-211761103),oBa=new C(null,"xml:base","xml:base",1209393887),$N=new C("expound","in","expound/in",-1900412298),RT=new C(null,"fill-color","fill-color",-1156875903),I3=new C("app.common.schema.openapi","encode","app.common.schema.openapi/encode",-536875343),XQ=new C(null,"line-to","line-to",1332939595),sBa=new C(null,"major","major",-27376078),J3=new C(null,"protocol","protocol",652470118),K3=new C("app.common.geom.point","point","app.common.geom.point/point",
|
||||
1811057644),ina=new Mc("clojure.core","array-map","clojure.core/array-map",-1351833961,null),tBa=new C(null,"protocol-invalid-method","protocol-invalid-method",522647516),uBa=new C(null,"polygon","polygon",837053759),bv=new C(null,"colinc","colinc",-584873385),iS=new C(null,"bool-type","bool-type",-1094918459),Nsa=new C(null,"sch","sch",-877249434),Tp=new C(null,"node","node",581201198),gb=new C(null,"print-length","print-length",1931866356),vBa=new C(null,"color-interpolation","color-interpolation",
|
||||
-1276247587),Bt=new C(null,"keys","keys",1068423698),wBa=new Mc(null,"Boolean","Boolean",1661141587,null),xBa=new Mc("cljs.core","chunked-seq?","cljs.core/chunked-seq?",-712922369,null),$F=new C(null,"code","code",1586293142),yBa=new C("gen","NaN?","gen/NaN?",-1917993267),zBa=new C(null,"bad","bad",1127186645),Aq=new C(null,"binding-form?","binding-form?",1728940169),L3=new Mc("cljs.core","ifn?","cljs.core/ifn?",1573873861,null),ABa=new C(null,"percent","percent",2031453817),BBa=new C(null,"compound",
|
||||
"compound",1539396613),NN=new Mc("cljs.spec.alpha","?","cljs.spec.alpha/?",1605136319,null),Xpa=new Mc("cljs.spec.alpha","\x26","cljs.spec.alpha/\x26",1635809823,null),bp=new C(null,"options","options",99638489),CBa=new Mc(null,"doubles","doubles",-1517872169,null),GBa=new C(null,"edge","edge",919909153),CN=new Mc("cljs.spec.alpha","*","cljs.spec.alpha/*",-1238084288,null),KN=new Mc("cljs.spec.alpha","+","cljs.spec.alpha/+",2101263265,null),HBa=new C(null,"gradientTransform","gradientTransform",-364684930),
|
||||
IO=new C("expound.problems","irrelevant","expound.problems/irrelevant",2090226124),n2=new C(null,"del-component","del-component",-883241442),Cea=new C("clojure.error","symbol","clojure.error/symbol",1544821994),AC=new C(null,"arity","arity",-1808556135),Wga=new Mc(null,"__hash","__hash",-1328796629,null),IBa=new C(null,"bool-group","bool-group",-1228048071),Kp=new Mc(null,"Window","Window",-138860255,null),JBa=new C(null,"inferred-ret-tag","inferred-ret-tag",798934347),LBa=new C(null,"radix","radix",
|
||||
857016463),Qm=new C(null,"statements","statements",600349855),fua=new C(null,"x-axis-rotation","x-axis-rotation",-637606609),$da=new C(null,"arrayBuilder","arrayBuilder",1446317421),Az=new C(null,"first","first",-644103046),M3=new Mc(null,"double?","double?",-2146564276,null),MBa=new Mc("clojure.test.check.generators","large-integer*","clojure.test.check.generators/large-integer*",-437830670,null),Bra=new C(null,"image-fix","image-fix",-823773862),Gwa=new C(null,"markup","markup",2143234544),NBa=
|
||||
new C(null,"workspace-preview-blend","workspace-preview-blend",-1720937040),N3=new C("app.common.types.shape","frame-attrs","app.common.types.shape/frame-attrs",677838341),ep=new C(null,"seen","seen",-518999789),OBa=new C(null,"feSpotLight","feSpotLight",663371214),LG=new C(null,"seed","seed",68613327),PBa=new C(null,"protocol-multiple-impls","protocol-multiple-impls",794179260),ip=new C("clojure.error","phase","clojure.error/phase",275140358),EI=new C(null,"var-args?","var-args?",-1630678710),twa=
|
||||
new C(null,"fileId","fileId",-2058475137),bea=new C(null,"mapBuilder","mapBuilder",-278083754),O3=new C(null,"purge-component","purge-component",2041170044),bta=new C("app.main.fonts","woff1-file-id","app.main.fonts/woff1-file-id",2117136543),RBa=new C(null,"title-dark","title-dark",-1835322435),x1=new C(null,"line-height","line-height",1870784992),UBa=new C("malli.core","non-function-childs","malli.core/non-function-childs",-1591582832),iea=new C(null,"preferStrings","preferStrings",-1532249482),
|
||||
VBa=new C("malli.transform","compiled","malli.transform/compiled",-1910053091),yp=new C(null,"js-provide","js-provide",1052912493),P3=new C("app.common.schema.openapi","type","app.common.schema.openapi/type",-2037057739),Wpa=new C(null,"min-count","min-count",1594709013),zwa=new C(null,"hasMedia","hasMedia",1354479701),uU=new C(null,"component-root","component-root",-485271026),Q3=new C(null,"warning-type","warning-type",1711103595),XBa=new C(null,"auto-height","auto-height",-960519663),hha=new C(null,
|
||||
"host-call","host-call",1059629755),YBa=new Mc(null,"ext","ext",643566986,null),qq=new C(null,"then","then",460598070),ZBa=new C(null,"strikethrough-position","strikethrough-position",402256746),$Ba=new C(null,"nodes","nodes",-2099585805),aCa=new C(null,"alignment-baseline","alignment-baseline",-311060879),VG=new C("clojure.test.check.properties","error","clojure.test.check.properties/error",483933635),nna=new Mc("clojure.core","hash-set","clojure.core/hash-set",1229125967,null),bCa=new C(null,"requiredFeatures",
|
||||
"requiredFeatures",207337914),ywa=new C(null,"exportType","exportType",-498564850),R3=new C(null,"maskUnits","maskUnits",1842176270),S3=new C(null,"mod-page","mod-page",1847006799),z0=new C(null,"thumbnail","thumbnail",-867906798),cCa=new Mc("clojure.test.check","quick-check","clojure.test.check/quick-check",-810344251,null),dCa=new C(null,"enable-google-fonts-provider","enable-google-fonts-provider",-325404774),eCa=new C(null,"sub-delims","sub-delims",1571683437),fCa=new Mc("cljs.core","into","cljs.core/into",
|
||||
1879938733,null),gCa=new C(null,"to-ast","to-ast",-21935298),X1=new C(null,"parent-stack","parent-stack",-1137931033),iP=new Mc("cljs.core","map?","cljs.core/map?",-1390345523,null),ofa=new C(null,"fn-self-name","fn-self-name",1461143531),hCa=new C(null,"unicode-bidi","unicode-bidi",310629754),Ym=new Mc(null,"recur","recur",1202958259,null),Sn=new Mc(null,"clj-nil","clj-nil",1321798654,null),JQ=new C(null,"parent-id","parent-id",-1400729131),vha=new C("malli.core","duplicate-arities","malli.core/duplicate-arities",
|
||||
-1476944198,null),nAa=new C(null,"existing","existing",-340796094),oAa=new C(null,"rotate","rotate",152705015),vea=new C("cljs.analyzer","constant-table","cljs.analyzer/constant-table",-114131889),rAa=new C(null,"marker","marker",865118313),sAa=new C(null,"startOffset","startOffset",-590231263),ZF=new C(null,"errors","errors",-908790718),tAa=new C(null,"font","font",-1506159249),vAa=new C(null,"fatal","fatal",1874419888),xAa=new C(null,"feDisplacementMap","feDisplacementMap",176959495),AAa=new Mc("clojure.spec.alpha",
|
||||
"keys","clojure.spec.alpha/keys",-90227326,null),dt=new Mc("cljs.core","and","cljs.core/and",-6692549,null),x3=new C("app.common.types.shape.blur","blur","app.common.types.shape.blur/blur",636029398),BAa=new Mc("cljs.core","float?","cljs.core/float?",-941017745,null),Tpa=new C(null,"gen-max","gen-max",-793680445),qwa=new C(null,"teamId","teamId",-1272235390),Tq=new C(null,"fn-method","fn-method",236100839),CAa=new Mc("js","Function","js/Function",-749892063,null),DAa=new Mc(null,"number-literal?",
|
||||
"number-literal?",843787662,null),i_=new C(null,"event-type","event-type",319722813),zm=new C(null,"libspec","libspec",1228503756),y3=new C(null,"blend-mode","blend-mode",-1393007224),EAa=new C(null,"overflow","overflow",2058931880),Hy=new C(null,"directive","directive",793559132),AF=new C(null,"re-unparser","re-unparser",1432943079),Iwa=new C(null,"get-file-libraries","get-file-libraries",-1759425876),z3=new C(null,"fix-obj","fix-obj",1131095112),BP=new C(null,"json","json",1279968570),GAa=new C(null,
|
||||
"background-color","background-color",570434026),HAa=new Mc("s","nilable","s/nilable",-812128520,null),t_=new C(null,"layout-justify-content","layout-justify-content",-416357134),RK=new C("malli.edn","var-parsing-not-supported","malli.edn/var-parsing-not-supported",-283037656),IAa=new C(null,"compile-syntax-check","compile-syntax-check",-1865080468),LN=new Mc("cljs.spec.alpha","cat","cljs.spec.alpha/cat",-1471398329,null),A3=new C("expound.printer","print-specs?","expound.printer/print-specs?",-2143920374),
|
||||
JAa=new C(null,"focus-path","focus-path",-2048689431),LAa=new C(null,"case-test","case-test",-213512472),pq=new C(null,"form","form",-1624062471),yQ=new C(null,"pages-index","pages-index",-1376462145),YH=new C(null,"group","group",582596132),MAa=new C(null,"exclusion","exclusion",531897910),NU=new C(null,"typography-ref-id","typography-ref-id",-993695356),B3=new C("app.common.types.shape","bool-attrs","app.common.types.shape/bool-attrs",247510648),Ku=new C(null,"mandatory","mandatory",542802336),
|
||||
cP=new Mc("cljs.core","any?","cljs.core/any?",-2068111842,null),VU=new C("app.common.logging","id","app.common.logging/id",1339267211),C3=new C(null,"password","password",417022471),kwa=new C(null,"get-file-fragment","get-file-fragment",-1236282386),pp=new C(null,"macro-present?","macro-present?",-1397713205),NAa=new C(null,"skip-copies?","skip-copies?",1278015996),aO=new C(null,"instrument","instrument",-960698844),OAa=new C(null,"xlink:role","xlink:role",-556206369),Y1=new C(null,"add-obj","add-obj",
|
||||
-1569519983),RAa=new Mc(null,"p1__38485#","p1__38485#",952138742,null),co=new C(null,"source","source",-433931539),D3=new C(null,"qualified-symbol","qualified-symbol",-665513695),zo=new C(null,"keyword","keyword",811389747),E3=new C(null,"add-media","add-media",1778802009),TAa=new C(null,"viewTarget","viewTarget",-494135597),F3=new C("app.common.types.shape.blur","type","app.common.types.shape.blur/type",2120292747),y1=new C(null,"text-align","text-align",1786091845),G3=new Mc(null,"p1__38484#","p1__38484#",
|
||||
192441545,null),XAa=new C(null,"thumbnail-uri","thumbnail-uri",1904972561),Dea=new C(null,"global-exports","global-exports",-1644865592),ZAa=new C(null,"foreignObject","foreignObject",25502111),u2=new C(null,"libraries","libraries",-303286011),$Aa=new C(null,"slope","slope",-1227938123),eBa=new C("malli.core","function-checker","malli.core/function-checker",-792030936),A_=new C(null,"justify-self","justify-self",-2135975605),RU=new C(null,"debug","debug",-1608172596),jBa=new C(null,"intercept","intercept",
|
||||
-2141938204),mU=new C(null,"update-new-shape","update-new-shape",1958657165),rq=new C(null,"else","else",-1508377146),lBa=new C(null,"from-ast","from-ast",-246238449),XN=new C("expound.paths","not-found","expound.paths/not-found",-195785795),H3=new C(null,"set-touched","set-touched",-443889429),Su=new C(null,"seq","seq",-1817803783),qea=new C(null,"sep","sep",1970430530),mBa=new Mc(null,"defn","defn",-126010802,null),Bo=new C(null,"set","set",304602554),nBa=new C(null,"scroll-left","scroll-left",
|
||||
-211761103),oBa=new C(null,"xml:base","xml:base",1209393887),$N=new C("expound","in","expound/in",-1900412298),RT=new C(null,"fill-color","fill-color",-1156875903),I3=new C("app.common.schema.openapi","encode","app.common.schema.openapi/encode",-536875343),XQ=new C(null,"line-to","line-to",1332939595),sBa=new C(null,"major","major",-27376078),J3=new C(null,"protocol","protocol",652470118),K3=new C("app.common.geom.point","point","app.common.geom.point/point",1811057644),ina=new Mc("clojure.core",
|
||||
"array-map","clojure.core/array-map",-1351833961,null),tBa=new C(null,"protocol-invalid-method","protocol-invalid-method",522647516),uBa=new C(null,"polygon","polygon",837053759),bv=new C(null,"colinc","colinc",-584873385),iS=new C(null,"bool-type","bool-type",-1094918459),Nsa=new C(null,"sch","sch",-877249434),Tp=new C(null,"node","node",581201198),gb=new C(null,"print-length","print-length",1931866356),vBa=new C(null,"color-interpolation","color-interpolation",-1276247587),Bt=new C(null,"keys",
|
||||
"keys",1068423698),wBa=new Mc(null,"Boolean","Boolean",1661141587,null),xBa=new Mc("cljs.core","chunked-seq?","cljs.core/chunked-seq?",-712922369,null),$F=new C(null,"code","code",1586293142),yBa=new C("gen","NaN?","gen/NaN?",-1917993267),zBa=new C(null,"bad","bad",1127186645),Aq=new C(null,"binding-form?","binding-form?",1728940169),L3=new Mc("cljs.core","ifn?","cljs.core/ifn?",1573873861,null),ABa=new C(null,"percent","percent",2031453817),BBa=new C(null,"compound","compound",1539396613),NN=new Mc("cljs.spec.alpha",
|
||||
"?","cljs.spec.alpha/?",1605136319,null),Xpa=new Mc("cljs.spec.alpha","\x26","cljs.spec.alpha/\x26",1635809823,null),bp=new C(null,"options","options",99638489),CBa=new Mc(null,"doubles","doubles",-1517872169,null),GBa=new C(null,"edge","edge",919909153),CN=new Mc("cljs.spec.alpha","*","cljs.spec.alpha/*",-1238084288,null),KN=new Mc("cljs.spec.alpha","+","cljs.spec.alpha/+",2101263265,null),HBa=new C(null,"gradientTransform","gradientTransform",-364684930),IO=new C("expound.problems","irrelevant",
|
||||
"expound.problems/irrelevant",2090226124),n2=new C(null,"del-component","del-component",-883241442),Cea=new C("clojure.error","symbol","clojure.error/symbol",1544821994),AC=new C(null,"arity","arity",-1808556135),Wga=new Mc(null,"__hash","__hash",-1328796629,null),IBa=new C(null,"bool-group","bool-group",-1228048071),Kp=new Mc(null,"Window","Window",-138860255,null),JBa=new C(null,"inferred-ret-tag","inferred-ret-tag",798934347),LBa=new C(null,"radix","radix",857016463),Qm=new C(null,"statements",
|
||||
"statements",600349855),fua=new C(null,"x-axis-rotation","x-axis-rotation",-637606609),$da=new C(null,"arrayBuilder","arrayBuilder",1446317421),Az=new C(null,"first","first",-644103046),M3=new Mc(null,"double?","double?",-2146564276,null),MBa=new Mc("clojure.test.check.generators","large-integer*","clojure.test.check.generators/large-integer*",-437830670,null),Bra=new C(null,"image-fix","image-fix",-823773862),Gwa=new C(null,"markup","markup",2143234544),NBa=new C(null,"workspace-preview-blend","workspace-preview-blend",
|
||||
-1720937040),N3=new C("app.common.types.shape","frame-attrs","app.common.types.shape/frame-attrs",677838341),ep=new C(null,"seen","seen",-518999789),OBa=new C(null,"feSpotLight","feSpotLight",663371214),LG=new C(null,"seed","seed",68613327),PBa=new C(null,"protocol-multiple-impls","protocol-multiple-impls",794179260),ip=new C("clojure.error","phase","clojure.error/phase",275140358),EI=new C(null,"var-args?","var-args?",-1630678710),twa=new C(null,"fileId","fileId",-2058475137),bea=new C(null,"mapBuilder",
|
||||
"mapBuilder",-278083754),O3=new C(null,"purge-component","purge-component",2041170044),bta=new C("app.main.fonts","woff1-file-id","app.main.fonts/woff1-file-id",2117136543),RBa=new C(null,"title-dark","title-dark",-1835322435),x1=new C(null,"line-height","line-height",1870784992),UBa=new C("malli.core","non-function-childs","malli.core/non-function-childs",-1591582832),iea=new C(null,"preferStrings","preferStrings",-1532249482),VBa=new C("malli.transform","compiled","malli.transform/compiled",-1910053091),
|
||||
yp=new C(null,"js-provide","js-provide",1052912493),P3=new C("app.common.schema.openapi","type","app.common.schema.openapi/type",-2037057739),Wpa=new C(null,"min-count","min-count",1594709013),zwa=new C(null,"hasMedia","hasMedia",1354479701),uU=new C(null,"component-root","component-root",-485271026),Q3=new C(null,"warning-type","warning-type",1711103595),XBa=new C(null,"auto-height","auto-height",-960519663),hha=new C(null,"host-call","host-call",1059629755),YBa=new Mc(null,"ext","ext",643566986,
|
||||
null),qq=new C(null,"then","then",460598070),ZBa=new C(null,"strikethrough-position","strikethrough-position",402256746),$Ba=new C(null,"nodes","nodes",-2099585805),aCa=new C(null,"alignment-baseline","alignment-baseline",-311060879),VG=new C("clojure.test.check.properties","error","clojure.test.check.properties/error",483933635),nna=new Mc("clojure.core","hash-set","clojure.core/hash-set",1229125967,null),bCa=new C(null,"requiredFeatures","requiredFeatures",207337914),ywa=new C(null,"exportType",
|
||||
"exportType",-498564850),R3=new C(null,"maskUnits","maskUnits",1842176270),S3=new C(null,"mod-page","mod-page",1847006799),z0=new C(null,"thumbnail","thumbnail",-867906798),cCa=new Mc("clojure.test.check","quick-check","clojure.test.check/quick-check",-810344251,null),dCa=new C(null,"enable-google-fonts-provider","enable-google-fonts-provider",-325404774),eCa=new C(null,"sub-delims","sub-delims",1571683437),fCa=new Mc("cljs.core","into","cljs.core/into",1879938733,null),gCa=new C(null,"to-ast","to-ast",
|
||||
-21935298),X1=new C(null,"parent-stack","parent-stack",-1137931033),iP=new Mc("cljs.core","map?","cljs.core/map?",-1390345523,null),ofa=new C(null,"fn-self-name","fn-self-name",1461143531),hCa=new C(null,"unicode-bidi","unicode-bidi",310629754),Ym=new Mc(null,"recur","recur",1202958259,null),Sn=new Mc(null,"clj-nil","clj-nil",1321798654,null),JQ=new C(null,"parent-id","parent-id",-1400729131),yAa=new Mc(null,"p1__32262#","p1__32262#",-1395939833,null),vha=new C("malli.core","duplicate-arities","malli.core/duplicate-arities",
|
||||
-374423504),WS=new C(null,"last-order","last-order",203806992),iCa=new C(null,"requiredExtensions","requiredExtensions",-1251917917),T3=new Mc(null,"inst?","inst?",1614698981,null),jCa=new C(null,"rendering-intent","rendering-intent",-45468422),Ooa=new C("tools.reader","opts","tools.reader/opts",-2121810901),kt=new C(null,"segs","segs",-1940299576),kCa=new C(null,"stemh","stemh",1705215871),Xha=new Mc(null,"malli.core","malli.core",-2051169970,null),lCa=new C(null,"stemv","stemv",-157426393),mCa=
|
||||
new Mc("cljs.core","unquote","cljs.core/unquote",1013085760,null),nCa=new Mc(null,"cljs.reader","cljs.reader",1327473948,null),oCa=new C(null,"inifinite?","inifinite?",-1363045598),pCa=new C(null,"this","this",-611633625),fU=new C(null,"file-id","file-id",-811871323),qCa=new C(null,"feTurbulence","feTurbulence",2079450215),rCa=new Mc(null,"defn-","defn-",1097765044,null),sCa=new Mc(null,"goog.string","goog.string",-2055533048,null),Jra=new C(null,"vthread","vthread",441141075),tCa=new C(null,"invalid-protocol-symbol",
|
||||
"invalid-protocol-symbol",86246948),uCa=new C(null,"textLength","textLength",2037311011),vCa=new C(null,"cap-height","cap-height",1034322643),wCa=new C(null,"reverse-column","reverse-column",686737368),U3=new C("app.common.spec","integer","app.common.spec/integer",-2139409309),xCa=new C(null,"the-var","the-var",1428415613),yCa=new Mc("clojure.test.check.generators","frequency","clojure.test.check.generators/frequency",2090703177,null),zCa=new C("app.common.schema.desc-native","level","app.common.schema.desc-native/level",
|
||||
|
@ -5300,7 +5300,7 @@ e.getSeconds=gM.prototype.getUTCSeconds;e.getMilliseconds=gM.prototype.getUTCMil
|
|||
w.W(D):w(D)}:g(u)?u:w,jD,g(g(v)?A:v)?function(D){D=A.W?A.W(D):A(D);return v.W?v.W(D):v(D)}:g(v)?v:A],null)},Qf(function(q){return p$.ba?p$.ba(q,b,c):p$(q,b,c)},a)):null==a?null:Ud(a)?new f(null,1,[iD,a],null):ey.j(YPa,new f(null,1,[Gl,a],null))},aBa=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;e=eL.prototype;e.If=function(a,b){return new eL(this.Rl,this.Tl,this.Ul,this.Sl,this.Gm,this.Wl,b)};e.Oe=function(){return this.fp};e.ql=l;e.cl=function(){return this.Gm};
|
||||
e.El=function(a,b,c,d){var h=this;return zb(function(m,q){function r(G){return function(K){K=Hl.j(G.W?G.W(b):G(b),K);return null==K?null:h.Ul.j?h.Ul.j(K,A):h.Ul(K,A)}}q=F(q);q=z.j(q,c);q=F(q);var u=z.j(q,Bt),v=z.j(q,Ko),w=z.j(q,hL),A=g(d)?d:vx($y(b,null)),D=Nba(r(TF),r(EK));q=function(){var G=Ef(D,u);if(g(G))return G;G=z.j(w,ny.W(b));return g(G)?G:v}();return g(q)?(q=p$(q,b,A),null==m?q:p$(new J(null,2,5,M,[m,q],null),b,A)):m},null,h.Wl)};var AL=new f(null,1,[FC,LK],null),Ppa=function(){var a=new f(null,4,[uo,qBa,o4,rBa,Bo,kBa,g6,pBa],null);return DBa(x([new f(null,3,[Q,Pxa,lL,new f(null,1,[hH,function(b){b=EK.W(b);var c=W3.W(b);return g(c)?c:IL.W(b)}],null),pL,new f(null,1,[hH,function(b){b=EK.W(b);var c=I3.W(b);return g(c)?c:YIa.W(b)}],null)],null),new f(null,3,[Q,po,kL,hf.cb(x([Eh([h9,D3,r4,WK,M2,T3,K7,xo,I5,V2,X5,C4,J6,f8,zo,L4,P5,O8,Bo,M3,O9],[new f(null,1,[hH,bL(oD)],null),nM,kM,YAa,bBa,gBa,kM,nM,kM,kM,nM,kM,kM,nM,kM,kM,nM,bBa,
|
||||
kBa,YAa,new f(null,1,[hH,bL(oD)],null)]),Eh([v7,F5,WK,u7,l6,TK,T9,q5,Z4,O4,uo,D5,A5,L6,u6,l4,R6,f6,M3,l3,P9,e8],[mM,iM,jM,iM,iM,iM,iM,jM,mM,iM,pBa,iM,iM,iBa(),iM,iM,mM,jM,jM,mM,iM,iM])])),nL,hf.cb(x([Eh([h9,D3,r4,M2,T3,xo,V2,X5,J6,f8,zo,L4,P5,O8,O9],[new f(null,1,[hH,bL(aL)],null),rM,dy,rM,hBa,rM,dy,rM,dy,rM,dy,dy,rM,rM,new f(null,1,[hH,bL(aL)],null)]),Eh([F5,WK,u7,l6,TK,T9,O4,D5,A5,u6,l4,ct,P9,e8],[rM,rM,rM,rM,rM,rM,rM,rM,rM,rM,rM,rM,rM,rM])]))],null),new f(null,3,[Q,ENa,kL,a,nL,a],null)]))}();
|
||||
e=oM.prototype;e.If=function(a,b){return new oM(this.options,this.decoder,this.Km,this.Qh,this.Rp,this.zn,this.Do,this.Ip,this.s,this.Tn,b)};e.Oe=function(){return this.pp};e.Ph=l;e.oj=function(a,b){return Cx(Yb(this.Qh),b)};e.ik=l;e.Tj=function(){return Mx(Yb(this.Qh))};e.jk=function(){return Px(Yb(this.Qh))};e.jj=l;e.kj=function(){return Qx(Yb(this.Qh))};e.ej=function(a,b,c){return Rx(Yb(this.Qh),b,c)};e.fj=l;e.Ei=function(){return ox(Yb(this.Qh))};e.Ri=function(){return vx(Yb(this.Qh))};
|
||||
e=oM.prototype;e.If=function(a,b){return new oM(this.options,this.decoder,this.Km,this.Ip,this.Qh,this.Rp,this.zn,this.Do,this.Tn,this.s,b)};e.Oe=function(){return this.pp};e.Ph=l;e.oj=function(a,b){return Cx(Yb(this.Qh),b)};e.ik=l;e.Tj=function(){return Mx(Yb(this.Qh))};e.jk=function(){return Px(Yb(this.Qh))};e.jj=l;e.kj=function(){return Qx(Yb(this.Qh))};e.ej=function(a,b,c){return Rx(Yb(this.Qh),b,c)};e.fj=l;e.Ei=function(){return ox(Yb(this.Qh))};e.Ri=function(){return vx(Yb(this.Qh))};
|
||||
e.Dd=function(a,b,c,d){return pC(Yb(this.Qh),b,c,d)};e.ij=function(a,b,c,d){return sx(Yb(this.Qh),b,c,d)};e.nj=function(){return ux(Yb(this.Qh))};e.Rh=function(){return wx(Yb(this.Qh))};e.hj=function(){return yx(Yb(this.Qh))};e.gj=function(a,b){return rx(Yb(this.Qh),b)};e.mj=function(){return xx(Yb(this.Qh))};e.rn=l;e.zm=function(){return Yb(this.Qh)};e.Am=function(){return Yb(this.Do)};e.Bm=function(a,b){a=Yb(this.Do);return a.W?a.W(b):a(b)};e.ym=function(a,b){a=Yb(this.Km);return a.W?a.W(b):a(b)};
|
||||
var lSa=pxa();eM(CG,lSa);var mSa=rxa();eM(EG,mSa);var SBa=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,nSa=new f(null,3,[P,C9,PG,oj,XD,new f(null,7,[g4,"uuid",x6,"UUID formatted string",dI,"should be an uuid",LH,tA(function(){return hJ()},TA),P3,"string",I9,"uuid",W3,YM],null)],null);eM(C9,nSa);
|
||||
var TBa=/[a-zA-Z0-9_.+-\\\\]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+/,oSa=new f(null,3,[P,Y4,PG,function(a){var b="string"===typeof a;return b?(b=250>pd(a))?ri(TBa,a):b:b},XD,new f(null,7,[g4,"email",x6,"string with valid email address",dI,"expected valid email",LH,MK(po),P3,"string",I9,"email",W3,WBa],null)],null);eM(Y4,oSa);
|
||||
|
@ -6860,7 +6860,7 @@ e.startComponent=function(a){var b=LY(a);a=this.file;var c=bQ.ea(FP.W(b),EP.W(b)
|
|||
null)),O1,T.W(b)),P1,t.j(P.W(b),BQ)?T.W(b):HD);return k.W(O1.W(this.file))};e.lookupShape=function(a){return vl(W1(this.file,Hj(a)))};e.closePage=function(){return this.file=Wj.j(Wj.j(Wj.j(Wj.j(this.file,R1),X1),f2),a2)};e.createCircle=function(a){a=LY(a);this.file=l2(this.file,lU,a);return k.W(f2.W(this.file))};e.createImage=function(a){a=LY(a);this.file=l2(this.file,kS,a);return k.W(f2.W(this.file))};e.createSVG=function(a){this.file=X$(this.file,LY(a));return k.W(f2.W(this.file))};
|
||||
e.createText=function(a){var b=this.file;a=LY(a);a=im(a,ER,BRa);this.file=l2(b,ZH,a);return k.W(f2.W(this.file))};e.createComponentInstance=function(a){this.file=Hva(this.file,LY(a));return k.W(f2.W(this.file))};e.addBool=function(a){var b=this.file;a=LY(a);var c=P1.W(b);a=c2(LU(H.cb(a,P,tT,x([jU,c]))),b,tT);this.file=Ul.ea(b2(H.ba($1(b,a),f2,T.W(a)),Q.W(a)),X1,U1,T.W(a));return k.W(f2.W(this.file))};e.createPath=function(a){a=LY(a);this.file=l2(this.file,XB,a);return k.W(f2.W(this.file))};
|
||||
e.closeArtboard=function(){var a=this.file,b=Dd(X1.W(a));b=W1(a,b);b=jU.W(b);b=g(b)?b:null==O1.W(a)?HD:null;return this.file=Ul.ba(H.ba(a,P1,b),X1,Ed)};e.deleteLibraryMedia=function(a){var b=this.file;a=LY(a);a=Hj(a);this.file=M1(b,new f(null,2,[P,a8,T,a],null));return k.W(f2.W(this.file))};e.closeGroup=function(){return this.file=Eva(this.file)};
|
||||
e.addPage=function(){function a(d,h){this.file=Dva(this.file,new f(null,2,[Q,d,bp,h],null));return k.W(R1.W(this.file))}function b(d){this.file=Dva(this.file,new f(null,1,[Q,d],null));return k.W(R1.W(this.file))}var c=null;c=function(d,h){switch(arguments.length){case 1:return b.call(this,d);case 2:return a.call(this,d,h)}throw Error("Invalid arity: "+arguments.length);};c.W=b;c.j=a;return c}();e.closeBool=function(){return this.file=Fva(this.file)};
|
||||
e.addPage=function(){function a(d,h){this.file=Dva(this.file,new f(null,2,[Q,d,bp,LY(h)],null));return k.W(R1.W(this.file))}function b(d){this.file=Dva(this.file,new f(null,1,[Q,d],null));return k.W(R1.W(this.file))}var c=null;c=function(d,h){switch(arguments.length){case 1:return b.call(this,d);case 2:return a.call(this,d,h)}throw Error("Invalid arity: "+arguments.length);};c.W=b;c.j=a;return c}();e.closeBool=function(){return this.file=Fva(this.file)};
|
||||
e.export=function(){return $V(function(a){if(B(a,P))return null;var b=y(a,0,null);a=y(a,1,null);b=Q.W(b);var c=a.type;a=URL.createObjectURL(a);var d=NK.createElement("a");c=PJ(c);b=g(g(c)?!il(b,c):c)?""+(b??"")+(c??""):b;EJ(d,"href",a);EJ(d,"download",b);EJ(d.style,"display","none");document.body.appendChild(d);d.click();return d.remove()},xMa(this.file))};
|
||||
e.addLibraryColor=function(a){var b=this.file;a=LY(a);var c=T.W(a);c=g(c)?c:hJ();this.file=H.ba(M1(b,new f(null,2,[P,a3,QT,H.ba(a,T,c)],null)),f2,c);return k.W(f2.W(this.file))};e.updateLibraryColor=function(a){var b=this.file;a=LY(a);var c=Hj(T.W(a));this.file=H.ba(M1(b,new f(null,2,[P,m5,QT,H.ba(a,T,c)],null)),f2,T.W(a));return k.W(f2.W(this.file))};e.finishComponent=function(){return this.file=Gva(this.file)};e.closeSVG=function(){return this.file=m2(this.file)};
|
||||
e.addGroup=function(a){var b=this.file;a=LY(a);var c=P1.W(b);a=c2(LU(H.cb(a,P,YH,x([jU,c]))),b,YH);this.file=Ul.ea(b2(H.ba($1(b,a),f2,T.W(a)),Q.W(a)),X1,U1,T.W(a));return k.W(f2.W(this.file))};e.addLibraryMedia=function(a){var b=this.file;a=LY(a);var c=T.W(a);c=g(c)?c:hJ();this.file=H.ba(M1(b,new f(null,2,[P,E3,Vs,H.ba(a,T,c)],null)),f2,c);return k.W(f2.W(this.file))};e.asMap=function(){return vl(this.file)};
|
||||
|
|
24
ui-src/lib/types/penpotPage.d.ts
vendored
24
ui-src/lib/types/penpotPage.d.ts
vendored
|
@ -1,6 +1,30 @@
|
|||
import { SavedGrids } from '@ui/lib/types/utils/grid';
|
||||
import { Uuid } from '@ui/lib/types/utils/uuid';
|
||||
|
||||
import { PenpotNode } from './penpotNode';
|
||||
|
||||
export type PenpotPage = {
|
||||
name: string;
|
||||
children?: PenpotNode[];
|
||||
options?: PenpotPageOptions;
|
||||
};
|
||||
|
||||
export type PenpotPageOptions = {
|
||||
background?: string; // hex color
|
||||
savedGrids?: SavedGrids;
|
||||
flows?: Flow[];
|
||||
guides?: { [uuid: Uuid]: Guide };
|
||||
};
|
||||
|
||||
type Flow = {
|
||||
id?: Uuid;
|
||||
name: string;
|
||||
startingFrame: Uuid;
|
||||
};
|
||||
|
||||
type Guide = {
|
||||
id?: Uuid;
|
||||
axis: 'x' | 'y';
|
||||
position: number;
|
||||
frameId?: Uuid;
|
||||
};
|
||||
|
|
3
ui-src/lib/types/utils/color.d.ts
vendored
3
ui-src/lib/types/utils/color.d.ts
vendored
|
@ -1,6 +1,5 @@
|
|||
import { Gradient } from '@ui/lib/types/utils/gradient';
|
||||
import { ImageColor } from '@ui/lib/types/utils/imageColor';
|
||||
import { RgbColor } from '@ui/lib/types/utils/rgbColor';
|
||||
import { Uuid } from '@ui/lib/types/utils/uuid';
|
||||
|
||||
export type Color = {
|
||||
|
@ -8,7 +7,7 @@ export type Color = {
|
|||
name?: string;
|
||||
path?: string;
|
||||
value?: string;
|
||||
color?: RgbColor;
|
||||
color?: string; // hex color
|
||||
opacity?: number;
|
||||
modifiedAt?: string; //@TODO: check this attribute in penpot
|
||||
refId?: Uuid;
|
||||
|
|
10
ui-src/lib/types/utils/grid.d.ts
vendored
10
ui-src/lib/types/utils/grid.d.ts
vendored
|
@ -1,7 +1,11 @@
|
|||
import { RgbColor } from '@ui/lib/types/utils/rgbColor';
|
||||
|
||||
export type Grid = ColumnGrid | RowGrid | SquareGrid;
|
||||
|
||||
export type SavedGrids = {
|
||||
square?: SquareParams;
|
||||
row?: ColumnParams;
|
||||
column?: ColumnParams;
|
||||
};
|
||||
|
||||
type ColumnGrid = {
|
||||
type: 'column';
|
||||
display: boolean;
|
||||
|
@ -35,6 +39,6 @@ type SquareParams = {
|
|||
};
|
||||
|
||||
type GridColor = {
|
||||
color: RgbColor;
|
||||
color: string; // hex color
|
||||
opacity: number;
|
||||
};
|
||||
|
|
5
ui-src/lib/types/utils/rgbColor.d.ts
vendored
5
ui-src/lib/types/utils/rgbColor.d.ts
vendored
|
@ -1,5 +0,0 @@
|
|||
export type RgbColor = {
|
||||
title?: string;
|
||||
description?: string;
|
||||
gen: string;
|
||||
};
|
Loading…
Reference in a new issue