@puckeditor/plugin-pages 0.9.0-canary.d582a110 → 0.9.0-canary.e1a77bb6
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 +33 -35
- package/dist/index.js +4 -12
- package/dist/index.mjs +4 -12
- package/package.json +5 -5
package/dist/index.css
CHANGED
|
@@ -929,15 +929,15 @@ p {
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css/#css-module-data */
|
|
932
|
-
.
|
|
932
|
+
._Menu_1tu16_1 {
|
|
933
933
|
display: flex;
|
|
934
934
|
position: relative;
|
|
935
935
|
}
|
|
936
|
-
._Menu-
|
|
936
|
+
._Menu-content_1tu16_6 {
|
|
937
937
|
outline: none;
|
|
938
938
|
z-index: 1;
|
|
939
939
|
}
|
|
940
|
-
._Menu-
|
|
940
|
+
._Menu-sections_1tu16_11 {
|
|
941
941
|
background-color: white;
|
|
942
942
|
border: 1px solid var(--puck-color-grey-09);
|
|
943
943
|
border-radius: 8px;
|
|
@@ -947,41 +947,40 @@ p {
|
|
|
947
947
|
padding-bottom: 4px;
|
|
948
948
|
padding-top: 4px;
|
|
949
949
|
}
|
|
950
|
-
._Menu-
|
|
950
|
+
._Menu-action_1tu16_22 {
|
|
951
951
|
background: none;
|
|
952
952
|
border: none;
|
|
953
953
|
margin-left: auto;
|
|
954
954
|
padding: 0;
|
|
955
955
|
}
|
|
956
|
-
._Menu-
|
|
956
|
+
._Menu-action_1tu16_22:hover:not(:disabled) {
|
|
957
957
|
cursor: pointer;
|
|
958
958
|
opacity: 0.8;
|
|
959
959
|
}
|
|
960
|
-
._Menu-
|
|
960
|
+
._Menu-action_1tu16_22:disabled {
|
|
961
961
|
cursor: not-allowed;
|
|
962
962
|
opacity: 0.5;
|
|
963
963
|
}
|
|
964
|
-
._Menu-
|
|
964
|
+
._Menu-action_1tu16_22:focus-visible {
|
|
965
965
|
outline: 2px solid var(--puck-color-azure-05);
|
|
966
966
|
outline-offset: 2px;
|
|
967
967
|
}
|
|
968
|
-
._Menu-
|
|
968
|
+
._Menu-list_1tu16_44 {
|
|
969
969
|
list-style: none;
|
|
970
970
|
margin: 0;
|
|
971
971
|
padding: 0;
|
|
972
972
|
}
|
|
973
|
-
._Menu-
|
|
973
|
+
._Menu-list_1tu16_44 + ._Menu-list_1tu16_44 {
|
|
974
974
|
border-top: 1px solid var(--puck-color-grey-09);
|
|
975
975
|
margin-top: 4px;
|
|
976
976
|
}
|
|
977
|
-
._Menu-
|
|
977
|
+
._Menu-item_1tu16_55 {
|
|
978
978
|
align-items: center;
|
|
979
979
|
background: none;
|
|
980
980
|
border: none;
|
|
981
981
|
box-sizing: border-box;
|
|
982
982
|
color: var(--puck-color-grey-02);
|
|
983
983
|
display: flex;
|
|
984
|
-
font-family: var(--puck-font-family);
|
|
985
984
|
font-size: var(--puck-font-size-xxs);
|
|
986
985
|
font-weight: 500;
|
|
987
986
|
gap: 8px;
|
|
@@ -991,16 +990,16 @@ p {
|
|
|
991
990
|
white-space: nowrap;
|
|
992
991
|
width: 100%;
|
|
993
992
|
}
|
|
994
|
-
a._Menu-
|
|
995
|
-
button._Menu-
|
|
993
|
+
a._Menu-item_1tu16_55,
|
|
994
|
+
button._Menu-item_1tu16_55 {
|
|
996
995
|
cursor: pointer;
|
|
997
996
|
}
|
|
998
|
-
a._Menu-
|
|
999
|
-
button._Menu-
|
|
997
|
+
a._Menu-item_1tu16_55:hover,
|
|
998
|
+
button._Menu-item_1tu16_55:hover {
|
|
1000
999
|
background-color: var(--puck-color-azure-11);
|
|
1001
1000
|
color: var(--puck-color-azure-04);
|
|
1002
1001
|
}
|
|
1003
|
-
._Menu-item--
|
|
1002
|
+
._Menu-item--disabled_1tu16_83 {
|
|
1004
1003
|
cursor: not-allowed;
|
|
1005
1004
|
opacity: 0.5;
|
|
1006
1005
|
}
|
|
@@ -1295,15 +1294,15 @@ button._Menu-item_1jr57_55:hover {
|
|
|
1295
1294
|
}
|
|
1296
1295
|
|
|
1297
1296
|
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css/#css-module-data */
|
|
1298
|
-
.
|
|
1297
|
+
._Tag_s2h0n_1 {
|
|
1299
1298
|
align-items: center;
|
|
1300
1299
|
display: flex;
|
|
1301
|
-
text-transform:
|
|
1300
|
+
text-transform: uppercase;
|
|
1302
1301
|
font-family: var(--puck-font-family-monospaced);
|
|
1303
|
-
font-weight:
|
|
1302
|
+
font-weight: 600;
|
|
1304
1303
|
font-size: var(--puck-font-size-xxxs);
|
|
1305
1304
|
gap: 6px;
|
|
1306
|
-
border-radius:
|
|
1305
|
+
border-radius: 4px;
|
|
1307
1306
|
border: 1px solid currentColor;
|
|
1308
1307
|
color: var(--puck-color-grey-05);
|
|
1309
1308
|
padding: 4px 8px;
|
|
@@ -1312,35 +1311,34 @@ button._Menu-item_1jr57_55:hover {
|
|
|
1312
1311
|
position: relative;
|
|
1313
1312
|
z-index: 0;
|
|
1314
1313
|
}
|
|
1315
|
-
._Tag--
|
|
1314
|
+
._Tag--borderless_s2h0n_21 {
|
|
1316
1315
|
border: none;
|
|
1317
1316
|
}
|
|
1318
|
-
._Tag--
|
|
1319
|
-
|
|
1320
|
-
color: var(--puck-color-white);
|
|
1317
|
+
._Tag--colorBlue_s2h0n_25 {
|
|
1318
|
+
color: var(--puck-color-azure-05);
|
|
1321
1319
|
}
|
|
1322
|
-
._Tag--
|
|
1320
|
+
._Tag--colorGreen_s2h0n_29 {
|
|
1323
1321
|
color: var(--puck-color-green-06);
|
|
1324
1322
|
}
|
|
1325
|
-
._Tag--
|
|
1323
|
+
._Tag--colorRed_s2h0n_33 {
|
|
1326
1324
|
color: var(--puck-color-red-04);
|
|
1327
1325
|
}
|
|
1328
|
-
._Tag--
|
|
1329
|
-
color: var(--puck-color-grey-
|
|
1326
|
+
._Tag--colorMuted_s2h0n_37 {
|
|
1327
|
+
color: var(--puck-color-grey-06);
|
|
1330
1328
|
}
|
|
1331
|
-
._Tag-
|
|
1329
|
+
._Tag-sprite_s2h0n_41 {
|
|
1332
1330
|
display: flex;
|
|
1333
1331
|
}
|
|
1334
|
-
._Tag--
|
|
1335
|
-
._Tag-
|
|
1332
|
+
._Tag--pulse_s2h0n_45 {
|
|
1333
|
+
._Tag-sprite_s2h0n_41 {
|
|
1336
1334
|
background: currentColor;
|
|
1337
1335
|
border-radius: 50%;
|
|
1338
1336
|
height: 5px;
|
|
1339
1337
|
position: relative;
|
|
1340
1338
|
width: 5px;
|
|
1341
1339
|
}
|
|
1342
|
-
._Tag-
|
|
1343
|
-
animation:
|
|
1340
|
+
._Tag-sprite_s2h0n_41::before {
|
|
1341
|
+
animation: _pulse_s2h0n_1 1s 0s infinite alternate;
|
|
1344
1342
|
animation-fill-mode: both;
|
|
1345
1343
|
background-color: color-mix(in srgb, currentColor 25%, transparent);
|
|
1346
1344
|
border-radius: 50%;
|
|
@@ -1354,7 +1352,7 @@ button._Menu-item_1jr57_55:hover {
|
|
|
1354
1352
|
z-index: -1;
|
|
1355
1353
|
}
|
|
1356
1354
|
}
|
|
1357
|
-
@keyframes
|
|
1355
|
+
@keyframes _pulse_s2h0n_1 {
|
|
1358
1356
|
0% {
|
|
1359
1357
|
transform: scale(1);
|
|
1360
1358
|
}
|
|
@@ -1362,7 +1360,7 @@ button._Menu-item_1jr57_55:hover {
|
|
|
1362
1360
|
transform: scale(2);
|
|
1363
1361
|
}
|
|
1364
1362
|
}
|
|
1365
|
-
._Tag-
|
|
1363
|
+
._Tag-label_s2h0n_79 {
|
|
1366
1364
|
margin-top: 1px;
|
|
1367
1365
|
}
|
|
1368
1366
|
|
package/dist/index.js
CHANGED
|
@@ -5353,7 +5353,7 @@ var import_react16 = require("react");
|
|
|
5353
5353
|
|
|
5354
5354
|
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
5355
5355
|
init_react_import();
|
|
5356
|
-
var styles_module_default3 = { "Menu": "
|
|
5356
|
+
var styles_module_default3 = { "Menu": "_Menu_1tu16_1", "Menu-content": "_Menu-content_1tu16_6", "Menu-sections": "_Menu-sections_1tu16_11", "Menu-action": "_Menu-action_1tu16_22", "Menu-list": "_Menu-list_1tu16_44", "Menu-item": "_Menu-item_1tu16_55", "Menu-item--disabled": "_Menu-item--disabled_1tu16_83" };
|
|
5357
5357
|
|
|
5358
5358
|
// ../../node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.2.0_@types+react@19.2.0__@types+reac_e6e9e3f3089a7a72fc73cc2cd9dafc33/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
5359
5359
|
init_react_import();
|
|
@@ -7994,7 +7994,7 @@ init_react_import();
|
|
|
7994
7994
|
|
|
7995
7995
|
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
7996
7996
|
init_react_import();
|
|
7997
|
-
var Tag_module_default = { "Tag": "
|
|
7997
|
+
var Tag_module_default = { "Tag": "_Tag_s2h0n_1", "Tag--borderless": "_Tag--borderless_s2h0n_21", "Tag--colorBlue": "_Tag--colorBlue_s2h0n_25", "Tag--colorGreen": "_Tag--colorGreen_s2h0n_29", "Tag--colorRed": "_Tag--colorRed_s2h0n_33", "Tag--colorMuted": "_Tag--colorMuted_s2h0n_37", "Tag-sprite": "_Tag-sprite_s2h0n_41", "Tag--pulse": "_Tag--pulse_s2h0n_45", "pulse": "_pulse_s2h0n_1", "Tag-label": "_Tag-label_s2h0n_79" };
|
|
7998
7998
|
|
|
7999
7999
|
// ../platform-client/components/Tag/Tag.tsx
|
|
8000
8000
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
@@ -22256,13 +22256,8 @@ var postMessageToParent = ({
|
|
|
22256
22256
|
window.parent.postMessage(message2, parentOrigin);
|
|
22257
22257
|
};
|
|
22258
22258
|
|
|
22259
|
-
// src/lib/is-embedded.ts
|
|
22260
|
-
init_react_import();
|
|
22261
|
-
var isEmbedded = () => typeof window !== "undefined" && window.self !== window.top;
|
|
22262
|
-
|
|
22263
22259
|
// src/lib/request-token.ts
|
|
22264
22260
|
var requestToken = (parentOrigin) => {
|
|
22265
|
-
if (!isEmbedded()) return Promise.resolve("");
|
|
22266
22261
|
return new Promise((resolve) => {
|
|
22267
22262
|
const handler = async (event) => {
|
|
22268
22263
|
if (event.origin !== parentOrigin) return;
|
|
@@ -22303,7 +22298,6 @@ var getActiveVersion = ({
|
|
|
22303
22298
|
init_react_import();
|
|
22304
22299
|
var RETRY_INTERVAL_MS = 100;
|
|
22305
22300
|
var waitForParentReady = (parentOrigin) => {
|
|
22306
|
-
if (!isEmbedded()) return Promise.resolve();
|
|
22307
22301
|
return new Promise((resolve) => {
|
|
22308
22302
|
let intervalId = 0;
|
|
22309
22303
|
const sendReadyCheck = () => {
|
|
@@ -24520,8 +24514,8 @@ var PagePlugin = (opts) => {
|
|
|
24520
24514
|
createPage("/");
|
|
24521
24515
|
postToParent({ type: "DATA_READY" });
|
|
24522
24516
|
}
|
|
24517
|
+
setLoading(false);
|
|
24523
24518
|
}
|
|
24524
|
-
setLoading(false);
|
|
24525
24519
|
},
|
|
24526
24520
|
[
|
|
24527
24521
|
host,
|
|
@@ -24893,9 +24887,7 @@ var HeaderActions = (opts) => {
|
|
|
24893
24887
|
}) => {
|
|
24894
24888
|
setPageVersions(data.page.id, data.page.versions, data.page.path ?? path);
|
|
24895
24889
|
setActivePage(data.page.path ?? path);
|
|
24896
|
-
setActiveVersion(
|
|
24897
|
-
data.page.versions?.some((version3) => version3.id === nextActiveVersion) ? nextActiveVersion : null
|
|
24898
|
-
);
|
|
24890
|
+
setActiveVersion(nextActiveVersion);
|
|
24899
24891
|
if (syncHistoryData) {
|
|
24900
24892
|
syncSavedHistory(syncHistoryData);
|
|
24901
24893
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -5345,7 +5345,7 @@ import { useState as useState25 } from "react";
|
|
|
5345
5345
|
|
|
5346
5346
|
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
5347
5347
|
init_react_import();
|
|
5348
|
-
var styles_module_default3 = { "Menu": "
|
|
5348
|
+
var styles_module_default3 = { "Menu": "_Menu_1tu16_1", "Menu-content": "_Menu-content_1tu16_6", "Menu-sections": "_Menu-sections_1tu16_11", "Menu-action": "_Menu-action_1tu16_22", "Menu-list": "_Menu-list_1tu16_44", "Menu-item": "_Menu-item_1tu16_55", "Menu-item--disabled": "_Menu-item--disabled_1tu16_83" };
|
|
5349
5349
|
|
|
5350
5350
|
// ../../node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.2.0_@types+react@19.2.0__@types+reac_e6e9e3f3089a7a72fc73cc2cd9dafc33/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
5351
5351
|
init_react_import();
|
|
@@ -7986,7 +7986,7 @@ init_react_import();
|
|
|
7986
7986
|
|
|
7987
7987
|
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
7988
7988
|
init_react_import();
|
|
7989
|
-
var Tag_module_default = { "Tag": "
|
|
7989
|
+
var Tag_module_default = { "Tag": "_Tag_s2h0n_1", "Tag--borderless": "_Tag--borderless_s2h0n_21", "Tag--colorBlue": "_Tag--colorBlue_s2h0n_25", "Tag--colorGreen": "_Tag--colorGreen_s2h0n_29", "Tag--colorRed": "_Tag--colorRed_s2h0n_33", "Tag--colorMuted": "_Tag--colorMuted_s2h0n_37", "Tag-sprite": "_Tag-sprite_s2h0n_41", "Tag--pulse": "_Tag--pulse_s2h0n_45", "pulse": "_pulse_s2h0n_1", "Tag-label": "_Tag-label_s2h0n_79" };
|
|
7990
7990
|
|
|
7991
7991
|
// ../platform-client/components/Tag/Tag.tsx
|
|
7992
7992
|
import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -22251,13 +22251,8 @@ var postMessageToParent = ({
|
|
|
22251
22251
|
window.parent.postMessage(message2, parentOrigin);
|
|
22252
22252
|
};
|
|
22253
22253
|
|
|
22254
|
-
// src/lib/is-embedded.ts
|
|
22255
|
-
init_react_import();
|
|
22256
|
-
var isEmbedded = () => typeof window !== "undefined" && window.self !== window.top;
|
|
22257
|
-
|
|
22258
22254
|
// src/lib/request-token.ts
|
|
22259
22255
|
var requestToken = (parentOrigin) => {
|
|
22260
|
-
if (!isEmbedded()) return Promise.resolve("");
|
|
22261
22256
|
return new Promise((resolve) => {
|
|
22262
22257
|
const handler = async (event) => {
|
|
22263
22258
|
if (event.origin !== parentOrigin) return;
|
|
@@ -22298,7 +22293,6 @@ var getActiveVersion = ({
|
|
|
22298
22293
|
init_react_import();
|
|
22299
22294
|
var RETRY_INTERVAL_MS = 100;
|
|
22300
22295
|
var waitForParentReady = (parentOrigin) => {
|
|
22301
|
-
if (!isEmbedded()) return Promise.resolve();
|
|
22302
22296
|
return new Promise((resolve) => {
|
|
22303
22297
|
let intervalId = 0;
|
|
22304
22298
|
const sendReadyCheck = () => {
|
|
@@ -24515,8 +24509,8 @@ var PagePlugin = (opts) => {
|
|
|
24515
24509
|
createPage("/");
|
|
24516
24510
|
postToParent({ type: "DATA_READY" });
|
|
24517
24511
|
}
|
|
24512
|
+
setLoading(false);
|
|
24518
24513
|
}
|
|
24519
|
-
setLoading(false);
|
|
24520
24514
|
},
|
|
24521
24515
|
[
|
|
24522
24516
|
host,
|
|
@@ -24888,9 +24882,7 @@ var HeaderActions = (opts) => {
|
|
|
24888
24882
|
}) => {
|
|
24889
24883
|
setPageVersions(data.page.id, data.page.versions, data.page.path ?? path);
|
|
24890
24884
|
setActivePage(data.page.path ?? path);
|
|
24891
|
-
setActiveVersion(
|
|
24892
|
-
data.page.versions?.some((version3) => version3.id === nextActiveVersion) ? nextActiveVersion : null
|
|
24893
|
-
);
|
|
24885
|
+
setActiveVersion(nextActiveVersion);
|
|
24894
24886
|
if (syncHistoryData) {
|
|
24895
24887
|
syncSavedHistory(syncHistoryData);
|
|
24896
24888
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-pages",
|
|
3
|
-
"version": "0.9.0-canary.
|
|
3
|
+
"version": "0.9.0-canary.e1a77bb6",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"vite-tsconfig-paths": "^5.1.4",
|
|
47
47
|
"vitest": "^4.1.11",
|
|
48
48
|
"zod": "^4.1.12",
|
|
49
|
-
"@puckeditor/platform-types": "0.9.0-canary.
|
|
50
|
-
"eslint-config-custom": "0.9.0-canary.
|
|
51
|
-
"
|
|
52
|
-
"
|
|
49
|
+
"@puckeditor/platform-types": "0.9.0-canary.e1a77bb6",
|
|
50
|
+
"eslint-config-custom": "0.9.0-canary.e1a77bb6",
|
|
51
|
+
"tsup-config": "0.9.0-canary.e1a77bb6",
|
|
52
|
+
"tsconfig": "0.9.0-canary.e1a77bb6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@puckeditor/core": "^0.21.0 || 0.21.0-canary.de0baf39",
|