@enerex/template-studio 1.0.8 → 1.0.10
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.
|
@@ -539,12 +539,12 @@ var hu = ne.createContext(void 0),
|
|
|
539
539
|
_ne$useState6 = _slicedToArray(_ne$useState5, 2),
|
|
540
540
|
a = _ne$useState6[0],
|
|
541
541
|
u = _ne$useState6[1],
|
|
542
|
-
_ne$useState7 = ne.useState(t.
|
|
542
|
+
_ne$useState7 = ne.useState(t.projectId),
|
|
543
543
|
_ne$useState8 = _slicedToArray(_ne$useState7, 2),
|
|
544
544
|
o = _ne$useState8[0],
|
|
545
545
|
l = _ne$useState8[1],
|
|
546
546
|
c = function c(d) {
|
|
547
|
-
s(d.apiKey), i(d.clientId), l(d.
|
|
547
|
+
s(d.apiKey), i(d.clientId), l(d.projectId), u(d.enerexIdentifier);
|
|
548
548
|
};
|
|
549
549
|
return /* @__PURE__ */O.jsx(hu.Provider, {
|
|
550
550
|
value: {
|
|
@@ -552,7 +552,7 @@ var hu = ne.createContext(void 0),
|
|
|
552
552
|
apiKey: n,
|
|
553
553
|
setConfiguration: c,
|
|
554
554
|
enerexIdentifier: a,
|
|
555
|
-
|
|
555
|
+
projectId: o
|
|
556
556
|
},
|
|
557
557
|
children: e
|
|
558
558
|
});
|
|
@@ -8504,7 +8504,7 @@ var rr = function rr() {
|
|
|
8504
8504
|
var e = rr(),
|
|
8505
8505
|
_Wt2 = Wt(),
|
|
8506
8506
|
t = _Wt2.enerexIdentifier,
|
|
8507
|
-
r = _Wt2.
|
|
8507
|
+
r = _Wt2.projectId;
|
|
8508
8508
|
return Rn({
|
|
8509
8509
|
queryKey: ["getTemplateTags"],
|
|
8510
8510
|
queryFn: function () {
|
|
@@ -8530,7 +8530,7 @@ var rr = function rr() {
|
|
|
8530
8530
|
var e = rr(),
|
|
8531
8531
|
_Wt3 = Wt(),
|
|
8532
8532
|
t = _Wt3.enerexIdentifier,
|
|
8533
|
-
r = _Wt3.
|
|
8533
|
+
r = _Wt3.projectId;
|
|
8534
8534
|
return Rn({
|
|
8535
8535
|
queryKey: ["getExcludeCategory"],
|
|
8536
8536
|
queryFn: function () {
|
|
@@ -8805,7 +8805,7 @@ var sv = function sv(e) {
|
|
|
8805
8805
|
var e = rr(),
|
|
8806
8806
|
_Wt4 = Wt(),
|
|
8807
8807
|
t = _Wt4.enerexIdentifier,
|
|
8808
|
-
r = _Wt4.
|
|
8808
|
+
r = _Wt4.projectId;
|
|
8809
8809
|
return Rn({
|
|
8810
8810
|
queryKey: ["getTemplatesList"],
|
|
8811
8811
|
queryFn: function () {
|
|
@@ -10734,7 +10734,7 @@ var Pv = function Pv() {
|
|
|
10734
10734
|
var e = rr(),
|
|
10735
10735
|
_Wt5 = Wt(),
|
|
10736
10736
|
t = _Wt5.enerexIdentifier,
|
|
10737
|
-
r = _Wt5.
|
|
10737
|
+
r = _Wt5.projectId;
|
|
10738
10738
|
return Ou({
|
|
10739
10739
|
mutationKey: ["getTemplate"],
|
|
10740
10740
|
mutationFn: function () {
|
|
@@ -10768,7 +10768,7 @@ var Pv = function Pv() {
|
|
|
10768
10768
|
var e = rr(),
|
|
10769
10769
|
_Wt6 = Wt(),
|
|
10770
10770
|
t = _Wt6.enerexIdentifier,
|
|
10771
|
-
r = _Wt6.
|
|
10771
|
+
r = _Wt6.projectId;
|
|
10772
10772
|
return Rn({
|
|
10773
10773
|
queryKey: ["getTemplateTypes"],
|
|
10774
10774
|
queryFn: function () {
|
|
@@ -15668,7 +15668,7 @@ var wy = function wy(_ref92) {
|
|
|
15668
15668
|
os();
|
|
15669
15669
|
var _Wt7 = Wt(),
|
|
15670
15670
|
t = _Wt7.enerexIdentifier,
|
|
15671
|
-
r = _Wt7.
|
|
15671
|
+
r = _Wt7.projectId;
|
|
15672
15672
|
return Ou({
|
|
15673
15673
|
mutationKey: ["saveTemplate"],
|
|
15674
15674
|
mutationFn: function () {
|
|
@@ -15677,7 +15677,7 @@ var wy = function wy(_ref92) {
|
|
|
15677
15677
|
while (1) switch (_context18.n) {
|
|
15678
15678
|
case 0:
|
|
15679
15679
|
n.enerexIdentifier = t !== null && t !== void 0 ? t : "";
|
|
15680
|
-
n.
|
|
15680
|
+
n.projectId = r !== null && r !== void 0 ? r : "";
|
|
15681
15681
|
_context18.n = 1;
|
|
15682
15682
|
return e.post("".concat(nr.SaveTemplate), n);
|
|
15683
15683
|
case 1:
|
|
@@ -15827,7 +15827,7 @@ var wy = function wy(_ref92) {
|
|
|
15827
15827
|
case 0:
|
|
15828
15828
|
N = {
|
|
15829
15829
|
enerexIdentifier: "",
|
|
15830
|
-
|
|
15830
|
+
projectId: "",
|
|
15831
15831
|
templateId: (_g$id = g === null || g === void 0 ? void 0 : g.id) !== null && _g$id !== void 0 ? _g$id : "",
|
|
15832
15832
|
templateType: H.templateType.id,
|
|
15833
15833
|
name: H.templateName,
|
|
@@ -556,12 +556,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
556
556
|
_m$useState6 = _slicedToArray(_m$useState5, 2),
|
|
557
557
|
o = _m$useState6[0],
|
|
558
558
|
u = _m$useState6[1],
|
|
559
|
-
_m$useState7 = m.useState(t.
|
|
559
|
+
_m$useState7 = m.useState(t.projectId),
|
|
560
560
|
_m$useState8 = _slicedToArray(_m$useState7, 2),
|
|
561
561
|
a = _m$useState8[0],
|
|
562
562
|
l = _m$useState8[1],
|
|
563
563
|
c = function c(d) {
|
|
564
|
-
s(d.apiKey), i(d.clientId), l(d.
|
|
564
|
+
s(d.apiKey), i(d.clientId), l(d.projectId), u(d.enerexIdentifier);
|
|
565
565
|
};
|
|
566
566
|
return T.jsx(Hs.Provider, {
|
|
567
567
|
value: {
|
|
@@ -569,7 +569,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
569
569
|
apiKey: n,
|
|
570
570
|
setConfiguration: c,
|
|
571
571
|
enerexIdentifier: o,
|
|
572
|
-
|
|
572
|
+
projectId: a
|
|
573
573
|
},
|
|
574
574
|
children: e
|
|
575
575
|
});
|
|
@@ -8204,7 +8204,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8204
8204
|
var e = Yt(),
|
|
8205
8205
|
_At2 = At(),
|
|
8206
8206
|
t = _At2.enerexIdentifier,
|
|
8207
|
-
r = _At2.
|
|
8207
|
+
r = _At2.projectId;
|
|
8208
8208
|
return Nr({
|
|
8209
8209
|
queryKey: ["getTemplateTags"],
|
|
8210
8210
|
queryFn: function () {
|
|
@@ -8230,7 +8230,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8230
8230
|
var e = Yt(),
|
|
8231
8231
|
_At3 = At(),
|
|
8232
8232
|
t = _At3.enerexIdentifier,
|
|
8233
|
-
r = _At3.
|
|
8233
|
+
r = _At3.projectId;
|
|
8234
8234
|
return Nr({
|
|
8235
8235
|
queryKey: ["getExcludeCategory"],
|
|
8236
8236
|
queryFn: function () {
|
|
@@ -8505,7 +8505,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8505
8505
|
var e = Yt(),
|
|
8506
8506
|
_At4 = At(),
|
|
8507
8507
|
t = _At4.enerexIdentifier,
|
|
8508
|
-
r = _At4.
|
|
8508
|
+
r = _At4.projectId;
|
|
8509
8509
|
return Nr({
|
|
8510
8510
|
queryKey: ["getTemplatesList"],
|
|
8511
8511
|
queryFn: function () {
|
|
@@ -10432,7 +10432,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10432
10432
|
var e = Yt(),
|
|
10433
10433
|
_At5 = At(),
|
|
10434
10434
|
t = _At5.enerexIdentifier,
|
|
10435
|
-
r = _At5.
|
|
10435
|
+
r = _At5.projectId;
|
|
10436
10436
|
return go({
|
|
10437
10437
|
mutationKey: ["getTemplate"],
|
|
10438
10438
|
mutationFn: function () {
|
|
@@ -10466,7 +10466,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10466
10466
|
var e = Yt(),
|
|
10467
10467
|
_At6 = At(),
|
|
10468
10468
|
t = _At6.enerexIdentifier,
|
|
10469
|
-
r = _At6.
|
|
10469
|
+
r = _At6.projectId;
|
|
10470
10470
|
return Nr({
|
|
10471
10471
|
queryKey: ["getTemplateTypes"],
|
|
10472
10472
|
queryFn: function () {
|
|
@@ -15211,7 +15211,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15211
15211
|
jn();
|
|
15212
15212
|
var _At7 = At(),
|
|
15213
15213
|
t = _At7.enerexIdentifier,
|
|
15214
|
-
r = _At7.
|
|
15214
|
+
r = _At7.projectId;
|
|
15215
15215
|
return go({
|
|
15216
15216
|
mutationKey: ["saveTemplate"],
|
|
15217
15217
|
mutationFn: function () {
|
|
@@ -15220,7 +15220,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15220
15220
|
while (1) switch (_context18.n) {
|
|
15221
15221
|
case 0:
|
|
15222
15222
|
n.enerexIdentifier = t !== null && t !== void 0 ? t : "";
|
|
15223
|
-
n.
|
|
15223
|
+
n.projectId = r !== null && r !== void 0 ? r : "";
|
|
15224
15224
|
_context18.n = 1;
|
|
15225
15225
|
return e.post("".concat(Jt.SaveTemplate), n);
|
|
15226
15226
|
case 1:
|
|
@@ -15370,7 +15370,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15370
15370
|
case 0:
|
|
15371
15371
|
M = {
|
|
15372
15372
|
enerexIdentifier: "",
|
|
15373
|
-
|
|
15373
|
+
projectId: "",
|
|
15374
15374
|
templateId: (_g$id = g === null || g === void 0 ? void 0 : g.id) !== null && _g$id !== void 0 ? _g$id : "",
|
|
15375
15375
|
templateType: k.templateType.id,
|
|
15376
15376
|
name: k.templateName,
|
package/dist/template-studio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.root-widget{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;-moz-osx-font-smoothing:grayscale;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased}.root-widget code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.root-widget .ng-star-inserted{display:none}.root-widget .wraped-text{text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis}.root-widget .required:after{content:" *";color:#fa5c7c}.root-widget button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:border-color .25s}.root-widget button:hover{border-color:#646cff}.root-widget button:focus,.root-widget button:focus-visible{outline:4px auto -webkit-focus-ring-color}.root-widget .loader-container{display:flex;justify-content:center;align-items:center;height:100vh;width:100vw}.root-widget .info-icon{height:14px}.root-widget .info-icon img{width:100%;height:100%}.dark-popover{left:50%;transform:translate(-50%) translateY(-8px);z-index:9999;width:50px!important;font-size:.85rem!important;padding:.5rem;background-color:#1e1e1e!important;color:#f1f1f1;border:1px solid #444}.dark-popover.bs-popover-top>.popover-arrow:before,.dark-popover.bs-popover-bottom>.popover-arrow:before,.dark-popover.bs-popover-left>.popover-arrow:before,.dark-popover.bs-popover-right>.popover-arrow:before{border-color:transparent!important}.dark-popover.bs-popover-top>.popover-arrow:after{border-top-color:#1e1e1e!important}.dark-popover.bs-popover-bottom>.popover-arrow:after{border-bottom-color:#1e1e1e!important}.dark-popover.bs-popover-left>.popover-arrow:after{border-left-color:#1e1e1e!important}.dark-popover.bs-popover-right>.popover-arrow:after{border-right-color:#1e1e1e!important}.template-list-container{max-height:350px;overflow-y:auto}.react-select__control--is-focused{border-color:var(--ct-input-border-color)!important;box-shadow:none!important}.react-select__option{color:var(--ct-input-color)!important;background-color:#fff!important}.react-select__option:hover,.react-select__option--is-focused,.react-select__option--is-selected{color:var(--ct-input-color)!important;background-color:#deebff!important}.root-widget label{font-weight:600!important}.root-widget input{padding-block:1px!important;padding-inline:2px!important}.root-widget .form-control{display:block!important;outline:none!important;box-shadow:none!important;width:100%!important;padding:.45rem .9rem!important;font-size:.9rem!important;font-weight:400!important;line-height:1.5!important;color:var(--ct-input-color)!important;background-color:var(--ct-input-bg)!important;background-clip:padding-box!important;border:1px solid var(--ct-input-border-color)!important;appearance:none!important;border-radius:.25rem!important;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out!important}.root-widget .btn{--bs-btn-padding-x: .9rem !important;--bs-btn-padding-y: .25rem !important;--bs-btn-font-size: .9rem !important;--bs-btn-font-weight: 400 !important;--bs-btn-line-height: 1.5 !important;--bs-btn-color: #6c757d !important;--bs-btn-bg: transparent !important;--bs-btn-border-width: 1px !important;--bs-btn-border-color: transparent !important;--bs-btn-border-radius: .15rem !important;--bs-btn-hover-border-color: transparent !important;--bs-btn-box-shadow: 0px 2px 6px 0px !important;--bs-btn-disabled-opacity: .65 !important;--bs-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--bs-btn-focus-shadow-rgb), .5) !important;display:inline-block!important;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x)!important;font-family:var(--bs-btn-font-family)!important;font-size:var(--bs-btn-font-size)!important;font-weight:var(--bs-btn-font-weight)!important;line-height:var(--bs-btn-line-height)!important;color:var(--bs-btn-color)!important;text-align:center!important;vertical-align:middle!important;cursor:pointer!important;-webkit-user-select:none!important;user-select:none!important;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color)!important;border-radius:var(--bs-btn-border-radius)!important;background-color:var(--bs-btn-bg)!important;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important}.root-widget .btn-primary{--bs-btn-color: #fff !important;--bs-btn-bg: #131c45 !important;--bs-btn-border-color: #131c45 !important;--bs-btn-hover-color: #fff !important;--bs-btn-hover-bg: #10183b !important;--bs-btn-hover-border-color: #0f1637 !important;--bs-btn-focus-shadow-rgb: 54, 62, 97 !important;--bs-btn-active-color: #fff !important;--bs-btn-active-bg: #0f1637 !important;--bs-btn-active-border-color: #0e1534 !important;--bs-btn-active-shadow: var(--ct-btn-active-box-shadow) !important;--bs-btn-disabled-color: #fff !important;--bs-btn-disabled-bg: #131c45 !important;--bs-btn-disabled-border-color: #131c45 !important}.root-widget .logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.root-widget .logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.root-widget .logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}.root-widget .requiredField:after{content:"";font-family:FontAwesome;position:absolute;left:10px;top:10px;color:red}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.root-widget .card{padding:.3em}.root-widget .read-the-docs{color:#888}.root-widget .row{margin:0!important}#stripoEditorContainer{height:calc(100% + -0px)}.editor-container{height:100vh;position:absolute;min-width:1200px;width:100%;overflow:auto}.root-widget .loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fffc;display:flex;justify-content:center;align-items:center;z-index:1000}
|
|
@@ -14,7 +14,7 @@ export type ITemplate = {
|
|
|
14
14
|
css: string;
|
|
15
15
|
active: string;
|
|
16
16
|
enerexIdentifier: string;
|
|
17
|
-
|
|
17
|
+
projectId: string;
|
|
18
18
|
templateType: number;
|
|
19
19
|
};
|
|
20
20
|
export type ITemplateTypes = {
|
|
@@ -23,7 +23,7 @@ export type ITemplateTypes = {
|
|
|
23
23
|
};
|
|
24
24
|
export type ISaveTemplate = {
|
|
25
25
|
enerexIdentifier: string;
|
|
26
|
-
|
|
26
|
+
projectId: string;
|
|
27
27
|
templateId: string;
|
|
28
28
|
templateType: number;
|
|
29
29
|
name: string;
|