Skip to content

Commit

Permalink
Version 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jshah4517 committed May 1, 2024
1 parent 84e9f58 commit bd71311
Show file tree
Hide file tree
Showing 46 changed files with 14,474 additions and 1,677 deletions.
4,852 changes: 4,852 additions & 0 deletions dist/codemirror.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/codemirror.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/codemirror.min.js.map

Large diffs are not rendered by default.

58 changes: 0 additions & 58 deletions dist/main.js

This file was deleted.

54 changes: 22 additions & 32 deletions operator/js/editor/mergefields.js → dist/mergefields.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
(function ($, window, document, undefined) {
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.MergeFields = {}));
})(this, function (exports) {
'use strict';

/*
* DOMParser HTML extension
* 2012-09-04
*
* By Eli Grey, http://eligrey.com
* Public domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
* DOMParser HTML extension
* 2012-09-04
*
* By Eli Grey, http://eligrey.com
* Public domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/

/*! @source https://gist.github.com/1129031 */
/*global document, DOMParser*/

(function (DOMParser) {
"use strict";

function DOMParser() {
var proto = DOMParser.prototype,
nativeParse = proto.parseFromString;

Expand All @@ -38,7 +38,7 @@
return nativeParse.apply(this, arguments);
}
};
})(DOMParser);
}

/**
* Merge fields.
Expand All @@ -47,8 +47,6 @@
* @constructor
*/
function MergeFields(parameters) {
"use strict";

var instance = this;

/**
Expand All @@ -58,12 +56,7 @@
$toolbar,
$preview,
$editor,
valFn = parameters.valFn || function () {
return parameters.codemirror.codemirror().getValue();
},
syncFn = parameters.syncFn || function () {
parameters.codemirror.codemirror().save();
};
valFn = parameters.valFn;

/**
* List of node attributes that are permitted to contain twig template code.
Expand Down Expand Up @@ -165,9 +158,6 @@
* @param html
*/
this.callback = function (html) {
// Sync the textarea and editor.
syncFn();

// Check if the editor contains {{ operator.reply_template }}.
containsReplyTemplate(html);

Expand Down Expand Up @@ -306,11 +296,11 @@
* @type {string}
*/
MergeFields.modalContent = '<section> \
<span class="sp-description">' + MergeFields.translations.merge_fields_desc + '</span> \
<br /><br /> \
<div class="sp-merge-fields sp-flex sp-flex-wrap"> \
</div> \
</section>';
<span class="sp-description">' + MergeFields.translations.merge_fields_desc + '</span> \
<br /><br /> \
<div class="sp-merge-fields sp-flex sp-flex-wrap"> \
</div> \
</section>';

/**
* Ticket merge fields.
Expand Down Expand Up @@ -349,5 +339,5 @@
});
});
};
App.extend('mergefields', MergeFields);
})($, window, document);
exports.MergeFields = MergeFields;
});
101 changes: 101 additions & 0 deletions dist/mergefields.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/mergefields.min.js.map

Large diffs are not rendered by default.

0 comments on commit bd71311

Please sign in to comment.