phlex-stimulus 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +16 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +341 -0
  6. data/Rakefile +12 -0
  7. data/lib/generators/phlex/stimulus/controller/USAGE +5 -0
  8. data/lib/generators/phlex/stimulus/controller/controller_generator.rb +49 -0
  9. data/lib/generators/phlex/stimulus/controller/templates/component.rb.erb +30 -0
  10. data/lib/generators/phlex/stimulus/controller/templates/controller.ts.erb +23 -0
  11. data/lib/generators/phlex/stimulus/generator_mixin.rb +21 -0
  12. data/lib/generators/phlex/stimulus/install/USAGE +5 -0
  13. data/lib/generators/phlex/stimulus/install/install_generator.rb +111 -0
  14. data/lib/generators/phlex/stimulus/install/templates/app/components/base.rb.erb +29 -0
  15. data/lib/generators/phlex/stimulus/install/templates/app/components/chain_controller.rb.erb +29 -0
  16. data/lib/generators/phlex/stimulus/install/templates/app/components/classlist_controller.rb.erb +30 -0
  17. data/lib/generators/phlex/stimulus/install/templates/app/components/controller.rb.erb +10 -0
  18. data/lib/generators/phlex/stimulus/install/templates/app/components/controller_chain.rb.erb +32 -0
  19. data/lib/generators/phlex/stimulus/install/templates/app/components/controller_template.rb.erb +24 -0
  20. data/lib/generators/phlex/stimulus/install/templates/app/components/log_controller.rb.erb +33 -0
  21. data/lib/generators/phlex/stimulus/install/templates/app/components/sleep_controller.rb.erb +30 -0
  22. data/lib/generators/phlex/stimulus/install/templates/app/components.rb.erb +7 -0
  23. data/lib/generators/phlex/stimulus/install/templates/app/javascript/application.ts.erb +5 -0
  24. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/application.ts.erb +10 -0
  25. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/chain_controller.ts.erb +32 -0
  26. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/chainable_controller.ts.erb +44 -0
  27. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/classlist_controller.ts.erb +30 -0
  28. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/index.ts.erb +4 -0
  29. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/log_controller.ts.erb +25 -0
  30. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/sleep_controller.ts.erb +19 -0
  31. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/typed_controller.ts.erb +53 -0
  32. data/lib/generators/phlex/stimulus/install/templates/app/javascript/utils/misc.ts.erb +37 -0
  33. data/lib/generators/phlex/stimulus/install/templates/app/javascript/utils/template.ts.erb +11 -0
  34. data/lib/phlex/stimulus/components/base.rb +81 -0
  35. data/lib/phlex/stimulus/components/controller.rb +170 -0
  36. data/lib/phlex/stimulus/components.rb +9 -0
  37. data/lib/phlex/stimulus/version.rb +8 -0
  38. data/lib/phlex/stimulus.rb +15 -0
  39. data/sorbet/config +7 -0
  40. data/sorbet/rbi/annotations/.gitattributes +1 -0
  41. data/sorbet/rbi/annotations/actionmailer.rbi +15 -0
  42. data/sorbet/rbi/annotations/actionpack.rbi +430 -0
  43. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  44. data/sorbet/rbi/annotations/activejob.rbi +50 -0
  45. data/sorbet/rbi/annotations/activemodel.rbi +119 -0
  46. data/sorbet/rbi/annotations/activerecord.rbi +172 -0
  47. data/sorbet/rbi/annotations/activesupport.rbi +561 -0
  48. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  49. data/sorbet/rbi/annotations/minitest.rbi +116 -0
  50. data/sorbet/rbi/annotations/railties.rbi +104 -0
  51. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  52. data/sorbet/rbi/dsl/.gitattributes +1 -0
  53. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  54. data/sorbet/rbi/gems/.gitattributes +1 -0
  55. data/sorbet/rbi/gems/action_text-trix@2.1.19.rbi +9 -0
  56. data/sorbet/rbi/gems/actioncable@8.1.3.rbi +9 -0
  57. data/sorbet/rbi/gems/actionmailbox@8.1.3.rbi +9 -0
  58. data/sorbet/rbi/gems/actionmailer@8.1.3.rbi +9 -0
  59. data/sorbet/rbi/gems/actionpack@8.1.3.rbi +20478 -0
  60. data/sorbet/rbi/gems/actiontext@8.1.3.rbi +9 -0
  61. data/sorbet/rbi/gems/actionview@8.1.3.rbi +14722 -0
  62. data/sorbet/rbi/gems/activejob@8.1.3.rbi +9 -0
  63. data/sorbet/rbi/gems/activemodel@8.1.3.rbi +9 -0
  64. data/sorbet/rbi/gems/activerecord@8.1.3.rbi +9 -0
  65. data/sorbet/rbi/gems/activestorage@8.1.3.rbi +9 -0
  66. data/sorbet/rbi/gems/activesupport@8.1.3.rbi +20153 -0
  67. data/sorbet/rbi/gems/ast@2.4.3.rbi +550 -0
  68. data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
  69. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
  70. data/sorbet/rbi/gems/booleans@0.1.3.rbi +31 -0
  71. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  72. data/sorbet/rbi/gems/byebug@12.0.0.rbi +49 -0
  73. data/sorbet/rbi/gems/concurrent-ruby@1.3.8.rbi +10656 -0
  74. data/sorbet/rbi/gems/connection_pool@3.0.2.rbi +9 -0
  75. data/sorbet/rbi/gems/crass@1.0.7.rbi +648 -0
  76. data/sorbet/rbi/gems/date@3.5.1.rbi +391 -0
  77. data/sorbet/rbi/gems/drb@2.2.3.rbi +9 -0
  78. data/sorbet/rbi/gems/erb@6.0.6.rbi +1600 -0
  79. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  80. data/sorbet/rbi/gems/globalid@1.4.0.rbi +9 -0
  81. data/sorbet/rbi/gems/i18n@1.15.2.rbi +2285 -0
  82. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  83. data/sorbet/rbi/gems/json@2.21.1.rbi +2289 -0
  84. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  85. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  86. data/sorbet/rbi/gems/loofah@2.25.2.rbi +1134 -0
  87. data/sorbet/rbi/gems/mail@2.9.1.rbi +9 -0
  88. data/sorbet/rbi/gems/marcel@1.2.1.rbi +9 -0
  89. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  90. data/sorbet/rbi/gems/minitest@6.0.6.rbi +1482 -0
  91. data/sorbet/rbi/gems/net-imap@0.6.4.1.rbi +9 -0
  92. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
  93. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +244 -0
  94. data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +9 -0
  95. data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
  96. data/sorbet/rbi/gems/nio4r@2.7.5.rbi +9 -0
  97. data/sorbet/rbi/gems/nokogiri@1.19.4.rbi +8168 -0
  98. data/sorbet/rbi/gems/parallel@1.28.0.rbi +270 -0
  99. data/sorbet/rbi/gems/phlex-rails@2.4.0.rbi +1945 -0
  100. data/sorbet/rbi/gems/phlex@2.4.1.rbi +1413 -0
  101. data/sorbet/rbi/gems/pp@0.6.4.rbi +387 -0
  102. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +455 -0
  103. data/sorbet/rbi/gems/prism@1.9.0.rbi +42226 -0
  104. data/sorbet/rbi/gems/racc@1.8.1.rbi +165 -0
  105. data/sorbet/rbi/gems/rack-session@2.1.2.rbi +756 -0
  106. data/sorbet/rbi/gems/rack-test@2.2.0.rbi +681 -0
  107. data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
  108. data/sorbet/rbi/gems/rackup@2.3.1.rbi +9 -0
  109. data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +517 -0
  110. data/sorbet/rbi/gems/rails-html-sanitizer@1.7.1.rbi +620 -0
  111. data/sorbet/rbi/gems/rails@8.1.3.rbi +9 -0
  112. data/sorbet/rbi/gems/railties@8.1.3.rbi +3507 -0
  113. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
  114. data/sorbet/rbi/gems/rake@13.4.2.rbi +3130 -0
  115. data/sorbet/rbi/gems/rbi@0.4.0.rbi +5706 -0
  116. data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
  117. data/sorbet/rbi/gems/refract@1.1.0.rbi +9 -0
  118. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  119. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  120. data/sorbet/rbi/gems/rexml@3.4.4.rbi +4905 -0
  121. data/sorbet/rbi/gems/rubocop-espago@1.3.0.rbi +9 -0
  122. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  123. data/sorbet/rbi/gems/rubydex@0.2.9.rbi +841 -0
  124. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
  125. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +544 -0
  126. data/sorbet/rbi/gems/spoom@1.8.4.rbi +6738 -0
  127. data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3599 -0
  128. data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
  129. data/sorbet/rbi/gems/timeout@0.6.1.rbi +200 -0
  130. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  131. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5474 -0
  132. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  133. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  134. data/sorbet/rbi/gems/uri@1.1.1.rbi +2402 -0
  135. data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
  136. data/sorbet/rbi/gems/websocket-driver@0.8.2.rbi +9 -0
  137. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
  138. data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +9 -0
  139. data/sorbet/rbi/shims/gems/parser.rbi +12 -0
  140. data/sorbet/rbi/shims/gems/rails.rbi +55 -0
  141. data/sorbet/rbi/shims/gems/refract.rbi +13 -0
  142. data/sorbet/rbi/shims/gems/shoulda-context.rbi +16 -0
  143. data/sorbet/tapioca/compilers/phlex_controller.rb +80 -0
  144. data/sorbet/tapioca/config.yml +26 -0
  145. data/sorbet/tapioca/extensions/load_gem.rb +1 -0
  146. data/sorbet/tapioca/require.rb +4 -0
  147. metadata +266 -0
