@blokkli/editor 2.0.0-alpha.54 → 2.0.0-alpha.56
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/global/constants/index.d.ts +1 -1
- package/dist/global/constants/index.js +1 -1
- package/dist/global/types/features.d.ts +5 -9
- package/dist/module.json +1 -1
- package/dist/module.mjs +28 -35
- package/dist/modules/agent/index.mjs +46 -29
- package/dist/modules/agent/runtime/app/composables/agentProvider.js +2 -1
- package/dist/modules/agent/runtime/app/features/agent/Container.d.vue.ts +19 -0
- package/dist/modules/agent/runtime/app/features/agent/Container.vue +195 -0
- package/dist/modules/agent/runtime/app/features/agent/Container.vue.d.ts +19 -0
- package/dist/modules/agent/runtime/app/features/agent/index.vue +18 -164
- package/dist/modules/agent/runtime/app/features/agent/types.d.ts +9 -0
- package/dist/modules/agent/runtime/app/helpers/index.d.ts +7 -3
- package/dist/modules/agent/runtime/app/helpers/index.js +9 -3
- package/dist/modules/agent/runtime/app/prompts/fixReadability.js +51 -44
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +2 -1
- package/dist/modules/agent/runtime/app/tools/check_readability/index.js +1 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +1 -1
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +6 -1
- package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.js +1 -0
- package/dist/modules/agent/runtime/app/types/index.d.ts +12 -0
- package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +34 -18
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +7 -0
- package/dist/modules/drupal/graphql/features/droppable-field-items.graphql +22 -0
- package/dist/modules/drupal/graphql/features/import-existing.graphql +0 -25
- package/dist/modules/drupal/graphql/features/workspace.graphql +9 -2
- package/dist/modules/drupal/graphql/mutations/update_droppable_field.graphql +21 -0
- package/dist/modules/drupal/index.mjs +6 -2
- package/dist/modules/drupal/runtime/adapter/index.js +75 -39
- package/dist/modules/readability/index.d.mts +11 -0
- package/dist/modules/readability/index.mjs +17 -0
- package/dist/modules/readability/runtime/adapter-extension.d.ts +2 -0
- package/dist/modules/readability/runtime/adapter-extension.js +5 -0
- package/dist/modules/readability/runtime/analyzers/builtin.d.ts +10 -0
- package/dist/modules/readability/runtime/analyzers/builtin.js +340 -0
- package/dist/runtime/components/BlokkliEditable.vue +10 -90
- package/dist/runtime/components/BlokkliItem.vue +2 -2
- package/dist/runtime/components/BlokkliProvider.vue +11 -5
- package/dist/runtime/composables/defineBlokkli.js +3 -1
- package/dist/runtime/composables/defineBlokkliFeature.d.ts +2 -3
- package/dist/runtime/editor/components/Actions/index.vue +1 -1
- package/dist/runtime/editor/components/AnimationCanvas/index.vue +41 -6
- package/dist/runtime/editor/components/AppMenu/Inner.d.vue.ts +7 -0
- package/dist/runtime/editor/components/AppMenu/Inner.vue +83 -0
- package/dist/runtime/editor/components/AppMenu/Inner.vue.d.ts +7 -0
- package/dist/runtime/editor/components/AppMenu/index.vue +5 -79
- package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +9 -1
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/BlockPreviewItem/index.vue +12 -6
- package/dist/runtime/editor/components/BlokkliEditableEdit.d.vue.ts +23 -0
- package/dist/runtime/editor/components/BlokkliEditableEdit.vue +95 -0
- package/dist/runtime/editor/components/BlokkliEditableEdit.vue.d.ts +23 -0
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.d.vue.ts +4 -1
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +4 -1
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue.d.ts +4 -1
- package/dist/runtime/editor/components/BundleSelector/index.vue +10 -5
- package/dist/runtime/editor/components/Dialog/index.vue +0 -77
- package/dist/runtime/editor/components/EditIndicator.d.vue.ts +1 -0
- package/dist/runtime/editor/components/EditIndicator.vue +3 -2
- package/dist/runtime/editor/components/EditIndicator.vue.d.ts +1 -0
- package/dist/runtime/editor/components/EditProvider.d.vue.ts +3 -1
- package/dist/runtime/editor/components/EditProvider.vue +13 -4
- package/dist/runtime/editor/components/EditProvider.vue.d.ts +3 -1
- package/dist/runtime/editor/components/FeaturesRenderer/index.vue +1 -4
- package/dist/runtime/editor/components/Form/Text/index.d.vue.ts +5 -0
- package/dist/runtime/editor/components/Form/Text/index.vue +10 -4
- package/dist/runtime/editor/components/Form/Text/index.vue.d.ts +5 -0
- package/dist/runtime/editor/components/FormOverlay/index.vue +0 -24
- package/dist/runtime/editor/components/GrowOnly/index.d.vue.ts +10 -0
- package/dist/runtime/editor/components/GrowOnly/index.vue +34 -0
- package/dist/runtime/editor/components/GrowOnly/index.vue.d.ts +10 -0
- package/dist/runtime/editor/components/Konami/Game/index.vue +120 -0
- package/dist/runtime/editor/components/Konami/index.vue +7 -124
- package/dist/runtime/editor/components/Loading/index.vue +1 -1
- package/dist/runtime/editor/components/PluginConfigForm/Text/index.vue +1 -0
- package/dist/runtime/editor/components/PluginConfigForm/index.vue +1 -0
- package/dist/runtime/editor/components/PreviewProvider.d.vue.ts +3 -1
- package/dist/runtime/editor/components/PreviewProvider.vue +6 -1
- package/dist/runtime/editor/components/PreviewProvider.vue.d.ts +3 -1
- package/dist/runtime/editor/components/index.d.ts +11 -10
- package/dist/runtime/editor/components/index.js +32 -10
- package/dist/runtime/editor/composables/defineRenderer.d.ts +2 -2
- package/dist/runtime/editor/composables/defineRenderer.js +8 -3
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/events/index.d.ts +6 -0
- package/dist/runtime/editor/features/analyze/Main.d.vue.ts +1 -0
- package/dist/runtime/editor/features/analyze/Main.vue +9 -8
- package/dist/runtime/editor/features/analyze/Main.vue.d.ts +1 -0
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +7 -15
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +4 -2
- package/dist/runtime/editor/features/analyze/analyzers/axe.js +9 -9
- package/dist/runtime/editor/features/analyze/analyzers/readability.js +7 -7
- package/dist/runtime/editor/features/analyze/index.vue +26 -26
- package/dist/runtime/editor/features/analyze/readability/types.d.ts +18 -14
- package/dist/runtime/editor/features/anchors/index.vue +6 -2
- package/dist/runtime/editor/features/artboard/Renderer.vue +3 -2
- package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +78 -0
- package/dist/runtime/editor/features/block-scheduler/index.vue +34 -89
- package/dist/runtime/editor/features/breadcrumbs/index.vue +2 -2
- package/dist/runtime/editor/features/changelog/changelog.json +8 -0
- package/dist/runtime/editor/features/changelog/index.vue +10 -8
- package/dist/runtime/editor/features/clipboard/DropElement/index.vue +152 -0
- package/dist/runtime/editor/features/clipboard/index.vue +13 -159
- package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +0 -28
- package/dist/runtime/editor/features/command-palette/Palette/index.vue +17 -6
- package/dist/runtime/editor/features/command-palette/index.vue +7 -2
- package/dist/runtime/editor/features/comments/index.vue +6 -3
- package/dist/runtime/editor/features/debug/Main.vue +168 -0
- package/dist/runtime/editor/features/debug/Section/Features.vue +1 -2
- package/dist/runtime/editor/features/debug/index.vue +6 -170
- package/dist/runtime/editor/features/dev-mode/index.vue +2 -1
- package/dist/runtime/editor/features/diff/index.vue +6 -2
- package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +15 -16
- package/dist/runtime/editor/features/dragging-overlay/index.vue +4 -3
- package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.d.vue.ts +15 -0
- package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +547 -0
- package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue.d.ts +15 -0
- package/dist/runtime/editor/features/droppable-field-edit/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/droppable-field-edit/index.vue +231 -0
- package/dist/runtime/editor/features/droppable-field-edit/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/droppable-field-edit/types.d.ts +70 -0
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.d.vue.ts +2 -2
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue.d.ts +2 -2
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +1 -1
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +6 -13
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +3 -4
- package/dist/runtime/editor/features/fragments/index.vue +9 -4
- package/dist/runtime/editor/features/help/index.vue +7 -2
- package/dist/runtime/editor/features/highlights/Renderer/index.vue +11 -17
- package/dist/runtime/editor/features/history/index.vue +3 -2
- package/dist/runtime/editor/features/hover/Renderer/index.vue +87 -36
- package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +5 -5
- package/dist/runtime/editor/features/hover/index.vue +1 -1
- package/dist/runtime/editor/features/import-existing/Dialog/Item.d.vue.ts +5 -0
- package/dist/runtime/editor/features/import-existing/Dialog/Item.vue +55 -0
- package/dist/runtime/editor/features/import-existing/Dialog/Item.vue.d.ts +5 -0
- package/dist/runtime/editor/features/import-existing/Dialog/index.d.vue.ts +7 -3
- package/dist/runtime/editor/features/import-existing/Dialog/index.vue +107 -65
- package/dist/runtime/editor/features/import-existing/Dialog/index.vue.d.ts +7 -3
- package/dist/runtime/editor/features/import-existing/index.vue +19 -6
- package/dist/runtime/editor/features/import-existing/types.d.ts +0 -11
- package/dist/runtime/editor/features/library/ReusableDialog/index.vue +7 -33
- package/dist/runtime/editor/features/library/index.vue +14 -5
- package/dist/runtime/editor/features/media-library/Library/index.vue +3 -1
- package/dist/runtime/editor/features/media-library/index.vue +9 -2
- package/dist/runtime/editor/features/media-library/types.d.ts +2 -0
- package/dist/runtime/editor/features/multi-select/Renderer/index.vue +16 -15
- package/dist/runtime/editor/features/multi-select/index.vue +9 -3
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +4 -8
- package/dist/runtime/editor/features/options/index.vue +7 -2
- package/dist/runtime/editor/features/preview-grant/index.vue +8 -2
- package/dist/runtime/editor/features/publish/index.vue +3 -2
- package/dist/runtime/editor/features/referenced-entities/index.vue +7 -2
- package/dist/runtime/editor/features/responsive-preview/index.vue +13 -11
- package/dist/runtime/editor/features/search/index.vue +6 -2
- package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +6 -11
- package/dist/runtime/editor/features/selection/Renderer/index.vue +9 -14
- package/dist/runtime/editor/features/selection/index.vue +7 -4
- package/dist/runtime/editor/features/settings/index.vue +8 -3
- package/dist/runtime/editor/features/structure/index.vue +3 -2
- package/dist/runtime/editor/features/templates/CreateDialog/index.vue +1 -0
- package/dist/runtime/editor/features/templates/index.vue +14 -6
- package/dist/runtime/editor/features/theme/index.vue +2 -1
- package/dist/runtime/editor/features/tour/index.vue +6 -2
- package/dist/runtime/editor/features/translations/index.vue +7 -4
- package/dist/runtime/editor/features/workspace/Overlay/Item.d.vue.ts +3 -0
- package/dist/runtime/editor/features/workspace/Overlay/Item.vue +49 -0
- package/dist/runtime/editor/features/workspace/Overlay/Item.vue.d.ts +3 -0
- package/dist/runtime/editor/features/workspace/Overlay/index.vue +16 -104
- package/dist/runtime/editor/features/workspace/index.vue +6 -2
- package/dist/runtime/editor/helpers/webgl/index.d.ts +3 -2
- package/dist/runtime/editor/helpers/webgl/index.js +2 -3
- package/dist/runtime/editor/libraries/fzf.d.ts +3 -0
- package/dist/runtime/editor/libraries/fzf.js +7 -0
- package/dist/runtime/editor/libraries/twgl.d.ts +10 -0
- package/dist/runtime/editor/libraries/twgl.js +14 -0
- package/dist/runtime/editor/plugins/DebugOverlay/index.vue +3 -1
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue +39 -18
- package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +2 -0
- package/dist/runtime/editor/plugins/Sidebar/index.vue +12 -4
- package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +2 -0
- package/dist/runtime/editor/providers/animation.d.ts +5 -10
- package/dist/runtime/editor/providers/animation.js +10 -8
- package/dist/runtime/editor/providers/directive.d.ts +11 -0
- package/dist/runtime/editor/providers/directive.js +16 -0
- package/dist/runtime/editor/providers/features.d.ts +3 -3
- package/dist/runtime/editor/providers/features.js +1 -1
- package/dist/runtime/editor/providers/fieldValue.d.ts +27 -0
- package/dist/runtime/editor/providers/fieldValue.js +21 -1
- package/dist/runtime/editor/providers/keyboard.js +6 -3
- package/dist/runtime/editor/providers/readability.d.ts +28 -4
- package/dist/runtime/editor/providers/readability.js +30 -46
- package/dist/runtime/editor/providers/selection.d.ts +8 -0
- package/dist/runtime/editor/providers/selection.js +6 -0
- package/dist/runtime/editor/providers/texts.d.ts +1 -3
- package/dist/runtime/editor/providers/texts.js +34 -37
- package/dist/runtime/editor/providers/workspaces.d.ts +93 -0
- package/dist/runtime/editor/providers/workspaces.js +76 -0
- package/dist/runtime/editor/translations/de.json +918 -3616
- package/dist/runtime/editor/translations/fr.json +250 -3616
- package/dist/runtime/editor/translations/gsw_CH.json +918 -3616
- package/dist/runtime/editor/translations/it.json +250 -3616
- package/dist/runtime/editor/types/app.d.ts +2 -0
- package/dist/runtime/editor/types/features.d.ts +1 -1
- package/dist/runtime/editor/types/state.d.ts +7 -0
- package/dist/runtime/helpers/injections.d.ts +6 -0
- package/dist/runtime/helpers/injections.js +3 -0
- package/dist/runtime/types/definitions.d.ts +4 -0
- package/package.json +14 -4
- package/dist/runtime/editor/features/analyze/readability/builtinAnalyzer.d.ts +0 -6
- package/dist/runtime/editor/features/analyze/readability/builtinAnalyzer.js +0 -216
- package/dist/runtime/editor/features/workspace/types.d.ts +0 -59
- /package/dist/runtime/editor/features/{workspace → droppable-field-edit}/types.js +0 -0
|
@@ -749,3 +749,123 @@ onBlokkliEvent("canvas:draw", (e) => {
|
|
|
749
749
|
draw(time);
|
|
750
750
|
});
|
|
751
751
|
</script>
|
|
752
|
+
|
|
753
|
+
<style>
|
|
754
|
+
.bk.bk-konami {
|
|
755
|
+
--bg: #859018;
|
|
756
|
+
position: fixed;
|
|
757
|
+
top: 0px;
|
|
758
|
+
left: 0px;
|
|
759
|
+
z-index: 9999999999999;
|
|
760
|
+
width: 100%;
|
|
761
|
+
height: 100%;
|
|
762
|
+
display: flex;
|
|
763
|
+
flex-direction: column;
|
|
764
|
+
align-items: center;
|
|
765
|
+
justify-content: center;
|
|
766
|
+
gap: 5px;
|
|
767
|
+
background-color: rgb(var(--bk-theme-mono-950) / 0.9);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.bk.bk-konami .bk-konami-game {
|
|
771
|
+
position: relative;
|
|
772
|
+
padding: 60px;
|
|
773
|
+
--bk-tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
774
|
+
--bk-tw-shadow-colored: 0 25px 50px -12px var(--bk-tw-shadow-color);
|
|
775
|
+
box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow);
|
|
776
|
+
outline-style: solid;
|
|
777
|
+
outline-width: 5px;
|
|
778
|
+
outline-color: rgb(var(--bk-theme-mono-900) / 1);
|
|
779
|
+
overflow: hidden;
|
|
780
|
+
border-radius: 2vw;
|
|
781
|
+
background: var(--bg);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.bk.bk-konami .bk-konami-game:before {
|
|
785
|
+
content: '';
|
|
786
|
+
position: absolute;
|
|
787
|
+
inset: 0px;
|
|
788
|
+
z-index: 999;
|
|
789
|
+
box-shadow: inset 0 0 50px 0 rgba(0, 0, 0, 0.4);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.bk.bk-konami .bk-konami-game canvas {
|
|
793
|
+
display: block;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.bk.bk-konami .bk-konami-game canvas.bk-is-pixel-grid {
|
|
797
|
+
position: absolute;
|
|
798
|
+
top: 0px;
|
|
799
|
+
left: 0px;
|
|
800
|
+
z-index: 50;
|
|
801
|
+
image-rendering: pixelated;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.bk.bk-konami .bk-konami-game canvas.bk-is-display {
|
|
805
|
+
image-rendering: pixelated;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.bk.bk-konami .bk-konami-game-canvas {
|
|
809
|
+
position: relative;
|
|
810
|
+
outline: 1px solid rgba(0, 0, 0, 0.3);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.bk.bk-konami .bk-konami-game-block-icon {
|
|
814
|
+
pointer-events: none;
|
|
815
|
+
position: absolute;
|
|
816
|
+
top: 0px;
|
|
817
|
+
left: 0px;
|
|
818
|
+
display: flex;
|
|
819
|
+
align-items: center;
|
|
820
|
+
justify-content: center;
|
|
821
|
+
transition: all 0.1s ease;
|
|
822
|
+
background: rgba(0, 0, 0, 0.6);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.bk.bk-konami .bk-konami-game-block-icon svg {
|
|
826
|
+
width: 60%;
|
|
827
|
+
height: 60%;
|
|
828
|
+
fill: currentColor;
|
|
829
|
+
--bk-tw-text-opacity: 1;
|
|
830
|
+
color: rgb(var(--bk-theme-lime-normal) / var(--bk-tw-text-opacity, 1));
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.bk.bk-konami .bk-konami-score {
|
|
834
|
+
text-align: center;
|
|
835
|
+
font-size: 24px;
|
|
836
|
+
line-height: 32px;
|
|
837
|
+
color: #0f0;
|
|
838
|
+
font-family: 'Courier New', monospace;
|
|
839
|
+
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.bk.bk-konami .bk-konami-game-over {
|
|
843
|
+
margin-top: 5px;
|
|
844
|
+
text-align: center;
|
|
845
|
+
font-size: 30px;
|
|
846
|
+
line-height: 36px;
|
|
847
|
+
color: #f00;
|
|
848
|
+
font-family: 'Courier New', monospace;
|
|
849
|
+
text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
.bk.bk-konami .bk-konami-instructions {
|
|
853
|
+
text-align: center;
|
|
854
|
+
font-size: 14px;
|
|
855
|
+
line-height: 20px;
|
|
856
|
+
opacity: 0.7;
|
|
857
|
+
color: #0f0;
|
|
858
|
+
font-family: 'Courier New', monospace;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.bk.bk-konami .bk-konami-debug-canvas {
|
|
862
|
+
position: absolute;
|
|
863
|
+
top: 0px;
|
|
864
|
+
left: 0px;
|
|
865
|
+
z-index: 50;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.bk.bk-konami .bk-konami-debug-canvas canvas {
|
|
869
|
+
image-rendering: pixelated;
|
|
870
|
+
}
|
|
871
|
+
</style>
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
2
|
+
<Teleport to="body">
|
|
3
|
+
<BlokkliTransition name="slide-up">
|
|
4
|
+
<Game v-if="isEnabled" @close="isEnabled = false" />
|
|
5
|
+
</BlokkliTransition>
|
|
6
|
+
</Teleport>
|
|
5
7
|
</template>
|
|
6
8
|
|
|
7
9
|
<script setup>
|
|
8
|
-
import
|
|
9
|
-
import { ref } from "#imports";
|
|
10
|
+
import { defineAsyncComponent, ref } from "#imports";
|
|
10
11
|
import { BlokkliTransition } from "#blokkli/editor/components";
|
|
11
12
|
import { onBlokkliEvent } from "#blokkli/editor/composables";
|
|
13
|
+
const Game = defineAsyncComponent(() => import("./Game/index.vue"));
|
|
12
14
|
const isEnabled = ref(false);
|
|
13
15
|
const KONAMI_CODE = [
|
|
14
16
|
"ArrowUp",
|
|
@@ -40,122 +42,3 @@ onBlokkliEvent("keyPressed", (e) => {
|
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
</script>
|
|
43
|
-
|
|
44
|
-
<style>
|
|
45
|
-
.bk.bk-konami {
|
|
46
|
-
--bg: #859018;
|
|
47
|
-
position: fixed;
|
|
48
|
-
top: 0px;
|
|
49
|
-
left: 0px;
|
|
50
|
-
z-index: 9999999999999;
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: 100%;
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
gap: 5px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.bk.bk-konami .bk-konami-game {
|
|
61
|
-
position: relative;
|
|
62
|
-
padding: 60px;
|
|
63
|
-
--bk-tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
64
|
-
--bk-tw-shadow-colored: 0 25px 50px -12px var(--bk-tw-shadow-color);
|
|
65
|
-
box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow);
|
|
66
|
-
outline-style: solid;
|
|
67
|
-
outline-width: 5px;
|
|
68
|
-
outline-color: rgb(var(--bk-theme-mono-900) / 1);
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
border-radius: 2vw;
|
|
71
|
-
background: var(--bg);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.bk.bk-konami .bk-konami-game:before {
|
|
75
|
-
content: '';
|
|
76
|
-
position: absolute;
|
|
77
|
-
inset: 0px;
|
|
78
|
-
z-index: 999;
|
|
79
|
-
box-shadow: inset 0 0 50px 0 rgba(0, 0, 0, 0.4);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.bk.bk-konami .bk-konami-game canvas {
|
|
83
|
-
display: block;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.bk.bk-konami .bk-konami-game canvas.bk-is-pixel-grid {
|
|
87
|
-
position: absolute;
|
|
88
|
-
top: 0px;
|
|
89
|
-
left: 0px;
|
|
90
|
-
z-index: 50;
|
|
91
|
-
image-rendering: pixelated;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.bk.bk-konami .bk-konami-game canvas.bk-is-display {
|
|
95
|
-
image-rendering: pixelated;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.bk.bk-konami .bk-konami-game-canvas {
|
|
99
|
-
position: relative;
|
|
100
|
-
outline: 1px solid rgba(0, 0, 0, 0.3);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.bk.bk-konami .bk-konami-game-block-icon {
|
|
104
|
-
pointer-events: none;
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 0px;
|
|
107
|
-
left: 0px;
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
transition: all 0.1s ease;
|
|
112
|
-
background: rgba(0, 0, 0, 0.6);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.bk.bk-konami .bk-konami-game-block-icon svg {
|
|
116
|
-
width: 60%;
|
|
117
|
-
height: 60%;
|
|
118
|
-
fill: currentColor;
|
|
119
|
-
--bk-tw-text-opacity: 1;
|
|
120
|
-
color: rgb(var(--bk-theme-lime-normal) / var(--bk-tw-text-opacity, 1));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.bk.bk-konami .bk-konami-score {
|
|
124
|
-
text-align: center;
|
|
125
|
-
font-size: 24px;
|
|
126
|
-
line-height: 32px;
|
|
127
|
-
color: #0f0;
|
|
128
|
-
font-family: 'Courier New', monospace;
|
|
129
|
-
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.bk.bk-konami .bk-konami-game-over {
|
|
133
|
-
margin-top: 5px;
|
|
134
|
-
text-align: center;
|
|
135
|
-
font-size: 30px;
|
|
136
|
-
line-height: 36px;
|
|
137
|
-
color: #f00;
|
|
138
|
-
font-family: 'Courier New', monospace;
|
|
139
|
-
text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.bk.bk-konami .bk-konami-instructions {
|
|
143
|
-
text-align: center;
|
|
144
|
-
font-size: 14px;
|
|
145
|
-
line-height: 20px;
|
|
146
|
-
opacity: 0.7;
|
|
147
|
-
color: #0f0;
|
|
148
|
-
font-family: 'Courier New', monospace;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.bk.bk-konami .bk-konami-debug-canvas {
|
|
152
|
-
position: absolute;
|
|
153
|
-
top: 0px;
|
|
154
|
-
left: 0px;
|
|
155
|
-
z-index: 50;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.bk.bk-konami .bk-konami-debug-canvas canvas {
|
|
159
|
-
image-rendering: pixelated;
|
|
160
|
-
}
|
|
161
|
-
</style>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="bk _bk_absolute _bk_top-0 _bk_left-0 _bk_size-full _bk_z-init-overlay _bk_flex _bk_items-center _bk_justify-center"
|
|
4
4
|
:class="{
|
|
5
|
-
'_bk_!fixed _bk_!size-screen
|
|
5
|
+
'_bk_!fixed _bk_!size-screen _bk_!bg-mono-100': screen,
|
|
6
6
|
'_bk_bg-mono-100/90 _bk_text-mono-500': theme === 'light',
|
|
7
7
|
'_bk_bg-white/90 _bk_text-mono-500': theme === 'white',
|
|
8
8
|
'_bk_bg-mono-900/90 _bk_text-mono-200': theme === 'dark'
|
|
@@ -8,6 +8,8 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
8
8
|
entityBundle: string;
|
|
9
9
|
language: string;
|
|
10
10
|
providerType: ValidProviderTypes;
|
|
11
|
+
} & {
|
|
12
|
+
onReady?: (() => any) | undefined;
|
|
11
13
|
}> & (typeof globalThis extends {
|
|
12
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
13
15
|
} ? P : {});
|
|
@@ -18,7 +20,7 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
18
20
|
mutatedEntity: T;
|
|
19
21
|
}): any;
|
|
20
22
|
};
|
|
21
|
-
emit:
|
|
23
|
+
emit: (e: "ready") => void;
|
|
22
24
|
}>) => import("vue").VNode & {
|
|
23
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
26
|
};
|
|
@@ -35,6 +35,7 @@ const props = defineProps({
|
|
|
35
35
|
providerType: { type: null, required: true }
|
|
36
36
|
});
|
|
37
37
|
defineSlots();
|
|
38
|
+
const emit = defineEmits(["ready"]);
|
|
38
39
|
const context = computed(() => {
|
|
39
40
|
return {
|
|
40
41
|
entityType: props.entityType,
|
|
@@ -98,7 +99,10 @@ provide(INJECT_IS_PREVIEW, isPreview);
|
|
|
98
99
|
provide(INJECT_EDIT_CONTEXT, {
|
|
99
100
|
mutatedOptions,
|
|
100
101
|
eventBus,
|
|
101
|
-
definitions
|
|
102
|
+
definitions,
|
|
103
|
+
selectedUuids: computed(() => {
|
|
104
|
+
return [];
|
|
105
|
+
})
|
|
102
106
|
});
|
|
103
107
|
function onMessage(e) {
|
|
104
108
|
if (e.data && typeof e.data === "object" && e.data.name && typeof e.data.name === "string" && e.data.name.startsWith("blokkli__")) {
|
|
@@ -174,6 +178,7 @@ onMounted(() => {
|
|
|
174
178
|
} else {
|
|
175
179
|
checkChangedDate();
|
|
176
180
|
}
|
|
181
|
+
emit("ready");
|
|
177
182
|
});
|
|
178
183
|
onBeforeUnmount(() => {
|
|
179
184
|
clearTimeout(timeout);
|
|
@@ -8,6 +8,8 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
8
8
|
entityBundle: string;
|
|
9
9
|
language: string;
|
|
10
10
|
providerType: ValidProviderTypes;
|
|
11
|
+
} & {
|
|
12
|
+
onReady?: (() => any) | undefined;
|
|
11
13
|
}> & (typeof globalThis extends {
|
|
12
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
13
15
|
} ? P : {});
|
|
@@ -18,7 +20,7 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
18
20
|
mutatedEntity: T;
|
|
19
21
|
}): any;
|
|
20
22
|
};
|
|
21
|
-
emit:
|
|
23
|
+
emit: (e: "ready") => void;
|
|
22
24
|
}>) => import("vue").VNode & {
|
|
23
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
26
|
};
|
|
@@ -5,23 +5,15 @@ export { default as Banner } from './Banner/index.vue.js';
|
|
|
5
5
|
export { default as BannerInner } from './Banner/Inner.vue.js';
|
|
6
6
|
export { default as BetaIndicator } from './BetaIndicator/index.vue.js';
|
|
7
7
|
export { default as BlockPreviewItem } from './BlockPreviewItem/index.vue.js';
|
|
8
|
-
export { default as BlockPreviewRenderer } from './BlockPreviewRenderer/index.vue.js';
|
|
9
8
|
export { default as BlokkliTransition } from './Transition/index.vue.js';
|
|
10
|
-
export { default as BundleSelector } from './BundleSelector/index.vue.js';
|
|
11
9
|
export { default as ConfigForm } from './PluginConfigForm/index.vue.js';
|
|
12
10
|
export { default as ConfigFormInline } from './PluginConfigFormInline/index.vue.js';
|
|
13
|
-
export { default as DialogModal } from './Dialog/index.vue.js';
|
|
14
|
-
export { default as DiffApproval } from './DiffApproval/index.vue.js';
|
|
15
|
-
export { default as DiffDisplay } from './DiffViewer/DiffDisplay/index.vue.js';
|
|
16
|
-
export { default as DiffValue } from './DiffViewer/DiffValue.vue.js';
|
|
17
|
-
export { default as DiffViewerState } from './DiffViewer/State.vue.js';
|
|
18
11
|
export { default as Dropdown } from './Dropdown/index.vue.js';
|
|
19
12
|
export { default as DropdownItem } from './DropdownItem/index.vue.js';
|
|
20
13
|
export { default as ErrorBoundary } from './BlokkliErrorBoundary.vue.js';
|
|
21
14
|
export { default as FileDropHandler } from './FileDropHandler/index.vue.js';
|
|
22
15
|
export { default as FlexTextarea } from './FlexTextarea/index.vue.js';
|
|
23
16
|
export { default as FormCheckboxes } from './Form/Checkboxes/index.vue.js';
|
|
24
|
-
export { default as FormDatepicker } from './Form/Datepicker/index.vue.js';
|
|
25
17
|
export { default as FormGroup } from './Form/Group/index.vue.js';
|
|
26
18
|
export { default as FormItem } from './Form/Item/index.vue.js';
|
|
27
19
|
export { default as FormOverlay } from './FormOverlay/index.vue.js';
|
|
@@ -31,19 +23,18 @@ export { default as FormSelect } from './Form/Select/index.vue.js';
|
|
|
31
23
|
export { default as FormText } from './Form/Text/index.vue.js';
|
|
32
24
|
export { default as FormTextarea } from './Form/Textarea/index.vue.js';
|
|
33
25
|
export { default as FormToggle } from './Form/Toggle/index.vue.js';
|
|
26
|
+
export { default as GrowOnly } from './GrowOnly/index.vue.js';
|
|
34
27
|
export { default as Highlight } from './Highlight/index.vue.js';
|
|
35
28
|
export { default as Icon } from './Icon/index.vue.js';
|
|
36
29
|
export { default as InfoBox } from './InfoBox/index.vue.js';
|
|
37
30
|
export { default as ItemIcon } from './ItemIcon/index.vue.js';
|
|
38
31
|
export { default as ItemIconBox } from './ItemIconBox/index.vue.js';
|
|
39
32
|
export { default as Loading } from './Loading/index.vue.js';
|
|
40
|
-
export { default as NestedEditorOverlay } from './NestedEditorOverlay/index.vue.js';
|
|
41
33
|
export { default as Pagination } from './Pagination/index.vue.js';
|
|
42
34
|
export { default as Popup } from './Popup/index.vue.js';
|
|
43
35
|
export { default as RelativeTime } from './RelativeTime/index.vue.js';
|
|
44
36
|
export { default as Resizable } from './Resizable/index.vue.js';
|
|
45
37
|
export { default as ScaleToFit } from './ScaleToFit/index.vue.js';
|
|
46
|
-
export { default as ScheduleDate } from './ScheduleDate/index.vue.js';
|
|
47
38
|
export { default as ScrollBoundary } from './ScrollBoundary/index.vue.js';
|
|
48
39
|
export { default as SearchOverlay } from './SearchOverlay/index.vue.js';
|
|
49
40
|
export { default as ShortcutIndicator } from './ShortcutIndicator/index.vue.js';
|
|
@@ -57,3 +48,13 @@ export { default as Tooltip } from './Tooltip/index.vue.js';
|
|
|
57
48
|
export { default as TooltipContext } from './Tooltip/Context.vue.js';
|
|
58
49
|
export { default as TooltipStatus } from './Tooltip/Status.vue.js';
|
|
59
50
|
export { default as NotEditStateInfo } from './NotEditStateInfo/index.vue.js';
|
|
51
|
+
export declare const NestedEditorOverlay: any;
|
|
52
|
+
export declare const BundleSelector: any;
|
|
53
|
+
export declare const DialogModal: any;
|
|
54
|
+
export declare const DiffApproval: any;
|
|
55
|
+
export declare const BlockPreviewRenderer: any;
|
|
56
|
+
export declare const ScheduleDate: any;
|
|
57
|
+
export declare const DiffViewerState: any;
|
|
58
|
+
export declare const DiffValue: any;
|
|
59
|
+
export declare const DiffDisplay: any;
|
|
60
|
+
export declare const FormDatepicker: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defineAsyncComponent } from "vue";
|
|
1
2
|
export { default as AddListItem } from "./AddListItem/index.vue";
|
|
2
3
|
export { default as ArtboardTooltip } from "./ArtboardTooltip/index.vue";
|
|
3
4
|
export { default as AutoHeight } from "./AutoHeight/index.vue";
|
|
@@ -5,23 +6,15 @@ export { default as Banner } from "./Banner/index.vue";
|
|
|
5
6
|
export { default as BannerInner } from "./Banner/Inner.vue";
|
|
6
7
|
export { default as BetaIndicator } from "./BetaIndicator/index.vue";
|
|
7
8
|
export { default as BlockPreviewItem } from "./BlockPreviewItem/index.vue";
|
|
8
|
-
export { default as BlockPreviewRenderer } from "./BlockPreviewRenderer/index.vue";
|
|
9
9
|
export { default as BlokkliTransition } from "./Transition/index.vue";
|
|
10
|
-
export { default as BundleSelector } from "./BundleSelector/index.vue";
|
|
11
10
|
export { default as ConfigForm } from "./PluginConfigForm/index.vue";
|
|
12
11
|
export { default as ConfigFormInline } from "./PluginConfigFormInline/index.vue";
|
|
13
|
-
export { default as DialogModal } from "./Dialog/index.vue";
|
|
14
|
-
export { default as DiffApproval } from "./DiffApproval/index.vue";
|
|
15
|
-
export { default as DiffDisplay } from "./DiffViewer/DiffDisplay/index.vue";
|
|
16
|
-
export { default as DiffValue } from "./DiffViewer/DiffValue.vue";
|
|
17
|
-
export { default as DiffViewerState } from "./DiffViewer/State.vue";
|
|
18
12
|
export { default as Dropdown } from "./Dropdown/index.vue";
|
|
19
13
|
export { default as DropdownItem } from "./DropdownItem/index.vue";
|
|
20
14
|
export { default as ErrorBoundary } from "./BlokkliErrorBoundary.vue";
|
|
21
15
|
export { default as FileDropHandler } from "./FileDropHandler/index.vue";
|
|
22
16
|
export { default as FlexTextarea } from "./FlexTextarea/index.vue";
|
|
23
17
|
export { default as FormCheckboxes } from "./Form/Checkboxes/index.vue";
|
|
24
|
-
export { default as FormDatepicker } from "./Form/Datepicker/index.vue";
|
|
25
18
|
export { default as FormGroup } from "./Form/Group/index.vue";
|
|
26
19
|
export { default as FormItem } from "./Form/Item/index.vue";
|
|
27
20
|
export { default as FormOverlay } from "./FormOverlay/index.vue";
|
|
@@ -31,19 +24,18 @@ export { default as FormSelect } from "./Form/Select/index.vue";
|
|
|
31
24
|
export { default as FormText } from "./Form/Text/index.vue";
|
|
32
25
|
export { default as FormTextarea } from "./Form/Textarea/index.vue";
|
|
33
26
|
export { default as FormToggle } from "./Form/Toggle/index.vue";
|
|
27
|
+
export { default as GrowOnly } from "./GrowOnly/index.vue";
|
|
34
28
|
export { default as Highlight } from "./Highlight/index.vue";
|
|
35
29
|
export { default as Icon } from "./Icon/index.vue";
|
|
36
30
|
export { default as InfoBox } from "./InfoBox/index.vue";
|
|
37
31
|
export { default as ItemIcon } from "./ItemIcon/index.vue";
|
|
38
32
|
export { default as ItemIconBox } from "./ItemIconBox/index.vue";
|
|
39
33
|
export { default as Loading } from "./Loading/index.vue";
|
|
40
|
-
export { default as NestedEditorOverlay } from "./NestedEditorOverlay/index.vue";
|
|
41
34
|
export { default as Pagination } from "./Pagination/index.vue";
|
|
42
35
|
export { default as Popup } from "./Popup/index.vue";
|
|
43
36
|
export { default as RelativeTime } from "./RelativeTime/index.vue";
|
|
44
37
|
export { default as Resizable } from "./Resizable/index.vue";
|
|
45
38
|
export { default as ScaleToFit } from "./ScaleToFit/index.vue";
|
|
46
|
-
export { default as ScheduleDate } from "./ScheduleDate/index.vue";
|
|
47
39
|
export { default as ScrollBoundary } from "./ScrollBoundary/index.vue";
|
|
48
40
|
export { default as SearchOverlay } from "./SearchOverlay/index.vue";
|
|
49
41
|
export { default as ShortcutIndicator } from "./ShortcutIndicator/index.vue";
|
|
@@ -57,3 +49,33 @@ export { default as Tooltip } from "./Tooltip/index.vue";
|
|
|
57
49
|
export { default as TooltipContext } from "./Tooltip/Context.vue";
|
|
58
50
|
export { default as TooltipStatus } from "./Tooltip/Status.vue";
|
|
59
51
|
export { default as NotEditStateInfo } from "./NotEditStateInfo/index.vue";
|
|
52
|
+
export const NestedEditorOverlay = defineAsyncComponent(
|
|
53
|
+
() => import("./NestedEditorOverlay/index.vue")
|
|
54
|
+
);
|
|
55
|
+
export const BundleSelector = defineAsyncComponent(
|
|
56
|
+
() => import("./BundleSelector/index.vue")
|
|
57
|
+
);
|
|
58
|
+
export const DialogModal = defineAsyncComponent(
|
|
59
|
+
() => import("./Dialog/index.vue")
|
|
60
|
+
);
|
|
61
|
+
export const DiffApproval = defineAsyncComponent(
|
|
62
|
+
() => import("./DiffApproval/index.vue")
|
|
63
|
+
);
|
|
64
|
+
export const BlockPreviewRenderer = defineAsyncComponent(
|
|
65
|
+
() => import("./BlockPreviewRenderer/index.vue")
|
|
66
|
+
);
|
|
67
|
+
export const ScheduleDate = defineAsyncComponent(
|
|
68
|
+
() => import("./ScheduleDate/index.vue")
|
|
69
|
+
);
|
|
70
|
+
export const DiffViewerState = defineAsyncComponent(
|
|
71
|
+
() => import("./DiffViewer/State.vue")
|
|
72
|
+
);
|
|
73
|
+
export const DiffValue = defineAsyncComponent(
|
|
74
|
+
() => import("./DiffViewer/DiffValue.vue")
|
|
75
|
+
);
|
|
76
|
+
export const DiffDisplay = defineAsyncComponent(
|
|
77
|
+
() => import("./DiffViewer/DiffDisplay/index.vue")
|
|
78
|
+
);
|
|
79
|
+
export const FormDatepicker = defineAsyncComponent(
|
|
80
|
+
() => import("./Form/Datepicker/index.vue")
|
|
81
|
+
);
|
|
@@ -6,6 +6,6 @@ import type { Renderer } from '../providers/animation.js';
|
|
|
6
6
|
* @param config - Renderer configuration (zIndex, enabled, render, collector)
|
|
7
7
|
* @returns Object containing the collector instance with inferred type
|
|
8
8
|
*/
|
|
9
|
-
export declare function defineRenderer<T>(id: string, config: Omit<Renderer<T>, 'id'>): {
|
|
9
|
+
export declare function defineRenderer<T>(id: string, config: Omit<Renderer<T>, 'id'>): Promise<{
|
|
10
10
|
collector: T;
|
|
11
|
-
}
|
|
11
|
+
}>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { onBeforeUnmount, useBlokkli } from "#imports";
|
|
2
|
-
export function defineRenderer(id, config) {
|
|
2
|
+
export async function defineRenderer(id, config) {
|
|
3
3
|
const { animation } = useBlokkli();
|
|
4
|
-
|
|
4
|
+
let unmounted = false;
|
|
5
5
|
onBeforeUnmount(() => {
|
|
6
|
-
|
|
6
|
+
unmounted = true;
|
|
7
|
+
animation.unregisterRenderer(id);
|
|
7
8
|
});
|
|
9
|
+
const { collector } = await animation.registerRenderer(id, config);
|
|
10
|
+
if (unmounted) {
|
|
11
|
+
animation.unregisterRenderer(id);
|
|
12
|
+
}
|
|
8
13
|
return { collector };
|
|
9
14
|
}
|