@puckeditor/plugin-ai 0.8.0-canary.62b8dc69 → 0.8.0-canary.63de6e49

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/index.css CHANGED
@@ -1916,14 +1916,14 @@ button._Menu-item_1tu16_55:hover {
1916
1916
  }
1917
1917
 
1918
1918
  /* css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/PromptForm/styles.module.css/#css-module-data */
1919
- ._PromptForm_1iqhg_1 {
1919
+ ._PromptForm_1pyjk_1 {
1920
1920
  --radius: 9px;
1921
1921
  background-color: var(--puck-color-grey-09);
1922
1922
  border-radius: var(--radius);
1923
1923
  position: relative;
1924
1924
  width: 100%;
1925
1925
  }
1926
- ._PromptForm-dropOverlay_1iqhg_9 {
1926
+ ._PromptForm-dropOverlay_1pyjk_9 {
1927
1927
  align-items: center;
1928
1928
  background: var(--puck-color-azure-12);
1929
1929
  border: 2px dashed var(--puck-color-azure-04);
@@ -1940,16 +1940,16 @@ button._Menu-item_1tu16_55:hover {
1940
1940
  position: absolute;
1941
1941
  z-index: 10;
1942
1942
  }
1943
- ._PromptForm-inner_1iqhg_27 {
1943
+ ._PromptForm-inner_1pyjk_27 {
1944
1944
  border-radius: var(--radius);
1945
1945
  padding: 1px;
1946
1946
  position: relative;
1947
1947
  }
1948
- ._PromptForm--dark_1iqhg_33 {
1948
+ ._PromptForm--dark_1pyjk_33 {
1949
1949
  background-color: var(--puck-color-grey-02);
1950
1950
  box-shadow: none;
1951
1951
  }
1952
- ._PromptForm--glow_1iqhg_38 ._PromptForm-glow_1iqhg_38 {
1952
+ ._PromptForm--glow_1pyjk_38 ._PromptForm-glow_1pyjk_38 {
1953
1953
  border: 2px solid transparent;
1954
1954
  border-radius: var(--radius);
1955
1955
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
@@ -1959,7 +1959,7 @@ button._Menu-item_1tu16_55:hover {
1959
1959
  pointer-events: none;
1960
1960
  inset: 0;
1961
1961
  }
1962
- ._PromptForm--glow_1iqhg_38 ._PromptForm-glow_1iqhg_38::after {
1962
+ ._PromptForm--glow_1pyjk_38 ._PromptForm-glow_1pyjk_38::after {
1963
1963
  background:
1964
1964
  radial-gradient(
1965
1965
  circle at center,
@@ -1968,30 +1968,30 @@ button._Menu-item_1tu16_55:hover {
1968
1968
  content: "";
1969
1969
  offset-path: rect(0 100% 100% 0 round 200px);
1970
1970
  offset-anchor: calc(var(--anchor) * 1%) 50%;
1971
- animation: _loop_1iqhg_1 9s infinite linear;
1971
+ animation: _loop_1pyjk_1 9s infinite linear;
1972
1972
  position: absolute;
1973
1973
  height: 312px;
1974
1974
  aspect-ratio: 1 / 1;
1975
1975
  display: inline-block;
1976
1976
  }
1977
- ._PromptForm--dark_1iqhg_33._PromptForm--glow_1iqhg_38 ._PromptForm-glow_1iqhg_38::after {
1977
+ ._PromptForm--dark_1pyjk_33._PromptForm--glow_1pyjk_38 ._PromptForm-glow_1pyjk_38::after {
1978
1978
  background:
1979
1979
  radial-gradient(
1980
1980
  circle at center,
1981
1981
  var(--puck-color-azure-08),
1982
1982
  transparent 50%);
1983
1983
  }
1984
- @keyframes _loop_1iqhg_1 {
1984
+ @keyframes _loop_1pyjk_1 {
1985
1985
  to {
1986
1986
  offset-distance: 100%;
1987
1987
  }
1988
1988
  }
1989
- ._PromptForm-formInner_1iqhg_79 {
1989
+ ._PromptForm-formInner_1pyjk_79 {
1990
1990
  background-color: white;
1991
1991
  border-radius: 8px;
1992
1992
  position: relative;
1993
1993
  }
1994
- ._PromptForm-input_1iqhg_85 {
1994
+ ._PromptForm-input_1pyjk_85 {
1995
1995
  background-color: transparent;
1996
1996
  border: none;
1997
1997
  display: block;
@@ -2008,21 +2008,21 @@ button._Menu-item_1tu16_55:hover {
2008
2008
  width: 100%;
2009
2009
  box-sizing: border-box;
2010
2010
  }
2011
- ._PromptForm-input_1iqhg_85:focus {
2011
+ ._PromptForm-input_1pyjk_85:focus {
2012
2012
  outline: none;
2013
2013
  }
2014
- ._PromptForm-formInner_1iqhg_79:has(._PromptForm-input_1iqhg_85:focus) {
2014
+ ._PromptForm-formInner_1pyjk_79:has(._PromptForm-input_1pyjk_85:focus) {
2015
2015
  outline: 2px solid var(--puck-color-azure-04);
2016
2016
  }
2017
- ._PromptForm--dark_1iqhg_33 ._PromptForm-input_1iqhg_85 {
2017
+ ._PromptForm--dark_1pyjk_33 ._PromptForm-input_1pyjk_85 {
2018
2018
  background-color: var(--puck-color-grey-01);
2019
2019
  color: var(--puck-color-grey-08);
2020
2020
  }
2021
- ._PromptForm--disabled_1iqhg_116 ._PromptForm-input_1iqhg_85 {
2021
+ ._PromptForm--disabled_1pyjk_116 ._PromptForm-input_1pyjk_85 {
2022
2022
  background-color: var(--puck-color-grey-12);
2023
2023
  cursor: not-allowed;
2024
2024
  }
2025
- ._PromptForm-helper_1iqhg_121 {
2025
+ ._PromptForm-helper_1pyjk_121 {
2026
2026
  align-items: center;
2027
2027
  color: var(--puck-color-grey-04);
2028
2028
  display: flex;
@@ -2031,7 +2031,7 @@ button._Menu-item_1tu16_55:hover {
2031
2031
  font-weight: 500;
2032
2032
  padding: 6px 12px;
2033
2033
  }
2034
- ._PromptForm-actions_1iqhg_131 {
2034
+ ._PromptForm-actions_1pyjk_131 {
2035
2035
  align-items: flex-end;
2036
2036
  cursor: text;
2037
2037
  display: flex;
@@ -2041,7 +2041,7 @@ button._Menu-item_1tu16_55:hover {
2041
2041
  right: 0;
2042
2042
  padding: 6px;
2043
2043
  }
2044
- ._PromptForm-actionsLeft_1iqhg_142 {
2044
+ ._PromptForm-actionsLeft_1pyjk_142 {
2045
2045
  align-items: center;
2046
2046
  cursor: auto;
2047
2047
  display: flex;
@@ -2049,11 +2049,11 @@ button._Menu-item_1tu16_55:hover {
2049
2049
  gap: 6px;
2050
2050
  padding-left: 4px;
2051
2051
  }
2052
- ._PromptForm-actionsRight_1iqhg_151 {
2052
+ ._PromptForm-actionsRight_1pyjk_151 {
2053
2053
  cursor: auto;
2054
2054
  margin-left: auto;
2055
2055
  }
2056
- ._PromptForm-actionSubmit_1iqhg_156 {
2056
+ ._PromptForm-actionSubmit_1pyjk_156 {
2057
2057
  background: var(--puck-color-azure-04);
2058
2058
  border-radius: 48px;
2059
2059
  color: white;
@@ -2066,34 +2066,35 @@ button._Menu-item_1tu16_55:hover {
2066
2066
  pointer-events: auto;
2067
2067
  cursor: pointer;
2068
2068
  height: 32px;
2069
- width: 32px;
2069
+ width: 100%;
2070
+ min-width: 32px;
2070
2071
  }
2071
- ._PromptForm--userCta_1iqhg_172 ._PromptForm-actionSubmit_1iqhg_156 {
2072
+ ._PromptForm--userCta_1pyjk_173 ._PromptForm-actionSubmit_1pyjk_156 {
2072
2073
  padding: 8px 12px;
2073
2074
  }
2074
- ._PromptForm-actionSubmit_1iqhg_156:hover {
2075
+ ._PromptForm-actionSubmit_1pyjk_156:hover {
2075
2076
  background: var(--puck-color-azure-05);
2076
2077
  }
2077
- ._PromptForm-actionSubmit_1iqhg_156:focus {
2078
+ ._PromptForm-actionSubmit_1pyjk_156:focus {
2078
2079
  outline: 2px solid var(--puck-color-azure-04);
2079
2080
  outline-offset: 2px;
2080
2081
  }
2081
- ._PromptForm--isDisabled_1iqhg_185 ._PromptForm-actionSubmit_1iqhg_156 {
2082
+ ._PromptForm--isDisabled_1pyjk_186 ._PromptForm-actionSubmit_1pyjk_156 {
2082
2083
  background-color: var(--puck-color-grey-06);
2083
2084
  cursor: not-allowed;
2084
2085
  }
2085
- ._PromptForm--isLoading_1iqhg_190 ._PromptForm-actionSubmit_1iqhg_156 {
2086
+ ._PromptForm--isLoading_1pyjk_191 ._PromptForm-actionSubmit_1pyjk_156 {
2086
2087
  background-color: var(--puck-color-azure-06);
2087
2088
  cursor: not-allowed;
2088
2089
  }
2089
- ._PromptForm-attachments_1iqhg_195 {
2090
+ ._PromptForm-attachments_1pyjk_196 {
2090
2091
  display: flex;
2091
2092
  flex-wrap: wrap;
2092
2093
  gap: 8px;
2093
2094
  padding: 8px 12px;
2094
2095
  padding-bottom: 0px;
2095
2096
  }
2096
- ._PromptForm-attachmentChip_1iqhg_203 {
2097
+ ._PromptForm-attachmentChip_1pyjk_204 {
2097
2098
  align-items: center;
2098
2099
  background: var(--puck-color-grey-12);
2099
2100
  border: 1px solid var(--puck-color-grey-09);
@@ -2107,21 +2108,21 @@ button._Menu-item_1tu16_55:hover {
2107
2108
  padding: 4px 8px;
2108
2109
  text-overflow: ellipsis;
2109
2110
  }
2110
- ._PromptForm-attachmentChipUploading_1iqhg_218 {
2111
+ ._PromptForm-attachmentChipUploading_1pyjk_219 {
2111
2112
  color: var(--puck-color-grey-05);
2112
2113
  }
2113
- ._PromptForm-attachmentChipFailed_1iqhg_222 {
2114
+ ._PromptForm-attachmentChipFailed_1pyjk_223 {
2114
2115
  border-color: var(--puck-color-red-08);
2115
2116
  color: var(--puck-color-red-04);
2116
2117
  }
2117
- ._PromptForm-attachmentError_1iqhg_227 {
2118
+ ._PromptForm-attachmentError_1pyjk_228 {
2118
2119
  color: var(--puck-color-red-04);
2119
2120
  font-size: var(--puck-font-size-xxxs);
2120
2121
  }
2121
- ._PromptForm-attachmentSpinner_1iqhg_232 {
2122
- animation: _PromptForm-attachmentSpin_1iqhg_232 1s linear infinite;
2122
+ ._PromptForm-attachmentSpinner_1pyjk_233 {
2123
+ animation: _PromptForm-attachmentSpin_1pyjk_233 1s linear infinite;
2123
2124
  }
2124
- ._PromptForm-attachmentRemove_1iqhg_236 {
2125
+ ._PromptForm-attachmentRemove_1pyjk_237 {
2125
2126
  align-items: center;
2126
2127
  background: transparent;
2127
2128
  border: 0;
@@ -2131,11 +2132,11 @@ button._Menu-item_1tu16_55:hover {
2131
2132
  margin-left: 2px;
2132
2133
  padding: 0;
2133
2134
  }
2134
- ._PromptForm-attachmentRemove_1iqhg_236:focus-visible {
2135
+ ._PromptForm-attachmentRemove_1pyjk_237:focus-visible {
2135
2136
  border-radius: 4px;
2136
2137
  outline: 2px solid var(--puck-color-azure-04);
2137
2138
  }
2138
- @keyframes _PromptForm-attachmentSpin_1iqhg_232 {
2139
+ @keyframes _PromptForm-attachmentSpin_1pyjk_233 {
2139
2140
  to {
2140
2141
  transform: rotate(360deg);
2141
2142
  }
package/dist/index.js CHANGED
@@ -6872,7 +6872,7 @@ var import_react21 = require("react");
6872
6872
 
6873
6873
  // css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/PromptForm/styles.module.css#css-module
6874
6874
  init_react_import();
6875
- var styles_module_default9 = { "PromptForm": "_PromptForm_1iqhg_1", "PromptForm-dropOverlay": "_PromptForm-dropOverlay_1iqhg_9", "PromptForm-inner": "_PromptForm-inner_1iqhg_27", "PromptForm--dark": "_PromptForm--dark_1iqhg_33", "PromptForm--glow": "_PromptForm--glow_1iqhg_38", "PromptForm-glow": "_PromptForm-glow_1iqhg_38", "loop": "_loop_1iqhg_1", "PromptForm-formInner": "_PromptForm-formInner_1iqhg_79", "PromptForm-input": "_PromptForm-input_1iqhg_85", "PromptForm--disabled": "_PromptForm--disabled_1iqhg_116", "PromptForm-helper": "_PromptForm-helper_1iqhg_121", "PromptForm-actions": "_PromptForm-actions_1iqhg_131", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_1iqhg_142", "PromptForm-actionsRight": "_PromptForm-actionsRight_1iqhg_151", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_1iqhg_156", "PromptForm--userCta": "_PromptForm--userCta_1iqhg_172", "PromptForm--isDisabled": "_PromptForm--isDisabled_1iqhg_185", "PromptForm--isLoading": "_PromptForm--isLoading_1iqhg_190", "PromptForm-attachments": "_PromptForm-attachments_1iqhg_195", "PromptForm-attachmentChip": "_PromptForm-attachmentChip_1iqhg_203", "PromptForm-attachmentChipUploading": "_PromptForm-attachmentChipUploading_1iqhg_218", "PromptForm-attachmentChipFailed": "_PromptForm-attachmentChipFailed_1iqhg_222", "PromptForm-attachmentError": "_PromptForm-attachmentError_1iqhg_227", "PromptForm-attachmentSpinner": "_PromptForm-attachmentSpinner_1iqhg_232", "PromptForm-attachmentSpin": "_PromptForm-attachmentSpin_1iqhg_232", "PromptForm-attachmentRemove": "_PromptForm-attachmentRemove_1iqhg_236" };
6875
+ var styles_module_default9 = { "PromptForm": "_PromptForm_1pyjk_1", "PromptForm-dropOverlay": "_PromptForm-dropOverlay_1pyjk_9", "PromptForm-inner": "_PromptForm-inner_1pyjk_27", "PromptForm--dark": "_PromptForm--dark_1pyjk_33", "PromptForm--glow": "_PromptForm--glow_1pyjk_38", "PromptForm-glow": "_PromptForm-glow_1pyjk_38", "loop": "_loop_1pyjk_1", "PromptForm-formInner": "_PromptForm-formInner_1pyjk_79", "PromptForm-input": "_PromptForm-input_1pyjk_85", "PromptForm--disabled": "_PromptForm--disabled_1pyjk_116", "PromptForm-helper": "_PromptForm-helper_1pyjk_121", "PromptForm-actions": "_PromptForm-actions_1pyjk_131", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_1pyjk_142", "PromptForm-actionsRight": "_PromptForm-actionsRight_1pyjk_151", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_1pyjk_156", "PromptForm--userCta": "_PromptForm--userCta_1pyjk_173", "PromptForm--isDisabled": "_PromptForm--isDisabled_1pyjk_186", "PromptForm--isLoading": "_PromptForm--isLoading_1pyjk_191", "PromptForm-attachments": "_PromptForm-attachments_1pyjk_196", "PromptForm-attachmentChip": "_PromptForm-attachmentChip_1pyjk_204", "PromptForm-attachmentChipUploading": "_PromptForm-attachmentChipUploading_1pyjk_219", "PromptForm-attachmentChipFailed": "_PromptForm-attachmentChipFailed_1pyjk_223", "PromptForm-attachmentError": "_PromptForm-attachmentError_1pyjk_228", "PromptForm-attachmentSpinner": "_PromptForm-attachmentSpinner_1pyjk_233", "PromptForm-attachmentSpin": "_PromptForm-attachmentSpin_1pyjk_233", "PromptForm-attachmentRemove": "_PromptForm-attachmentRemove_1pyjk_237" };
6876
6876
 
6877
6877
  // src/lib/attachments.ts
6878
6878
  init_react_import();
package/dist/index.mjs CHANGED
@@ -6891,7 +6891,7 @@ import {
6891
6891
 
6892
6892
  // css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/PromptForm/styles.module.css#css-module
6893
6893
  init_react_import();
6894
- var styles_module_default9 = { "PromptForm": "_PromptForm_1iqhg_1", "PromptForm-dropOverlay": "_PromptForm-dropOverlay_1iqhg_9", "PromptForm-inner": "_PromptForm-inner_1iqhg_27", "PromptForm--dark": "_PromptForm--dark_1iqhg_33", "PromptForm--glow": "_PromptForm--glow_1iqhg_38", "PromptForm-glow": "_PromptForm-glow_1iqhg_38", "loop": "_loop_1iqhg_1", "PromptForm-formInner": "_PromptForm-formInner_1iqhg_79", "PromptForm-input": "_PromptForm-input_1iqhg_85", "PromptForm--disabled": "_PromptForm--disabled_1iqhg_116", "PromptForm-helper": "_PromptForm-helper_1iqhg_121", "PromptForm-actions": "_PromptForm-actions_1iqhg_131", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_1iqhg_142", "PromptForm-actionsRight": "_PromptForm-actionsRight_1iqhg_151", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_1iqhg_156", "PromptForm--userCta": "_PromptForm--userCta_1iqhg_172", "PromptForm--isDisabled": "_PromptForm--isDisabled_1iqhg_185", "PromptForm--isLoading": "_PromptForm--isLoading_1iqhg_190", "PromptForm-attachments": "_PromptForm-attachments_1iqhg_195", "PromptForm-attachmentChip": "_PromptForm-attachmentChip_1iqhg_203", "PromptForm-attachmentChipUploading": "_PromptForm-attachmentChipUploading_1iqhg_218", "PromptForm-attachmentChipFailed": "_PromptForm-attachmentChipFailed_1iqhg_222", "PromptForm-attachmentError": "_PromptForm-attachmentError_1iqhg_227", "PromptForm-attachmentSpinner": "_PromptForm-attachmentSpinner_1iqhg_232", "PromptForm-attachmentSpin": "_PromptForm-attachmentSpin_1iqhg_232", "PromptForm-attachmentRemove": "_PromptForm-attachmentRemove_1iqhg_236" };
6894
+ var styles_module_default9 = { "PromptForm": "_PromptForm_1pyjk_1", "PromptForm-dropOverlay": "_PromptForm-dropOverlay_1pyjk_9", "PromptForm-inner": "_PromptForm-inner_1pyjk_27", "PromptForm--dark": "_PromptForm--dark_1pyjk_33", "PromptForm--glow": "_PromptForm--glow_1pyjk_38", "PromptForm-glow": "_PromptForm-glow_1pyjk_38", "loop": "_loop_1pyjk_1", "PromptForm-formInner": "_PromptForm-formInner_1pyjk_79", "PromptForm-input": "_PromptForm-input_1pyjk_85", "PromptForm--disabled": "_PromptForm--disabled_1pyjk_116", "PromptForm-helper": "_PromptForm-helper_1pyjk_121", "PromptForm-actions": "_PromptForm-actions_1pyjk_131", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_1pyjk_142", "PromptForm-actionsRight": "_PromptForm-actionsRight_1pyjk_151", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_1pyjk_156", "PromptForm--userCta": "_PromptForm--userCta_1pyjk_173", "PromptForm--isDisabled": "_PromptForm--isDisabled_1pyjk_186", "PromptForm--isLoading": "_PromptForm--isLoading_1pyjk_191", "PromptForm-attachments": "_PromptForm-attachments_1pyjk_196", "PromptForm-attachmentChip": "_PromptForm-attachmentChip_1pyjk_204", "PromptForm-attachmentChipUploading": "_PromptForm-attachmentChipUploading_1pyjk_219", "PromptForm-attachmentChipFailed": "_PromptForm-attachmentChipFailed_1pyjk_223", "PromptForm-attachmentError": "_PromptForm-attachmentError_1pyjk_228", "PromptForm-attachmentSpinner": "_PromptForm-attachmentSpinner_1pyjk_233", "PromptForm-attachmentSpin": "_PromptForm-attachmentSpin_1pyjk_233", "PromptForm-attachmentRemove": "_PromptForm-attachmentRemove_1pyjk_237" };
6895
6895
 
6896
6896
  // src/lib/attachments.ts
6897
6897
  init_react_import();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-ai",
3
- "version": "0.8.0-canary.62b8dc69",
3
+ "version": "0.8.0-canary.63de6e49",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "puckeditor/puck",
6
6
  "bugs": "https://github.com/puckeditor/puck/issues",