Skip to content

Commit

Permalink
Merge pull request #8 from mdshamoon/bug/autoComplete
Browse files Browse the repository at this point in the history
Fixed autopopulate fields bug
  • Loading branch information
pankaj-ag authored Dec 18, 2020
2 parents 8c4c2e7 + 5ace33e commit 72c5379
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 37 deletions.
26 changes: 13 additions & 13 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"files": {
"main.css": "./static/css/main.6a72784e.chunk.css",
"main.js": "./static/js/main.7c1dc143.chunk.js",
"main.js.map": "./static/js/main.7c1dc143.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.222e70c9.js",
"runtime-main.js.map": "./static/js/runtime-main.222e70c9.js.map",
"static/js/2.82b0bf55.chunk.js": "./static/js/2.82b0bf55.chunk.js",
"static/js/2.82b0bf55.chunk.js.map": "./static/js/2.82b0bf55.chunk.js.map",
"static/js/3.a6c0e284.chunk.js": "./static/js/3.a6c0e284.chunk.js",
"static/js/3.a6c0e284.chunk.js.map": "./static/js/3.a6c0e284.chunk.js.map",
"main.js": "./static/js/main.de779d53.chunk.js",
"main.js.map": "./static/js/main.de779d53.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.f9cde20a.js",
"runtime-main.js.map": "./static/js/runtime-main.f9cde20a.js.map",
"static/js/2.d9507c46.chunk.js": "./static/js/2.d9507c46.chunk.js",
"static/js/2.d9507c46.chunk.js.map": "./static/js/2.d9507c46.chunk.js.map",
"static/js/3.edba31cf.chunk.js": "./static/js/3.edba31cf.chunk.js",
"static/js/3.edba31cf.chunk.js.map": "./static/js/3.edba31cf.chunk.js.map",
"index.html": "./index.html",
"precache-manifest.3e48f87204787452fec0add68aff6eab.js": "./precache-manifest.3e48f87204787452fec0add68aff6eab.js",
"precache-manifest.26f6fbfc5a34a6d1f98156ba84912bd3.js": "./precache-manifest.26f6fbfc5a34a6d1f98156ba84912bd3.js",
"service-worker.js": "./service-worker.js",
"static/css/main.6a72784e.chunk.css.map": "./static/css/main.6a72784e.chunk.css.map",
"static/js/2.82b0bf55.chunk.js.LICENSE.txt": "./static/js/2.82b0bf55.chunk.js.LICENSE.txt",
"static/js/2.d9507c46.chunk.js.LICENSE.txt": "./static/js/2.d9507c46.chunk.js.LICENSE.txt",
"static/media/style.css": "./static/media/floweditor.fdc09448.svg",
"static/media/map.jpg": "./static/media/map.5e547148.jpg"
},
"entrypoints": [
"static/js/runtime-main.222e70c9.js",
"static/js/2.82b0bf55.chunk.js",
"static/js/runtime-main.f9cde20a.js",
"static/js/2.d9507c46.chunk.js",
"static/css/main.6a72784e.chunk.css",
"static/js/main.7c1dc143.chunk.js"
"static/js/main.de779d53.chunk.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:200,300,400,500"/><title>Nyaruka Flow Editor</title><style>html{--font-family:'Roboto',sans-serif;font-family:var(--font-family);font-size:13px;font-weight:300;--curvature:4px;--curvature-widget:4px;--primary-rgb:52,152,219;--secondary-rgb:0,77,129;--focus-rgb:82,168,236;--error-rgb:255,99,71;--color-info:#c0d9eb;--color-warning:#fff6c0;--color-error:rgb(var(--error-rgb));--color-text:#555;--color-widget-text:#555;--color-borders:rgba(0, 0, 0, 0.07);--widget-box-shadow-focused:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(var(--focus-rgb), 0.6);--widget-box-shadow-focused-error:inset 0 1px 1px rgba(var(--error-rgb), 0.075),0 0 8px rgba(var(--error-rgb), 0.6);--color-focus:rgba(var(--focus-rgb), 0.8);--color-widget-bg:#fff;--color-widget-bg-focused:#fff;--color-widget-border:rgb(204, 204, 204);--color-placeholder:var(--color-text-help);--color-primary-light:#eee;--color-secondary-light:#ccc;--color-primary-dark:rgb(var(--primary-rgb));--color-secondary-dark:rgb(var(--secondary-rgb));--color-text-light:rgba(255, 255, 255, 0.92);--color-text-dark:rgba(0, 0, 0, 0.5);--color-text-dark-secondary:rgba(0, 0, 0, 0.25);--color-text-help:rgba(0, 0, 0, 0.45);--color-selection:#f0f6ff;--color-overlay-dark:rgba(0, 0, 0, 0.2);--color-overlay-dark-text:rgba(255, 255, 255, 0.9);--color-overlay-light:rgba(0, 0, 0, 0.05);--color-overlay-light-text:rgba(0, 0, 0, 0.6);--color-link-primary:rgba(var(--primary-rgb), 0.8);--color-link-primary-hover:rgba(var(--primary-rgb), 0.9);--color-link-secondary:rgba(var(--secondary-rgb), 0.8);--color-link-secondary-hover:rgba(var(--secondary-rgb), 0.9);--color-button-primary:var(--color-primary-dark);--color-button-primary-text:var(--color-text-light);--color-button-secondary:var(--color-secondary-light);--color-button-secondary-text:var(--color-text-dark);--color-button-disabled:rgba(0, 0, 0, 0.03);--color-label-primary:var(--color-primary-dark);--color-label-primary-text:var(--color-text-light);--color-label-secondary:rgba(0, 0, 0, 0.2);--color-label-secondary-text:rgba(255, 255, 255, 0.9)}</style><link href="./static/css/main.6a72784e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="floweditor"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],s=0,p=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"a6c0e284"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="./",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonp@nyaruka/flow-editor"]=this["webpackJsonp@nyaruka/flow-editor"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([])</script><script src="./static/js/2.82b0bf55.chunk.js"></script><script src="./static/js/main.7c1dc143.chunk.js"></script></body><script>var base="http://api.glific.test:4000/flow-editor/",uuid="3fa22108-f464-41e5-81d9-d8a298854429",config={flow:uuid,flowType:"message",localStorage:!0,mutable:!0,filters:["facebook","whatsapp","airtime","resthook","classifier","ticketer"],excludeTypes:["send_broadcast","add_contact_urn","remove_contact_groups","send_email","set_run_result","call_resthook","start_session","open_ticket","split_by_expression","transfer_airtime","split_by_intent","split_by_contact_field","split_by_run_result","split_by_random","split_by_groups","split_by_scheme"],excludeOperators:["has_beginning","has_text","has_number_lt","has_number_lte","has_number_gte","has_number_gt","has_date","has_date_category","has_date_lt","has_number_lte","has_number_gte","has_number_gt","has_date","has_date_category","has_date_lt","has_date_eq","has_date_gt","has_time","has_group","has_category","has_phone","has_phone_category","has_email","has_email_category","has_state","has_state_category","has_district","has_ward","has_error","has_value","has_pattern"],help:{legacy_extra:"help.html",missing_dependency:"help.html",invalid_regex:"help.html"},endpoints:{globals:base+"globals",groups:base+"groups",fields:base+"fields",labels:base+"labels",channels:base+"channels",classifiers:base+"classifiers",ticketers:base+"ticketers",resthooks:base+"resthooks",templates:base+"templates",flows:base+"flows",revisions:base+"revisions/"+uuid,recents:base+"recents",languages:base+"languages",environment:base+"environment",recipients:base+"recipients",functions:base+"functions",completion:base+"completion",attachments:base+"attachments",activity:base+"activity",editor:"/",simulateStart:null,simulateResume:null}};showFlowEditor(document.getElementById("floweditor"),config)</script></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:200,300,400,500"/><title>Nyaruka Flow Editor</title><style>html{--font-family:'Roboto',sans-serif;font-family:var(--font-family);font-size:13px;font-weight:300;--curvature:4px;--curvature-widget:4px;--primary-rgb:52,152,219;--secondary-rgb:0,77,129;--focus-rgb:82,168,236;--error-rgb:255,99,71;--color-info:#c0d9eb;--color-warning:#fff6c0;--color-error:rgb(var(--error-rgb));--color-text:#555;--color-widget-text:#555;--color-borders:rgba(0, 0, 0, 0.07);--widget-box-shadow-focused:inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(var(--focus-rgb), 0.6);--widget-box-shadow-focused-error:inset 0 1px 1px rgba(var(--error-rgb), 0.075),0 0 8px rgba(var(--error-rgb), 0.6);--color-focus:rgba(var(--focus-rgb), 0.8);--color-widget-bg:#fff;--color-widget-bg-focused:#fff;--color-widget-border:rgb(204, 204, 204);--color-placeholder:var(--color-text-help);--color-primary-light:#eee;--color-secondary-light:#ccc;--color-primary-dark:rgb(var(--primary-rgb));--color-secondary-dark:rgb(var(--secondary-rgb));--color-text-light:rgba(255, 255, 255, 0.92);--color-text-dark:rgba(0, 0, 0, 0.5);--color-text-dark-secondary:rgba(0, 0, 0, 0.25);--color-text-help:rgba(0, 0, 0, 0.45);--color-selection:#f0f6ff;--color-overlay-dark:rgba(0, 0, 0, 0.2);--color-overlay-dark-text:rgba(255, 255, 255, 0.9);--color-overlay-light:rgba(0, 0, 0, 0.05);--color-overlay-light-text:rgba(0, 0, 0, 0.6);--color-link-primary:rgba(var(--primary-rgb), 0.8);--color-link-primary-hover:rgba(var(--primary-rgb), 0.9);--color-link-secondary:rgba(var(--secondary-rgb), 0.8);--color-link-secondary-hover:rgba(var(--secondary-rgb), 0.9);--color-button-primary:var(--color-primary-dark);--color-button-primary-text:var(--color-text-light);--color-button-secondary:var(--color-secondary-light);--color-button-secondary-text:var(--color-text-dark);--color-button-disabled:rgba(0, 0, 0, 0.03);--color-label-primary:var(--color-primary-dark);--color-label-primary-text:var(--color-text-light);--color-label-secondary:rgba(0, 0, 0, 0.2);--color-label-secondary-text:rgba(255, 255, 255, 0.9)}</style><link href="./static/css/main.6a72784e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="floweditor"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],s=0,p=[];s<i.length;s++)a=i[s],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"edba31cf"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="./",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonp@nyaruka/flow-editor"]=this["webpackJsonp@nyaruka/flow-editor"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([])</script><script src="./static/js/2.d9507c46.chunk.js"></script><script src="./static/js/main.de779d53.chunk.js"></script></body><script>var base="http://api.glific.test:4000/flow-editor/",uuid="3fa22108-f464-41e5-81d9-d8a298854429",config={flow:uuid,flowType:"message",localStorage:!0,mutable:!0,filters:["facebook","whatsapp","airtime","resthook","classifier","ticketer"],excludeTypes:["send_broadcast","add_contact_urn","remove_contact_groups","send_email","set_run_result","call_resthook","start_session","open_ticket","split_by_expression","transfer_airtime","split_by_intent","split_by_contact_field","split_by_run_result","split_by_random","split_by_groups","split_by_scheme"],excludeOperators:["has_beginning","has_text","has_number_lt","has_number_lte","has_number_gte","has_number_gt","has_date","has_date_category","has_date_lt","has_number_lte","has_number_gte","has_number_gt","has_date","has_date_category","has_date_lt","has_date_eq","has_date_gt","has_time","has_group","has_category","has_phone","has_phone_category","has_email","has_email_category","has_state","has_state_category","has_district","has_ward","has_error","has_value","has_pattern"],help:{legacy_extra:"help.html",missing_dependency:"help.html",invalid_regex:"help.html"},endpoints:{globals:base+"globals",groups:base+"groups",fields:base+"fields",labels:base+"labels",channels:base+"channels",classifiers:base+"classifiers",ticketers:base+"ticketers",resthooks:base+"resthooks",templates:base+"templates",flows:base+"flows",revisions:base+"revisions/"+uuid,recents:base+"recents",languages:base+"languages",environment:base+"environment",recipients:base+"recipients",functions:base+"functions",completion:base+"completion",attachments:base+"attachments",activity:base+"activity",editor:"/",simulateStart:null,simulateResume:null}};showFlowEditor(document.getElementById("floweditor"),config)</script></html>
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
revision: '890e69f75a3cee2e31b34b4bcee97ec7',
revision: '8e0bdc5b71a0f6f2782303c002efcbcc',
url: './index.html'
},
{
revision: '2d6241b63d001a9d8802',
revision: 'ce4a18ef1e51a67c884c',
url: './static/css/main.6a72784e.chunk.css'
},
{
revision: '18edaaa7fe010c1b4aa7',
url: './static/js/2.82b0bf55.chunk.js'
revision: '7c7e6bd7891800f149f3',
url: './static/js/2.d9507c46.chunk.js'
},
{
revision: '0078b7c0f6fe6c7ea3ac60b433194d7c',
url: './static/js/2.82b0bf55.chunk.js.LICENSE.txt'
url: './static/js/2.d9507c46.chunk.js.LICENSE.txt'
},
{
revision: '4bf6dc44c9e90169ccaf',
url: './static/js/3.a6c0e284.chunk.js'
revision: 'dd7282054a50f68317bb',
url: './static/js/3.edba31cf.chunk.js'
},
{
revision: '2d6241b63d001a9d8802',
url: './static/js/main.7c1dc143.chunk.js'
revision: 'ce4a18ef1e51a67c884c',
url: './static/js/main.de779d53.chunk.js'
},
{
revision: '384139f25edd57684379',
url: './static/js/runtime-main.222e70c9.js'
revision: '02acf6660120d980cbfb',
url: './static/js/runtime-main.f9cde20a.js'
},
{
revision: '09f702ab820f4a732d6abe77d53c8149',
Expand Down
2 changes: 1 addition & 1 deletion build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

importScripts('https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js');

importScripts('./precache-manifest.3e48f87204787452fec0add68aff6eab.js');
importScripts('./precache-manifest.26f6fbfc5a34a6d1f98156ba84912bd3.js');

self.addEventListener('message', event => {
if (event.data && event.data.type === 'SKIP_WAITING') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! For license information please see 2.82b0bf55.chunk.js.LICENSE.txt */
/*! For license information please see 2.d9507c46.chunk.js.LICENSE.txt */
(this['webpackJsonp@nyaruka/flow-editor'] = this['webpackJsonp@nyaruka/flow-editor'] || []).push([
[2],
[
Expand Down Expand Up @@ -36367,4 +36367,4 @@
}
]
]);
//# sourceMappingURL=2.82b0bf55.chunk.js.map
//# sourceMappingURL=2.d9507c46.chunk.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20756,4 +20756,4 @@
}
}
]);
//# sourceMappingURL=3.a6c0e284.chunk.js.map
//# sourceMappingURL=3.edba31cf.chunk.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/static/js/main.7c1dc143.chunk.js.map

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2642,7 +2642,16 @@
var t = Object(f.a)(a);
function a(e) {
var n;
if ((Object(m.a)(this, a), (n = t.call(this, e)), k.Children.count(e.children) > 1))
Object(m.a)(this, a), (n = t.call(this, e));
var i = document.createElement('temba-store');
if (
((i.completionsEndpoint = e.config.endpoints.completion),
(i.functionsEndpoint = e.config.endpoints.functions),
(i.fieldsEndpoint = e.config.endpoints.fields),
(i.globalsEndpoint = e.config.endpoints.globals),
document.body.appendChild(i),
k.Children.count(e.children) > 1)
)
throw new Error('ConfigProvider expects only one child component.');
if (!k.isValidElement(e.children))
throw new Error(
Expand Down Expand Up @@ -20853,4 +20862,4 @@
],
[[160, 1, 2]]
]);
//# sourceMappingURL=main.7c1dc143.chunk.js.map
//# sourceMappingURL=main.de779d53.chunk.js.map
1 change: 1 addition & 0 deletions build/static/js/main.de779d53.chunk.js.map

Large diffs are not rendered by default.

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

Loading

0 comments on commit 72c5379

Please sign in to comment.