bh 6.2.0 → 6.4.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.
data/lib/bh/message.rb CHANGED
@@ -1,11 +1,14 @@
1
1
  module Bh
2
2
  # One message of a chat, as `chat_with` draws it: which `side` its bubble is on (`:left`
3
- # for the other party, `:right` for the reader), its `text`, who the `sender` was, when it
4
- # was said (`at`), how its `delivery` went (`:delivered`, `:sent`, `:failed`,
5
- # `:undelivered` or nil) and what it `cost` in dollars, where anything did. Any object
6
- # answering the same six is a message too; this is for a host that has the facts and no
7
- # model to hang them on. A message with no text yet is drawn as being typed.
8
- Message = Data.define :side, :text, :sender, :at, :delivery, :cost do
9
- def initialize(side:, text: nil, sender: nil, at: nil, delivery: nil, cost: nil) = super
3
+ # for the other party, `:right` for the reader), its `text`, the `photos` it carries as
4
+ # a list of addresses, who the `sender` was, when it was said (`at`), how its `delivery`
5
+ # went (`:delivered`, `:sent`, `:failed`, `:undelivered` or nil) and what it `cost` in
6
+ # dollars, where anything did. Any object answering the same seven is a message too;
7
+ # this is for a host that has the facts and no model to hang them on. A message with
8
+ # neither words nor pictures yet is drawn as being typed.
9
+ Message = Data.define :side, :text, :photos, :sender, :at, :delivery, :cost do
10
+ def initialize(side:, text: nil, photos: [], sender: nil, at: nil, delivery: nil, cost: nil)
11
+ super
12
+ end
10
13
  end
11
14
  end
data/lib/bh/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bh
2
2
  # Version of the gem, read by the gemspec and by hosts checking compatibility.
3
- VERSION = '6.2.0'
3
+ VERSION = '6.4.0'
4
4
  end
data/package.json CHANGED
@@ -1,23 +1,11 @@
1
1
  {
2
2
  "name": "bh6",
3
- "version": "6.2.0",
3
+ "version": "6.4.0",
4
+ "private": true,
4
5
  "description": "Bootstrap 6 in a Rails app: the form builder that dresses every field, the components Bootstrap ships behavior for and no markup, and the Stimulus controllers behind them.",
5
6
  "license": "MIT",
6
7
  "type": "module",
7
8
  "repository": "github:claudiob/bh",
8
- "files": [
9
- "app/javascript",
10
- "app/stylesheets",
11
- "public/bh",
12
- "vendor",
13
- "MIT-LICENSE"
14
- ],
15
- "exports": {
16
- ".": "./app/javascript/bh.js",
17
- "./controllers/*": "./app/javascript/bh/*",
18
- "./bh.css": "./app/stylesheets/bh.css",
19
- "./bootstrap": "./vendor/bootstrap.bundle.min.js"
20
- },
21
9
  "scripts": {
22
10
  "build": "node build.mjs"
23
11
  },