Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor! #58

Closed
wants to merge 108 commits into from
Closed
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
8cd5b02
fix more edge cases when selecting text
tim-evans Mar 3, 2018
baf98c8
allow closures to be called directly from events
tim-evans Mar 4, 2018
b12393d
simplify text selection code and make it work with more edge cases
tim-evans Mar 4, 2018
b0eac84
add a more complicated document to test text selection better
tim-evans Mar 4, 2018
a1346d8
move text input management into its own component
tim-evans Mar 4, 2018
3bd81bb
Handle composition events.
Apr 4, 2018
4687554
Assign detail correctly when dispatching custom events
Apr 4, 2018
c3db515
Handle bold/italic format input events.
Apr 4, 2018
5206af5
factor out reset-text-nodes for reuse
Apr 4, 2018
9cd9b7b
add setSelection method to enable resetting of the selection when we …
Apr 4, 2018
245e17e
handle the insertion / deletion of text and insertion of annotations …
Apr 4, 2018
d80e793
Add pre-wrap styling to editor to preserve whitespace.
Apr 4, 2018
9d1b9ce
Add some debugging and start on WIP for paragraph handling.
Apr 17, 2018
01623d9
fix more edge cases when selecting text
tim-evans Mar 3, 2018
2b9cb88
allow closures to be called directly from events
tim-evans Mar 4, 2018
499124b
simplify text selection code and make it work with more edge cases
tim-evans Mar 4, 2018
7d38eaa
add a more complicated document to test text selection better
tim-evans Mar 4, 2018
fc64db4
move text input management into its own component
tim-evans Mar 4, 2018
ded75d0
Handle composition events.
Apr 4, 2018
0257ad1
Assign detail correctly when dispatching custom events
Apr 4, 2018
8f37128
Handle bold/italic format input events.
Apr 4, 2018
ff60b69
factor out reset-text-nodes for reuse
Apr 4, 2018
b19e112
add setSelection method to enable resetting of the selection when we …
Apr 4, 2018
098129c
handle the insertion / deletion of text and insertion of annotations …
Apr 4, 2018
9730aaf
Add pre-wrap styling to editor to preserve whitespace.
Apr 4, 2018
1c2c691
Add some debugging and start on WIP for paragraph handling.
Apr 17, 2018
26a6e7f
Merge branch 'editor' of github.com:CondeNast-Copilot/atjson into editor
Apr 18, 2018
4060fb7
Fixes for basic demo
Apr 20, 2018
4703529
wip rebase
May 5, 2018
c174e63
Merge branch 'latest' into editor
Jun 6, 2018
96f222a
broken wip
Jun 7, 2018
b17cce8
add very primitive change event to document
Jun 9, 2018
f33a066
Refactor so that standalone editor is a standalone component and demo…
Jun 9, 2018
99e6232
handle inversion / overlaps of inline singleton annotations
Jun 9, 2018
66500a2
Move Webcomponent Renderer to separate directory
Jun 21, 2018
1e37da4
Move demo and inspector to separate directory
Jun 21, 2018
2ed71a5
Remove (currently unsupported) second paragraph from demo
Jun 21, 2018
1b7a936
Automatically descend to shadowRoot. Not sure if this is a good idea.
Jun 21, 2018
5728e94
update and pin parcel-bundler; 1.9.x seems broken
Jun 21, 2018
efe16bd
include web component base as a mixin
Jun 21, 2018
dc03b11
add support (and make explicit non-support) for various other input e…
Jun 21, 2018
3e1182e
add toolbar that maps to selections
Jun 21, 2018
f51169f
handle the dom being a bit pants
Jun 21, 2018
54fb7a4
bugfixes; need more investigation
Jun 21, 2018
7694679
add caret focus events in order to activate web components that exist…
Jun 21, 2018
7873681
add event to track annotation changes
Jun 21, 2018
6a7c8a4
add link annotation to default demo doc
Jun 21, 2018
a6ce2be
add commonmark renderer dep
Jun 21, 2018
0014b05
Fix change tracking for documents
Jun 21, 2018
3a6c6eb
add support for passing ids into hir/json nodes in order to have anno…
Jun 21, 2018
1d66e2c
set commonmark renderer version
Jun 27, 2018
533f684
Refactor editable components for less boilerplate.
Jun 27, 2018
1226b64
tweak logo
Jun 27, 2018
4b56a7f
move logo to components
Jun 27, 2018
36eab12
a few visual tweaks
Jul 11, 2018
12e46c3
Merge branch 'latest' into editor
Jul 11, 2018
fcbdd6b
Don't redeclare loop variable. Oops.
blaine Jul 13, 2018
9c3186e
Add a touch of documentation
blaine Jul 13, 2018
00186cd
Miscellaneous cleanup (debugging, indentation, etc)
blaine Jul 13, 2018
069d576
Delete unused webcomponent renderer, pending proper extraction from e…
blaine Jul 13, 2018
9f1c406
Remove unused code
blaine Jul 13, 2018
2512639
Fix paragraph insertion.
blaine Jul 13, 2018
1ed8c1e
Cleanup
blaine Jul 16, 2018
451e5b9
tslint cleanups
blaine Jul 17, 2018
ee6529d
Big reorg; move everything out of src except core bits, move webcompo…
blaine Jul 17, 2018
c6980d3
Incr parcel version
blaine Jul 18, 2018
10459fa
Update method for importing web components, s/text-editor/offset-editor/
blaine Jul 18, 2018
2ff7de7
renderer-webcomponent: Address TypeScript compiler warnings.
foobarrio Jul 18, 2018
be85c78
Components!!!
blaine Jul 18, 2018
14a3f66
Contextual Heading Button (prototype for button interactions)
blaine Jul 19, 2018
52ba1dc
Fix positioning of toolbar
blaine Jul 20, 2018
0b18348
Reduce agressiveness / debounce toolbar and cursor focus events
blaine Jul 20, 2018
871f070
Remove debug logging
blaine Jul 20, 2018
b138162
Actually fix toolbar positioning
blaine Jul 20, 2018
0b1cc4e
Convert removed headings to paragraphs.
blaine Jul 20, 2018
5693613
👩‍⚕️🐛 Switch to bubbling, don't observe event directly (allows for ev…
Jul 23, 2018
e61ac0c
refactor: move inspector to separate package
Jul 30, 2018
abf0376
move core web components to separate package
Jul 30, 2018
0f02fee
always build tsc package
Jul 30, 2018
2f44f4d
Add jenkinsfile
blaine Aug 3, 2018
3992067
Always build
blaine Aug 3, 2018
9d0ebdc
block transform tweaks
Aug 3, 2018
fa83a1e
Merge branch 'latest' into editor
blaine Aug 3, 2018
903f2a3
Fix package.json merge typo
blaine Aug 3, 2018
e118172
always build
Aug 3, 2018
4092c95
ugh, fix package.json hell
Aug 3, 2018
cb6c29b
Add index.js for Departures (run offset inspector)
Aug 3, 2018
61151a9
re-add parcel-bundler to offset-inspector
Aug 3, 2018
d4e5b37
Adjust build scripts so that lerna build will always succeed, even wi…
Aug 6, 2018
498f61d
make build work for departures, hopefully
Aug 6, 2018
3e2b562
move parcel to full dep because departures strips dev deps
Aug 6, 2018
2f657bb
Ugh, do not want to add this here, but might be necessary for departu…
Aug 6, 2018
9235cc9
Try without hoisting?
Aug 6, 2018
44b0de7
debugging
Aug 6, 2018
c07ae74
giving up. switching to a local server. shrug.
Aug 6, 2018
c10ef64
Fix ts issues
Aug 6, 2018
543a0f4
cleanup tsc errors
Aug 6, 2018
82e470c
more tsc cleanup
Aug 6, 2018
fc7689d
Update to latest @atjson/document in renderer-commonmark and renderer…
foobarrio Aug 7, 2018
d60ccf2
offset-core-components: Override shadowRoot to not allow null.
foobarrio Aug 7, 2018
9ca5c5d
Don't bump @atjson/document version (Lerna will handle it).
foobarrio Aug 7, 2018
31ab164
Extend root tsconfig.json and use tsconfig when invoking tslint.
foobarrio Aug 7, 2018
189d37d
Alphabetize tsconfig.json entries.
foobarrio Aug 7, 2018
deb5a88
offset-core-components: Revert acccessing of compiledTemplate.
foobarrio Aug 8, 2018
dece44d
Move events to named functions
Aug 31, 2018
b4bf287
Tweaks to improve dramatically improve performance of inspector.
Sep 4, 2018
d22c5f7
tiny cleanup
Sep 4, 2018
2bdabc9
🛀 Add non-emitting tsconfig.json to editor/test. (#79)
foobarrio Sep 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,7 @@
CnNodeBuild(project: "atjson",
nodeVersion: "nsolid-2.3.4-boron",
npmVersion: "3") {
sh "npm install"
sh "./node_modules/.bin/lerna bootstrap --hoist"
sh "./node_modules/.bin/lerna run build --parallel"
}
8 changes: 8 additions & 0 deletions index.js
@@ -0,0 +1,8 @@
#!/usr/bin/env node

const { execSync } = require('child_process');

//process.chdir("./packages/@atjson/offset-inspector/");
execSync("./node_modules/.bin/parcel public/index.html", {
cwd: './packages/@atjson/offset-inspector/'
});