@innovastudio/contentbox 1.6.161 → 1.6.163

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/index.d.ts CHANGED
@@ -422,5 +422,12 @@ declare class ContentBox {
422
422
  getWrapper(): HTMLElement;
423
423
  openModal(url: string, options?: OpenModalOptions): void;
424
424
  screenMode: string;
425
+ openFilePicker(type?: string, callback?: () => void): void;
426
+ openColorPicker(
427
+ currentColor: string,
428
+ callback: (color: string) => void,
429
+ btn?: HTMLElement
430
+ ): void;
431
+ openIconPicker(callback: (iconHtml: string) => void): void;
425
432
  }
426
433
  export default ContentBox;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.161",
4
+ "version": "1.6.163",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "ws": "^8.13.0"
60
60
  },
61
61
  "dependencies": {
62
- "@innovastudio/contentbuilder": "^1.5.155",
62
+ "@innovastudio/contentbuilder": "^1.5.161",
63
63
  "js-beautify": "^1.14.0",
64
64
  "sortablejs": "^1.15.2"
65
65
  }
@@ -624,7 +624,7 @@ body.controlpanel .is-content-view.mobile {
624
624
 
625
625
  /* UI */
626
626
  .builder-ui {
627
- font-family: sans-serif;
627
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
628
628
  font-size: 14px;
629
629
  font-weight: 300;
630
630
  /* content.css */
@@ -891,8 +891,8 @@ body.controlpanel .is-content-view.mobile {
891
891
  .builder-ui button {
892
892
  width: 38px;
893
893
  height: 34px;
894
- background-color: transparent;
895
894
  color: #111;
895
+ background-color: transparent;
896
896
  box-shadow: none;
897
897
  margin: 2px;
898
898
  border-radius: 5px;
@@ -941,6 +941,55 @@ body.controlpanel .is-content-view.mobile {
941
941
  .builder-ui button:not(.is-btn-color):hover {
942
942
  background-color: rgb(237, 237, 237);
943
943
  }
944
+ .builder-ui .panel-plugin .is-accordion {
945
+ display: flex;
946
+ flex-direction: column;
947
+ gap: 10px;
948
+ margin-bottom: 10px;
949
+ }
950
+ .builder-ui .panel-plugin .is-accordion > div {
951
+ border: 1px solid rgb(221, 221, 221);
952
+ border-radius: 8px;
953
+ }
954
+ .builder-ui .panel-plugin .is-accordion > div > div:first-child {
955
+ /* header */
956
+ background: rgb(249, 249, 249);
957
+ display: flex;
958
+ align-items: center;
959
+ justify-content: space-between;
960
+ padding: 10px 12px;
961
+ font-weight: 500;
962
+ cursor: pointer;
963
+ }
964
+ .builder-ui .panel-plugin .is-outline {
965
+ border: 1px solid #ddd;
966
+ }
967
+ .builder-ui .panel-plugin .is-tips {
968
+ margin-top: 16px;
969
+ padding: 12px;
970
+ background: #eff6ff;
971
+ font-size: 12px;
972
+ color: #1e40af;
973
+ border-left: 3px solid #3b82f6;
974
+ border-radius: 4px;
975
+ }
976
+ .builder-ui .panel-plugin div[contenteditable=true]:focus-visible {
977
+ outline: #3e93f7 2px solid;
978
+ }
979
+ .builder-ui .panel-plugin button {
980
+ background-color: rgb(239, 239, 239);
981
+ width: 100%;
982
+ height: 43px;
983
+ margin: 0px;
984
+ }
985
+ .builder-ui .panel-plugin textarea {
986
+ width: 100%;
987
+ height: 200px;
988
+ line-height: 1.4;
989
+ font-family: inherit;
990
+ font-size: 14px;
991
+ padding: 10px 13px;
992
+ }
944
993
  .builder-ui .flex-unit {
945
994
  display: flex;
946
995
  gap: 15px;
@@ -965,7 +1014,7 @@ body.controlpanel .is-content-view.mobile {
965
1014
  font-size: 13px;
966
1015
  }
967
1016
  .builder-ui .label {
968
- font-size: 13px;
1017
+ font-size: 14px;
969
1018
  margin: 20px 0 3px;
970
1019
  font-weight: 400;
971
1020
  line-height: 1.6;
@@ -1026,7 +1075,7 @@ body.controlpanel .is-content-view.mobile {
1026
1075
  .builder-ui .label.mb-3 {
1027
1076
  margin-bottom: 14px;
1028
1077
  }
1029
- .builder-ui input[type=text], .builder-ui textarea {
1078
+ .builder-ui input[type=text], .builder-ui input[type=number], .builder-ui textarea {
1030
1079
  width: 100%;
1031
1080
  height: 43px;
1032
1081
  box-sizing: border-box;
@@ -1067,9 +1116,14 @@ body.controlpanel .is-content-view.mobile {
1067
1116
  border-radius: 5px;
1068
1117
  cursor: pointer;
1069
1118
  }
1119
+ .builder-ui div[contenteditable=true] {
1120
+ border-radius: 5px;
1121
+ }
1070
1122
  .builder-ui input[type=text]:focus,
1123
+ .builder-ui input[type=number]:focus,
1071
1124
  .builder-ui textarea:focus,
1072
- .builder-ui select:focus {
1125
+ .builder-ui select:focus,
1126
+ .builder-ui div[contenteditable=true]:focus {
1073
1127
  outline: #3e93f7 2px solid;
1074
1128
  outline-offset: 0;
1075
1129
  box-shadow: none;
@@ -2104,7 +2158,7 @@ body.frame-center.controlpanel .is-content-view {
2104
2158
  .dark #_cbhtml .is-side button.on, .dark .is-ui .is-side button.on {
2105
2159
  background-color: rgb(69, 69, 69) !important;
2106
2160
  }
2107
- .dark #_cbhtml .is-side input[type=text], .dark #_cbhtml .is-side textarea, .dark .is-ui .is-side input[type=text], .dark .is-ui .is-side textarea {
2161
+ .dark #_cbhtml .is-side input[type=text], .dark #_cbhtml .is-side input[type=number], .dark #_cbhtml .is-side textarea, .dark .is-ui .is-side input[type=text], .dark .is-ui .is-side input[type=number], .dark .is-ui .is-side textarea {
2108
2162
  color: #c7c7c7 !important;
2109
2163
  background-color: #313131 !important;
2110
2164
  }
@@ -2173,10 +2227,27 @@ body.frame-center.controlpanel .is-content-view {
2173
2227
  .dark .builder-ui button:not(.is-btn-color):hover {
2174
2228
  background-color: rgb(69, 69, 69);
2175
2229
  }
2230
+ .dark .builder-ui .panel-plugin .is-accordion > div {
2231
+ border: 1px solid #6e6e6e;
2232
+ }
2233
+ .dark .builder-ui .panel-plugin .is-accordion > div > div:first-child {
2234
+ /* header */
2235
+ background: transparent;
2236
+ }
2237
+ .dark .builder-ui .panel-plugin .is-outline {
2238
+ border: 1px solid rgb(118, 118, 118);
2239
+ }
2240
+ .dark .builder-ui .panel-plugin .is-tips {
2241
+ background: rgb(66, 66, 66);
2242
+ color: inherit;
2243
+ }
2244
+ .dark .builder-ui .panel-plugin button {
2245
+ background-color: rgb(64, 64, 64);
2246
+ }
2176
2247
  .dark .builder-ui .label {
2177
2248
  color: #d3d3d3;
2178
2249
  }
2179
- .dark .builder-ui input[type=text], .dark .builder-ui textarea {
2250
+ .dark .builder-ui input[type=text], .dark .builder-ui input[type=number], .dark .builder-ui textarea {
2180
2251
  color: #c7c7c7;
2181
2252
  background-color: #313131;
2182
2253
  }