diff --git a/CHANGELOG.md b/CHANGELOG.md index f65e40d..6337fb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog +## Version 0.3.4 (2016-10-19) + +* Fix strong-mode type errors (#15). +* Remove Shadow DOM example and (dev)dependency on Polymer (was causing some confusion). + + ## Version 0.3.3 (2016-09-22) * Allow a configurable clickSuppression distance (#13). We found that the click diff --git a/example/index.html b/example/index.html index cee3058..1c81802 100644 --- a/example/index.html +++ b/example/index.html @@ -28,7 +28,6 @@

Dart Drag and Drop Examples

  • Nested Dropzone
  • Nested Elements
  • Sortable
  • -
  • Shadow DOM
  • diff --git a/example/shadow-dom/pubspec.yaml b/example/shadow-dom/pubspec.yaml deleted file mode 100644 index 2a30416..0000000 --- a/example/shadow-dom/pubspec.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: dnd_example_shadow_dom -version: 0.0.0 -author: Marco Jakob -description: 'Dart Drag and Drop Example' -homepage: http://code.makery.ch/library/dart-drag-and-drop/ -dependencies: - browser: any - polymer: '>=0.15.1 <0.16.0' - dnd: - path: ../../ -transformers: -- polymer: - entry_points: web/index.html diff --git a/example/shadow-dom/web/example.css b/example/shadow-dom/web/example.css deleted file mode 100644 index 8bbed37..0000000 --- a/example/shadow-dom/web/example.css +++ /dev/null @@ -1,58 +0,0 @@ -html, body { - height: 100%; -} - -body { - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 1.428571429; - color: #333; - background-color: #fff; - margin: 0; - height: 200px; -} - -.container { - max-width: 500px; - padding: 15px 15px 0 15px; -} - -body /deep/ .draggable, -body /deep/ .dropzone { - margin-top: 15px; - margin-bottom: 15px; - padding-top: 1px; - width: 280px; - height: 50px; - border-radius: 8px; -} - -body /deep/ .draggable { - background: #cddc39; - cursor: url(../../packages/dnd/cursor/openhand.cur), move; /* Cursor for IE. */ - cursor: url(../../packages/dnd/cursor/openhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */ -} - -body /deep/ .dropzone { - background-color: #ffc107; - cursor: default; -} - -body /deep/ .draggable p, -body /deep/ .dropzone p { - text-align: center; - font-weight: bold; -} - -body /deep/ .dnd-draggable, body /deep/ .dnd-drag-occurring { - cursor: url(../../packages/dnd/cursor/closedhand.cur), move; /* Cursor for IE. */ - cursor: url(../../packages/dnd/cursor/closedhand.cur) 7 5, move; /* Cursor for FF and Chrome (setting midpoint). */ -} - -body /deep/ .dnd-dragging { - opacity: 0.7; -} - -body /deep/ .dnd-over { - background-color: #ff5722; -} \ No newline at end of file diff --git a/example/shadow-dom/web/example.dart b/example/shadow-dom/web/example.dart deleted file mode 100644 index 48b783e..0000000 --- a/example/shadow-dom/web/example.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'dart:html'; -import 'package:polymer/polymer.dart'; - -import 'package:dnd/dnd.dart'; - -/// Example how to use drag and drop in Shadow DOM with Polymer. -/// -/// Important: You must add the "dnd-retarget" attribute on all custom elements -/// where you want events to be forwarded to it's Shadow DOM children. -main() { - // Initialize polymer. - initPolymer().run(() { - - // Install draggable. - Draggable draggable = new Draggable( - querySelectorAll('body /deep/ .draggable'), - avatarHandler: new AvatarHandler.clone()); - - // Install dropzone. - Dropzone dropzone = new Dropzone( - querySelectorAll('body /deep/ .dropzone')); - }); -} \ No newline at end of file diff --git a/example/shadow-dom/web/index.html b/example/shadow-dom/web/index.html deleted file mode 100644 index 38606d7..0000000 --- a/example/shadow-dom/web/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - -Dart Drag and Drop: Shadow DOM Example - - - - - - - -
    - Example Source on GitHub - -
    -

    Draggable

    -
    - -
    -

    Dropzone

    -
    - - - - - -
    - - diff --git a/example/shadow-dom/web/inner_container.html b/example/shadow-dom/web/inner_container.html deleted file mode 100644 index 9d3871c..0000000 --- a/example/shadow-dom/web/inner_container.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file diff --git a/example/shadow-dom/web/outer_container.html b/example/shadow-dom/web/outer_container.html deleted file mode 100644 index e6af904..0000000 --- a/example/shadow-dom/web/outer_container.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 8c4de80..f4d3a51 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,10 +1,10 @@ name: dnd -version: 0.3.3 +version: 0.3.4 author: Marco Jakob description: Drag and Drop for Dart web apps with mouse and touch support. homepage: http://code.makery.ch/library/dart-drag-and-drop/ documentation: http://www.dartdocs.org/documentation/dnd/latest/ +environment: + sdk: '>=1.0.0 <2.0.0' dependencies: - browser: '>=0.10.0+2 <0.11.0' -dev_dependencies: - polymer: '>=0.15.1 <0.16.0' + browser: '>=0.10.0 <0.11.0' diff --git a/tool/drone_io.sh b/tool/drone_io.sh index 9f6ecce..471b19c 100755 --- a/tool/drone_io.sh +++ b/tool/drone_io.sh @@ -12,14 +12,6 @@ github_repo='git@github.com:marcojakob/dart-dnd.git' pub install pub build ${build_folder} -# Build the shadow dom example separately because it has a transformer. -cd example/shadow-dom -pub build -cd ../.. -rm -rf build/example/shadow-dom/* -mv example/shadow-dom/build/* build/example/shadow-dom/ - - # ----------------------------------- # Configure git in build subfolder # -----------------------------------