@@ -0,0 +1,130 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `unicode-display_width` gem.
5
+ # Please instead update this file by running `bin/tapioca gem unicode-display_width`.
6
+
7
+
8
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/constants.rb:3
9
+ module Unicode; end
10
+
11
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/constants.rb:4
12
+ class Unicode::DisplayWidth
13
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:229
14
+ def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
15
+
16
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:235
17
+ def get_config(**kwargs); end
18
+
19
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:243
20
+ def of(string, **kwargs); end
21
+
22
+ class << self
23
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/index.rb:14
24
+ def decompress_index(index, level); end
25
+
26
+ # Returns width of all considered Emoji and remaining string
27
+ #
28
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:143
29
+ def emoji_width(string, mode = T.unsafe(nil), ambiguous = T.unsafe(nil)); end
30
+
31
+ # Match possible Emoji first, then refine
32
+ #
33
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:173
34
+ def emoji_width_via_possible(string, emoji_set_regex, strict_eaw = T.unsafe(nil), ambiguous = T.unsafe(nil)); end
35
+
36
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:201
37
+ def normalize_options(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end
38
+
39
+ # Returns monospace display width of string
40
+ #
41
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:51
42
+ def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end
43
+
44
+ # Returns width for ASCII-only strings. Will consider zero-width control symbols.
45
+ #
46
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:133
47
+ def width_ascii(string); end
48
+
49
+ # Returns width of custom overwrites and remaining string
50
+ #
51
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:117
52
+ def width_custom(string, overwrite); end
53
+ end
54
+ end
55
+
56
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:16
57
+ Unicode::DisplayWidth::AMBIGUOUS_MAP = T.let(T.unsafe(nil), Hash)
58
+
59
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:15
60
+ Unicode::DisplayWidth::ASCII_BACKSPACE = T.let(T.unsafe(nil), String)
61
+
62
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:13
63
+ Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
64
+
65
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:14
66
+ Unicode::DisplayWidth::ASCII_NON_ZERO_STRING = T.let(T.unsafe(nil), String)
67
+
68
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/constants.rb:7
69
+ Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
70
+
71
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:11
72
+ Unicode::DisplayWidth::DEFAULT_AMBIGUOUS = T.let(T.unsafe(nil), Integer)
73
+
74
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:32
75
+ Unicode::DisplayWidth::EMOJI_SEQUENCES_REGEX_MAPPING = T.let(T.unsafe(nil), Hash)
76
+
77
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/emoji_support.rb:5
78
+ module Unicode::DisplayWidth::EmojiSupport
79
+ class << self
80
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/emoji_support.rb:18
81
+ def _recommended; end
82
+
83
+ # Tries to find out which terminal emulator is used to
84
+ # set emoji: config to best suiting value
85
+ #
86
+ # Please also see section in README.md and
87
+ # misc/terminal-emoji-width.rb
88
+ #
89
+ # Please note: Many terminals do not set any ENV vars,
90
+ # maybe CSI queries can help?
91
+ #
92
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/emoji_support.rb:14
93
+ def recommended; end
94
+ end
95
+ end
96
+
97
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:28
98
+ Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Hash)
99
+
100
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:20
101
+ Unicode::DisplayWidth::FIRST_AMBIGUOUS = T.let(T.unsafe(nil), Hash)
102
+
103
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/index.rb:11
104
+ Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Hash)
105
+
106
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/constants.rb:8
107
+ Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
108
+
109
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:12
110
+ Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
111
+
112
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:24
113
+ Unicode::DisplayWidth::NOT_COMMON_NARROW_REGEX = T.let(T.unsafe(nil), Hash)
114
+
115
+ # ebase = Unicode::Emoji::REGEX_PROP_MODIFIER_BASE.source
116
+ #
117
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:47
118
+ Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES = T.let(T.unsafe(nil), Regexp)
119
+
120
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:48
121
+ Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES_AND_VS16 = T.let(T.unsafe(nil), Regexp)
122
+
123
+ # pkg:gem/unicode-display_width#lib/unicode/display_width.rb:37
124
+ Unicode::DisplayWidth::REGEX_EMOJI_VS16 = T.let(T.unsafe(nil), Regexp)
125
+
126
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/constants.rb:6
127
+ Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
128
+
129
+ # pkg:gem/unicode-display_width#lib/unicode/display_width/constants.rb:5
130
+ Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,332 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `unicode-emoji` gem.
5
+ # Please instead update this file by running `bin/tapioca gem unicode-emoji`.
6
+
7
+
8
+ # This file was generated by a script, please do not edit it by hand.
9
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
10
+ # This file was generated by a script, please do not edit it by hand.
11
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
12
+ # This file was generated by a script, please do not edit it by hand.
13
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
14
+ # This file was generated by a script, please do not edit it by hand.
15
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
16
+ # This file was generated by a script, please do not edit it by hand.
17
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
18
+ # This file was generated by a script, please do not edit it by hand.
19
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
20
+ # This file was generated by a script, please do not edit it by hand.
21
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
22
+ # This file was generated by a script, please do not edit it by hand.
23
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
24
+ # This file was generated by a script, please do not edit it by hand.
25
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
26
+ # This file was generated by a script, please do not edit it by hand.
27
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
28
+ # This file was generated by a script, please do not edit it by hand.
29
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
30
+ # This file was generated by a script, please do not edit it by hand.
31
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
32
+ # This file was generated by a script, please do not edit it by hand.
33
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
34
+ # This file was generated by a script, please do not edit it by hand.
35
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
36
+ # This file was generated by a script, please do not edit it by hand.
37
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
38
+ # This file was generated by a script, please do not edit it by hand.
39
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
40
+ # This file was generated by a script, please do not edit it by hand.
41
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
42
+ # This file was generated by a script, please do not edit it by hand.
43
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
44
+ # This file was generated by a script, please do not edit it by hand.
45
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
46
+ # This file was generated by a script, please do not edit it by hand.
47
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
48
+ # This file was generated by a script, please do not edit it by hand.
49
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
50
+ # This file was generated by a script, please do not edit it by hand.
51
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
52
+ # This file was generated by a script, please do not edit it by hand.
53
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
54
+ # This file was generated by a script, please do not edit it by hand.
55
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
56
+ # This file was generated by a script, please do not edit it by hand.
57
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
58
+ # This file was generated by a script, please do not edit it by hand.
59
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
60
+ # This file was generated by a script, please do not edit it by hand.
61
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
62
+ # This file was generated by a script, please do not edit it by hand.
63
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
64
+ # This file was generated by a script, please do not edit it by hand.
65
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
66
+ # This file was generated by a script, please do not edit it by hand.
67
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
68
+ # This file was generated by a script, please do not edit it by hand.
69
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
70
+ # This file was generated by a script, please do not edit it by hand.
71
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
72
+ # This file was generated by a script, please do not edit it by hand.
73
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
74
+ # This file was generated by a script, please do not edit it by hand.
75
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
76
+ # This file was generated by a script, please do not edit it by hand.
77
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
78
+ # This file was generated by a script, please do not edit it by hand.
79
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
80
+ # This file was generated by a script, please do not edit it by hand.
81
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
82
+ # This file was generated by a script, please do not edit it by hand.
83
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
84
+ # This file was generated by a script, please do not edit it by hand.
85
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
86
+ # This file was generated by a script, please do not edit it by hand.
87
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
88
+ #
89
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:3
90
+ module Unicode; end
91
+
92
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:4
93
+ module Unicode::Emoji
94
+ class << self
95
+ # Returns ordered list of Emoji, categorized in a three-level deep Hash structure
96
+ #
97
+ # pkg:gem/unicode-emoji#lib/unicode/emoji.rb:80
98
+ def list(key = T.unsafe(nil), sub_key = T.unsafe(nil)); end
99
+
100
+ # Return Emoji properties of character as an Array or nil
101
+ # See PROPERTY_NAMES constant for possible properties
102
+ #
103
+ # Source: see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
104
+ #
105
+ # pkg:gem/unicode-emoji#lib/unicode/emoji.rb:68
106
+ def properties(char); end
107
+
108
+ private
109
+
110
+ # pkg:gem/unicode-emoji#lib/unicode/emoji.rb:88
111
+ def get_codepoint_value(char); end
112
+ end
113
+ end
114
+
115
+ # Last codepoint of tag-based subdivision flags
116
+ #
117
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:32
118
+ Unicode::Emoji::CANCEL_TAG = T.let(T.unsafe(nil), Integer)
119
+
120
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:8
121
+ Unicode::Emoji::CLDR_VERSION = T.let(T.unsafe(nil), String)
122
+
123
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:9
124
+ Unicode::Emoji::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
125
+
126
+ # The current list of codepoints with the "Emoji" property
127
+ # Same characters as \p{Emoji}
128
+ # (Emoji version of this gem might be more recent than Ruby's Emoji version)
129
+ #
130
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:8
131
+ Unicode::Emoji::EMOJI_CHAR = T.let(T.unsafe(nil), Array)
132
+
133
+ # The current list of codepoints with the "Emoji_Component" property
134
+ # Same characters as \p{Emoji Component} or \p{EComp}
135
+ # (Emoji version of this gem might be more recent than Ruby's Emoji version)
136
+ #
137
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:21
138
+ Unicode::Emoji::EMOJI_COMPONENT = T.let(T.unsafe(nil), Array)
139
+
140
+ # The list of characters that can be used as base for keycap sequences
141
+ #
142
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:42
143
+ Unicode::Emoji::EMOJI_KEYCAPS = T.let(T.unsafe(nil), Array)
144
+
145
+ # Combining Enclosing Keycap character
146
+ #
147
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:38
148
+ Unicode::Emoji::EMOJI_KEYCAP_SUFFIX = T.let(T.unsafe(nil), Integer)
149
+
150
+ # The current list of codepoints with the "Emoji_Modifier" property
151
+ # Same characters as \p{Emoji Modifier} or \p{EMod}
152
+ # (Emoji version of this gem might be more recent than Ruby's Emoji version)
153
+ #
154
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:31
155
+ Unicode::Emoji::EMOJI_MODIFIERS = T.let(T.unsafe(nil), Array)
156
+
157
+ # The current list of codepoints with the "Emoji_Modifier_Base" property
158
+ # Same characters as \p{Emoji Modifier Base} or \p{EBase}
159
+ # (Emoji version of this gem might be more recent than Ruby's Emoji version)
160
+ #
161
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:26
162
+ Unicode::Emoji::EMOJI_MODIFIER_BASES = T.let(T.unsafe(nil), Array)
163
+
164
+ # The current list of codepoints with the "Emoji_Presentation" property
165
+ # Same characters as \p{Emoji Presentation} or \p{EPres}
166
+ # (Emoji version of this gem might be more recent than Ruby's Emoji version)
167
+ #
168
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:13
169
+ Unicode::Emoji::EMOJI_PRESENTATION = T.let(T.unsafe(nil), Array)
170
+
171
+ # First codepoint of tag-based subdivision flags
172
+ #
173
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:29
174
+ Unicode::Emoji::EMOJI_TAG_BASE_FLAG = T.let(T.unsafe(nil), Integer)
175
+
176
+ # Variation Selector 16 (VS16), enables emoji presentation mode for preceding codepoint
177
+ #
178
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:23
179
+ Unicode::Emoji::EMOJI_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer)
180
+
181
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:6
182
+ Unicode::Emoji::EMOJI_VERSION = T.let(T.unsafe(nil), String)
183
+
184
+ # The current list of codepoints with the "Extended_Pictographic" property
185
+ # Same characters as \p{Extended Pictographic} or \p{ExtPict}
186
+ # (Emoji version of this gem might be more recent than Ruby's Emoji version)
187
+ #
188
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:36
189
+ Unicode::Emoji::EXTENDED_PICTOGRAPHIC = T.let(T.unsafe(nil), Array)
190
+
191
+ # The current list of codepoints with the "Extended_Pictographic" property that don't have the "Emoji" property
192
+ #
193
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:39
194
+ Unicode::Emoji::EXTENDED_PICTOGRAPHIC_NO_EMOJI = T.let(T.unsafe(nil), Array)
195
+
196
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/index.rb:11
197
+ Unicode::Emoji::INDEX = T.let(T.unsafe(nil), Hash)
198
+
199
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:10
200
+ Unicode::Emoji::INDEX_FILENAME = T.let(T.unsafe(nil), String)
201
+
202
+ # Contains an ordered and group list of all currently recommended Emoji (RGI/FQE)
203
+ #
204
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/list.rb:6
205
+ Unicode::Emoji::LIST = T.let(T.unsafe(nil), Hash)
206
+
207
+ # Sometimes, categories change, we issue a warning in these cases
208
+ #
209
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/list.rb:9
210
+ Unicode::Emoji::LIST_REMOVED_KEYS = T.let(T.unsafe(nil), Array)
211
+
212
+ # Unicode properties, see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
213
+ #
214
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:13
215
+ Unicode::Emoji::PROPERTY_NAMES = T.let(T.unsafe(nil), Hash)
216
+
217
+ # The list RGI tag sequence flags
218
+ #
219
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:51
220
+ Unicode::Emoji::RECOMMENDED_SUBDIVISION_FLAGS = T.let(T.unsafe(nil), Array)
221
+
222
+ # The list of fully-qualified RGI Emoji ZWJ sequences
223
+ #
224
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:54
225
+ Unicode::Emoji::RECOMMENDED_ZWJ_SEQUENCES = T.let(T.unsafe(nil), Array)
226
+
227
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex.rb:6
228
+ Unicode::Emoji::REGEX = T.let(T.unsafe(nil), Regexp)
229
+
230
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_basic.rb:6
231
+ Unicode::Emoji::REGEX_BASIC = T.let(T.unsafe(nil), Regexp)
232
+
233
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_emoji_keycap.rb:6
234
+ Unicode::Emoji::REGEX_EMOJI_KEYCAP = T.let(T.unsafe(nil), Regexp)
235
+
236
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_include_mqe.rb:6
237
+ Unicode::Emoji::REGEX_INCLUDE_MQE = T.let(T.unsafe(nil), Regexp)
238
+
239
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_include_mqe_uqe.rb:6
240
+ Unicode::Emoji::REGEX_INCLUDE_MQE_UQE = T.let(T.unsafe(nil), Regexp)
241
+
242
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_include_text.rb:6
243
+ Unicode::Emoji::REGEX_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
244
+
245
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_picto.rb:6
246
+ Unicode::Emoji::REGEX_PICTO = T.let(T.unsafe(nil), Regexp)
247
+
248
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_picto_no_emoji.rb:6
249
+ Unicode::Emoji::REGEX_PICTO_NO_EMOJI = T.let(T.unsafe(nil), Regexp)
250
+
251
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_possible.rb:6
252
+ Unicode::Emoji::REGEX_POSSIBLE = T.let(T.unsafe(nil), Regexp)
253
+
254
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_prop_component.rb:6
255
+ Unicode::Emoji::REGEX_PROP_COMPONENT = T.let(T.unsafe(nil), Regexp)
256
+
257
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_prop_emoji.rb:6
258
+ Unicode::Emoji::REGEX_PROP_EMOJI = T.let(T.unsafe(nil), Regexp)
259
+
260
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_prop_modifier.rb:6
261
+ Unicode::Emoji::REGEX_PROP_MODIFIER = T.let(T.unsafe(nil), Regexp)
262
+
263
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_prop_modifier_base.rb:6
264
+ Unicode::Emoji::REGEX_PROP_MODIFIER_BASE = T.let(T.unsafe(nil), Regexp)
265
+
266
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_prop_presentation.rb:6
267
+ Unicode::Emoji::REGEX_PROP_PRESENTATION = T.let(T.unsafe(nil), Regexp)
268
+
269
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_text.rb:6
270
+ Unicode::Emoji::REGEX_TEXT = T.let(T.unsafe(nil), Regexp)
271
+
272
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_text_presentation.rb:6
273
+ Unicode::Emoji::REGEX_TEXT_PRESENTATION = T.let(T.unsafe(nil), Regexp)
274
+
275
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_valid.rb:6
276
+ Unicode::Emoji::REGEX_VALID = T.let(T.unsafe(nil), Regexp)
277
+
278
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_valid_include_text.rb:6
279
+ Unicode::Emoji::REGEX_VALID_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
280
+
281
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_well_formed.rb:6
282
+ Unicode::Emoji::REGEX_WELL_FORMED = T.let(T.unsafe(nil), Regexp)
283
+
284
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/generated_native/regex_well_formed_include_text.rb:6
285
+ Unicode::Emoji::REGEX_WELL_FORMED_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
286
+
287
+ # Two regional indicators make up a region
288
+ #
289
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:44
290
+ Unicode::Emoji::REGIONAL_INDICATORS = T.let(T.unsafe(nil), Array)
291
+
292
+ # Tags characters allowed in tag-based subdivision flags
293
+ #
294
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:35
295
+ Unicode::Emoji::SPEC_TAGS = T.let(T.unsafe(nil), Array)
296
+
297
+ # The current list of codepoints with the "Emoji" property that lack the "Emoji Presentation" property
298
+ #
299
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:16
300
+ Unicode::Emoji::TEXT_PRESENTATION = T.let(T.unsafe(nil), Array)
301
+
302
+ # Variation Selector 15 (VS15), enables text presentation mode for preceding codepoint
303
+ #
304
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:26
305
+ Unicode::Emoji::TEXT_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer)
306
+
307
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:7
308
+ Unicode::Emoji::UNICODE_VERSION = T.let(T.unsafe(nil), String)
309
+
310
+ # The list of valid regions
311
+ #
312
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:45
313
+ Unicode::Emoji::VALID_REGION_FLAGS = T.let(T.unsafe(nil), Array)
314
+
315
+ # The list of valid subdivisions in regex character class syntax
316
+ #
317
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/lazy_constants.rb:48
318
+ Unicode::Emoji::VALID_SUBDIVISIONS = T.let(T.unsafe(nil), Array)
319
+
320
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:5
321
+ Unicode::Emoji::VERSION = T.let(T.unsafe(nil), String)
322
+
323
+ # The current list of Emoji components that should have a visual representation
324
+ # Currently skin tone modifiers + hair components
325
+ #
326
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:48
327
+ Unicode::Emoji::VISUAL_COMPONENT = T.let(T.unsafe(nil), Array)
328
+
329
+ # Zero-width-joiner to enable combination of multiple Emoji in a sequence
330
+ #
331
+ # pkg:gem/unicode-emoji#lib/unicode/emoji/constants.rb:41
332
+ Unicode::Emoji::ZWJ = T.let(T.unsafe(nil), Integer)