@builder.io/sdk-solid 4.1.1 → 4.1.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.
@@ -5501,7 +5501,7 @@ function getPreviewContent(_searchParams) {
5501
5501
  }
5502
5502
 
5503
5503
  // src/constants/sdk-version.ts
5504
- var SDK_VERSION = "4.1.1";
5504
+ var SDK_VERSION = "4.1.2";
5505
5505
 
5506
5506
  // src/helpers/sdk-headers.ts
5507
5507
  var getSdkHeaders = () => ({
@@ -6054,60 +6054,7 @@ function isFromTrustedHost(trustedHosts, e) {
6054
6054
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
6055
6055
  }
6056
6056
 
6057
- // src/functions/register.ts
6058
- var registry = {};
6059
- function register(type, info) {
6060
- if (type === "plugin") {
6061
- info = serializeIncludingFunctions(info);
6062
- }
6063
- let typeList = registry[type];
6064
- if (!typeList) {
6065
- typeList = registry[type] = [];
6066
- }
6067
- typeList.push(info);
6068
- if (isBrowser()) {
6069
- const message = {
6070
- type: "builder.register",
6071
- data: {
6072
- type,
6073
- info
6074
- }
6075
- };
6076
- try {
6077
- parent.postMessage(message, "*");
6078
- if (parent !== window) {
6079
- window.postMessage(message, "*");
6080
- }
6081
- } catch (err) {
6082
- console.debug("Could not postmessage", err);
6083
- }
6084
- }
6085
- }
6086
-
6087
6057
  // src/scripts/init-editing.ts
6088
- var registerInsertMenu = () => {
6089
- register("insertMenu", {
6090
- name: "_default",
6091
- default: true,
6092
- items: [{
6093
- name: "Box"
6094
- }, {
6095
- name: "Text"
6096
- }, {
6097
- name: "Image"
6098
- }, {
6099
- name: "Columns"
6100
- }, ...TARGET === "reactNative" ? [] : [{
6101
- name: "Core:Section"
6102
- }, {
6103
- name: "Core:Button"
6104
- }, {
6105
- name: "Embed"
6106
- }, {
6107
- name: "Custom Code"
6108
- }]]
6109
- });
6110
- };
6111
6058
  var isSetupForEditing = false;
6112
6059
  var setupBrowserForEditing = (options) => {
6113
6060
  if (isSetupForEditing) {
@@ -6507,7 +6454,6 @@ function EnableEditor(props) {
6507
6454
  if (isBrowser()) {
6508
6455
  if (isEditing() && !props.isNestedRender) {
6509
6456
  window.addEventListener("message", processMessage);
6510
- registerInsertMenu();
6511
6457
  setupBrowserForEditing({
6512
6458
  ...props.locale ? {
6513
6459
  locale: props.locale
@@ -7226,6 +7172,36 @@ function Symbol(props) {
7226
7172
  }
7227
7173
  var symbol_default = Symbol;
7228
7174
 
7175
+ // src/functions/register.ts
7176
+ var registry = {};
7177
+ function register(type, info) {
7178
+ if (type === "plugin") {
7179
+ info = serializeIncludingFunctions(info);
7180
+ }
7181
+ let typeList = registry[type];
7182
+ if (!typeList) {
7183
+ typeList = registry[type] = [];
7184
+ }
7185
+ typeList.push(info);
7186
+ if (isBrowser()) {
7187
+ const message = {
7188
+ type: "builder.register",
7189
+ data: {
7190
+ type,
7191
+ info
7192
+ }
7193
+ };
7194
+ try {
7195
+ parent.postMessage(message, "*");
7196
+ if (parent !== window) {
7197
+ window.postMessage(message, "*");
7198
+ }
7199
+ } catch (err) {
7200
+ console.debug("Could not postmessage", err);
7201
+ }
7202
+ }
7203
+ }
7204
+
7229
7205
  // src/functions/set-editor-settings.ts
7230
7206
  var settings = {};
7231
7207
  function setEditorSettings(newSettings) {
@@ -4993,7 +4993,7 @@ function getPreviewContent(_searchParams) {
4993
4993
  }
4994
4994
 
4995
4995
  // src/constants/sdk-version.ts
4996
- var SDK_VERSION = "4.1.1";
4996
+ var SDK_VERSION = "4.1.2";
4997
4997
 
4998
4998
  // src/helpers/sdk-headers.ts
4999
4999
  var getSdkHeaders = () => ({
@@ -5546,60 +5546,7 @@ function isFromTrustedHost(trustedHosts, e) {
5546
5546
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5547
5547
  }
5548
5548
 
5549
- // src/functions/register.ts
5550
- var registry = {};
5551
- function register(type, info) {
5552
- if (type === "plugin") {
5553
- info = serializeIncludingFunctions(info);
5554
- }
5555
- let typeList = registry[type];
5556
- if (!typeList) {
5557
- typeList = registry[type] = [];
5558
- }
5559
- typeList.push(info);
5560
- if (isBrowser()) {
5561
- const message = {
5562
- type: "builder.register",
5563
- data: {
5564
- type,
5565
- info
5566
- }
5567
- };
5568
- try {
5569
- parent.postMessage(message, "*");
5570
- if (parent !== window) {
5571
- window.postMessage(message, "*");
5572
- }
5573
- } catch (err) {
5574
- console.debug("Could not postmessage", err);
5575
- }
5576
- }
5577
- }
5578
-
5579
5549
  // src/scripts/init-editing.ts
5580
- var registerInsertMenu = () => {
5581
- register("insertMenu", {
5582
- name: "_default",
5583
- default: true,
5584
- items: [{
5585
- name: "Box"
5586
- }, {
5587
- name: "Text"
5588
- }, {
5589
- name: "Image"
5590
- }, {
5591
- name: "Columns"
5592
- }, ...TARGET === "reactNative" ? [] : [{
5593
- name: "Core:Section"
5594
- }, {
5595
- name: "Core:Button"
5596
- }, {
5597
- name: "Embed"
5598
- }, {
5599
- name: "Custom Code"
5600
- }]]
5601
- });
5602
- };
5603
5550
  var isSetupForEditing = false;
5604
5551
  var setupBrowserForEditing = (options) => {
5605
5552
  if (isSetupForEditing) {
@@ -6008,7 +5955,6 @@ function EnableEditor(props) {
6008
5955
  if (isBrowser()) {
6009
5956
  if (isEditing() && !props.isNestedRender) {
6010
5957
  window.addEventListener("message", processMessage);
6011
- registerInsertMenu();
6012
5958
  setupBrowserForEditing({
6013
5959
  ...props.locale ? {
6014
5960
  locale: props.locale
@@ -6526,6 +6472,36 @@ function Symbol(props) {
6526
6472
  }
6527
6473
  var symbol_default = Symbol;
6528
6474
 
6475
+ // src/functions/register.ts
6476
+ var registry = {};
6477
+ function register(type, info) {
6478
+ if (type === "plugin") {
6479
+ info = serializeIncludingFunctions(info);
6480
+ }
6481
+ let typeList = registry[type];
6482
+ if (!typeList) {
6483
+ typeList = registry[type] = [];
6484
+ }
6485
+ typeList.push(info);
6486
+ if (isBrowser()) {
6487
+ const message = {
6488
+ type: "builder.register",
6489
+ data: {
6490
+ type,
6491
+ info
6492
+ }
6493
+ };
6494
+ try {
6495
+ parent.postMessage(message, "*");
6496
+ if (parent !== window) {
6497
+ window.postMessage(message, "*");
6498
+ }
6499
+ } catch (err) {
6500
+ console.debug("Could not postmessage", err);
6501
+ }
6502
+ }
6503
+ }
6504
+
6529
6505
  // src/functions/set-editor-settings.ts
6530
6506
  var settings = {};
6531
6507
  function setEditorSettings(newSettings) {
@@ -5488,7 +5488,7 @@ function getPreviewContent(_searchParams) {
5488
5488
  }
5489
5489
 
5490
5490
  // src/constants/sdk-version.ts
5491
- var SDK_VERSION = "4.1.1";
5491
+ var SDK_VERSION = "4.1.2";
5492
5492
 
5493
5493
  // src/helpers/sdk-headers.ts
5494
5494
  var getSdkHeaders = () => ({
@@ -6036,59 +6036,7 @@ function isFromTrustedHost(trustedHosts, e) {
6036
6036
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
6037
6037
  }
6038
6038
 
6039
- // src/functions/register.ts
6040
- var registry = {};
6041
- function register(type, info) {
6042
- if (type === "plugin") {
6043
- info = serializeIncludingFunctions(info);
6044
- }
6045
- let typeList = registry[type];
6046
- if (!typeList) {
6047
- typeList = registry[type] = [];
6048
- }
6049
- typeList.push(info);
6050
- if (isBrowser()) {
6051
- const message = {
6052
- type: "builder.register",
6053
- data: {
6054
- type,
6055
- info
6056
- }
6057
- };
6058
- try {
6059
- parent.postMessage(message, "*");
6060
- if (parent !== window) {
6061
- window.postMessage(message, "*");
6062
- }
6063
- } catch (err) {
6064
- }
6065
- }
6066
- }
6067
-
6068
6039
  // src/scripts/init-editing.ts
6069
- var registerInsertMenu = () => {
6070
- register("insertMenu", {
6071
- name: "_default",
6072
- default: true,
6073
- items: [{
6074
- name: "Box"
6075
- }, {
6076
- name: "Text"
6077
- }, {
6078
- name: "Image"
6079
- }, {
6080
- name: "Columns"
6081
- }, ...TARGET === "reactNative" ? [] : [{
6082
- name: "Core:Section"
6083
- }, {
6084
- name: "Core:Button"
6085
- }, {
6086
- name: "Embed"
6087
- }, {
6088
- name: "Custom Code"
6089
- }]]
6090
- });
6091
- };
6092
6040
  var isSetupForEditing = false;
6093
6041
  var setupBrowserForEditing = (options) => {
6094
6042
  if (isSetupForEditing) {
@@ -6487,7 +6435,6 @@ function EnableEditor(props) {
6487
6435
  if (isBrowser()) {
6488
6436
  if (isEditing() && !props.isNestedRender) {
6489
6437
  window.addEventListener("message", processMessage);
6490
- registerInsertMenu();
6491
6438
  setupBrowserForEditing({
6492
6439
  ...props.locale ? {
6493
6440
  locale: props.locale
@@ -7206,6 +7153,35 @@ function Symbol(props) {
7206
7153
  }
7207
7154
  var symbol_default = Symbol;
7208
7155
 
7156
+ // src/functions/register.ts
7157
+ var registry = {};
7158
+ function register(type, info) {
7159
+ if (type === "plugin") {
7160
+ info = serializeIncludingFunctions(info);
7161
+ }
7162
+ let typeList = registry[type];
7163
+ if (!typeList) {
7164
+ typeList = registry[type] = [];
7165
+ }
7166
+ typeList.push(info);
7167
+ if (isBrowser()) {
7168
+ const message = {
7169
+ type: "builder.register",
7170
+ data: {
7171
+ type,
7172
+ info
7173
+ }
7174
+ };
7175
+ try {
7176
+ parent.postMessage(message, "*");
7177
+ if (parent !== window) {
7178
+ window.postMessage(message, "*");
7179
+ }
7180
+ } catch (err) {
7181
+ }
7182
+ }
7183
+ }
7184
+
7209
7185
  // src/functions/set-editor-settings.ts
7210
7186
  var settings = {};
7211
7187
  function setEditorSettings(newSettings) {
@@ -4982,7 +4982,7 @@ function getPreviewContent(_searchParams) {
4982
4982
  }
4983
4983
 
4984
4984
  // src/constants/sdk-version.ts
4985
- var SDK_VERSION = "4.1.1";
4985
+ var SDK_VERSION = "4.1.2";
4986
4986
 
4987
4987
  // src/helpers/sdk-headers.ts
4988
4988
  var getSdkHeaders = () => ({
@@ -5530,59 +5530,7 @@ function isFromTrustedHost(trustedHosts, e) {
5530
5530
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5531
5531
  }
5532
5532
 
5533
- // src/functions/register.ts
5534
- var registry = {};
5535
- function register(type, info) {
5536
- if (type === "plugin") {
5537
- info = serializeIncludingFunctions(info);
5538
- }
5539
- let typeList = registry[type];
5540
- if (!typeList) {
5541
- typeList = registry[type] = [];
5542
- }
5543
- typeList.push(info);
5544
- if (isBrowser()) {
5545
- const message = {
5546
- type: "builder.register",
5547
- data: {
5548
- type,
5549
- info
5550
- }
5551
- };
5552
- try {
5553
- parent.postMessage(message, "*");
5554
- if (parent !== window) {
5555
- window.postMessage(message, "*");
5556
- }
5557
- } catch (err) {
5558
- }
5559
- }
5560
- }
5561
-
5562
5533
  // src/scripts/init-editing.ts
5563
- var registerInsertMenu = () => {
5564
- register("insertMenu", {
5565
- name: "_default",
5566
- default: true,
5567
- items: [{
5568
- name: "Box"
5569
- }, {
5570
- name: "Text"
5571
- }, {
5572
- name: "Image"
5573
- }, {
5574
- name: "Columns"
5575
- }, ...TARGET === "reactNative" ? [] : [{
5576
- name: "Core:Section"
5577
- }, {
5578
- name: "Core:Button"
5579
- }, {
5580
- name: "Embed"
5581
- }, {
5582
- name: "Custom Code"
5583
- }]]
5584
- });
5585
- };
5586
5534
  var isSetupForEditing = false;
5587
5535
  var setupBrowserForEditing = (options) => {
5588
5536
  if (isSetupForEditing) {
@@ -5990,7 +5938,6 @@ function EnableEditor(props) {
5990
5938
  if (isBrowser()) {
5991
5939
  if (isEditing() && !props.isNestedRender) {
5992
5940
  window.addEventListener("message", processMessage);
5993
- registerInsertMenu();
5994
5941
  setupBrowserForEditing({
5995
5942
  ...props.locale ? {
5996
5943
  locale: props.locale
@@ -6508,6 +6455,35 @@ function Symbol(props) {
6508
6455
  }
6509
6456
  var symbol_default = Symbol;
6510
6457
 
6458
+ // src/functions/register.ts
6459
+ var registry = {};
6460
+ function register(type, info) {
6461
+ if (type === "plugin") {
6462
+ info = serializeIncludingFunctions(info);
6463
+ }
6464
+ let typeList = registry[type];
6465
+ if (!typeList) {
6466
+ typeList = registry[type] = [];
6467
+ }
6468
+ typeList.push(info);
6469
+ if (isBrowser()) {
6470
+ const message = {
6471
+ type: "builder.register",
6472
+ data: {
6473
+ type,
6474
+ info
6475
+ }
6476
+ };
6477
+ try {
6478
+ parent.postMessage(message, "*");
6479
+ if (parent !== window) {
6480
+ window.postMessage(message, "*");
6481
+ }
6482
+ } catch (err) {
6483
+ }
6484
+ }
6485
+ }
6486
+
6511
6487
  // src/functions/set-editor-settings.ts
6512
6488
  var settings = {};
6513
6489
  function setEditorSettings(newSettings) {
package/lib/edge/dev.js CHANGED
@@ -8682,7 +8682,7 @@ function getPreviewContent(_searchParams) {
8682
8682
  }
8683
8683
 
8684
8684
  // src/constants/sdk-version.ts
8685
- var SDK_VERSION = "4.1.1";
8685
+ var SDK_VERSION = "4.1.2";
8686
8686
 
8687
8687
  // src/helpers/sdk-headers.ts
8688
8688
  var getSdkHeaders = () => ({
@@ -9235,60 +9235,7 @@ function isFromTrustedHost(trustedHosts, e) {
9235
9235
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
9236
9236
  }
9237
9237
 
9238
- // src/functions/register.ts
9239
- var registry = {};
9240
- function register(type, info) {
9241
- if (type === "plugin") {
9242
- info = serializeIncludingFunctions(info);
9243
- }
9244
- let typeList = registry[type];
9245
- if (!typeList) {
9246
- typeList = registry[type] = [];
9247
- }
9248
- typeList.push(info);
9249
- if (isBrowser()) {
9250
- const message = {
9251
- type: "builder.register",
9252
- data: {
9253
- type,
9254
- info
9255
- }
9256
- };
9257
- try {
9258
- parent.postMessage(message, "*");
9259
- if (parent !== window) {
9260
- window.postMessage(message, "*");
9261
- }
9262
- } catch (err) {
9263
- console.debug("Could not postmessage", err);
9264
- }
9265
- }
9266
- }
9267
-
9268
9238
  // src/scripts/init-editing.ts
9269
- var registerInsertMenu = () => {
9270
- register("insertMenu", {
9271
- name: "_default",
9272
- default: true,
9273
- items: [{
9274
- name: "Box"
9275
- }, {
9276
- name: "Text"
9277
- }, {
9278
- name: "Image"
9279
- }, {
9280
- name: "Columns"
9281
- }, ...TARGET === "reactNative" ? [] : [{
9282
- name: "Core:Section"
9283
- }, {
9284
- name: "Core:Button"
9285
- }, {
9286
- name: "Embed"
9287
- }, {
9288
- name: "Custom Code"
9289
- }]]
9290
- });
9291
- };
9292
9239
  var isSetupForEditing = false;
9293
9240
  var setupBrowserForEditing = (options) => {
9294
9241
  if (isSetupForEditing) {
@@ -9688,7 +9635,6 @@ function EnableEditor(props) {
9688
9635
  if (isBrowser()) {
9689
9636
  if (isEditing() && !props.isNestedRender) {
9690
9637
  window.addEventListener("message", processMessage);
9691
- registerInsertMenu();
9692
9638
  setupBrowserForEditing({
9693
9639
  ...props.locale ? {
9694
9640
  locale: props.locale
@@ -10407,6 +10353,36 @@ function Symbol2(props) {
10407
10353
  }
10408
10354
  var symbol_default = Symbol2;
10409
10355
 
10356
+ // src/functions/register.ts
10357
+ var registry = {};
10358
+ function register(type, info) {
10359
+ if (type === "plugin") {
10360
+ info = serializeIncludingFunctions(info);
10361
+ }
10362
+ let typeList = registry[type];
10363
+ if (!typeList) {
10364
+ typeList = registry[type] = [];
10365
+ }
10366
+ typeList.push(info);
10367
+ if (isBrowser()) {
10368
+ const message = {
10369
+ type: "builder.register",
10370
+ data: {
10371
+ type,
10372
+ info
10373
+ }
10374
+ };
10375
+ try {
10376
+ parent.postMessage(message, "*");
10377
+ if (parent !== window) {
10378
+ window.postMessage(message, "*");
10379
+ }
10380
+ } catch (err) {
10381
+ console.debug("Could not postmessage", err);
10382
+ }
10383
+ }
10384
+ }
10385
+
10410
10386
  // src/functions/set-editor-settings.ts
10411
10387
  var settings = {};
10412
10388
  function setEditorSettings(newSettings) {
package/lib/edge/dev.jsx CHANGED
@@ -8176,7 +8176,7 @@ function getPreviewContent(_searchParams) {
8176
8176
  }
8177
8177
 
8178
8178
  // src/constants/sdk-version.ts
8179
- var SDK_VERSION = "4.1.1";
8179
+ var SDK_VERSION = "4.1.2";
8180
8180
 
8181
8181
  // src/helpers/sdk-headers.ts
8182
8182
  var getSdkHeaders = () => ({
@@ -8729,60 +8729,7 @@ function isFromTrustedHost(trustedHosts, e) {
8729
8729
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
8730
8730
  }
8731
8731
 
8732
- // src/functions/register.ts
8733
- var registry = {};
8734
- function register(type, info) {
8735
- if (type === "plugin") {
8736
- info = serializeIncludingFunctions(info);
8737
- }
8738
- let typeList = registry[type];
8739
- if (!typeList) {
8740
- typeList = registry[type] = [];
8741
- }
8742
- typeList.push(info);
8743
- if (isBrowser()) {
8744
- const message = {
8745
- type: "builder.register",
8746
- data: {
8747
- type,
8748
- info
8749
- }
8750
- };
8751
- try {
8752
- parent.postMessage(message, "*");
8753
- if (parent !== window) {
8754
- window.postMessage(message, "*");
8755
- }
8756
- } catch (err) {
8757
- console.debug("Could not postmessage", err);
8758
- }
8759
- }
8760
- }
8761
-
8762
8732
  // src/scripts/init-editing.ts
8763
- var registerInsertMenu = () => {
8764
- register("insertMenu", {
8765
- name: "_default",
8766
- default: true,
8767
- items: [{
8768
- name: "Box"
8769
- }, {
8770
- name: "Text"
8771
- }, {
8772
- name: "Image"
8773
- }, {
8774
- name: "Columns"
8775
- }, ...TARGET === "reactNative" ? [] : [{
8776
- name: "Core:Section"
8777
- }, {
8778
- name: "Core:Button"
8779
- }, {
8780
- name: "Embed"
8781
- }, {
8782
- name: "Custom Code"
8783
- }]]
8784
- });
8785
- };
8786
8733
  var isSetupForEditing = false;
8787
8734
  var setupBrowserForEditing = (options) => {
8788
8735
  if (isSetupForEditing) {
@@ -9191,7 +9138,6 @@ function EnableEditor(props) {
9191
9138
  if (isBrowser()) {
9192
9139
  if (isEditing() && !props.isNestedRender) {
9193
9140
  window.addEventListener("message", processMessage);
9194
- registerInsertMenu();
9195
9141
  setupBrowserForEditing({
9196
9142
  ...props.locale ? {
9197
9143
  locale: props.locale
@@ -9709,6 +9655,36 @@ function Symbol2(props) {
9709
9655
  }
9710
9656
  var symbol_default = Symbol2;
9711
9657
 
9658
+ // src/functions/register.ts
9659
+ var registry = {};
9660
+ function register(type, info) {
9661
+ if (type === "plugin") {
9662
+ info = serializeIncludingFunctions(info);
9663
+ }
9664
+ let typeList = registry[type];
9665
+ if (!typeList) {
9666
+ typeList = registry[type] = [];
9667
+ }
9668
+ typeList.push(info);
9669
+ if (isBrowser()) {
9670
+ const message = {
9671
+ type: "builder.register",
9672
+ data: {
9673
+ type,
9674
+ info
9675
+ }
9676
+ };
9677
+ try {
9678
+ parent.postMessage(message, "*");
9679
+ if (parent !== window) {
9680
+ window.postMessage(message, "*");
9681
+ }
9682
+ } catch (err) {
9683
+ console.debug("Could not postmessage", err);
9684
+ }
9685
+ }
9686
+ }
9687
+
9712
9688
  // src/functions/set-editor-settings.ts
9713
9689
  var settings = {};
9714
9690
  function setEditorSettings(newSettings) {
package/lib/edge/index.js CHANGED
@@ -8669,7 +8669,7 @@ function getPreviewContent(_searchParams) {
8669
8669
  }
8670
8670
 
8671
8671
  // src/constants/sdk-version.ts
8672
- var SDK_VERSION = "4.1.1";
8672
+ var SDK_VERSION = "4.1.2";
8673
8673
 
8674
8674
  // src/helpers/sdk-headers.ts
8675
8675
  var getSdkHeaders = () => ({
@@ -9217,59 +9217,7 @@ function isFromTrustedHost(trustedHosts, e) {
9217
9217
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
9218
9218
  }
9219
9219
 
9220
- // src/functions/register.ts
9221
- var registry = {};
9222
- function register(type, info) {
9223
- if (type === "plugin") {
9224
- info = serializeIncludingFunctions(info);
9225
- }
9226
- let typeList = registry[type];
9227
- if (!typeList) {
9228
- typeList = registry[type] = [];
9229
- }
9230
- typeList.push(info);
9231
- if (isBrowser()) {
9232
- const message = {
9233
- type: "builder.register",
9234
- data: {
9235
- type,
9236
- info
9237
- }
9238
- };
9239
- try {
9240
- parent.postMessage(message, "*");
9241
- if (parent !== window) {
9242
- window.postMessage(message, "*");
9243
- }
9244
- } catch (err) {
9245
- }
9246
- }
9247
- }
9248
-
9249
9220
  // src/scripts/init-editing.ts
9250
- var registerInsertMenu = () => {
9251
- register("insertMenu", {
9252
- name: "_default",
9253
- default: true,
9254
- items: [{
9255
- name: "Box"
9256
- }, {
9257
- name: "Text"
9258
- }, {
9259
- name: "Image"
9260
- }, {
9261
- name: "Columns"
9262
- }, ...TARGET === "reactNative" ? [] : [{
9263
- name: "Core:Section"
9264
- }, {
9265
- name: "Core:Button"
9266
- }, {
9267
- name: "Embed"
9268
- }, {
9269
- name: "Custom Code"
9270
- }]]
9271
- });
9272
- };
9273
9221
  var isSetupForEditing = false;
9274
9222
  var setupBrowserForEditing = (options) => {
9275
9223
  if (isSetupForEditing) {
@@ -9668,7 +9616,6 @@ function EnableEditor(props) {
9668
9616
  if (isBrowser()) {
9669
9617
  if (isEditing() && !props.isNestedRender) {
9670
9618
  window.addEventListener("message", processMessage);
9671
- registerInsertMenu();
9672
9619
  setupBrowserForEditing({
9673
9620
  ...props.locale ? {
9674
9621
  locale: props.locale
@@ -10387,6 +10334,35 @@ function Symbol2(props) {
10387
10334
  }
10388
10335
  var symbol_default = Symbol2;
10389
10336
 
10337
+ // src/functions/register.ts
10338
+ var registry = {};
10339
+ function register(type, info) {
10340
+ if (type === "plugin") {
10341
+ info = serializeIncludingFunctions(info);
10342
+ }
10343
+ let typeList = registry[type];
10344
+ if (!typeList) {
10345
+ typeList = registry[type] = [];
10346
+ }
10347
+ typeList.push(info);
10348
+ if (isBrowser()) {
10349
+ const message = {
10350
+ type: "builder.register",
10351
+ data: {
10352
+ type,
10353
+ info
10354
+ }
10355
+ };
10356
+ try {
10357
+ parent.postMessage(message, "*");
10358
+ if (parent !== window) {
10359
+ window.postMessage(message, "*");
10360
+ }
10361
+ } catch (err) {
10362
+ }
10363
+ }
10364
+ }
10365
+
10390
10366
  // src/functions/set-editor-settings.ts
10391
10367
  var settings = {};
10392
10368
  function setEditorSettings(newSettings) {
@@ -8165,7 +8165,7 @@ function getPreviewContent(_searchParams) {
8165
8165
  }
8166
8166
 
8167
8167
  // src/constants/sdk-version.ts
8168
- var SDK_VERSION = "4.1.1";
8168
+ var SDK_VERSION = "4.1.2";
8169
8169
 
8170
8170
  // src/helpers/sdk-headers.ts
8171
8171
  var getSdkHeaders = () => ({
@@ -8713,59 +8713,7 @@ function isFromTrustedHost(trustedHosts, e) {
8713
8713
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
8714
8714
  }
8715
8715
 
8716
- // src/functions/register.ts
8717
- var registry = {};
8718
- function register(type, info) {
8719
- if (type === "plugin") {
8720
- info = serializeIncludingFunctions(info);
8721
- }
8722
- let typeList = registry[type];
8723
- if (!typeList) {
8724
- typeList = registry[type] = [];
8725
- }
8726
- typeList.push(info);
8727
- if (isBrowser()) {
8728
- const message = {
8729
- type: "builder.register",
8730
- data: {
8731
- type,
8732
- info
8733
- }
8734
- };
8735
- try {
8736
- parent.postMessage(message, "*");
8737
- if (parent !== window) {
8738
- window.postMessage(message, "*");
8739
- }
8740
- } catch (err) {
8741
- }
8742
- }
8743
- }
8744
-
8745
8716
  // src/scripts/init-editing.ts
8746
- var registerInsertMenu = () => {
8747
- register("insertMenu", {
8748
- name: "_default",
8749
- default: true,
8750
- items: [{
8751
- name: "Box"
8752
- }, {
8753
- name: "Text"
8754
- }, {
8755
- name: "Image"
8756
- }, {
8757
- name: "Columns"
8758
- }, ...TARGET === "reactNative" ? [] : [{
8759
- name: "Core:Section"
8760
- }, {
8761
- name: "Core:Button"
8762
- }, {
8763
- name: "Embed"
8764
- }, {
8765
- name: "Custom Code"
8766
- }]]
8767
- });
8768
- };
8769
8717
  var isSetupForEditing = false;
8770
8718
  var setupBrowserForEditing = (options) => {
8771
8719
  if (isSetupForEditing) {
@@ -9173,7 +9121,6 @@ function EnableEditor(props) {
9173
9121
  if (isBrowser()) {
9174
9122
  if (isEditing() && !props.isNestedRender) {
9175
9123
  window.addEventListener("message", processMessage);
9176
- registerInsertMenu();
9177
9124
  setupBrowserForEditing({
9178
9125
  ...props.locale ? {
9179
9126
  locale: props.locale
@@ -9691,6 +9638,35 @@ function Symbol2(props) {
9691
9638
  }
9692
9639
  var symbol_default = Symbol2;
9693
9640
 
9641
+ // src/functions/register.ts
9642
+ var registry = {};
9643
+ function register(type, info) {
9644
+ if (type === "plugin") {
9645
+ info = serializeIncludingFunctions(info);
9646
+ }
9647
+ let typeList = registry[type];
9648
+ if (!typeList) {
9649
+ typeList = registry[type] = [];
9650
+ }
9651
+ typeList.push(info);
9652
+ if (isBrowser()) {
9653
+ const message = {
9654
+ type: "builder.register",
9655
+ data: {
9656
+ type,
9657
+ info
9658
+ }
9659
+ };
9660
+ try {
9661
+ parent.postMessage(message, "*");
9662
+ if (parent !== window) {
9663
+ window.postMessage(message, "*");
9664
+ }
9665
+ } catch (err) {
9666
+ }
9667
+ }
9668
+ }
9669
+
9694
9670
  // src/functions/set-editor-settings.ts
9695
9671
  var settings = {};
9696
9672
  function setEditorSettings(newSettings) {
package/lib/node/dev.js CHANGED
@@ -5670,7 +5670,7 @@ function getPreviewContent(_searchParams) {
5670
5670
  }
5671
5671
 
5672
5672
  // src/constants/sdk-version.ts
5673
- var SDK_VERSION = "4.1.1";
5673
+ var SDK_VERSION = "4.1.2";
5674
5674
 
5675
5675
  // src/helpers/sdk-headers.ts
5676
5676
  var getSdkHeaders = () => ({
@@ -6223,60 +6223,7 @@ function isFromTrustedHost(trustedHosts, e) {
6223
6223
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
6224
6224
  }
6225
6225
 
6226
- // src/functions/register.ts
6227
- var registry = {};
6228
- function register(type, info) {
6229
- if (type === "plugin") {
6230
- info = serializeIncludingFunctions(info);
6231
- }
6232
- let typeList = registry[type];
6233
- if (!typeList) {
6234
- typeList = registry[type] = [];
6235
- }
6236
- typeList.push(info);
6237
- if (isBrowser()) {
6238
- const message = {
6239
- type: "builder.register",
6240
- data: {
6241
- type,
6242
- info
6243
- }
6244
- };
6245
- try {
6246
- parent.postMessage(message, "*");
6247
- if (parent !== window) {
6248
- window.postMessage(message, "*");
6249
- }
6250
- } catch (err) {
6251
- console.debug("Could not postmessage", err);
6252
- }
6253
- }
6254
- }
6255
-
6256
6226
  // src/scripts/init-editing.ts
6257
- var registerInsertMenu = () => {
6258
- register("insertMenu", {
6259
- name: "_default",
6260
- default: true,
6261
- items: [{
6262
- name: "Box"
6263
- }, {
6264
- name: "Text"
6265
- }, {
6266
- name: "Image"
6267
- }, {
6268
- name: "Columns"
6269
- }, ...TARGET === "reactNative" ? [] : [{
6270
- name: "Core:Section"
6271
- }, {
6272
- name: "Core:Button"
6273
- }, {
6274
- name: "Embed"
6275
- }, {
6276
- name: "Custom Code"
6277
- }]]
6278
- });
6279
- };
6280
6227
  var isSetupForEditing = false;
6281
6228
  var setupBrowserForEditing = (options) => {
6282
6229
  if (isSetupForEditing) {
@@ -6676,7 +6623,6 @@ function EnableEditor(props) {
6676
6623
  if (isBrowser()) {
6677
6624
  if (isEditing() && !props.isNestedRender) {
6678
6625
  window.addEventListener("message", processMessage);
6679
- registerInsertMenu();
6680
6626
  setupBrowserForEditing({
6681
6627
  ...props.locale ? {
6682
6628
  locale: props.locale
@@ -7395,6 +7341,36 @@ function Symbol(props) {
7395
7341
  }
7396
7342
  var symbol_default = Symbol;
7397
7343
 
7344
+ // src/functions/register.ts
7345
+ var registry = {};
7346
+ function register(type, info) {
7347
+ if (type === "plugin") {
7348
+ info = serializeIncludingFunctions(info);
7349
+ }
7350
+ let typeList = registry[type];
7351
+ if (!typeList) {
7352
+ typeList = registry[type] = [];
7353
+ }
7354
+ typeList.push(info);
7355
+ if (isBrowser()) {
7356
+ const message = {
7357
+ type: "builder.register",
7358
+ data: {
7359
+ type,
7360
+ info
7361
+ }
7362
+ };
7363
+ try {
7364
+ parent.postMessage(message, "*");
7365
+ if (parent !== window) {
7366
+ window.postMessage(message, "*");
7367
+ }
7368
+ } catch (err) {
7369
+ console.debug("Could not postmessage", err);
7370
+ }
7371
+ }
7372
+ }
7373
+
7398
7374
  // src/functions/set-editor-settings.ts
7399
7375
  var settings = {};
7400
7376
  function setEditorSettings(newSettings) {
package/lib/node/dev.jsx CHANGED
@@ -5164,7 +5164,7 @@ function getPreviewContent(_searchParams) {
5164
5164
  }
5165
5165
 
5166
5166
  // src/constants/sdk-version.ts
5167
- var SDK_VERSION = "4.1.1";
5167
+ var SDK_VERSION = "4.1.2";
5168
5168
 
5169
5169
  // src/helpers/sdk-headers.ts
5170
5170
  var getSdkHeaders = () => ({
@@ -5717,60 +5717,7 @@ function isFromTrustedHost(trustedHosts, e) {
5717
5717
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5718
5718
  }
5719
5719
 
5720
- // src/functions/register.ts
5721
- var registry = {};
5722
- function register(type, info) {
5723
- if (type === "plugin") {
5724
- info = serializeIncludingFunctions(info);
5725
- }
5726
- let typeList = registry[type];
5727
- if (!typeList) {
5728
- typeList = registry[type] = [];
5729
- }
5730
- typeList.push(info);
5731
- if (isBrowser()) {
5732
- const message = {
5733
- type: "builder.register",
5734
- data: {
5735
- type,
5736
- info
5737
- }
5738
- };
5739
- try {
5740
- parent.postMessage(message, "*");
5741
- if (parent !== window) {
5742
- window.postMessage(message, "*");
5743
- }
5744
- } catch (err) {
5745
- console.debug("Could not postmessage", err);
5746
- }
5747
- }
5748
- }
5749
-
5750
5720
  // src/scripts/init-editing.ts
5751
- var registerInsertMenu = () => {
5752
- register("insertMenu", {
5753
- name: "_default",
5754
- default: true,
5755
- items: [{
5756
- name: "Box"
5757
- }, {
5758
- name: "Text"
5759
- }, {
5760
- name: "Image"
5761
- }, {
5762
- name: "Columns"
5763
- }, ...TARGET === "reactNative" ? [] : [{
5764
- name: "Core:Section"
5765
- }, {
5766
- name: "Core:Button"
5767
- }, {
5768
- name: "Embed"
5769
- }, {
5770
- name: "Custom Code"
5771
- }]]
5772
- });
5773
- };
5774
5721
  var isSetupForEditing = false;
5775
5722
  var setupBrowserForEditing = (options) => {
5776
5723
  if (isSetupForEditing) {
@@ -6179,7 +6126,6 @@ function EnableEditor(props) {
6179
6126
  if (isBrowser()) {
6180
6127
  if (isEditing() && !props.isNestedRender) {
6181
6128
  window.addEventListener("message", processMessage);
6182
- registerInsertMenu();
6183
6129
  setupBrowserForEditing({
6184
6130
  ...props.locale ? {
6185
6131
  locale: props.locale
@@ -6697,6 +6643,36 @@ function Symbol(props) {
6697
6643
  }
6698
6644
  var symbol_default = Symbol;
6699
6645
 
6646
+ // src/functions/register.ts
6647
+ var registry = {};
6648
+ function register(type, info) {
6649
+ if (type === "plugin") {
6650
+ info = serializeIncludingFunctions(info);
6651
+ }
6652
+ let typeList = registry[type];
6653
+ if (!typeList) {
6654
+ typeList = registry[type] = [];
6655
+ }
6656
+ typeList.push(info);
6657
+ if (isBrowser()) {
6658
+ const message = {
6659
+ type: "builder.register",
6660
+ data: {
6661
+ type,
6662
+ info
6663
+ }
6664
+ };
6665
+ try {
6666
+ parent.postMessage(message, "*");
6667
+ if (parent !== window) {
6668
+ window.postMessage(message, "*");
6669
+ }
6670
+ } catch (err) {
6671
+ console.debug("Could not postmessage", err);
6672
+ }
6673
+ }
6674
+ }
6675
+
6700
6676
  // src/functions/set-editor-settings.ts
6701
6677
  var settings = {};
6702
6678
  function setEditorSettings(newSettings) {
package/lib/node/index.js CHANGED
@@ -5657,7 +5657,7 @@ function getPreviewContent(_searchParams) {
5657
5657
  }
5658
5658
 
5659
5659
  // src/constants/sdk-version.ts
5660
- var SDK_VERSION = "4.1.1";
5660
+ var SDK_VERSION = "4.1.2";
5661
5661
 
5662
5662
  // src/helpers/sdk-headers.ts
5663
5663
  var getSdkHeaders = () => ({
@@ -6205,59 +6205,7 @@ function isFromTrustedHost(trustedHosts, e) {
6205
6205
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
6206
6206
  }
6207
6207
 
6208
- // src/functions/register.ts
6209
- var registry = {};
6210
- function register(type, info) {
6211
- if (type === "plugin") {
6212
- info = serializeIncludingFunctions(info);
6213
- }
6214
- let typeList = registry[type];
6215
- if (!typeList) {
6216
- typeList = registry[type] = [];
6217
- }
6218
- typeList.push(info);
6219
- if (isBrowser()) {
6220
- const message = {
6221
- type: "builder.register",
6222
- data: {
6223
- type,
6224
- info
6225
- }
6226
- };
6227
- try {
6228
- parent.postMessage(message, "*");
6229
- if (parent !== window) {
6230
- window.postMessage(message, "*");
6231
- }
6232
- } catch (err) {
6233
- }
6234
- }
6235
- }
6236
-
6237
6208
  // src/scripts/init-editing.ts
6238
- var registerInsertMenu = () => {
6239
- register("insertMenu", {
6240
- name: "_default",
6241
- default: true,
6242
- items: [{
6243
- name: "Box"
6244
- }, {
6245
- name: "Text"
6246
- }, {
6247
- name: "Image"
6248
- }, {
6249
- name: "Columns"
6250
- }, ...TARGET === "reactNative" ? [] : [{
6251
- name: "Core:Section"
6252
- }, {
6253
- name: "Core:Button"
6254
- }, {
6255
- name: "Embed"
6256
- }, {
6257
- name: "Custom Code"
6258
- }]]
6259
- });
6260
- };
6261
6209
  var isSetupForEditing = false;
6262
6210
  var setupBrowserForEditing = (options) => {
6263
6211
  if (isSetupForEditing) {
@@ -6656,7 +6604,6 @@ function EnableEditor(props) {
6656
6604
  if (isBrowser()) {
6657
6605
  if (isEditing() && !props.isNestedRender) {
6658
6606
  window.addEventListener("message", processMessage);
6659
- registerInsertMenu();
6660
6607
  setupBrowserForEditing({
6661
6608
  ...props.locale ? {
6662
6609
  locale: props.locale
@@ -7375,6 +7322,35 @@ function Symbol(props) {
7375
7322
  }
7376
7323
  var symbol_default = Symbol;
7377
7324
 
7325
+ // src/functions/register.ts
7326
+ var registry = {};
7327
+ function register(type, info) {
7328
+ if (type === "plugin") {
7329
+ info = serializeIncludingFunctions(info);
7330
+ }
7331
+ let typeList = registry[type];
7332
+ if (!typeList) {
7333
+ typeList = registry[type] = [];
7334
+ }
7335
+ typeList.push(info);
7336
+ if (isBrowser()) {
7337
+ const message = {
7338
+ type: "builder.register",
7339
+ data: {
7340
+ type,
7341
+ info
7342
+ }
7343
+ };
7344
+ try {
7345
+ parent.postMessage(message, "*");
7346
+ if (parent !== window) {
7347
+ window.postMessage(message, "*");
7348
+ }
7349
+ } catch (err) {
7350
+ }
7351
+ }
7352
+ }
7353
+
7378
7354
  // src/functions/set-editor-settings.ts
7379
7355
  var settings = {};
7380
7356
  function setEditorSettings(newSettings) {
@@ -5153,7 +5153,7 @@ function getPreviewContent(_searchParams) {
5153
5153
  }
5154
5154
 
5155
5155
  // src/constants/sdk-version.ts
5156
- var SDK_VERSION = "4.1.1";
5156
+ var SDK_VERSION = "4.1.2";
5157
5157
 
5158
5158
  // src/helpers/sdk-headers.ts
5159
5159
  var getSdkHeaders = () => ({
@@ -5701,59 +5701,7 @@ function isFromTrustedHost(trustedHosts, e) {
5701
5701
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5702
5702
  }
5703
5703
 
5704
- // src/functions/register.ts
5705
- var registry = {};
5706
- function register(type, info) {
5707
- if (type === "plugin") {
5708
- info = serializeIncludingFunctions(info);
5709
- }
5710
- let typeList = registry[type];
5711
- if (!typeList) {
5712
- typeList = registry[type] = [];
5713
- }
5714
- typeList.push(info);
5715
- if (isBrowser()) {
5716
- const message = {
5717
- type: "builder.register",
5718
- data: {
5719
- type,
5720
- info
5721
- }
5722
- };
5723
- try {
5724
- parent.postMessage(message, "*");
5725
- if (parent !== window) {
5726
- window.postMessage(message, "*");
5727
- }
5728
- } catch (err) {
5729
- }
5730
- }
5731
- }
5732
-
5733
5704
  // src/scripts/init-editing.ts
5734
- var registerInsertMenu = () => {
5735
- register("insertMenu", {
5736
- name: "_default",
5737
- default: true,
5738
- items: [{
5739
- name: "Box"
5740
- }, {
5741
- name: "Text"
5742
- }, {
5743
- name: "Image"
5744
- }, {
5745
- name: "Columns"
5746
- }, ...TARGET === "reactNative" ? [] : [{
5747
- name: "Core:Section"
5748
- }, {
5749
- name: "Core:Button"
5750
- }, {
5751
- name: "Embed"
5752
- }, {
5753
- name: "Custom Code"
5754
- }]]
5755
- });
5756
- };
5757
5705
  var isSetupForEditing = false;
5758
5706
  var setupBrowserForEditing = (options) => {
5759
5707
  if (isSetupForEditing) {
@@ -6161,7 +6109,6 @@ function EnableEditor(props) {
6161
6109
  if (isBrowser()) {
6162
6110
  if (isEditing() && !props.isNestedRender) {
6163
6111
  window.addEventListener("message", processMessage);
6164
- registerInsertMenu();
6165
6112
  setupBrowserForEditing({
6166
6113
  ...props.locale ? {
6167
6114
  locale: props.locale
@@ -6679,6 +6626,35 @@ function Symbol(props) {
6679
6626
  }
6680
6627
  var symbol_default = Symbol;
6681
6628
 
6629
+ // src/functions/register.ts
6630
+ var registry = {};
6631
+ function register(type, info) {
6632
+ if (type === "plugin") {
6633
+ info = serializeIncludingFunctions(info);
6634
+ }
6635
+ let typeList = registry[type];
6636
+ if (!typeList) {
6637
+ typeList = registry[type] = [];
6638
+ }
6639
+ typeList.push(info);
6640
+ if (isBrowser()) {
6641
+ const message = {
6642
+ type: "builder.register",
6643
+ data: {
6644
+ type,
6645
+ info
6646
+ }
6647
+ };
6648
+ try {
6649
+ parent.postMessage(message, "*");
6650
+ if (parent !== window) {
6651
+ window.postMessage(message, "*");
6652
+ }
6653
+ } catch (err) {
6654
+ }
6655
+ }
6656
+ }
6657
+
6682
6658
  // src/functions/set-editor-settings.ts
6683
6659
  var settings = {};
6684
6660
  function setEditorSettings(newSettings) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",