Skip to content

Commit 08454f4

Browse files
committed
Merge branch 'master' into readme
2 parents 841a45c + 11f6078 commit 08454f4

35 files changed

+613
-788
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ typings/
108108
# dotenv environment variables file
109109
.env
110110

111+
# config file for db URI
112+
config.js
113+
111114
# parcel-bundler cache (https://parceljs.org/)
112115
.cache
113116

__tests__/__snapshots__/enzyme.test.tsx.snap

Lines changed: 0 additions & 359 deletions
Original file line numberDiff line numberDiff line change
@@ -1,364 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Test All 10 default HTML elements have rendered Matches snapshot 1`] = `
4-
<ContextProvider
5-
value={
6-
Object {
7-
"dragDropManager": DragDropManagerImpl {
8-
"backend": HTML5BackendImpl {
9-
"actions": Object {
10-
"beginDrag": [Function],
11-
"drop": [Function],
12-
"endDrag": [Function],
13-
"hover": [Function],
14-
"publishDragSource": [Function],
15-
},
16-
"altKeyPressed": false,
17-
"asyncEndDragFrameId": null,
18-
"currentDragSourceNode": null,
19-
"currentNativeHandle": null,
20-
"currentNativeSource": null,
21-
"dragEnterTargetIds": Array [],
22-
"dragOverTargetIds": null,
23-
"dragStartSourceIds": null,
24-
"dropTargetIds": Array [],
25-
"endDragIfSourceWasRemovedFromDOM": [Function],
26-
"endDragNativeItem": [Function],
27-
"enterLeaveCounter": EnterLeaveCounter {
28-
"entered": Array [],
29-
"isNodeInDocument": [Function],
30-
},
31-
"getSourceClientOffset": [Function],
32-
"handleSelectStart": [Function],
33-
"handleTopDragEndCapture": [Function],
34-
"handleTopDragEnter": [Function],
35-
"handleTopDragEnterCapture": [Function],
36-
"handleTopDragLeaveCapture": [Function],
37-
"handleTopDragOver": [Function],
38-
"handleTopDragOverCapture": [Function],
39-
"handleTopDragStart": [Function],
40-
"handleTopDragStartCapture": [Function],
41-
"handleTopDrop": [Function],
42-
"handleTopDropCapture": [Function],
43-
"isNodeInDocument": [Function],
44-
"monitor": DragDropMonitorImpl {
45-
"registry": HandlerRegistryImpl {
46-
"dragSources": Map {},
47-
"dropTargets": Map {},
48-
"pinnedSource": null,
49-
"pinnedSourceId": null,
50-
"store": Object {
51-
"dispatch": [Function],
52-
"getState": [Function],
53-
"replaceReducer": [Function],
54-
"subscribe": [Function],
55-
Symbol(observable): [Function],
56-
},
57-
"types": Map {},
58-
},
59-
"store": Object {
60-
"dispatch": [Function],
61-
"getState": [Function],
62-
"replaceReducer": [Function],
63-
"subscribe": [Function],
64-
Symbol(observable): [Function],
65-
},
66-
},
67-
"mouseMoveTimeoutTimer": null,
68-
"options": OptionsReader {
69-
"globalContext": [Window],
70-
},
71-
"registry": HandlerRegistryImpl {
72-
"dragSources": Map {},
73-
"dropTargets": Map {},
74-
"pinnedSource": null,
75-
"pinnedSourceId": null,
76-
"store": Object {
77-
"dispatch": [Function],
78-
"getState": [Function],
79-
"replaceReducer": [Function],
80-
"subscribe": [Function],
81-
Symbol(observable): [Function],
82-
},
83-
"types": Map {},
84-
},
85-
"sourceNodeOptions": Map {},
86-
"sourceNodes": Map {},
87-
"sourcePreviewNodeOptions": Map {},
88-
"sourcePreviewNodes": Map {},
89-
},
90-
"handleRefCountChange": [Function],
91-
"isSetUp": false,
92-
"monitor": DragDropMonitorImpl {
93-
"registry": HandlerRegistryImpl {
94-
"dragSources": Map {},
95-
"dropTargets": Map {},
96-
"pinnedSource": null,
97-
"pinnedSourceId": null,
98-
"store": Object {
99-
"dispatch": [Function],
100-
"getState": [Function],
101-
"replaceReducer": [Function],
102-
"subscribe": [Function],
103-
Symbol(observable): [Function],
104-
},
105-
"types": Map {},
106-
},
107-
"store": Object {
108-
"dispatch": [Function],
109-
"getState": [Function],
110-
"replaceReducer": [Function],
111-
"subscribe": [Function],
112-
Symbol(observable): [Function],
113-
},
114-
},
115-
"store": Object {
116-
"dispatch": [Function],
117-
"getState": [Function],
118-
"replaceReducer": [Function],
119-
"subscribe": [Function],
120-
Symbol(observable): [Function],
121-
},
122-
},
123-
}
124-
}
125-
>
126-
<ContextProvider
127-
value={
128-
Object {
129-
"HTMLTypes": Array [
130-
Object {
131-
"icon": Object {
132-
"$$typeof": Symbol(react.memo),
133-
"compare": null,
134-
"type": Object {
135-
"$$typeof": Symbol(react.forward_ref),
136-
"render": [Function],
137-
},
138-
},
139-
"id": 11,
140-
"name": "Div",
141-
"placeHolderLong": "",
142-
"placeHolderShort": "div",
143-
"style": Object {},
144-
"tag": "div",
145-
},
146-
Object {
147-
"icon": "",
148-
"id": 1000,
149-
"name": "separator",
150-
"placeHolderLong": "",
151-
"placeHolderShort": "",
152-
"style": Object {
153-
"border": "none",
154-
},
155-
"tag": "separator",
156-
},
157-
Object {
158-
"icon": Object {
159-
"$$typeof": Symbol(react.memo),
160-
"compare": null,
161-
"type": Object {
162-
"$$typeof": Symbol(react.forward_ref),
163-
"render": [Function],
164-
},
165-
},
166-
"id": 1,
167-
"name": "Image",
168-
"placeHolderLong": "",
169-
"placeHolderShort": "Image",
170-
"style": Object {},
171-
"tag": "img",
172-
},
173-
Object {
174-
"icon": Object {
175-
"$$typeof": Symbol(react.memo),
176-
"compare": null,
177-
"type": Object {
178-
"$$typeof": Symbol(react.forward_ref),
179-
"render": [Function],
180-
},
181-
},
182-
"id": 2,
183-
"name": "Form",
184-
"placeHolderLong": "",
185-
"placeHolderShort": "Form",
186-
"style": Object {},
187-
"tag": "form",
188-
},
189-
Object {
190-
"icon": Object {
191-
"$$typeof": Symbol(react.memo),
192-
"compare": null,
193-
"type": Object {
194-
"$$typeof": Symbol(react.forward_ref),
195-
"render": [Function],
196-
},
197-
},
198-
"id": 3,
199-
"name": "List",
200-
"placeHolderLong": "",
201-
"placeHolderShort": <ul>
202-
<li>
203-
item 1
204-
</li>
205-
<li>
206-
item 2
207-
</li>
208-
<li>
209-
item 3
210-
</li>
211-
</ul>,
212-
"style": Object {
213-
"color": "purple",
214-
},
215-
"tag": "li",
216-
},
217-
Object {
218-
"icon": Object {
219-
"$$typeof": Symbol(react.memo),
220-
"compare": null,
221-
"type": Object {
222-
"$$typeof": Symbol(react.forward_ref),
223-
"render": [Function],
224-
},
225-
},
226-
"id": 4,
227-
"name": "Button",
228-
"placeHolderLong": "",
229-
"placeHolderShort": <button>
230-
Button
231-
</button>,
232-
"style": Object {
233-
"border": "none",
234-
"textAlign": "center",
235-
},
236-
"tag": "button",
237-
},
238-
Object {
239-
"icon": Object {
240-
"$$typeof": Symbol(react.memo),
241-
"compare": null,
242-
"type": Object {
243-
"$$typeof": Symbol(react.forward_ref),
244-
"render": [Function],
245-
},
246-
},
247-
"id": 6,
248-
"name": "Link",
249-
"placeHolderLong": "",
250-
"placeHolderShort": <a
251-
href="#"
252-
>
253-
Link
254-
</a>,
255-
"style": Object {
256-
"border": "none",
257-
},
258-
"tag": "a",
259-
},
260-
Object {
261-
"icon": Object {
262-
"$$typeof": Symbol(react.memo),
263-
"compare": null,
264-
"type": Object {
265-
"$$typeof": Symbol(react.forward_ref),
266-
"render": [Function],
267-
},
268-
},
269-
"id": 8,
270-
"name": "Paragraph",
271-
"placeHolderLong": "",
272-
"placeHolderShort": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatu",
273-
"style": Object {},
274-
"tag": "p",
275-
},
276-
Object {
277-
"icon": Object {
278-
"$$typeof": Symbol(react.memo),
279-
"compare": null,
280-
"type": Object {
281-
"$$typeof": Symbol(react.forward_ref),
282-
"render": [Function],
283-
},
284-
},
285-
"id": 9,
286-
"name": "Header 1",
287-
"placeHolderLong": "",
288-
"placeHolderShort": "Header 1",
289-
"style": Object {
290-
"fontSize": "2em",
291-
},
292-
"tag": "h1",
293-
},
294-
Object {
295-
"icon": Object {
296-
"$$typeof": Symbol(react.memo),
297-
"compare": null,
298-
"type": Object {
299-
"$$typeof": Symbol(react.forward_ref),
300-
"render": [Function],
301-
},
302-
},
303-
"id": 10,
304-
"name": "Header 2",
305-
"placeHolderLong": "",
306-
"placeHolderShort": "Header 2",
307-
"style": Object {
308-
"fontSize": "1.5em",
309-
},
310-
"tag": "h2",
311-
},
312-
Object {
313-
"icon": Object {
314-
"$$typeof": Symbol(react.memo),
315-
"compare": null,
316-
"type": Object {
317-
"$$typeof": Symbol(react.forward_ref),
318-
"render": [Function],
319-
},
320-
},
321-
"id": 5,
322-
"name": "Span",
323-
"placeHolderLong": "",
324-
"placeHolderShort": "Span",
325-
"style": Object {
326-
"fontSize": "1.5em",
327-
},
328-
"tag": "span",
329-
},
330-
],
331-
"canvasFocus": Object {
332-
"childId": null,
333-
"componentId": 1,
334-
},
335-
"components": Array [
336-
Object {
337-
"children": Array [],
338-
"code": "<div>Drag in a component or HTML element into the canvas!</div>",
339-
"id": 1,
340-
"isPage": true,
341-
"name": "index",
342-
"style": Object {},
343-
},
344-
],
345-
"isLoggedIn": false,
346-
"name": "",
347-
"nextChildId": 1,
348-
"nextComponentId": 2,
349-
"nextTopSeparatorId": 1000,
350-
"projectType": "Classic React",
351-
"rootComponents": Array [
352-
1,
353-
],
354-
}
355-
}
356-
>
357-
<HTMLPanel />
358-
</ContextProvider>
359-
</ContextProvider>
360-
`;
361-
3623
exports[`Test HTMLPanel Component Matches snapshot 1`] = `
3634
<ContextProvider
3645
value={

0 commit comments

Comments
 (0)