@bendyline/squisq-react 2.12.3 → 2.12.5
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.
- package/dist/{chunk-LWB4AM3W.js → chunk-4ILJDBJ7.js} +13 -3
- package/dist/{chunk-PVRZGR5J.js → chunk-5KK6I55U.js} +2 -2
- package/dist/{chunk-CZVZ6AXP.js → chunk-FI7UATA5.js} +1 -1
- package/dist/{chunk-YVQ7KEYI.js → chunk-IERUAQFK.js} +31 -3
- package/dist/{chunk-O2ZISYT3.js → chunk-OSTSRQD3.js} +1 -1
- package/dist/{chunk-M7DM4NOX.js → chunk-PFKYO6C2.js} +1 -1
- package/dist/{chunk-MTVOORBB.js → chunk-RYLHJNQX.js} +300 -136
- package/dist/diagram-pictures/index.js +33 -17
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/json-view/index.js +2 -2
- package/dist/layers/index.js +1 -1
- package/dist/markdown/index.js +1 -1
- package/dist/page/index.js +5 -5
- package/dist/player/index.d.ts +1 -1
- package/dist/player/index.js +5 -5
- package/dist/{player-Q28R0dKx.d.ts → player-BdckuwwB.d.ts} +7 -1
- package/dist/squisq-player.full.global.js +427 -427
- package/dist/squisq-player.global.js +75 -75
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/dist/styles/index.css +222 -28
- package/package.json +2 -2
package/dist/styles/index.css
CHANGED
|
@@ -7563,7 +7563,7 @@
|
|
|
7563
7563
|
height: 100%;
|
|
7564
7564
|
min-height: 420px;
|
|
7565
7565
|
overflow: hidden;
|
|
7566
|
-
padding: clamp(
|
|
7566
|
+
padding: clamp(14px, 2.5vw, 28px);
|
|
7567
7567
|
color: var(--squisq-flashcards-text);
|
|
7568
7568
|
background:
|
|
7569
7569
|
radial-gradient(
|
|
@@ -7580,11 +7580,9 @@
|
|
|
7580
7580
|
box-sizing: border-box;
|
|
7581
7581
|
}
|
|
7582
7582
|
.squisq-flashcards__header,
|
|
7583
|
-
.squisq-flashcards__progress-row,
|
|
7584
7583
|
.squisq-flashcards__progress,
|
|
7585
7584
|
.squisq-flashcards__card,
|
|
7586
7585
|
.squisq-flashcards__footer,
|
|
7587
|
-
.squisq-flashcards__shortcut-hint,
|
|
7588
7586
|
.squisq-flashcards__summary,
|
|
7589
7587
|
.squisq-flashcards__empty-card {
|
|
7590
7588
|
width: min(920px, 100%);
|
|
@@ -7592,7 +7590,7 @@
|
|
|
7592
7590
|
}
|
|
7593
7591
|
.squisq-flashcards__header,
|
|
7594
7592
|
.squisq-flashcards__footer,
|
|
7595
|
-
.squisq-
|
|
7593
|
+
.squisq-flashcards__back,
|
|
7596
7594
|
.squisq-flashcards__tools,
|
|
7597
7595
|
.squisq-flashcards__primary-actions,
|
|
7598
7596
|
.squisq-flashcards__summary-actions {
|
|
@@ -7601,13 +7599,12 @@
|
|
|
7601
7599
|
gap: 10px;
|
|
7602
7600
|
}
|
|
7603
7601
|
.squisq-flashcards__header,
|
|
7604
|
-
.squisq-flashcards__footer
|
|
7605
|
-
.squisq-flashcards__progress-row {
|
|
7602
|
+
.squisq-flashcards__footer {
|
|
7606
7603
|
justify-content: space-between;
|
|
7607
7604
|
}
|
|
7608
7605
|
.squisq-flashcards__header {
|
|
7609
7606
|
flex: 0 0 auto;
|
|
7610
|
-
margin-bottom:
|
|
7607
|
+
margin-bottom: 16px;
|
|
7611
7608
|
}
|
|
7612
7609
|
.squisq-flashcards__deck-copy h1,
|
|
7613
7610
|
.squisq-flashcards__summary h2,
|
|
@@ -7655,16 +7652,10 @@
|
|
|
7655
7652
|
opacity: 0.38;
|
|
7656
7653
|
cursor: default;
|
|
7657
7654
|
}
|
|
7658
|
-
.squisq-flashcards__progress-row {
|
|
7659
|
-
flex: 0 0 auto;
|
|
7660
|
-
color: var(--squisq-flashcards-muted);
|
|
7661
|
-
font-size: 13px;
|
|
7662
|
-
}
|
|
7663
7655
|
.squisq-flashcards__progress {
|
|
7664
7656
|
flex: 0 0 auto;
|
|
7665
7657
|
height: 5px;
|
|
7666
|
-
margin-
|
|
7667
|
-
margin-bottom: 18px;
|
|
7658
|
+
margin-bottom: 16px;
|
|
7668
7659
|
overflow: hidden;
|
|
7669
7660
|
border-radius: 999px;
|
|
7670
7661
|
background: color-mix(in srgb, var(--squisq-flashcards-text) 12%, transparent);
|
|
@@ -7703,14 +7694,14 @@
|
|
|
7703
7694
|
margin: 0 0 0.45em;
|
|
7704
7695
|
color: inherit;
|
|
7705
7696
|
font-family: var(--squisq-flashcards-title-font);
|
|
7706
|
-
font-size: clamp(
|
|
7697
|
+
font-size: clamp(21px, 2.6vw, 34px);
|
|
7707
7698
|
line-height: 1.12;
|
|
7708
7699
|
}
|
|
7709
7700
|
.squisq-flashcards__content-block .squisq-flashcards__content-block .squisq-flashcards__content-title {
|
|
7710
|
-
font-size: clamp(
|
|
7701
|
+
font-size: clamp(17px, 1.9vw, 24px);
|
|
7711
7702
|
}
|
|
7712
7703
|
.squisq-flashcards .squisq-md {
|
|
7713
|
-
font-size: clamp(
|
|
7704
|
+
font-size: clamp(15px, 1.4vw, 18px);
|
|
7714
7705
|
line-height: 1.55;
|
|
7715
7706
|
}
|
|
7716
7707
|
.squisq-flashcards .squisq-md > :first-child {
|
|
@@ -7788,14 +7779,14 @@
|
|
|
7788
7779
|
}
|
|
7789
7780
|
.squisq-flashcards__choice .squisq-flashcards__content-title {
|
|
7790
7781
|
margin: 0;
|
|
7791
|
-
font: 700 clamp(
|
|
7782
|
+
font: 700 clamp(15px, 1.5vw, 18px) / 1.3 var(--squisq-flashcards-body-font);
|
|
7792
7783
|
}
|
|
7793
7784
|
.squisq-flashcards__choice .squisq-md {
|
|
7794
|
-
font-size:
|
|
7785
|
+
font-size: 15px;
|
|
7795
7786
|
}
|
|
7796
7787
|
.squisq-flashcards__feedback > strong {
|
|
7797
7788
|
color: var(--squisq-flashcards-warning);
|
|
7798
|
-
font: 700
|
|
7789
|
+
font: 700 18px/1.2 var(--squisq-flashcards-title-font);
|
|
7799
7790
|
}
|
|
7800
7791
|
.squisq-flashcards__feedback[data-correct=true] > strong {
|
|
7801
7792
|
color: var(--squisq-flashcards-highlight);
|
|
@@ -7808,15 +7799,70 @@
|
|
|
7808
7799
|
}
|
|
7809
7800
|
.squisq-flashcards__footer {
|
|
7810
7801
|
flex: 0 0 auto;
|
|
7811
|
-
margin-top:
|
|
7802
|
+
margin-top: 14px;
|
|
7812
7803
|
}
|
|
7813
|
-
.squisq-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7804
|
+
.squisq-flashcards__back {
|
|
7805
|
+
gap: 14px;
|
|
7806
|
+
}
|
|
7807
|
+
.squisq-flashcards__progress-group {
|
|
7808
|
+
display: grid;
|
|
7809
|
+
gap: 6px;
|
|
7810
|
+
min-width: 96px;
|
|
7811
|
+
}
|
|
7812
|
+
.squisq-flashcards__progress-group > .squisq-flashcards__position {
|
|
7813
|
+
font-size: 13px;
|
|
7814
|
+
}
|
|
7815
|
+
.squisq-flashcards__progress-group > .squisq-flashcards__progress {
|
|
7816
|
+
width: 100%;
|
|
7817
|
+
height: 4px;
|
|
7818
|
+
margin: 0;
|
|
7819
|
+
}
|
|
7820
|
+
.squisq-flashcards--side-rails {
|
|
7821
|
+
--squisq-flashcards-rail: 148px;
|
|
7822
|
+
display: grid;
|
|
7823
|
+
grid-template-areas: "header header header" "back card actions";
|
|
7824
|
+
grid-template-columns: var(--squisq-flashcards-rail) minmax(0, 920px) var(--squisq-flashcards-rail);
|
|
7825
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
7826
|
+
justify-content: center;
|
|
7827
|
+
column-gap: 18px;
|
|
7828
|
+
}
|
|
7829
|
+
.squisq-flashcards--side-rails .squisq-flashcards__header,
|
|
7830
|
+
.squisq-flashcards--side-rails .squisq-flashcards__card {
|
|
7831
|
+
width: auto;
|
|
7832
|
+
margin-inline: 0;
|
|
7833
|
+
}
|
|
7834
|
+
.squisq-flashcards--side-rails .squisq-flashcards__header {
|
|
7835
|
+
grid-area: header;
|
|
7836
|
+
}
|
|
7837
|
+
.squisq-flashcards--side-rails .squisq-flashcards__card {
|
|
7838
|
+
grid-area: card;
|
|
7839
|
+
}
|
|
7840
|
+
.squisq-flashcards--side-rails .squisq-flashcards__footer {
|
|
7841
|
+
display: contents;
|
|
7842
|
+
}
|
|
7843
|
+
.squisq-flashcards--side-rails .squisq-flashcards__back,
|
|
7844
|
+
.squisq-flashcards--side-rails .squisq-flashcards__primary-actions {
|
|
7845
|
+
display: grid;
|
|
7846
|
+
grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
7847
|
+
align-self: stretch;
|
|
7848
|
+
gap: 10px;
|
|
7849
|
+
}
|
|
7850
|
+
.squisq-flashcards--side-rails .squisq-flashcards__back > :first-child,
|
|
7851
|
+
.squisq-flashcards--side-rails .squisq-flashcards__primary-actions > :first-child {
|
|
7852
|
+
grid-row: 2;
|
|
7853
|
+
}
|
|
7854
|
+
.squisq-flashcards--side-rails .squisq-flashcards__back > :nth-child(2),
|
|
7855
|
+
.squisq-flashcards--side-rails .squisq-flashcards__primary-actions > :nth-child(2) {
|
|
7856
|
+
grid-row: 3;
|
|
7857
|
+
align-self: start;
|
|
7858
|
+
}
|
|
7859
|
+
.squisq-flashcards--side-rails .squisq-flashcards__back {
|
|
7860
|
+
grid-area: back;
|
|
7818
7861
|
text-align: center;
|
|
7819
7862
|
}
|
|
7863
|
+
.squisq-flashcards--side-rails .squisq-flashcards__primary-actions {
|
|
7864
|
+
grid-area: actions;
|
|
7865
|
+
}
|
|
7820
7866
|
.squisq-flashcards__summary,
|
|
7821
7867
|
.squisq-flashcards__empty-card {
|
|
7822
7868
|
margin-top: min(12vh, 120px);
|
|
@@ -7842,15 +7888,163 @@
|
|
|
7842
7888
|
transform: translateY(0);
|
|
7843
7889
|
}
|
|
7844
7890
|
}
|
|
7891
|
+
.squisq-flashcards--compact {
|
|
7892
|
+
min-height: 260px;
|
|
7893
|
+
padding: clamp(10px, 2vw, 18px);
|
|
7894
|
+
}
|
|
7895
|
+
.squisq-flashcards--compact .squisq-flashcards__header,
|
|
7896
|
+
.squisq-flashcards--compact .squisq-flashcards__progress,
|
|
7897
|
+
.squisq-flashcards--compact .squisq-flashcards__card,
|
|
7898
|
+
.squisq-flashcards--compact .squisq-flashcards__summary,
|
|
7899
|
+
.squisq-flashcards--compact .squisq-flashcards__empty-card {
|
|
7900
|
+
width: 100%;
|
|
7901
|
+
}
|
|
7902
|
+
.squisq-flashcards--compact .squisq-flashcards__header {
|
|
7903
|
+
flex-direction: row;
|
|
7904
|
+
flex-wrap: wrap;
|
|
7905
|
+
align-items: center;
|
|
7906
|
+
gap: 8px 16px;
|
|
7907
|
+
margin-bottom: 10px;
|
|
7908
|
+
}
|
|
7909
|
+
.squisq-flashcards--compact .squisq-flashcards__deck-copy {
|
|
7910
|
+
display: grid;
|
|
7911
|
+
flex: 1 1 220px;
|
|
7912
|
+
gap: 2px;
|
|
7913
|
+
min-width: 0;
|
|
7914
|
+
}
|
|
7915
|
+
.squisq-flashcards--compact .squisq-flashcards__deck-copy h1 {
|
|
7916
|
+
margin: 0;
|
|
7917
|
+
overflow: hidden;
|
|
7918
|
+
font: 700 16px/1.25 var(--squisq-flashcards-title-font);
|
|
7919
|
+
text-overflow: ellipsis;
|
|
7920
|
+
white-space: nowrap;
|
|
7921
|
+
}
|
|
7922
|
+
.squisq-flashcards__position {
|
|
7923
|
+
color: var(--squisq-flashcards-muted);
|
|
7924
|
+
font-size: 12px;
|
|
7925
|
+
}
|
|
7926
|
+
.squisq-flashcards__controls,
|
|
7927
|
+
.squisq-flashcards__navigation {
|
|
7928
|
+
display: flex;
|
|
7929
|
+
flex-wrap: wrap;
|
|
7930
|
+
align-items: center;
|
|
7931
|
+
gap: 6px;
|
|
7932
|
+
}
|
|
7933
|
+
.squisq-flashcards__controls {
|
|
7934
|
+
flex: 0 1 auto;
|
|
7935
|
+
justify-content: flex-end;
|
|
7936
|
+
column-gap: 16px;
|
|
7937
|
+
}
|
|
7938
|
+
.squisq-flashcards--compact .squisq-flashcards__tools,
|
|
7939
|
+
.squisq-flashcards--compact .squisq-flashcards__primary-actions {
|
|
7940
|
+
width: auto;
|
|
7941
|
+
gap: 6px;
|
|
7942
|
+
}
|
|
7943
|
+
.squisq-flashcards--compact .squisq-flashcards__tool,
|
|
7944
|
+
.squisq-flashcards--compact .squisq-flashcards__button {
|
|
7945
|
+
min-height: 32px;
|
|
7946
|
+
padding: 6px 13px;
|
|
7947
|
+
font-size: 13px;
|
|
7948
|
+
}
|
|
7949
|
+
.squisq-flashcards--compact .squisq-flashcards__tool:not([aria-pressed=true]) {
|
|
7950
|
+
border-color: transparent;
|
|
7951
|
+
background: transparent;
|
|
7952
|
+
}
|
|
7953
|
+
.squisq-flashcards--compact .squisq-flashcards__tool:not([aria-pressed=true]):hover {
|
|
7954
|
+
border-color: color-mix(in srgb, var(--squisq-flashcards-text) 22%, transparent);
|
|
7955
|
+
}
|
|
7956
|
+
.squisq-flashcards--compact .squisq-flashcards__progress {
|
|
7957
|
+
height: 3px;
|
|
7958
|
+
margin-top: 0;
|
|
7959
|
+
margin-bottom: 10px;
|
|
7960
|
+
}
|
|
7961
|
+
.squisq-flashcards--compact .squisq-flashcards__card,
|
|
7962
|
+
.squisq-flashcards--compact .squisq-flashcards__summary,
|
|
7963
|
+
.squisq-flashcards--compact .squisq-flashcards__empty-card {
|
|
7964
|
+
padding: clamp(14px, 2.5vw, 26px);
|
|
7965
|
+
box-shadow: 0 10px 28px color-mix(in srgb, #000 18%, transparent);
|
|
7966
|
+
}
|
|
7967
|
+
.squisq-flashcards--compact .squisq-flashcards__label {
|
|
7968
|
+
margin-bottom: 10px;
|
|
7969
|
+
}
|
|
7970
|
+
.squisq-flashcards--compact .squisq-flashcards__content-block + .squisq-flashcards__content-block {
|
|
7971
|
+
margin-top: 14px;
|
|
7972
|
+
}
|
|
7973
|
+
.squisq-flashcards--compact .squisq-flashcards__content-title {
|
|
7974
|
+
font-size: clamp(18px, 2vw, 24px);
|
|
7975
|
+
line-height: 1.2;
|
|
7976
|
+
}
|
|
7977
|
+
.squisq-flashcards--compact .squisq-flashcards__content-block .squisq-flashcards__content-block .squisq-flashcards__content-title {
|
|
7978
|
+
font-size: clamp(16px, 1.6vw, 19px);
|
|
7979
|
+
}
|
|
7980
|
+
.squisq-flashcards--compact .squisq-md {
|
|
7981
|
+
font-size: 15px;
|
|
7982
|
+
line-height: 1.5;
|
|
7983
|
+
}
|
|
7984
|
+
.squisq-flashcards--compact .squisq-md img,
|
|
7985
|
+
.squisq-flashcards--compact .squisq-md video {
|
|
7986
|
+
max-height: 32vh;
|
|
7987
|
+
}
|
|
7988
|
+
.squisq-flashcards--compact .squisq-flashcards__canvas {
|
|
7989
|
+
margin-top: 12px;
|
|
7990
|
+
}
|
|
7991
|
+
.squisq-flashcards--compact .squisq-flashcards__answer,
|
|
7992
|
+
.squisq-flashcards--compact .squisq-flashcards__explanation,
|
|
7993
|
+
.squisq-flashcards--compact .squisq-flashcards__feedback {
|
|
7994
|
+
margin-top: 16px;
|
|
7995
|
+
padding-top: 14px;
|
|
7996
|
+
}
|
|
7997
|
+
.squisq-flashcards--compact .squisq-flashcards__answer-label {
|
|
7998
|
+
margin-bottom: 8px;
|
|
7999
|
+
}
|
|
8000
|
+
.squisq-flashcards--compact .squisq-flashcards__choices {
|
|
8001
|
+
gap: 8px;
|
|
8002
|
+
margin-top: 16px;
|
|
8003
|
+
}
|
|
8004
|
+
.squisq-flashcards--compact .squisq-flashcards__choice {
|
|
8005
|
+
grid-template-columns: 26px minmax(0, 1fr);
|
|
8006
|
+
gap: 10px;
|
|
8007
|
+
padding: 9px 14px;
|
|
8008
|
+
}
|
|
8009
|
+
.squisq-flashcards--compact .squisq-flashcards__choice-key {
|
|
8010
|
+
width: 26px;
|
|
8011
|
+
height: 26px;
|
|
8012
|
+
font-size: 13px;
|
|
8013
|
+
}
|
|
8014
|
+
.squisq-flashcards--compact .squisq-flashcards__choice .squisq-flashcards__content-title {
|
|
8015
|
+
font-size: 15px;
|
|
8016
|
+
}
|
|
8017
|
+
.squisq-flashcards--compact .squisq-flashcards__feedback > strong {
|
|
8018
|
+
font-size: 17px;
|
|
8019
|
+
}
|
|
8020
|
+
.squisq-flashcards--compact .squisq-flashcards__correct-answer > span {
|
|
8021
|
+
margin: 8px 0 6px;
|
|
8022
|
+
}
|
|
8023
|
+
.squisq-flashcards--compact .squisq-flashcards__summary,
|
|
8024
|
+
.squisq-flashcards--compact .squisq-flashcards__empty-card {
|
|
8025
|
+
margin-block: auto;
|
|
8026
|
+
}
|
|
8027
|
+
.squisq-flashcards--compact .squisq-flashcards__summary h2,
|
|
8028
|
+
.squisq-flashcards--compact .squisq-flashcards__empty-card h2 {
|
|
8029
|
+
font-size: clamp(19px, 2.2vw, 24px);
|
|
8030
|
+
}
|
|
8031
|
+
.squisq-flashcards--compact .squisq-flashcards__summary-actions {
|
|
8032
|
+
margin-top: 16px;
|
|
8033
|
+
}
|
|
7845
8034
|
@media (max-width: 640px) {
|
|
7846
8035
|
.squisq-flashcards__header,
|
|
7847
8036
|
.squisq-flashcards__footer {
|
|
7848
8037
|
align-items: stretch;
|
|
7849
8038
|
flex-direction: column;
|
|
7850
8039
|
}
|
|
8040
|
+
.squisq-flashcards__back {
|
|
8041
|
+
flex-direction: column;
|
|
8042
|
+
align-items: stretch;
|
|
8043
|
+
gap: 10px;
|
|
8044
|
+
text-align: center;
|
|
8045
|
+
}
|
|
7851
8046
|
.squisq-flashcards__tools,
|
|
7852
|
-
.squisq-flashcards__primary-actions
|
|
7853
|
-
.squisq-flashcards__footer > .squisq-flashcards__button {
|
|
8047
|
+
.squisq-flashcards__primary-actions {
|
|
7854
8048
|
width: 100%;
|
|
7855
8049
|
}
|
|
7856
8050
|
.squisq-flashcards__tools > *,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/squisq-react",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.5",
|
|
4
4
|
"description": "React component library for doc playback, block rendering, and media layers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@bendyline/squisq": "2.12.
|
|
102
|
+
"@bendyline/squisq": "2.12.4",
|
|
103
103
|
"@fortawesome/fontawesome-free": "7.3.1",
|
|
104
104
|
"mermaid": "11.17.2"
|
|
105
105
|
},
|