@bendyline/squisq-react 2.5.0 → 2.7.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.
@@ -9120,6 +9120,72 @@
9120
9120
  border-radius: 10px;
9121
9121
  background: color-mix(in srgb, currentcolor 4%, transparent);
9122
9122
  }
9123
+ .squisq-md-code-frame {
9124
+ position: relative;
9125
+ margin: 1em 0;
9126
+ }
9127
+ .squisq-md-code-frame > .squisq-md-code-block {
9128
+ margin: 0;
9129
+ padding-right: 5rem;
9130
+ }
9131
+ .squisq-md-code-copy {
9132
+ position: absolute;
9133
+ z-index: 1;
9134
+ top: 0.55rem;
9135
+ right: 0.55rem;
9136
+ min-width: 3.7rem;
9137
+ padding: 0.28rem 0.5rem;
9138
+ border: 1px solid color-mix(in srgb, currentcolor 20%, transparent);
9139
+ border-radius: 5px;
9140
+ background: color-mix(in srgb, Canvas 90%, transparent);
9141
+ color: inherit;
9142
+ font: 500 0.72rem/1.2 system-ui, sans-serif;
9143
+ cursor: pointer;
9144
+ opacity: 0.58;
9145
+ transition: opacity 120ms ease, background-color 120ms ease;
9146
+ }
9147
+ .squisq-md-code-frame:hover > .squisq-md-code-copy,
9148
+ .squisq-md-code-copy:focus-visible,
9149
+ .squisq-md-code-copy[data-copy-state=copied],
9150
+ .squisq-md-code-copy[data-copy-state=failed] {
9151
+ opacity: 1;
9152
+ }
9153
+ .squisq-md-code-copy:hover {
9154
+ background: Canvas;
9155
+ }
9156
+ .squisq-md-code-copy:disabled {
9157
+ cursor: wait;
9158
+ }
9159
+ .squisq-md-fence-widget {
9160
+ margin: 0.75rem 0;
9161
+ }
9162
+ .squisq-json-fence-error {
9163
+ margin-top: 0.3rem;
9164
+ font-size: 0.78rem;
9165
+ opacity: 0.7;
9166
+ }
9167
+ .squisq-json-fence-actions {
9168
+ display: flex;
9169
+ gap: 0.45rem;
9170
+ margin-top: 0.55rem;
9171
+ }
9172
+ .squisq-json-fence-action {
9173
+ padding: 0.32rem 0.75rem;
9174
+ border: 1px solid color-mix(in srgb, currentcolor 25%, transparent);
9175
+ border-radius: 6px;
9176
+ background: color-mix(in srgb, Canvas 92%, transparent);
9177
+ color: inherit;
9178
+ font: 500 0.8rem/1.2 system-ui, sans-serif;
9179
+ cursor: pointer;
9180
+ transition: background-color 120ms ease;
9181
+ }
9182
+ .squisq-json-fence-action:hover {
9183
+ background: Canvas;
9184
+ }
9185
+ .squisq-json-fence-action--primary {
9186
+ border-color: color-mix(in srgb, currentcolor 45%, transparent);
9187
+ font-weight: 600;
9188
+ }
9123
9189
  .squisq-mermaid-layer-frame {
9124
9190
  width: 100%;
9125
9191
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-react",
3
- "version": "2.5.0",
3
+ "version": "2.7.0",
4
4
  "description": "React component library for doc playback, block rendering, and media layers",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -91,7 +91,7 @@
91
91
  "react-dom": "^18.0.0 || ^19.0.0"
92
92
  },
93
93
  "dependencies": {
94
- "@bendyline/squisq": "2.5.0",
94
+ "@bendyline/squisq": "2.7.0",
95
95
  "@fortawesome/fontawesome-free": "7.2.0",
96
96
  "mermaid": "11.16.0"
97
97
  },