@puckeditor/plugin-ai 0.8.0-canary.d8ff4908 → 0.8.0-canary.eb8b0718

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
@@ -274,11 +274,11 @@ p {
274
274
  }
275
275
 
276
276
  /* css-module:/home/runner/work/platform/platform/packages/platform-client/components/ActionModal/ActionModal.module.css/#css-module-data */
277
- ._ActionModal_r3pvy_1 {
277
+ ._ActionModal_1g44k_1 {
278
278
  display: block;
279
279
  min-width: 356px;
280
280
  }
281
- ._ActionModal-header_r3pvy_6 {
281
+ ._ActionModal-header_1g44k_6 {
282
282
  color: var(--puck-color-grey-02);
283
283
  display: flex;
284
284
  justify-content: center;
@@ -288,11 +288,14 @@ p {
288
288
  padding: 24px;
289
289
  padding-bottom: 16px;
290
290
  }
291
- ._ActionModal-body_r3pvy_17 {
291
+ ._ActionModal-body_1g44k_17 {
292
+ display: flex;
293
+ flex-direction: column;
294
+ gap: 16px;
292
295
  padding: 24px;
293
296
  padding-top: 8px;
294
297
  }
295
- ._ActionModal-footer_r3pvy_22 {
298
+ ._ActionModal-footer_1g44k_25 {
296
299
  border-top: 1px solid var(--puck-color-grey-09);
297
300
  background-color: var(--puck-color-grey-12);
298
301
  display: flex;
@@ -1077,238 +1080,187 @@ button._Menu-item_1tu16_55:hover {
1077
1080
  }
1078
1081
 
1079
1082
  /* css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanGrid/styles.module.css/#css-module-data */
1080
- ._PlanGrid--loading_1v43l_1 {
1081
- opacity: 0;
1082
- }
1083
- ._PlanGrid-grid_1v43l_5 {
1083
+ ._PlanGrid_1ar8g_1 {
1084
1084
  color: var(--puck-color-grey-02);
1085
- display: grid;
1086
- gap: 32px;
1087
1085
  text-align: left;
1088
- padding-inline: 32px;
1089
- padding-block: 20px;
1090
- @media (min-width: 768px) {
1091
- grid-template-columns: 1fr 1fr 1fr;
1092
- margin: 8px;
1093
- }
1086
+ position: relative;
1087
+ z-index: 0;
1094
1088
  }
1095
- ._PlanGrid-enterprise_1v43l_21 {
1096
- color: var(--puck-color-grey-04);
1097
- font-size: var(--puck-font-size-xxs);
1098
- margin-left: auto;
1099
- margin-right: auto;
1100
- padding-inline: 4px;
1101
- padding-top: 20px;
1102
- text-align: center;
1089
+ ._PlanGrid-billingNote_1ar8g_8,
1090
+ ._PlanGrid-planKicker_1ar8g_9 {
1091
+ font-size: var(--puck-font-size-xxxs);
1092
+ letter-spacing: 0.12em;
1103
1093
  }
1104
- ._PlanGrid-enterprise_1v43l_21 a {
1105
- color: var(--puck-color-azure-04);
1106
- cursor: pointer;
1107
- font-weight: 500;
1094
+ ._PlanGrid-billingNote_1ar8g_8 {
1095
+ color: var(--puck-color-grey-05);
1108
1096
  }
1109
-
1110
- /* css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanCard/styles.module.css/#css-module-data */
1111
- ._PlanCard_11294_1 {
1097
+ ._PlanGrid-tableWrapper_1ar8g_18 {
1112
1098
  border: 1px solid var(--puck-color-grey-09);
1113
1099
  border-radius: 16px;
1114
- display: flex;
1115
- gap: 8px;
1116
- flex-direction: column;
1117
- min-width: 256px;
1118
- padding: 8px;
1119
- position: relative;
1100
+ overflow-x: auto;
1120
1101
  }
1121
- ._PlanCard--enterprise_11294_12 {
1122
- flex-direction: row;
1123
- grid-column: span 3;
1102
+ ._PlanGrid-table_1ar8g_18 {
1103
+ border-collapse: separate;
1104
+ border-spacing: 0;
1105
+ max-width: 1440px;
1106
+ min-width: 880px;
1107
+ table-layout: fixed;
1108
+ width: 100%;
1124
1109
  }
1125
- ._PlanCard-title_11294_17 {
1126
- display: flex;
1127
- gap: 8px;
1128
- justify-content: space-between;
1129
- font-size: var(--puck-font-size-xs);
1130
- font-weight: 700;
1110
+ ._PlanGrid-caption_1ar8g_33 {
1111
+ clip: rect(0 0 0 0);
1112
+ clip-path: inset(50%);
1113
+ height: 1px;
1114
+ overflow: hidden;
1115
+ position: absolute;
1131
1116
  white-space: nowrap;
1117
+ width: 1px;
1132
1118
  }
1133
- ._PlanCard-header_11294_26 {
1134
- box-sizing: border-box;
1135
- display: flex;
1136
- flex-direction: column;
1137
- gap: 4px;
1138
- padding: 12px 16px;
1139
- width: 100%;
1140
- min-height: 80px;
1119
+ ._PlanGrid-featureHeader_1ar8g_43,
1120
+ ._PlanGrid-featureName_1ar8g_44,
1121
+ ._PlanGrid-planHeader_1ar8g_45,
1122
+ ._PlanGrid-featureValue_1ar8g_46 {
1123
+ border-bottom: 1px solid var(--puck-color-grey-09);
1124
+ border-right: 1px solid var(--puck-color-grey-09);
1141
1125
  }
1142
- ._PlanCard-features_11294_36 {
1143
- display: grid;
1144
- gap: 4px;
1145
- list-style: none;
1146
- margin: 0;
1126
+ ._PlanGrid-featureHeader_1ar8g_43,
1127
+ ._PlanGrid-featureName_1ar8g_44 {
1128
+ background: var(--puck-color-white);
1129
+ position: sticky;
1130
+ left: 0;
1131
+ width: 24%;
1132
+ z-index: 2;
1133
+ }
1134
+ ._PlanGrid-featureHeader_1ar8g_43 {
1135
+ font-size: var(--puck-font-size-s);
1136
+ padding: 28px 24px;
1137
+ text-align: left;
1138
+ vertical-align: top;
1139
+ }
1140
+ ._PlanGrid-planHeader_1ar8g_45 {
1141
+ background: var(--puck-color-white);
1142
+ height: 336px;
1147
1143
  padding: 0;
1144
+ text-align: left;
1145
+ vertical-align: top;
1146
+ width: 25.333%;
1148
1147
  }
1149
- ._PlanCard-feature_11294_36 {
1150
- align-items: center;
1148
+ ._PlanGrid-planHeaderInner_1ar8g_76 {
1149
+ box-sizing: border-box;
1151
1150
  display: flex;
1152
- gap: 4px;
1153
- color: var(--puck-color-grey-05);
1154
- font-size: var(--puck-font-size-xxs);
1155
- }
1156
- ._PlanCard-featureIcon_11294_52 {
1157
- align-self: flex-start;
1158
- margin-top: 5px;
1151
+ flex-direction: column;
1152
+ height: 100%;
1153
+ padding: 28px 24px 24px;
1159
1154
  }
1160
- ._PlanCard-featureTitle_11294_57 {
1161
- color: var(--puck-color-grey-04);
1162
- font-weight: 600;
1155
+ ._PlanGrid-planKicker_1ar8g_9 {
1156
+ color: var(--puck-color-azure-04);
1157
+ font-weight: 700;
1158
+ min-height: 20px;
1159
+ text-transform: uppercase;
1163
1160
  }
1164
- ._PlanCard-priceValue_11294_62 {
1165
- font-size: var(--puck-font-size-m);
1161
+ ._PlanGrid-planTitle_1ar8g_91 {
1162
+ font-size: var(--puck-font-size-l);
1163
+ line-height: 1.2;
1164
+ margin: 12px 0 0;
1166
1165
  }
1167
- ._PlanCard-priceInterval_11294_66 {
1166
+ ._PlanGrid-planDescription_1ar8g_97 {
1168
1167
  color: var(--puck-color-grey-05);
1168
+ font-size: var(--puck-font-size-xxs);
1169
+ margin: 8px 0 0;
1170
+ min-height: 44px;
1171
+ font-weight: 400;
1169
1172
  }
1170
- ._PlanCard-body_11294_70 {
1171
- background-color: var(--puck-color-grey-12);
1172
- border: 1px solid var(--puck-color-grey-11);
1173
- border-radius: 8px;
1174
- padding: 16px;
1175
- flex-grow: 1;
1173
+ ._PlanGrid-priceBlock_1ar8g_105 {
1174
+ margin-top: auto;
1175
+ padding: 20px 0 16px;
1176
1176
  }
1177
- ._PlanCard--enterprise_11294_12 ._PlanCard-body_11294_70 {
1177
+ ._PlanGrid-price_1ar8g_105 {
1178
+ align-items: baseline;
1178
1179
  display: flex;
1179
- gap: 8px;
1180
- width: 100%;
1181
- }
1182
- ._PlanCard-section_11294_84 {
1183
- padding-bottom: 16px;
1184
- min-width: 192px;
1185
- }
1186
- ._PlanCard-section_11294_84:last-of-type {
1187
- padding-bottom: 0;
1188
- }
1189
- ._PlanCard-section_11294_84 + ._PlanCard-section_11294_84 {
1190
- border-top: 1px solid var(--puck-color-grey-09);
1191
- padding-top: 16px;
1192
- }
1193
- ._PlanCard--enterprise_11294_12 {
1194
- ._PlanCard-section_11294_84 + ._PlanCard-section_11294_84 {
1195
- border-left: 1px solid var(--puck-color-grey-09);
1196
- border-top: none;
1197
- padding-left: 16px;
1198
- padding-top: 0;
1199
- }
1180
+ gap: 4px;
1181
+ white-space: nowrap;
1200
1182
  }
1201
- ._PlanCard-sectionTitle_11294_107 {
1183
+ ._PlanGrid-standardPrice_1ar8g_117 {
1184
+ color: var(--puck-color-grey-06);
1202
1185
  font-size: var(--puck-font-size-xs);
1203
1186
  font-weight: 500;
1204
- margin-bottom: 8px;
1187
+ text-decoration: line-through;
1205
1188
  }
1206
- ._PlanCard-sectionBody_11294_113 + ._PlanCard-sectionTitle_11294_107 {
1207
- border-top: 1px solid var(--puck-color-grey-09);
1208
- margin-top: 16px;
1209
- padding-top: 16px;
1189
+ ._PlanGrid-priceValue_1ar8g_124 {
1190
+ font-size: var(--puck-font-size-xl);
1191
+ font-weight: 600;
1192
+ letter-spacing: -0.02em;
1210
1193
  }
1211
- ._PlanCard-sectionBody_11294_113 {
1212
- color: var(--puck-color-grey-03);
1194
+ ._PlanGrid-priceInterval_1ar8g_130 {
1195
+ color: var(--puck-color-grey-05);
1213
1196
  font-size: var(--puck-font-size-xxs);
1214
- display: grid;
1215
- gap: 2px;
1197
+ font-weight: 400;
1216
1198
  }
1217
- ._PlanCard-usageItem_11294_126 {
1218
- display: flex;
1219
- gap: 8px;
1220
- font-size: var(--puck-font-size-xxs);
1199
+ ._PlanGrid-priceNote_1ar8g_136 {
1200
+ color: var(--puck-color-azure-04);
1201
+ font-size: var(--puck-font-size-xxxs);
1202
+ font-weight: 600;
1203
+ margin-top: 2px;
1221
1204
  }
1222
- ._PlanCard-usageLabel_11294_132 {
1223
- color: var(--puck-color-grey-04);
1224
- font-weight: 500;
1205
+ ._PlanGrid-action_1ar8g_143 {
1206
+ width: 100%;
1225
1207
  }
1226
- ._PlanCard-usageValue_11294_137 {
1227
- color: var(--puck-color-grey-05);
1228
- font-family: var(--puck-font-family-monospaced);
1229
- margin-left: auto;
1208
+ ._PlanGrid-featureName_1ar8g_44,
1209
+ ._PlanGrid-featureValue_1ar8g_46 {
1210
+ font-size: var(--puck-font-size-xxs);
1211
+ min-height: 68px;
1212
+ padding: 20px 24px;
1230
1213
  }
1231
- ._PlanCard-action_11294_143 {
1232
- align-items: flex-end;
1233
- display: flex;
1234
- justify-content: flex-end;
1235
- width: 100%;
1214
+ ._PlanGrid-featureName_1ar8g_44 {
1215
+ font-weight: 600;
1216
+ text-align: left;
1236
1217
  }
1237
- ._PlanCard-description_11294_150 {
1218
+ ._PlanGrid-featureValue_1ar8g_46 {
1219
+ background: var(--puck-color-white);
1238
1220
  color: var(--puck-color-grey-04);
1239
- margin-top: 8px;
1240
- font-size: var(--puck-font-size-xxs);
1241
1221
  }
1242
- ._PlanCard_11294_1 {
1243
- position: relative;
1244
- z-index: 0;
1222
+ ._PlanGrid-featureValue_1ar8g_46 a {
1223
+ color: var(--puck-color-azure-04);
1245
1224
  }
1246
- @property --shadow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
1247
- ._PlanCard_11294_1::before {
1248
- content: "";
1249
- position: absolute;
1250
- inset: 0;
1251
- z-index: -1;
1252
- border-radius: inherit;
1253
- background: #fff;
1225
+ ._PlanGrid-included_1ar8g_168 {
1226
+ align-items: center;
1227
+ color: var(--puck-color-grey-03);
1228
+ display: inline-flex;
1229
+ gap: 8px;
1254
1230
  }
1255
- ._PlanCard--highlight_11294_176::after {
1256
- content: "";
1257
- position: absolute;
1258
- inset: -18px;
1259
- z-index: -2;
1260
- border: 16px solid transparent;
1261
- border-radius: 34px;
1262
- opacity: 0.6;
1263
- background:
1264
- conic-gradient(
1265
- from var(--shadow-angle),
1266
- var(--puck-color-azure-07),
1267
- transparent,
1268
- var(--puck-color-rose-06),
1269
- var(--puck-color-azure-05),
1270
- transparent,
1271
- var(--puck-color-azure-07));
1272
- background-clip: padding-box;
1273
- filter: blur(12px);
1274
- }
1275
- ._PlanCard--highlight_11294_176::after {
1276
- animation: _spin_11294_1 8s linear infinite;
1277
- }
1278
- @keyframes _spin_11294_1 {
1279
- to {
1280
- --shadow-angle: 360deg;
1281
- }
1231
+ ._PlanGrid-included_1ar8g_168 svg {
1232
+ color: var(--puck-color-azure-04);
1282
1233
  }
1283
- ._PlanCard-highlightText_11294_209 {
1284
- @supports (background-clip: text) or (-webkit-background-clip: text) {
1285
- color: transparent;
1286
- background-clip: text;
1287
- -webkit-background-clip: text;
1288
- background-image:
1289
- linear-gradient(
1290
- 210deg,
1291
- var(--puck-color-azure-01) 0%,
1292
- var(--puck-color-azure-03) 40%,
1293
- var(--puck-color-red-05) 100%);
1294
- background-size: cover;
1295
- background-position: center;
1296
- }
1234
+ ._PlanGrid-unavailable_1ar8g_179 {
1235
+ color: var(--puck-color-grey-07);
1297
1236
  }
1298
- ._PlanCard--fullWidth_11294_225 {
1299
- flex-direction: row;
1300
- grid-column: 1 / -1;
1237
+ ._PlanGrid-highlightCell_1ar8g_183 {
1238
+ background: var(--puck-color-azure-12);
1301
1239
  }
1302
- ._PlanCard--fullWidth_11294_225 ._PlanCard-header_11294_26 {
1303
- max-width: 312px;
1240
+ ._PlanGrid-planHeader_1ar8g_45._PlanGrid-highlightCell_1ar8g_183 {
1241
+ box-shadow: inset 0 3px 0 var(--puck-color-azure-04);
1304
1242
  }
1305
- ._PlanCard--fullWidth_11294_225 ._PlanCard-action_11294_143 {
1306
- max-width: 256px;
1243
+ ._PlanGrid-planHeader_1ar8g_45:last-child,
1244
+ ._PlanGrid-featureValue_1ar8g_46:last-child {
1245
+ border-right: 0;
1307
1246
  }
1308
- ._PlanCard--fullWidth_11294_225 ._PlanCard-sectionBody_11294_113 {
1309
- display: grid;
1310
- grid-template-rows: 1fr 1fr 1fr 1fr;
1311
- grid-auto-flow: column;
1247
+ ._PlanGrid-table_1ar8g_18 tbody tr:last-child ._PlanGrid-featureName_1ar8g_44,
1248
+ ._PlanGrid-table_1ar8g_18 tbody tr:last-child ._PlanGrid-featureValue_1ar8g_46 {
1249
+ border-bottom: 0;
1250
+ }
1251
+ ._PlanGrid-enterprise_1ar8g_201 {
1252
+ color: var(--puck-color-grey-04);
1253
+ font-size: var(--puck-font-size-xxs);
1254
+ margin-left: auto;
1255
+ margin-right: auto;
1256
+ padding-inline: 4px;
1257
+ padding-top: 20px;
1258
+ text-align: center;
1259
+ }
1260
+ ._PlanGrid-enterprise_1ar8g_201 a {
1261
+ color: var(--puck-color-azure-04);
1262
+ cursor: pointer;
1263
+ font-weight: 500;
1312
1264
  }
1313
1265
 
1314
1266
  /* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Section/Section.module.css/#css-module-data */
package/dist/index.d.mts CHANGED
@@ -165,6 +165,7 @@ type TokenUsage = {
165
165
  totalTokens: number | undefined;
166
166
  reasoningTokens?: number | undefined;
167
167
  cachedInputTokens?: number | undefined;
168
+ cacheWriteTokens?: number | undefined;
168
169
  };
169
170
  type DataFinish = {
170
171
  totalCost: number;
package/dist/index.d.ts CHANGED
@@ -165,6 +165,7 @@ type TokenUsage = {
165
165
  totalTokens: number | undefined;
166
166
  reasoningTokens?: number | undefined;
167
167
  cachedInputTokens?: number | undefined;
168
+ cacheWriteTokens?: number | undefined;
168
169
  };
169
170
  type DataFinish = {
170
171
  totalCost: number;