tiptap-ruby 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee6a6b20a8496bb8fe99b58d394b71f35a539e35a798ffbfba3c83febc30884b
4
- data.tar.gz: 4d30fb76f8dfa76478816db99efc6d058c0a4ecedca5a23d180ccb01989d392a
3
+ metadata.gz: 93d68f02438c4ba6923219a2f95d4f9fcc467004ce1cb707566b4c722ea59b95
4
+ data.tar.gz: a396fcf21122fddd2d8715b6377de9434ee0e7a65db219d0f902628cfbd363c5
5
5
  SHA512:
6
- metadata.gz: c6ad08309ba3ebf0c7260c5fed3a687aa20cab20bd2e4d11e74966936992f8dce70e4f6a82ec58d88ab8968a7b9774014e43f8ad8918c91e9973cb13114101d2
7
- data.tar.gz: 3e87106f44a98e03cc4a58db85e62fb1b1be9a99293fadc8bd617a9593f3e47e6f96404164bd98aa28b8787791e91d728e203d0b17703a9dc65450cd02f1dd1e
6
+ metadata.gz: 19eeba23f4e4ba545c11ce11e596c41075088e40a84333fc25662fe37db2352aa5db72c1ea6c8a316fe6af6928c185299bd778c7e2571773850ac30a0553d4be
7
+ data.tar.gz: 45969d42781b4349bd686e3350be83ffacb2c109b9d798994cd9a5fae62e61e920102b81f340bb02394242c6c8e788ebc04dc508ea533a7ca50824725d790ad1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.9.9] - 2024-09-19
4
+
5
+ - Added ordered_list to Document
6
+ - Preserve whitespace on Text nodes
7
+
3
8
  ## [0.9.8] - 2024-09-10
4
9
 
5
10
  - Table support (Table, TableRow, TableCell, TableHeader)
@@ -32,6 +32,12 @@ module TipTap
32
32
  add_content(Nodes::BulletList.new(&block))
33
33
  end
34
34
 
35
+ def ordered_list(&block)
36
+ raise ArgumentError, "Block required" if block.nil?
37
+
38
+ add_content(Nodes::OrderedList.new(&block))
39
+ end
40
+
35
41
  def image(src:)
36
42
  add_content(Nodes::Image.new(src: src))
37
43
  end
@@ -22,7 +22,7 @@ module TipTap
22
22
  end
23
23
 
24
24
  def to_h
25
- data = {type: type_name, text: text.presence || ""}
25
+ data = {type: type_name, text: text || ""}
26
26
  data[:marks] = marks.map(&:deep_symbolize_keys) unless marks.empty?
27
27
  data
28
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TipTap
4
- VERSION = "0.9.8"
4
+ VERSION = "0.9.9"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiptap-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Wilken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.4.6
102
+ rubygems_version: 3.5.16
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Parse, generate and render TipTap documents in Ruby.