@enerex/template-studio 1.0.1 → 1.0.2
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.
- package/README.md +3 -3
- package/dist/enerex-template-editor.es.js +14 -12
- package/dist/enerex-template-editor.umd.js +14 -12
- package/dist/template-studio.css +1 -1
- package/dist/types/component/editor/index.d.ts +1 -0
- package/dist/types/context/configuration-provider.d.ts +1 -1
- package/dist/types/queries/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Template
|
|
1
|
+
# Template Studio - React Component Library
|
|
2
2
|
|
|
3
3
|
A powerful and customizable editor widget built for React applications. This library simplifies the integration of dynamic template editing within your UI.
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Import the component's stylesheet into your main CSS file (typically `App.css`):
|
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
26
|
/* App.css */
|
|
27
|
-
@import "@enerex/template-studio/dist/template-
|
|
27
|
+
@import "@enerex/template-studio/dist/template-studio.css";
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## Usage Example
|
|
@@ -33,7 +33,7 @@ Here is a basic example of how to use the `EditorWidget` component:
|
|
|
33
33
|
|
|
34
34
|
```jsx
|
|
35
35
|
import React from "react";
|
|
36
|
-
import { EditorWidget } from "template-
|
|
36
|
+
import { EditorWidget } from "template-studio";
|
|
37
37
|
|
|
38
38
|
function App() {
|
|
39
39
|
return (
|
|
@@ -358,12 +358,12 @@ var tu = ie.createContext(void 0),
|
|
|
358
358
|
_ie$useState6 = _slicedToArray(_ie$useState5, 2),
|
|
359
359
|
a = _ie$useState6[0],
|
|
360
360
|
u = _ie$useState6[1],
|
|
361
|
-
_ie$useState7 = ie.useState(t.
|
|
361
|
+
_ie$useState7 = ie.useState(t.productId),
|
|
362
362
|
_ie$useState8 = _slicedToArray(_ie$useState7, 2),
|
|
363
363
|
o = _ie$useState8[0],
|
|
364
364
|
c = _ie$useState8[1],
|
|
365
365
|
l = function l(d) {
|
|
366
|
-
s(d.apiKey), i(d.clientId), c(d.
|
|
366
|
+
s(d.apiKey), i(d.clientId), c(d.productId), u(d.enerexIdentifier);
|
|
367
367
|
};
|
|
368
368
|
return /* @__PURE__ */O.jsx(tu.Provider, {
|
|
369
369
|
value: {
|
|
@@ -371,7 +371,7 @@ var tu = ie.createContext(void 0),
|
|
|
371
371
|
apiKey: n,
|
|
372
372
|
setConfiguration: l,
|
|
373
373
|
enerexIdentifier: a,
|
|
374
|
-
|
|
374
|
+
productId: o
|
|
375
375
|
},
|
|
376
376
|
children: e
|
|
377
377
|
});
|
|
@@ -8273,7 +8273,7 @@ var Ht = function Ht() {
|
|
|
8273
8273
|
var e = Ht(),
|
|
8274
8274
|
_Ot2 = Ot(),
|
|
8275
8275
|
t = _Ot2.enerexIdentifier,
|
|
8276
|
-
r = _Ot2.
|
|
8276
|
+
r = _Ot2.productId;
|
|
8277
8277
|
return pn({
|
|
8278
8278
|
queryKey: ["getTemplateTags"],
|
|
8279
8279
|
queryFn: function () {
|
|
@@ -8299,7 +8299,7 @@ var Ht = function Ht() {
|
|
|
8299
8299
|
var e = Ht(),
|
|
8300
8300
|
_Ot3 = Ot(),
|
|
8301
8301
|
t = _Ot3.enerexIdentifier,
|
|
8302
|
-
r = _Ot3.
|
|
8302
|
+
r = _Ot3.productId;
|
|
8303
8303
|
return pn({
|
|
8304
8304
|
queryKey: ["getExcludeCategory"],
|
|
8305
8305
|
queryFn: function () {
|
|
@@ -8500,7 +8500,7 @@ var Hh = function Hh(e) {
|
|
|
8500
8500
|
})
|
|
8501
8501
|
});
|
|
8502
8502
|
return /* @__PURE__ */O.jsx(Dh, {
|
|
8503
|
-
trigger: "hover",
|
|
8503
|
+
trigger: ["hover", "focus"],
|
|
8504
8504
|
placement: r,
|
|
8505
8505
|
overlay: i,
|
|
8506
8506
|
containerPadding: 0,
|
|
@@ -8574,7 +8574,7 @@ var Hh = function Hh(e) {
|
|
|
8574
8574
|
var e = Ht(),
|
|
8575
8575
|
_Ot4 = Ot(),
|
|
8576
8576
|
t = _Ot4.enerexIdentifier,
|
|
8577
|
-
r = _Ot4.
|
|
8577
|
+
r = _Ot4.productId;
|
|
8578
8578
|
return pn({
|
|
8579
8579
|
queryKey: ["getTemplatesList"],
|
|
8580
8580
|
queryFn: function () {
|
|
@@ -10503,7 +10503,7 @@ var hg = function hg() {
|
|
|
10503
10503
|
var e = Ht(),
|
|
10504
10504
|
_Ot5 = Ot(),
|
|
10505
10505
|
t = _Ot5.enerexIdentifier,
|
|
10506
|
-
r = _Ot5.
|
|
10506
|
+
r = _Ot5.productId;
|
|
10507
10507
|
return pu({
|
|
10508
10508
|
mutationKey: ["getTemplate"],
|
|
10509
10509
|
mutationFn: function () {
|
|
@@ -10537,7 +10537,7 @@ var hg = function hg() {
|
|
|
10537
10537
|
var e = Ht(),
|
|
10538
10538
|
_Ot6 = Ot(),
|
|
10539
10539
|
t = _Ot6.enerexIdentifier,
|
|
10540
|
-
r = _Ot6.
|
|
10540
|
+
r = _Ot6.productId;
|
|
10541
10541
|
return pn({
|
|
10542
10542
|
queryKey: ["getTemplateTypes"],
|
|
10543
10543
|
queryFn: function () {
|
|
@@ -15437,7 +15437,7 @@ var uy = function uy(_ref92) {
|
|
|
15437
15437
|
Ui();
|
|
15438
15438
|
var _Ot7 = Ot(),
|
|
15439
15439
|
t = _Ot7.enerexIdentifier,
|
|
15440
|
-
r = _Ot7.
|
|
15440
|
+
r = _Ot7.productId;
|
|
15441
15441
|
return pu({
|
|
15442
15442
|
mutationKey: ["saveTemplate"],
|
|
15443
15443
|
mutationFn: function () {
|
|
@@ -15446,7 +15446,7 @@ var uy = function uy(_ref92) {
|
|
|
15446
15446
|
while (1) switch (_context22.n) {
|
|
15447
15447
|
case 0:
|
|
15448
15448
|
n.enerexIdentifier = t !== null && t !== void 0 ? t : "";
|
|
15449
|
-
n.
|
|
15449
|
+
n.productId = r !== null && r !== void 0 ? r : "";
|
|
15450
15450
|
_context22.n = 1;
|
|
15451
15451
|
return e.post("".concat(kt.SaveTemplate), n);
|
|
15452
15452
|
case 1:
|
|
@@ -15596,7 +15596,7 @@ var uy = function uy(_ref92) {
|
|
|
15596
15596
|
case 0:
|
|
15597
15597
|
j = {
|
|
15598
15598
|
enerexIdentifier: "",
|
|
15599
|
-
|
|
15599
|
+
productId: "",
|
|
15600
15600
|
templateId: (_g$id = g === null || g === void 0 ? void 0 : g.id) !== null && _g$id !== void 0 ? _g$id : "",
|
|
15601
15601
|
templateType: M.templateType.id,
|
|
15602
15602
|
name: M.templateName,
|
|
@@ -15681,6 +15681,7 @@ var uy = function uy(_ref92) {
|
|
|
15681
15681
|
style: {
|
|
15682
15682
|
width: "70px"
|
|
15683
15683
|
},
|
|
15684
|
+
variant: "primary",
|
|
15684
15685
|
disabled: f || x || S || E,
|
|
15685
15686
|
onClick: function onClick() {
|
|
15686
15687
|
p(void 0), o(), r();
|
|
@@ -15701,6 +15702,7 @@ var uy = function uy(_ref92) {
|
|
|
15701
15702
|
}) : "Clear"
|
|
15702
15703
|
}), /* @__PURE__ */O.jsx(Fi, {
|
|
15703
15704
|
type: "submit",
|
|
15705
|
+
variant: "primary",
|
|
15704
15706
|
style: {
|
|
15705
15707
|
width: "80px"
|
|
15706
15708
|
},
|
|
@@ -381,12 +381,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
381
381
|
_m$useState6 = _slicedToArray(_m$useState5, 2),
|
|
382
382
|
o = _m$useState6[0],
|
|
383
383
|
u = _m$useState6[1],
|
|
384
|
-
_m$useState7 = m.useState(t.
|
|
384
|
+
_m$useState7 = m.useState(t.productId),
|
|
385
385
|
_m$useState8 = _slicedToArray(_m$useState7, 2),
|
|
386
386
|
a = _m$useState8[0],
|
|
387
387
|
l = _m$useState8[1],
|
|
388
388
|
c = function c(d) {
|
|
389
|
-
s(d.apiKey), i(d.clientId), l(d.
|
|
389
|
+
s(d.apiKey), i(d.clientId), l(d.productId), u(d.enerexIdentifier);
|
|
390
390
|
};
|
|
391
391
|
return R.jsx(Fs.Provider, {
|
|
392
392
|
value: {
|
|
@@ -394,7 +394,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
394
394
|
apiKey: n,
|
|
395
395
|
setConfiguration: c,
|
|
396
396
|
enerexIdentifier: o,
|
|
397
|
-
|
|
397
|
+
productId: a
|
|
398
398
|
},
|
|
399
399
|
children: e
|
|
400
400
|
});
|
|
@@ -8006,7 +8006,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8006
8006
|
var e = Vt(),
|
|
8007
8007
|
_ht2 = ht(),
|
|
8008
8008
|
t = _ht2.enerexIdentifier,
|
|
8009
|
-
r = _ht2.
|
|
8009
|
+
r = _ht2.productId;
|
|
8010
8010
|
return Cr({
|
|
8011
8011
|
queryKey: ["getTemplateTags"],
|
|
8012
8012
|
queryFn: function () {
|
|
@@ -8032,7 +8032,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8032
8032
|
var e = Vt(),
|
|
8033
8033
|
_ht3 = ht(),
|
|
8034
8034
|
t = _ht3.enerexIdentifier,
|
|
8035
|
-
r = _ht3.
|
|
8035
|
+
r = _ht3.productId;
|
|
8036
8036
|
return Cr({
|
|
8037
8037
|
queryKey: ["getExcludeCategory"],
|
|
8038
8038
|
queryFn: function () {
|
|
@@ -8233,7 +8233,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8233
8233
|
})
|
|
8234
8234
|
});
|
|
8235
8235
|
return R.jsx(mh, {
|
|
8236
|
-
trigger: "hover",
|
|
8236
|
+
trigger: ["hover", "focus"],
|
|
8237
8237
|
placement: r,
|
|
8238
8238
|
overlay: i,
|
|
8239
8239
|
containerPadding: 0,
|
|
@@ -8307,7 +8307,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
8307
8307
|
var e = Vt(),
|
|
8308
8308
|
_ht4 = ht(),
|
|
8309
8309
|
t = _ht4.enerexIdentifier,
|
|
8310
|
-
r = _ht4.
|
|
8310
|
+
r = _ht4.productId;
|
|
8311
8311
|
return Cr({
|
|
8312
8312
|
queryKey: ["getTemplatesList"],
|
|
8313
8313
|
queryFn: function () {
|
|
@@ -10234,7 +10234,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10234
10234
|
var e = Vt(),
|
|
10235
10235
|
_ht5 = ht(),
|
|
10236
10236
|
t = _ht5.enerexIdentifier,
|
|
10237
|
-
r = _ht5.
|
|
10237
|
+
r = _ht5.productId;
|
|
10238
10238
|
return Qs({
|
|
10239
10239
|
mutationKey: ["getTemplate"],
|
|
10240
10240
|
mutationFn: function () {
|
|
@@ -10268,7 +10268,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10268
10268
|
var e = Vt(),
|
|
10269
10269
|
_ht6 = ht(),
|
|
10270
10270
|
t = _ht6.enerexIdentifier,
|
|
10271
|
-
r = _ht6.
|
|
10271
|
+
r = _ht6.productId;
|
|
10272
10272
|
return Cr({
|
|
10273
10273
|
queryKey: ["getTemplateTypes"],
|
|
10274
10274
|
queryFn: function () {
|
|
@@ -15013,7 +15013,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15013
15013
|
Tn();
|
|
15014
15014
|
var _ht7 = ht(),
|
|
15015
15015
|
t = _ht7.enerexIdentifier,
|
|
15016
|
-
r = _ht7.
|
|
15016
|
+
r = _ht7.productId;
|
|
15017
15017
|
return Qs({
|
|
15018
15018
|
mutationKey: ["saveTemplate"],
|
|
15019
15019
|
mutationFn: function () {
|
|
@@ -15022,7 +15022,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15022
15022
|
while (1) switch (_context22.n) {
|
|
15023
15023
|
case 0:
|
|
15024
15024
|
n.enerexIdentifier = t !== null && t !== void 0 ? t : "";
|
|
15025
|
-
n.
|
|
15025
|
+
n.productId = r !== null && r !== void 0 ? r : "";
|
|
15026
15026
|
_context22.n = 1;
|
|
15027
15027
|
return e.post("".concat(Bt.SaveTemplate), n);
|
|
15028
15028
|
case 1:
|
|
@@ -15172,7 +15172,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15172
15172
|
case 0:
|
|
15173
15173
|
k = {
|
|
15174
15174
|
enerexIdentifier: "",
|
|
15175
|
-
|
|
15175
|
+
productId: "",
|
|
15176
15176
|
templateId: (_g$id = g === null || g === void 0 ? void 0 : g.id) !== null && _g$id !== void 0 ? _g$id : "",
|
|
15177
15177
|
templateType: L.templateType.id,
|
|
15178
15178
|
name: L.templateName,
|
|
@@ -15257,6 +15257,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15257
15257
|
style: {
|
|
15258
15258
|
width: "70px"
|
|
15259
15259
|
},
|
|
15260
|
+
variant: "primary",
|
|
15260
15261
|
disabled: f || E || T || A,
|
|
15261
15262
|
onClick: function onClick() {
|
|
15262
15263
|
p(void 0), a(), r();
|
|
@@ -15277,6 +15278,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15277
15278
|
}) : "Clear"
|
|
15278
15279
|
}), R.jsx(Ci, {
|
|
15279
15280
|
type: "submit",
|
|
15281
|
+
variant: "primary",
|
|
15280
15282
|
style: {
|
|
15281
15283
|
width: "80px"
|
|
15282
15284
|
},
|
package/dist/template-studio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.ng-star-inserted{display:none}.wraped-text{text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased}.modal-title{margin-top:0}.required:after{content:" *";color:#fa5c7c}.inner-scroll .table-responsive{max-height:calc(100vh - 304px)!important}.inner-scroll-min .table-responsive{max-height:calc(100vh - 375px)!important}.inner-scroll-min-2 .table-responsive{max-height:calc(100vh - 390px)!important}.proposal-view{width:100%;border:1px solid;background:#f6f6f6}body{margin:0;place-items:normal;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}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}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.loader-container{display:flex;justify-content:center;align-items:center;height:100vh;width:100vw}.info-icon{height:14px}.info-icon img{width:100%;height:100%}@media (prefers-color-scheme: light){:root{background-color:#fff}button{background-color:#f9f9f9}}#root{margin:0 auto;text-align:center;--ct-input-border-color: #dee2e6 !important;--ct-input-color: #98a6ad !important}body{--bs-body-font-size: .9rem !important;--bs-body-color: #6c757d !important;scrollbar-gutter:stable}.dark-popover{position:absolute!important;left:50%;transform:translate(-50%) translateY(-8px);z-index:9999;pointer-events:auto;width:50px!important;font-size:.85rem!important;padding:.5rem;background-color:#1e1e1e!important;color:#f1f1f1;border:1px solid #444
|
|
1
|
+
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.ng-star-inserted{display:none}.wraped-text{text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased}.modal-title{margin-top:0}.required:after{content:" *";color:#fa5c7c}.inner-scroll .table-responsive{max-height:calc(100vh - 304px)!important}.inner-scroll-min .table-responsive{max-height:calc(100vh - 375px)!important}.inner-scroll-min-2 .table-responsive{max-height:calc(100vh - 390px)!important}.proposal-view{width:100%;border:1px solid;background:#f6f6f6}body{margin:0;place-items:normal;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}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}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.loader-container{display:flex;justify-content:center;align-items:center;height:100vh;width:100vw}.info-icon{height:14px}.info-icon img{width:100%;height:100%}@media (prefers-color-scheme: light){:root{background-color:#fff}button{background-color:#f9f9f9}}#root{margin:0 auto;text-align:center;--ct-input-border-color: #dee2e6 !important;--ct-input-color: #98a6ad !important}body{--bs-body-font-size: .9rem !important;--bs-body-color: #6c757d !important;scrollbar-gutter:stable}.dark-popover{position:absolute!important;left:50%;transform:translate(-50%) translateY(-8px);z-index:9999;pointer-events:auto;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}label{font-weight:600!important}input{padding-block:1px!important;padding-inline:2px!important}.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}.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}.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}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}.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}}.card{padding:.3em}.read-the-docs{color:#888}.row{margin:0!important}#stripoEditorContainer{height:calc(100% + -0px)}.editor-container{height:100vh;position:absolute;min-width:1200px;width:100%;overflow:auto}.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
|
+
productId: 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
|
+
productId: string;
|
|
27
27
|
templateId: string;
|
|
28
28
|
templateType: number;
|
|
29
29
|
name: string;
|